1
pacho
News module generate valid HTML
  • 2007/11/1 16:40

  • pacho

  • Quite a regular

  • Posts: 235

  • Since: 2005/6/7 2


I tried to post this on Instant Zero site but can't register

I made some changes to templates and code to make W3C compliant content. Version 1.53

Social bookmarking
File: news_article.html
Lines: 42-51
Detail: Links has double "title" definition, image tag has empty alt, url changed from & to "& amp;" (remove extra space)

<a target="_blank" title="<{$smarty.const._NW_BOOKMARK_TO_BLINKLIST}>" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php& amp;Description=& amp;Url=<{$xoops_url}>/modules/news/article.php?storyid=<{$story.id}>& amp;Title=<{$encoded_title}>"><img border="0" alt="<{$smarty.const._NW_BOOKMARK_TO_BLINKLIST}>" src="<{$xoops_url}>/modules/news/images/blinklist.gif" /></a>&nbsp;
<
a target="_blank" title="<{$smarty.const._NW_BOOKMARK_TO_DELICIOUS}>" href="http://del.icio.us/post?url=<{$xoops_url}>/modules/news/article.php?storyid=<{$story.id}>& amp;title=<{$encoded_title}>"><img border="0" alt="<{$smarty.const._NW_BOOKMARK_TO_DELICIOUS}>" src="<{$xoops_url}>/modules/news/images/delicious.gif" /></a>&nbsp;
<
a target="_blank" title="<{$smarty.const._NW_BOOKMARK_TO_DIGG}>" href="http://digg.com/submit?phase=2& amp;url=<{$xoops_url}>/modules/news/article.php?storyid=<{$story.id}>"><img border="0" alt="<{$smarty.const._NW_BOOKMARK_TO_DIGG}>" src="<{$xoops_url}>/modules/news/images/diggman.gif" /></a>&nbsp;
<
a target="_blank" title="<{$smarty.const._NW_BOOKMARK_TO_FARK}>" href="http://cgi.fark.com/cgi/fark/edit.pl?new_url=<{$xoops_url}>/modules/news/article.php?storyid=<{$story.id}>& amp;new_comment=<{$encoded_title}>& amp;new_link_other=<{$encoded_title}>& amp;linktype=Misc"><img border="0" alt="<{$smarty.const._NW_BOOKMARK_TO_FARK}>" src="<{$xoops_url}>/modules/news/images/fark.gif" /></a>&nbsp;
<
a target="_blank" title="<{$smarty.const._NW_BOOKMARK_TO_FURL}>" href="http://www.furl.net/storeIt.jsp?t=<{$encoded_title}>& amp;u=<{$xoops_url}>/modules/news/article.php?storyid=<{$story.id}>"><img border="0" alt="<{$smarty.const._NW_BOOKMARK_TO_FURL}>" src="<{$xoops_url}>/modules/news/images/furl.gif" /></a>&nbsp;
<
a target="_blank" title="<{$smarty.const._NW_BOOKMARK_TO_NEWSVINE}>" href="http://www.newsvine.com/_tools/seed&save?u=<{$xoops_url}>/modules/news/article.php?storyid=<{$story.id}>& amp;h=<{$encoded_title}>"><img border="0" alt="<{$smarty.const._NW_BOOKMARK_TO_NEWSVINE}>" src="<{$xoops_url}>/modules/news/images/newsvine.gif" /></a>&nbsp;
<
a target="_blank" title="<{$smarty.const._NW_BOOKMARK_TO_REDDIT}>" href="http://reddit.com/submit?url=<{$xoops_url}>/modules/news/article.php?storyid=<{$story.id}>& amp;title=<{$encoded_title}>"><img border="0" alt="<{$smarty.const._NW_BOOKMARK_TO_REDDIT}>" src="<{$xoops_url}>/modules/news/images/reddit.gif" /></a>&nbsp;
<
a target="_blank" title="<{$smarty.const._NW_BOOKMARK_TO_SIMPY}>" href="http://www.simpy.com/simpy/LinkAdd.do?href=<{$xoops_url}>/modules/news/article.php?storyid=<{$story.id}>& amp;title=<{$encoded_title}>"><img border="0" alt="<{$smarty.const._NW_BOOKMARK_TO_SIMPY}>" src="<{$xoops_url}>/modules/news/images/simpy.png" /></a>&nbsp;
<
a target="_blank" title="<{$smarty.const._NW_BOOKMARK_TO_SPURL}>" href="http://www.spurl.net/spurl.php?title=<{$encoded_title}>& amp;url=<{$xoops_url}>/modules/news/article.php?storyid=<{$story.id}>"><img border="0" alt="<{$smarty.const._NW_BOOKMARK_TO_SPURL}>" src="<{$xoops_url}>/modules/news/images/spurl.gif" /></a>&nbsp;
<
a target="_blank" title="<{$smarty.const._NW_BOOKMARK_TO_YAHOO}>" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=<{$encoded_title}>& amp;u=<{$xoops_url}>/modules/news/article.php?storyid=<{$story.id}>"><img border="0" alt="<{$smarty.const._NW_BOOKMARK_TO_YAHOO}>" src="<{$xoops_url}>/modules/news/images/yahoomyweb.gif" /></a>



RSS button
File: index.php
Lines: 301
Detail: Border value isn't enclosed '', endtag isn't present '/>'

$link=sprintf(... <img src='%s' border='0' alt='%s' /></a>...);


Thanks Instant Zero for this great module!
I hope this could be usefull

2
Anonymous
Re: News module generate valid HTML
  • 2007/11/1 19:49

  • Anonymous

  • Posts: 0

  • Since:


Hello pacho,

Thank you for your effort to make XOOPS more W3C compliant.


Login

Who's Online

242 user(s) are online (135 user(s) are browsing Support Forums)


Members: 0


Guests: 242


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits