PDA

View Full Version : Please help me to edit this code?


v123shine
01-04-2013, 09:29 PM
I want to display Ads in All category, but i do not want to display Ads for specific categories & all threads under it, Even for guests also.

I dont want ads display in this category: 7, 33, 145, 87

I using the below code but Didn't worked for me.

<if condition="$show['guest'] && !in_array($foruminfo['forumid'], array(7,33,145,87))">
This is Ads
</if>

Please help me!
Thank you

--------------- Added 1357339292 at 1357339292 ---------------

Using this : $GLOBALS['forumid']

Solved :)

Mohammad Kamal
01-08-2013, 04:08 AM
I want to display Ads in All category, but i do not want to display Ads for specific categories & all threads under it, Even for guests also.

I dont want ads display in this category: 7, 33, 145, 87

I using the below code but Didn't worked for me.

<if condition="$show['guest'] && !in_array($foruminfo['forumid'], array(7,33,145,87))">
This is Ads
</if>

Please help me!
Thank you

--------------- Added 1357339292 at 1357339292 ---------------

Using this : $GLOBALS['forumid']

Solved :)

try this one:

<if condition="$forumid != 7 AND $forumid != 33 AND $forumid != 145 AND $forumid != 8">your Ad</if>