PDA

View Full Version : How do I add http://www.yourdomain.com/gallery/index.php into an array?


Taragon
07-12-2008, 01:49 PM
Hello,

Since I'm not a real coder or anything I'm not really sure how to say this best :)

In my footer template I currently have this
<div class="spacer"></div>
<if condition="in_array(THIS_SCRIPT, array('index', 'member', 'friends'))"><a href="http://validator.w3.org/check?uri=referer"><img src="$stylevar[imgdir_misc]/w3cxhtml.gif" alt="Valid XHTML 1.0 Transitional" height="13" width="73" border="0" /></a> <a href="http://jigsaw.w3.org/css-validator/check/referer "><img src="$stylevar[imgdir_misc]/w3ccss.gif" alt="Valid CSS!" height="13" width="73" border="0" /></a></if>

Would it be possible to add a page (http://www.yourdomain.com/gallery/index.php) to above array somehow?

Marco van Herwaarden
07-12-2008, 02:15 PM
That will depend on how this script is coded. Does it set a THIS_SCRIPT constant?

Taragon
07-12-2008, 02:42 PM
Thanks, I'm such a noob. I've had completely forgot how I've got it done before.

Yes, it does (gallery_index)
Consider this thread solved :o