Home arrow Support arrow Forums
LimeSurvey Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:[done] Hardcoded font tags (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Re:[done] Hardcoded font tags
#15905
holch (User)
Junior Lime
Posts: 38
graphgraph
User Offline Click here to see the profile of this user
[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 Logged  
 
Last Edit: 2008/07/14 13:31 By Mazi.
  The administrator has disabled public write access.
#15908
holch (User)
Junior Lime
Posts: 38
graphgraph
User Offline Click here to see the profile of this user
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 Logged  
  The administrator has disabled public write access.
#15909
holch (User)
Junior Lime
Posts: 38
graphgraph
User Offline Click here to see the profile of this user
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 Logged  
  The administrator has disabled public write access.
#15914
jcleeland (Admin)
Moderator Lime
Posts: 243
graphgraph
User Offline Click here to see the profile of this user
Re:Hardcoded font tags 4 Months, 1 Week ago Karma: 7  
Limesurvey 2.0 will definitely be free of these font tags.
 
Logged Logged  
  The administrator has disabled public write access.
#15945
Mazi (Moderator)
Moderator Lime
Posts: 3252
graph
User Offline Click here to see the profile of this user
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 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.
#15977
holch (User)
Junior Lime
Posts: 38
graphgraph
User Offline Click here to see the profile of this user
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 Logged  
  The administrator has disabled public write access.
#15990
Mazi (Moderator)
Moderator Lime
Posts: 3252
graph
User Offline Click here to see the profile of this user
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 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.
#16005
holch (User)
Junior Lime
Posts: 38
graphgraph
User Offline Click here to see the profile of this user
Re:Hardcoded font tags 4 Months, 1 Week ago Karma: 0  
OK, I will do that tonight, back home.
 
Logged Logged  
  The administrator has disabled public write access.
#16405
Mazi (Moderator)
Moderator Lime
Posts: 3252
graph
User Offline Click here to see the profile of this user
Re:Hardcoded font tags 4 Months ago Karma: 25  
You seem to have a long way home
 
Logged 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.
#16434
dan20 (User)
LimeSurvey Team
Posts: 44
graphgraph
User Offline Click here to see the profile of this user
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 Logged  
  The administrator has disabled public write access.
Go to top