FUDforum - خوراک RDF
http://fudforum.org/forum/index.php
Stray HTML Table tag
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=167478&th=120518#msg_167478
File: FUDforumData\thm\default\tmpl\draw_forum_list.tmpl
Line: Line 23, </table> tag.
Should the table tag be within the endif block that comes just before it or somewhere else?
The reason I noticed this is because I was trying to apply a background to the very first table that encompasses the whole forum.
I applied a background and it worked fine on the main page but when I went into thread view,the background ended right after the forum path due to a </table> tag.
Upon looking at the html source, I saw a stray </table> tag at the end.
To fix my problem I did the following:
In File: FUDforumData\thm\default\tmpl\thread.tmpl
Line 30, I added <table>
This seemed to have fixed it.
If I moved the </table> in draw_forum_list.tmpl within the endif tag, it did weird things to my main forum page.
I may be wrong......may be due to the many other modification I made...but please check/confirm.
Thanks.
]]>dennisp2012-06-29T09:55:26-00:00Re: Stray HTML Table tag
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=167481&th=120518#msg_167481
naudefj2012-06-29T13:37:47-00:00Re: Stray HTML Table tag
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=167482&th=120518#msg_167482
http://fudforum.svn.sourceforge.net/fudforum/?rev=5523&view=rev]]>naudefj2012-06-29T17:18:00-00:00Re: Stray HTML Table tag
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=167485&th=120518#msg_167485
]]>dennisp2012-07-01T05:46:20-00:00Re: Stray HTML Table tag
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=167491&th=120518#msg_167491
Looked at genned html source as well and looks like the stray table tag is not there..
thanks
Cheers!]]>dennisp2012-07-02T10:03:57-00:00Re: Stray HTML Table tag
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=167496&th=120518#msg_167496
File: FUDforumData\thm\default\tmpl\post.tmpl
Line: 146
<td class="GenText fb"><label for="thr_always_on_top">{MSG: post_always_on_top}</label</td>
should be:
<td class="GenText fb"><label for="thr_always_on_top">{MSG: post_always_on_top}</label></td>
The </table> should probably come before the </td></tr> tags...or some new tags need to be introduced...
{TEMPLATE-DATA: data} seems to create its own <tr><td></td></tr> tags...]]>dennisp2012-07-02T16:33:08-00:00Re: Stray HTML Table tag
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=167497&th=120518#msg_167497
]]>naudefj2012-07-02T17:32:54-00:00Re: Stray HTML Table tag
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=167498&th=120518#msg_167498
Here is another one:
{TEMPLATE-DATA: online_indicator} should be within <td> since it does not create its own <tr>/<td> tags.
{TEMPLATE-DATA: avatar} creates <td> tags around itself but not <tr>.]]>dennisp2012-07-02T18:25:27-00:00Re: Stray HTML Table tag
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=167499&th=120518#msg_167499
http://fudforum.svn.sourceforge.net/fudforum/?rev=5526&view=rev]]>naudefj2012-07-02T19:37:11-00:00Re: Stray HTML Table tag
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=167570&th=120518#msg_167570
dennisp wrote on Mon, 02 July 2012 14:25
Thanks for the fix...and for the flattery but hardly...just spotting them as I try to go about applying small changes of my own...
Here is another one:
{TEMPLATE-DATA: online_indicator} should be within <td> since it does not create its own <tr>/<td> tags.
{TEMPLATE-DATA: avatar} creates <td> tags around itself but not <tr>.
Similar to the above, drawpmsg.tmpl, also has the same html bug..im thinking in all the templates..
The file I checked was: user_left/drawpmsg.tmpl
Line 25:
<table cellspacing="0" cellpadding="0" class="ContentTable"><tr class="MsgR2">{TEMPLATE-DATA: online_indicator}{TEMPLATE: dpmsg_profile_link}{IF: !$mini}{IF: $obj->user_id}<br />{TEMPLATE-DATA: avatar}<tr class="MsgR2">
Should be
<table cellspacing="0" cellpadding="0" class="ContentTable"><tr class="MsgR2"><td class="msgud">{TEMPLATE-DATA: online_indicator}{TEMPLATE-DATA: user_link}{IF: !$hide_controls}{IF: $obj->disp_flag_cc && $GLOBALS['FUD_OPT_3'] & 524288} <img src="images/flags/{VAR: obj->disp_flag_cc}.png" border="0" width="16" height="11" title="{VAR: obj->flag_country}" alt="{VAR: obj->flag_country}"/>{ENDIFI}{IF: $obj->user_id}</td></tr><tr>{TEMPLATE-DATA: avatar}</tr><tr class="MsgR2">
]]>dennisp2012-07-15T15:14:17-00:00Re: Stray HTML Table tag
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=167572&th=120518#msg_167572
1) Editing the theme...once you edit and create a theme, you notice the html bug (if any), since sometimes the style or html property will not be applied properly.
2) Probably more easily through firefox's html source viewer. It highlights extra tags or misplaced tags in red. This is what really got me to realize why styles I was applying was not being applied and that it was due to an html bug. Without this, I would have spent much more time on my css trying to fix/wonder what was going on. Probably other source viewers do the same. Not sure.]]>dennisp2012-07-15T15:22:45-00:00Re: Stray HTML Table tag
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=167601&th=120518#msg_167601
]]>NeXuS2012-07-23T06:35:00-00:00