..$pages['name'].. how to find the name of any page?

testoo

New Member
i want to use this option here
<if condition="$pages['name'] == 'home'">...code...</if>

but this is only for the page HOME
i tried it with memberlist/faq/.. etc
but they all didnt work

i want to know the pages name for all the sites i got like for the memberlist

can anybody help me?
 

Blagger

New Member
Not sure what your getting at.

each page is in itself its own product name.

for example. memberslist is a program called memberlist.php and then will list its pages after the first markup.

threads are actually showthread.php and therefore subsequently list their own individual pages.
 

bluescorpion

New Member
The easiest way to get the page title is to open the php file, it is usually near the top of it in a line of code that looks like this:

PHP:
define('THIS_SCRIPT', 'memberlist');
 

testoo

New Member
bluesorpion thanks! i tried this:
<if condition="$pages['name'] == 'memberlist'">TEEEEEEEST</if>
but nuthing appears only if i write like this
<if condition="$pages['name'] == 'home'">TEEEEEEEST</if>
in the index page TEEEEEEST appearing at the top of the site..
and i checked in the index.php file you read:
define('THIS_SCRIPT', 'index')
and not define('THIS_SCRIPT', 'home')

so this cnat be the $page name right?
 

Hoxxy

New Member
PHP:
<if condition="THIS_SCRIPT == 'index'"> <-- code --> </if>
For furture information check my sig for conditionals list ;)
 

testoo

New Member
wooow!!!!! thanks thats what i was searchin for thanks thanks thanks
KISS*** xD im not gay but whateva :p

thank you bro ;)
for real
nice!
 

bluescorpion

New Member
I think Hoxxy already answered your question but you trouble was with the "$pages['name'] " it is suppose to be THIS_SCRIPT
 
Top