Please login or register.

Login with username, password and session length
Advanced search  

News:

You need/want an older version of sNews ? Download an older/unsupported version here.

Author Topic: [MOD] W3C Links (sNews 1.4)  (Read 4863 times)

Magic

  • Newbie
  • *
  • Karma: 0
  • Posts: 7
[MOD] W3C Links (sNews 1.4)
« on: September 01, 2006, 08:42:00 pm »

Many firewalls block "referrer" information from being passed by the user agent. So W3C will return the error message "no referrer found".

To correct this, a person can link to the validators by echoing $PHP_SELF within the index.php links.

- - - - - - - - -

Valid CSS

Valid XHTML

- - - - - - - - -

The  rel="external" portion of the href is a javascript function, that works to sustain W3C compliancy, i.e. target=_blank is not proper markup in XHTML.


function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i   var anchor = anchors;
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}

- - - - - - - - -

Hope this helps,

[Magic]
Logged
OK dummy . . . get off the phone.

Fred K

  • Still trying to learn stuff
  • ULTIMATE member
  • ******
  • Karma: 130
  • Posts: 2728
    • Personal
[MOD] W3C Links (sNews 1.4)
« Reply #1 on: September 02, 2006, 11:27:00 am »

I've been using rel=external on sites I control, but as noted in another thread it's better form to let the user decide whether links should open a new window, new tab or same same. You could also modify the script a little by changing this:
Quote
if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
To this:
Quote
[color=a80000]if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "nofollow")
     anchor.target = "_blank";[/color]
I hadn't thought of the $PHP_SELF trick though, so for me it helps. Thanks! ;D
Logged

Jochum Meester

  • Sr. Member
  • ****
  • Karma: 1
  • Posts: 309
    • JochumMeester.com
[MOD] W3C Links (sNews 1.4)
« Reply #2 on: September 03, 2006, 12:55:17 pm »

I've been using this too, I've got the javascript in a file, and this is what I did in snews.php:

