Announcement

Collapse
No announcement yet.

WC3 "is it possible"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • MRGTB
    replied
    thanks, that worked and it now 100% validate, but I had to remove "&amp:" bit in red at the top becuase it was being displayed as a "&" sign above every post image icon. But even after I removed it, it still validates 100%

    Click the link in the first post to check it again now, to see the validation as 100%.

    Code:
     
    [COLOR=red]&[/COLOR]
    [COLOR=red]
    [/COLOR]
     
    [LEFT]<div class="smallfont">
    
    <if condition="$show['firstnew']">
    [LEFT]<a href="showthread.php?$session[sessionurl]threadid=&amp;thread[threadid]&amp;goto=newpost"><img src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a>
    </if>
    <if condition="$show['icon'] && !$show['firstnew']">
    <img src="$vboptions[bburl]/$thread[threadiconpath]" border="0" alt="$thread[threadicontitle]" title="$thread[threadicontitle]" style="vertical-align: text-middle" /> 
    </if>
    <a href="showthread.php?$session[sessionurl]threadid=$thread[threadid]" title="$thread[preview]"><strong>$thread[title]</strong></a>
    <em>$vbphrase[last_post]:</em> $thread[date] <if condition="$vboptions['yestoday'] != 2"><span class="time">$thread[time]</span></if> <phrase 1="member.php?$session[sessionurl]find=lastposter&amp;threadid=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase>
    » $vbphrase[replies]: $thread[replycount]
    » $vbphrase[views]: $thread[views]
    </div>[/LEFT]
    
    [/LEFT]
    Both the homepage and forumhome are 100% now, cheers!


    Leave a comment:


  • Nutz
    replied
    Code:
    &amp;
    
    <div class="smallfont">
     <if condition="$show['firstnew']">
      <a href="showthread.php?$session[sessionurl]threadid=&amp;thread[threadid]&amp;goto=newpost"><img src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a>
     </if>
     <if condition="$show['icon'] && !$show['firstnew']">
      <img src="$vboptions[bburl]/$thread[threadiconpath]" border="0" alt="$thread[threadicontitle]" title="$thread[threadicontitle]" style="vertical-align: text-middle" /> 
     </if>
     <a href="showthread.php?$session[sessionurl]threadid=$thread[threadid]" title="$thread[preview]"><strong>$thread[title]</strong></a>
     <em>$vbphrase[last_post]:</em> $thread[date] <if condition="$vboptions['yestoday'] != 2"><span class="time">$thread[time]</span></if> <phrase 1="member.php?$session[sessionurl]find=lastposter&amp;threadid=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase>
     » $vbphrase[replies]: $thread[replycount]
     » $vbphrase[views]: $thread[views]
    </div>
    That should do it

    Leave a comment:


  • MRGTB
    replied
    thanks for both versions, tried them both and still the same result. 6 errors found on both.

    Leave a comment:


  • Nutz
    replied
    Try this:
    Code:
    <div class="smallfont">
     <if condition="$show['firstnew']">
      <a href="showthread.php?$session[sessionurl]threadid=&amp;thread[threadid]&amp;goto=newpost"><img src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a>
     </if>
     <if condition="$show['icon'] && !$show['firstnew']">
      <img src="$vboptions[bburl]/$thread[threadiconpath]" border="0" alt="$thread[threadicontitle]" title="$thread[threadicontitle]" style="vertical-align: text-middle" /> 
     </if>
     <a href="showthread.php?$session[sessionurl]threadid=$thread[threadid]" title="$thread[preview]"><strong>$thread[title]</strong></a>
     <em>$vbphrase[last_post]:</em> $thread[date] <if condition="$vboptions['yestoday'] != 2"><span class="time">$thread[time]</span></if> <phrase 1="member.php?$session[sessionurl]find=lastposter&threadid=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase>
     » $vbphrase[replies]: $thread[replycount]
     » $vbphrase[views]: $thread[views]
    </div>
    Thanks,
    Mat

    Leave a comment:


  • Whissi
    replied
    Try this:
    Code:
    <div class="smallfont">
     <if condition="$show['firstnew']">
      <a href="showthread.php?$session[sessionurl]threadid=&amp;thread[threadid]&amp;goto=newpost"><img src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a>
     </if>
     <if condition="$show['icon'] && !$show['firstnew']">
      <img src="$vboptions[bburl]/$thread[threadiconpath]" border="0" alt="$thread[threadicontitle]" title="$thread[threadicontitle]" style="vertical-align: text-middle" /> 
     </if>
     <a href="showthread.php?$session[sessionurl]threadid=$thread[threadid]" title="$thread[preview]"><strong>$thread[title]</strong></a>
     <em>$vbphrase[last_post]:</em> $thread[date] <if condition="$vboptions['yestoday'] != 2"><span class="time">$thread[time]</span></if> <phrase 1="member.php?$session[sessionurl]find=lastposter&amp;threadid=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase>
     » $vbphrase[replies]: $thread[replycount]
     » $vbphrase[views]: $thread[views]
    </div>
    What I have changed?
    Code:
    &
    into
    Code:
    &amp;

    Leave a comment:


  • MRGTB
    started a topic WC3 "is it possible"

    WC3 "is it possible"

    I have some code that I use on both my homepage and forumhome page, that displays the latest 5 threads.

    I get 6 errors when I run the WC3 Validation that are all linked to the code that this mod uses. Code is posted below that I use.

    Code:
    <div class="smallfont">
     <if condition="$show['firstnew']">
      <a href="showthread.php?$session[sessionurl]threadid=&thread[threadid]&goto=newpost"><img src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a>
     </if>
     <if condition="$show['icon'] && !$show['firstnew']">
      <img src="$vboptions[bburl]/$thread[threadiconpath]" border="0" alt="$thread[threadicontitle]" title="$thread[threadicontitle]" style="vertical-align: text-middle" /> 
     </if>
     <a href="showthread.php?$session[sessionurl]threadid=$thread[threadid]" title="$thread[preview]"><strong>$thread[title]</strong></a>
     <em>$vbphrase[last_post]:</em> $thread[date] <if condition="$vboptions['yestoday'] != 2"><span class="time">$thread[time]</span></if> <phrase 1="member.php?$session[sessionurl]find=lastposter&threadid=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase>
     » $vbphrase[replies]: $thread[replycount]
     » $vbphrase[views]: $thread[views]
    </div>
    You can check the errors I'm getting by clicking this link here that shows 6 errors. I want to know if there is any WC3 whiz kids here who think he or she can fix this code to still work the same correctly, but be 100% WC3 validated.

    Link to check errors: http://validator.w3.org/check?uri=ht...pe=Inline&ss=1
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X