Help with an If statement

Discussion forum for MOD Writers regarding MOD Development.
Locked
timeforhelp1
Registered User
Posts: 212
Joined: Thu Feb 19, 2009 5:34 pm

Help with an If statement

Post by timeforhelp1 » Fri Aug 28, 2015 12:24 pm

I get this which works...

Code: Select all

<!-- IF FORUM_ID eq '33' --> a script <!-- ENDIF -->
But what I want is to put it in viewtopic,so that only posts in a certain forum gets my script.
So it would be like if viewtopic in forum id 33 show a script.

Thanks in advance.

timeforhelp1
Registered User
Posts: 212
Joined: Thu Feb 19, 2009 5:34 pm

Re: Help with an If statement

Post by timeforhelp1 » Sat Aug 29, 2015 8:08 pm

Anyone?
If the topic i'm viewing is in forum 33 then script.

User avatar
Sniper_E
Registered User
Posts: 783
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: Help with an If statement

Post by Sniper_E » Sun Aug 30, 2015 4:12 am

I think when you are in a topic you can still call for a forum id.

Have you tried to use your:
<!-- IF FORUM_ID eq '33' --> a script <!-- ENDIF --> code in the viewtopic_body.html template?
Your script would run in every topic in that forum 33.
timeforhelp1 wrote:I get this which works...

Code: Select all

<!-- IF FORUM_ID eq '33' --> a script <!-- ENDIF -->
This is exactly what you are explaining that you want.
The script will not run in any other topic unless it's in that forum.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
:!: Sniper_E Styles | phpbbmodders :!:

Locked

Return to “[3.0.x] MOD Writers Discussion”