Home Support Forums
Re:[done] Hardcoded font tags (1 viewing) (1) Guest
Favoured: 0
|
|
|
TOPIC: Re:[done] Hardcoded font tags
|
holch (User)
Junior Lime
Posts: 38
|
|
[done] Hardcoded font tags 4 Months, 1 Week ago
|
Karma: 0
|
|
I have started a new template, I have cleaned up basically everything (at least I think).
But there seem to be a few hardcoded font tags in the survey, which is quite annoying, because you can't change the font size via CSS, when there is a <font size="1"> like here for the head of a question (matrix):
<div class="viv_answer">
<table class='question'>
<thead>
<tr>
<td width='20%'></td>
<th class='array1' width='26%'><font size='1'>Sehr wichtig</font></th>
<th class='array1' width='26%'><font size='1'>Wichtig</font></th>
<th class='array1' width='26%'><font size='1'>Unwichtig</font></th>
</tr>
</thead>
How do I get rid of those font tags? They really make it difficult to have a nice design for a survey.
|
|
|
|
Logged
|
|
|
Last Edit: 2008/07/14 13:31 By Mazi.
|
|
|
The administrator has disabled public write access.
|
holch (User)
Junior Lime
Posts: 38
|
|
Re:Hardcoded font tags 4 Months, 1 Week ago
|
Karma: 0
|
Well, I think I found were all this "dirty" code is hidden: quanda.php.
I can't believe that I am the only one that had this problem so far. Does anyone have a "clean" quanda.php?
Currently I am trying to clean it, but that will take a while I guess. 
|
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
holch (User)
Junior Lime
Posts: 38
|
|
Re:Hardcoded font tags 4 Months, 1 Week ago
|
Karma: 0
|
Seems I was a little too optimistic. It is not just the quanda.php that is infested with "unnessary" html tags like font, etc. Basically all files contain some of those stupid font tags...
I hope Limesurvey 2.0 get's rid of these! They really annoy me. 
|
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:Hardcoded font tags 4 Months, 1 Week ago
|
Karma: 7
|
|
Limesurvey 2.0 will definitely be free of these font tags.
|
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
Mazi (Moderator)
Moderator Lime
Posts: 3252
|
|
Re:Hardcoded font tags 4 Months, 1 Week ago
|
Karma: 25
|
|
If you have cleaned qanda.php (and other files?) please upload your files so that other users can use them, too.
|
|
|
|
Logged
|
|
|
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
|
|
|
The administrator has disabled public write access.
|
holch (User)
Junior Lime
Posts: 38
|
|
Re:Hardcoded font tags 4 Months, 1 Week ago
|
Karma: 0
|
|
Yes, seems like I've got rid of all the font-tags.
I still had a problem of a destroyed question, were the font-tag was still in the text, but seems like it was left in the wysiwyg editor from a change of question type (I don't know how something like that can happen, because the font tags are not part of the code that can be influenced by the user without going into the code - but it was like that). This took me quite a while to figure out. But once I had cleaned the question text and inserted it new everthing was OK (before I thought that I had forgotten a font tag).
However, it was very quick and dirty and a good clean-up of the code would take ages... (just substituded the font tags with spans), no real semantic mark-up, but at least the layout does not suffer and can be influenced.
If someone is really interested in it I can upload it, but it is nothing special at all. It just fixed my problem.
|
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
Mazi (Moderator)
Moderator Lime
Posts: 3252
|
|
Re:Hardcoded font tags 4 Months, 1 Week ago
|
Karma: 25
|
|
holch wrote:
If someone is really interested in it I can upload it, but it is nothing special at all. It just fixed my problem.
Just add the edited files as textfiles. Might be interesting for someone else.
|
|
|
|
Logged
|
|
|
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
|
|
|
The administrator has disabled public write access.
|
holch (User)
Junior Lime
Posts: 38
|
|
Re:Hardcoded font tags 4 Months, 1 Week ago
|
Karma: 0
|
|
OK, I will do that tonight, back home.
|
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
Mazi (Moderator)
Moderator Lime
Posts: 3252
|
|
Re:Hardcoded font tags 4 Months ago
|
Karma: 25
|
You seem to have a long way home 
|
|
|
|
Logged
|
|
|
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
|
|
|
The administrator has disabled public write access.
|
dan20 (User)
LimeSurvey Team
Posts: 44
|
|
Re:Hardcoded font tags 4 Months ago
|
Karma: 1
|
|
Hey,
I don't know if you can use this but i had the same problem and i overwrote these <font> tags in the css stylesheet. For example:
.array1 font{
font-size:20px;
}
|
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
|
|
|
|