Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Advertise
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 21, 2015 - 3:03 am

You can determine the forum number using the property:

$spThisTopic->forum_id

and the forum ID's, of course, are all shown on the admin Manage Groups and Forums listing,

If you need any help phrasing the actual php 'if' statement then shout but it would be useful to know what you have coded already and what it is exactly you want...

I hope that helps.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Alan Newman
Member
Free Members
sp_UserOfflineSmall Offline
Feb 21, 2015 - 1:08 pm

Hello,

 

ok so I have something like this already in place

 

if($spTopicView->currentPost==6)
{echo ".........";} and I have the html placed here

 

I need the condition for the current post to be satisfied on the 'if' statement as as well as the forum id equalling that of one of my forums..

 

Thanks

Alan

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 21, 2015 - 4:23 pm

simply:

if ( $spTopicView->currentPost == 6 && $spThisTopic->forum_id == X )

Where X = the id of the forum in question.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Alan Newman
Member
Free Members
sp_UserOfflineSmall Offline
Mar 1, 2015 - 9:58 am

This worked great

thank you!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 1, 2015 - 11:14 am

Excellent. Thanks for letting us know

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625