Code: [Select]
// If javascript is on echos javascript functions under <br />function javascript_headers() {<br />if_javascript_on('<br />  <script type="text/javascript" src="'.s('website').'external.js"></script><br />  <script type="text/javascript"><br />  //<![CDATA[<br />    function makesef() {<br />... blablabla</code>If the browser doesn't have JS enabled the file will simply not load, and the rel="external" in the links won't cause any 'damage' to the page <img src="http://snewscms.com/forum/Smileys/classic/tongue.gif" alt=":P" title="Tongue" class="smiley" /></div> </div> </div> <div class="moderatorbar"> <div class="smalltext floatleft" id="modified_12527"> </div> <div class="smalltext largepadding floatright"> <img src="https://snewscms.com/forum/Themes/core/images/ip.gif" alt="" border="0" /> Logged </div> </div> </div> </div> <div class="bordercolor"> <a id="msg12538"></a> <div class="clearfix topborder windowbg2 largepadding"> <div class="floatleft poster"> <h4><a href="https://snewscms.com/forum/index.php?action=profile;u=444" title="View the profile of Fred K">Fred K</a></h4> <ul class="reset smalltext" id="msg_12538_extra_info"> <li>Still trying to learn stuff</li> <li>ULTIMATE member</li> <li><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /></li> <li class="margintop">Karma: 130</li> <li>Posts: 2728</li> <li class="margintop" style="overflow: auto;"><img class="avatar" src="https://snewscms.com/forum/index.php?action=dlattach;attach=743;type=avatar" alt="" /></li> <li class="margintop"> <ul class="reset nolist"> <li><a href="http://http:/grand-central.eu/frdk/" title="Personal" target="_blank" class="new_win"><img src="https://snewscms.com/forum/Themes/core/images/www_sm.gif" alt="Personal" border="0" /></a></li> </ul> </li> </ul> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon"><img src="https://snewscms.com/forum/Themes/core/images/post/xx.gif" alt="" border="0" /></div> <h5 id="subject_12538"> <a href="https://snewscms.com/forum/index.php?topic=1564.msg12538#msg12538" rel="nofollow">[MOD] W3C Links (sNews 1.4)</a> </h5> <div class="smalltext">« <strong>Reply #3 on:</strong> September 03, 2006, 03:42:05 pm »</div> <div id="msg_12538_quick_mod"></div> </div> </div> <div class="post"> <hr class="hrcolor" width="100%" size="1" /> <div class="inner" id="msg_12538">Correct me if I'm wrong Jochum, but if a user has JS disabled the script won't "work" anyway, so rel=external won't do anything in that situation. IOW, while your solution is neat it seems a little redundant? (Not that I would stop anyone from using it or anything... it's a free world!) (lol)</div> </div> </div> <div class="moderatorbar"> <div class="smalltext floatleft" id="modified_12538"> </div> <div class="smalltext largepadding floatright"> <img src="https://snewscms.com/forum/Themes/core/images/ip.gif" alt="" border="0" /> Logged </div> <div class="signature" id="msg_12538_signature"><a href="http://grand-central.eu/frdk/" class="bbc_link" target="_blank">CV</a> | <a href="http://se.linkedin.com/pub/fredrik-kylander/53/317/1" class="bbc_link" target="_blank">me on LinkedIn</a></div> </div> </div> </div> <div class="bordercolor"> <a id="msg12541"></a> <div class="clearfix topborder windowbg largepadding"> <div class="floatleft poster"> <h4><a href="https://snewscms.com/forum/index.php?action=profile;u=823" title="View the profile of Magic">Magic</a></h4> <ul class="reset smalltext" id="msg_12541_extra_info"> <li>Newbie</li> <li><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /></li> <li class="margintop">Karma: 0</li> <li>Posts: 7</li> <li class="margintop"> <ul class="reset nolist"> </ul> </li> </ul> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon"><img src="https://snewscms.com/forum/Themes/core/images/post/xx.gif" alt="" border="0" /></div> <h5 id="subject_12541"> <a href="https://snewscms.com/forum/index.php?topic=1564.msg12541#msg12541" rel="nofollow">[MOD] W3C Links (sNews 1.4)</a> </h5> <div class="smalltext">« <strong>Reply #4 on:</strong> September 03, 2006, 04:46:31 pm »</div> <div id="msg_12541_quick_mod"></div> </div> </div> <div class="post"> <hr class="hrcolor" width="100%" size="1" /> <div class="inner" id="msg_12541">This work-around was intended to correct the issue of firewall-blocked referrer information. Providing a smooth link that will corroborate W3C compliancy is a good reflection upon the site and its owner.<br /><br />I have no data, but from experience I know that most people in my circle do not know how to disable browser Java Script functions, nor do they understand the security reasons behind it.<br /><br />Browsers install with Java Script enabled. So I am of the opinion that if a user knows how to disable Java Script then that user is probably well aware of W3C and, if truly interested, can manage the validation checks on their own.<br /><br />[Magic]</div> </div> </div> <div class="moderatorbar"> <div class="smalltext floatleft" id="modified_12541"> </div> <div class="smalltext largepadding floatright"> <img src="https://snewscms.com/forum/Themes/core/images/ip.gif" alt="" border="0" /> Logged </div> <div class="signature" id="msg_12541_signature">OK dummy . . . get off the phone.</div> </div> </div> </div> <div class="bordercolor"> <a id="msg12542"></a> <div class="clearfix topborder windowbg2 largepadding"> <div class="floatleft poster"> <h4><a href="https://snewscms.com/forum/index.php?action=profile;u=823" title="View the profile of Magic">Magic</a></h4> <ul class="reset smalltext" id="msg_12542_extra_info"> <li>Newbie</li> <li><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /></li> <li class="margintop">Karma: 0</li> <li>Posts: 7</li> <li class="margintop"> <ul class="reset nolist"> </ul> </li> </ul> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon"><img src="https://snewscms.com/forum/Themes/core/images/post/xx.gif" alt="" border="0" /></div> <h5 id="subject_12542"> <a href="https://snewscms.com/forum/index.php?topic=1564.msg12542#msg12542" rel="nofollow">[MOD] W3C Links (sNews 1.4)</a> </h5> <div class="smalltext">« <strong>Reply #5 on:</strong> September 03, 2006, 05:02:53 pm »</div> <div id="msg_12542_quick_mod"></div> </div> </div> <div class="post"> <hr class="hrcolor" width="100%" size="1" /> <div class="inner" id="msg_12542"><div class="quoteheader"><div class="topslice_quote">Quote from: agentsmith</div></div><blockquote class="bbc_standard_quote">I've been using rel=external on sites I control, but as noted in another thread it's better form to let the user decide whether links should open a new window, new tab or same same.</blockquote><div class="quotefooter"><div class="botslice_quote"></div></div>I do not agree. I do not want people leaving my site pages via the W3C validator, only to have them follow links of interest at W3C.org.<br /><br />As the designer it is my perogative to decide how to "steer" the browser through my sites and to use techniques that function to retain their interest and duration of their visit.<br /><br />[Magic]</div> </div> </div> <div class="moderatorbar"> <div class="smalltext floatleft" id="modified_12542"> </div> <div class="smalltext largepadding floatright"> <img src="https://snewscms.com/forum/Themes/core/images/ip.gif" alt="" border="0" /> Logged </div> <div class="signature" id="msg_12542_signature">OK dummy . . . get off the phone.</div> </div> </div> </div> <div class="bordercolor"> <a id="msg12547"></a> <div class="clearfix topborder windowbg largepadding"> <div class="floatleft poster"> <h4><a href="https://snewscms.com/forum/index.php?action=profile;u=444" title="View the profile of Fred K">Fred K</a></h4> <ul class="reset smalltext" id="msg_12547_extra_info"> <li>Still trying to learn stuff</li> <li>ULTIMATE member</li> <li><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /></li> <li class="margintop">Karma: 130</li> <li>Posts: 2728</li> <li class="margintop" style="overflow: auto;"><img class="avatar" src="https://snewscms.com/forum/index.php?action=dlattach;attach=743;type=avatar" alt="" /></li> <li class="margintop"> <ul class="reset nolist"> <li><a href="http://http:/grand-central.eu/frdk/" title="Personal" target="_blank" class="new_win"><img src="https://snewscms.com/forum/Themes/core/images/www_sm.gif" alt="Personal" border="0" /></a></li> </ul> </li> </ul> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon"><img src="https://snewscms.com/forum/Themes/core/images/post/xx.gif" alt="" border="0" /></div> <h5 id="subject_12547"> <a href="https://snewscms.com/forum/index.php?topic=1564.msg12547#msg12547" rel="nofollow">[MOD] W3C Links (sNews 1.4)</a> </h5> <div class="smalltext">« <strong>Reply #6 on:</strong> September 03, 2006, 06:47:33 pm »</div> <div id="msg_12547_quick_mod"></div> </div> </div> <div class="post"> <hr class="hrcolor" width="100%" size="1" /> <div class="inner" id="msg_12547">Well, I did say <div class="quoteheader"><div class="topslice_quote">Quote from: I</div></div><blockquote class="bbc_standard_quote">...on sites <strong>I control</strong></blockquote><div class="quotefooter"><div class="botslice_quote"></div></div>, meaning on my own sites I agree with you. On client sites -- I leave it up to the client to decide. But that's just my point of view, I'm not saying you have to agree with me.<br />(You <em>should</em>. But you don't have to.) <img src="http://snewscms.com/forum/Smileys/classic/grin.gif" alt=";D" title="Grin" class="smiley" /><br /><br />On the other hand: we spend hours, days even, to make our sites standards compliant and accessible, only to go against the standards body on recommended user experience for hyperlinks. Slightly ironic, no?<br /><br />Maybe this info will cheer things up: <a href="http://www.w3.org/TR/css3-hyperlinks/" class="bbc_link" target="_blank">http://www.w3.org/TR/css3-hyperlinks/</a><br />Although -- widespread CSS3 support in browsers is about as far away as that giant lottery win I've been waiting for ever since mr. Anderson set me free...<br /><img src="http://snewscms.com/forum/Smileys/classic/cheesy.gif" alt=":D" title="Cheesy" class="smiley" /></div> </div> </div> <div class="moderatorbar"> <div class="smalltext floatleft" id="modified_12547"> </div> <div class="smalltext largepadding floatright"> <img src="https://snewscms.com/forum/Themes/core/images/ip.gif" alt="" border="0" /> Logged </div> <div class="signature" id="msg_12547_signature"><a href="http://grand-central.eu/frdk/" class="bbc_link" target="_blank">CV</a> | <a href="http://se.linkedin.com/pub/fredrik-kylander/53/317/1" class="bbc_link" target="_blank">me on LinkedIn</a></div> </div> </div> </div> <div class="bordercolor"> <a id="msg12548"></a> <div class="clearfix topborder windowbg2 largepadding"> <div class="floatleft poster"> <h4><a href="https://snewscms.com/forum/index.php?action=profile;u=823" title="View the profile of Magic">Magic</a></h4> <ul class="reset smalltext" id="msg_12548_extra_info"> <li>Newbie</li> <li><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /></li> <li class="margintop">Karma: 0</li> <li>Posts: 7</li> <li class="margintop"> <ul class="reset nolist"> </ul> </li> </ul> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon"><img src="https://snewscms.com/forum/Themes/core/images/post/xx.gif" alt="" border="0" /></div> <h5 id="subject_12548"> <a href="https://snewscms.com/forum/index.php?topic=1564.msg12548#msg12548" rel="nofollow">[MOD] W3C Links (sNews 1.4)</a> </h5> <div class="smalltext">« <strong>Reply #7 on:</strong> September 03, 2006, 09:16:04 pm »</div> <div id="msg_12548_quick_mod"></div> </div> </div> <div class="post"> <hr class="hrcolor" width="100%" size="1" /> <div class="inner" id="msg_12548">There is no irony here. My pages still validate except for one little additional cross-browser CSS style element.<br /><br />.submitbutton {<br />       cursor:pointer;<br />       cursor:hand;<br /><br />I guess Microsoft figured they could unilaterally rewrite the book.<br /><br />Nevertheless, the XHTML markup still validates with the Java Scripted hyper-link. And moreover, W3C have an entire section entitled <a href="http://www.w3.org/TR/html4/interact/scripts.html" class="bbc_link" target="_blank">SCRIPTS</a>.<br /><br />* * * * * * * * * * <br /><br />Mr. Anderson's cathartic moment of self awareness has nothing to do with this. Besides ..Agent Smith.. at that moment did he not appear to penetrate you from the rear ?<br /><br />[Magic]</div> </div> </div> <div class="moderatorbar"> <div class="smalltext floatleft" id="modified_12548"> </div> <div class="smalltext largepadding floatright"> <img src="https://snewscms.com/forum/Themes/core/images/ip.gif" alt="" border="0" /> Logged </div> <div class="signature" id="msg_12548_signature">OK dummy . . . get off the phone.</div> </div> </div> </div> <div class="bordercolor"> <a id="msg12549"></a> <div class="clearfix topborder windowbg largepadding"> <div class="floatleft poster"> <h4><a href="https://snewscms.com/forum/index.php?action=profile;u=823" title="View the profile of Magic">Magic</a></h4> <ul class="reset smalltext" id="msg_12549_extra_info"> <li>Newbie</li> <li><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /></li> <li class="margintop">Karma: 0</li> <li>Posts: 7</li> <li class="margintop"> <ul class="reset nolist"> </ul> </li> </ul> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon"><img src="https://snewscms.com/forum/Themes/core/images/post/xx.gif" alt="" border="0" /></div> <h5 id="subject_12549"> <a href="https://snewscms.com/forum/index.php?topic=1564.msg12549#msg12549" rel="nofollow">[MOD] W3C Links (sNews 1.4)</a> </h5> <div class="smalltext">« <strong>Reply #8 on:</strong> September 04, 2006, 12:43:01 am »</div> <div id="msg_12549_quick_mod"></div> </div> </div> <div class="post"> <hr class="hrcolor" width="100%" size="1" /> <div class="inner" id="msg_12549">With respect to providing a "hand" in Internet Explorer for both the search button and the login button, I have found a work-around that retains W3C compliancy.<br /><br />The style sheet need not be modified.<br /><br /><div class="quoteheader"><div class="topslice_quote">Quote</div></div><blockquote class="bbc_standard_quote">// SEARCH FORM<br />function searchform() { ?><br />   <form id="search_engine" method="post" action="" /> <br />      <p><input name="search_query" type="text" alt="Search" class="text" id="search_query" /><br /><br /><?php<br />if (strstr($_SERVER["HTTP_USER_AGENT"], "MSIE"))<br /> {<br />echo "<input type='submit' name='search' tabindex='100' style='cursor: hand' class='" . s('search_button') . "' value='" . l('search_button') . "' /></p>";<br /> } else {<br />echo "<input type='submit' name='search' tabindex='100' style='cursor: pointer' class='" . s('search_button') . "' value='" . l('search_button') . "' /></p>";<br /> }<br />?><br /><br /><? }</blockquote><div class="quotefooter"><div class="botslice_quote"></div></div>This same method can be used for the login button.<br /><br /><div class="quoteheader"><div class="topslice_quote">Quote</div></div><blockquote class="bbc_standard_quote">// LOGIN <br /><br />function login() {<br />if ($_SESSION['Logged_In'] != "True") {<br />    echo "<h2>Login</h2>";<br />echo "<form method='post' action='" .s('website'). "'><br />    <p><br />". l(username) .":</p><p><input type='textbox' class='text' name='Username' /></p><br />    <p>". l(password) .":</p><p><input type='password' class='text' name='Password' /></p><br />    <p><input type='hidden' name='Submitted' value='True' /></p>";<br /><br />if (strstr($_SERVER["HTTP_USER_AGENT"], "MSIE"))<br /> {<br />echo "<p><input type='Submit' name='Submit' class='" .s('button'). "' style='cursor: hand' value='". l(login) ."' /></p></form>";<br /> } else {<br />echo "<p><input type='Submit' name='Submit' class='" .s('button'). "' style='cursor: pointer' value='". l(login) ."' /></p></form>";<br /> }<br /><br />} else {<br />echo "<h2>" .l('logged_in'). "</h2>";<br />// echo "<p><a href='". s('website') ."logout/'>". l('logout') ."</a></p>";<br />}}</blockquote><div class="quotefooter"><div class="botslice_quote"></div></div>Hope this helps.</div> </div> </div> <div class="moderatorbar"> <div class="smalltext floatleft" id="modified_12549"> </div> <div class="smalltext largepadding floatright"> <img src="https://snewscms.com/forum/Themes/core/images/ip.gif" alt="" border="0" /> Logged </div> <div class="signature" id="msg_12549_signature">OK dummy . . . get off the phone.</div> </div> </div> </div> <div class="bordercolor"> <a id="msg12550"></a> <div class="clearfix topborder windowbg2 largepadding"> <div class="floatleft poster"> <h4><a href="https://snewscms.com/forum/index.php?action=profile;u=516" title="View the profile of Sasha">Sasha</a></h4> <ul class="reset smalltext" id="msg_12550_extra_info"> <li>Hero Member</li> <li><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /></li> <li class="margintop">Karma: 28</li> <li>Posts: 938</li> <li class="margintop" style="overflow: auto;"><img class="avatar" src="https://snewscms.com/forum/index.php?action=dlattach;attach=761;type=avatar" alt="" /></li> <li class="margintop"> <ul class="reset nolist"> <li><a href="http://www.cssanarchy.com/" title="cssanarchy.com" target="_blank" class="new_win"><img src="https://snewscms.com/forum/Themes/core/images/www_sm.gif" alt="cssanarchy.com" border="0" /></a></li> </ul> </li> </ul> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon"><img src="https://snewscms.com/forum/Themes/core/images/post/xx.gif" alt="" border="0" /></div> <h5 id="subject_12550"> <a href="https://snewscms.com/forum/index.php?topic=1564.msg12550#msg12550" rel="nofollow">[MOD] W3C Links (sNews 1.4)</a> </h5> <div class="smalltext">« <strong>Reply #9 on:</strong> September 04, 2006, 05:31:55 am »</div> <div id="msg_12550_quick_mod"></div> </div> </div> <div class="post"> <hr class="hrcolor" width="100%" size="1" /> <div class="inner" id="msg_12550">I Hope this helps: Internet explorer suck <img src="http://snewscms.com/forum/Smileys/classic/smiley.gif" alt=":)" title="Smiley" class="smiley" /></div> </div> </div> <div class="moderatorbar"> <div class="smalltext floatleft" id="modified_12550"> </div> <div class="smalltext largepadding floatright"> <img src="https://snewscms.com/forum/Themes/core/images/ip.gif" alt="" border="0" /> Logged </div> <div class="signature" id="msg_12550_signature"><span style="color: #9E0B99;" class="bbc_color">Every morning, I get up and look through the 'Forbes' list of the richest people in America. If I'm not there, I go to work.</span> | <span style="color: #888306;" class="bbc_color"> If you love your job, you haven't worked a day in your life.</span> snews with ♥</div> </div> </div> </div> <div class="bordercolor"> <a id="msg12551"></a> <div class="clearfix topborder windowbg largepadding"> <div class="floatleft poster"> <h4><a href="https://snewscms.com/forum/index.php?action=profile;u=450" title="View the profile of Mika">Mika</a></h4> <ul class="reset smalltext" id="msg_12551_extra_info"> <li>Hero Member</li> <li><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="https://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /></li> <li class="margintop">Karma: 9</li> <li>Posts: 1377</li> <li class="margintop"> <ul class="reset nolist"> <li><a href="http://www.ni5ni6.com/" title="http://www.ni5ni6.com/" target="_blank" class="new_win"><img src="https://snewscms.com/forum/Themes/core/images/www_sm.gif" alt="http://www.ni5ni6.com/" border="0" /></a></li> </ul> </li> </ul> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon"><img src="https://snewscms.com/forum/Themes/core/images/post/xx.gif" alt="" border="0" /></div> <h5 id="subject_12551"> <a href="https://snewscms.com/forum/index.php?topic=1564.msg12551#msg12551" rel="nofollow">[MOD] W3C Links (sNews 1.4)</a> </h5> <div class="smalltext">« <strong>Reply #10 on:</strong> September 04, 2006, 06:20:48 am »</div> <div id="msg_12551_quick_mod"></div> </div> </div> <div class="post"> <hr class="hrcolor" width="100%" size="1" /> <div class="inner" id="msg_12551">nice job, magic <img src="http://snewscms.com/forum/Smileys/classic/smiley.gif" alt=":)" title="Smiley" class="smiley" /><br /><br />you could try a shorter version as well:<br /><div class="quoteheader"><div class="topslice_quote">Quote</div></div><blockquote class="bbc_standard_quote">// SEARCH FORM<br />function searchform() { ?><br />    <form id="search_engine" method="post" action="" /><br />        <p><input name="search_query" type="text" alt="Search" class="text" id="search_query" /><br /><br /><?php<br /><span style="color: blue;" class="bbc_color">$cursor = strstr($_SERVER["HTTP_USER_AGENT"], 'MSIE') ? 'hand' : 'pointer';</span><br />echo '<input type="submit" name="search" tabindex="100" style="cursor: <span style="color: blue;" class="bbc_color">'.$cursor.'</span>" class="'. s('search_button').'" value="'.l('search_button').'" /></p>';<br />}</blockquote><div class="quotefooter"><div class="botslice_quote"></div></div></div> </div> </div> <div class="moderatorbar"> <div class="smalltext floatleft" id="modified_12551"> </div> <div class="smalltext largepadding floatright"> <img src="https://snewscms.com/forum/Themes/core/images/ip.gif" alt="" border="0" /> Logged </div> <div class="signature" id="msg_12551_signature"><a href="http://www.ni5ni6.com/" class="bbc_link" target="_blank">http://www.ni5ni6.com/</a> - Tutorials, Mods and How-To's about sNews CMS<br /><a href="http://www.ni5ni6.com/home/snews-16-developers-edition/" class="bbc_link" target="_blank">sNews 1.6 Developers Edition</a> - commented sNews 1.6 version</div> </div> </div> </div> </form> </div> <a id="lastPost"></a> <div class="clearfix marginbottom" id="postbuttons_lower"> <div class="nav floatright"> <div class="buttonlist"> <ul class="reset clearfix"> <li class="last"><a class="button_strip_print" href="https://snewscms.com/forum/index.php?action=printpage;topic=1564.0" rel="new_win nofollow"><span>Print</span></a></li> </ul> </div></div> <div class="middletext floatleft">Pages: [<strong>1</strong>] </div> <div class="clear"><a href="https://snewscms.com/forum/index.php?topic=1564.0;prev_next=prev#new">« previous</a> <a href="https://snewscms.com/forum/index.php?topic=1564.0;prev_next=next#new">next »</a></div> </div> <ul class="linktree" id="linktree_lower"> <li> <a href="https://snewscms.com/forum/index.php"><span>sNews Forum</span></a> > </li> <li> <a href="https://snewscms.com/forum/index.php#c4"><span>Previous sNews versions</span></a> > </li> <li> <a href="https://snewscms.com/forum/index.php?board=76.0"><span>sNews 1.4 Final</span></a> > </li> <li> <a href="https://snewscms.com/forum/index.php?board=10.0"><span>Mods and Addons</span></a> > </li> <li class="last"> <a href="https://snewscms.com/forum/index.php?topic=1564.0"><span>[MOD] W3C Links (sNews 1.4)</span></a> </li> </ul> <div id="moderationbuttons" class="clearfix"></div> <div class="tborder"> <div class="titlebg2" style="padding: 4px;" align="right" id="display_jump_to"> </div> </div><br /> <script type="text/javascript" src="https://snewscms.com/forum/Themes/default/scripts/topic.js"></script> <script type="text/javascript"><!-- // --><![CDATA[ if ('XMLHttpRequest' in window) { var oQuickModify = new QuickModify({ sScriptUrl: smf_scripturl, bShowModify: true, iTopicId: 1564, sTemplateBodyEdit: '\n\t\t\t\t<div id="quick_edit_body_container" style="width: 90%">\n\t\t\t\t\t<div id="error_box" style="padding: 4px;" class="error"><' + '/div>\n\t\t\t\t\t<textarea class="editor" name="message" rows="12" style="width: 100%; margin-bottom: 10px;" tabindex="1">%body%<' + '/textarea><br />\n\t\t\t\t\t<input type="hidden" name="ef51f0a" value="0a795c13cbcc890c1c7b5eb2bb5fea54" />\n\t\t\t\t\t<input type="hidden" name="topic" value="1564" />\n\t\t\t\t\t<input type="hidden" name="msg" value="%msg_id%" />\n\t\t\t\t\t<div class="righttext">\n\t\t\t\t\t\t<input type="submit" name="post" value="Save" tabindex="2" onclick="return oQuickModify.modifySave(\'0a795c13cbcc890c1c7b5eb2bb5fea54\', \'ef51f0a\');" accesskey="s" class="button_submit" />  <input type="submit" name="cancel" value="Cancel" tabindex="3" onclick="return oQuickModify.modifyCancel();" class="button_submit" />\n\t\t\t\t\t<' + '/div>\n\t\t\t\t<' + '/div>', sTemplateSubjectEdit: '<input type="text" style="width: 90%" name="subject" value="%subject%" size="80" maxlength="80" tabindex="4" class="input_text" />', sTemplateBodyNormal: '%body%', sTemplateSubjectNormal: '<a hr'+'ef="https://snewscms.com/forum/index.php'+'?topic=1564.msg%msg_id%#msg%msg_id%" rel="nofollow">%subject%<' + '/a>', sTemplateTopSubject: 'Topic: %subject%  (Read 4863 times)', sErrorBorderStyle: '1px solid red' }); aJumpTo[aJumpTo.length] = new JumpTo({ sContainerId: "display_jump_to", sJumpToTemplate: "<label class=\"smalltext\" for=\"%select_id%\">Jump to:<" + "/label> %dropdown_list%", iCurBoardId: 10, iCurBoardChildLevel: 1, sCurBoardName: "Mods and Addons", sBoardChildLevelIndicator: "==", sBoardPrefix: "=> ", sCatSeparator: "-----------------------------", sCatPrefix: "", sGoButtonLabel: "go" }); aIconLists[aIconLists.length] = new IconList({ sBackReference: "aIconLists[" + aIconLists.length + "]", sIconIdPrefix: "msg_icon_", sScriptUrl: smf_scripturl, bShowModify: true, iBoardId: 10, iTopicId: 1564, sSessionId: "0a795c13cbcc890c1c7b5eb2bb5fea54", sSessionVar: "ef51f0a", sLabelIconList: "Message Icon", sBoxBackground: "transparent", sBoxBackgroundHover: "#ffffff", iBoxBorderWidthHover: 1, sBoxBorderColorHover: "#adadad" , sContainerBackground: "#ffffff", sContainerBorder: "1px solid #adadad", sItemBorder: "1px solid #ffffff", sItemBorderHover: "1px dotted gray", sItemBackground: "transparent", sItemBackgroundHover: "#e0e0f0" }); } // ]]></script> <script type="text/javascript"><!-- // --><![CDATA[ var verificationpostHandle = new smfCaptcha("https://snewscms.com/forum/index.php?action=verificationcode;vid=post;rand=a8b7c7b9ca7d623ba0145bec01b953ca", "post", 1); // ]]></script> </div> <div id="footerarea" class="headerpadding topmargin clearfix"> <ul class="reset smalltext"> <li class="copyright"> <span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"><a href="https://snewscms.com/forum/index.php?action=credits" title="Simple Machines Forum" target="_blank" class="new_win">SMF 2.0.14</a> | <a href="http://www.simplemachines.org/about/smf/license.php" title="License" target="_blank" class="new_win">SMF © 2017</a>, <a href="http://www.simplemachines.org" title="Simple Machines" target="_blank" class="new_win">Simple Machines</a> </span></li> <li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="Valid XHTML 1.0!"><span>XHTML</span></a></li> <li><a id="button_rss" href="https://snewscms.com/forum/index.php?action=.xml;type=rss" class="new_win"><span>RSS</span></a></li> <li class="last"><a id="button_wap2" href="https://snewscms.com/forum/index.php?wap2" class="new_win"><span>WAP2</span></a></li> </ul> </div> </div> </body></html>