Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
moving 'start new topic'
Avatar
Chris_Andrews
Member
sp_UserOfflineSmall Offline
Apr 15, 2017 - 2:39 pm

Thanks for the info - 

No php errors, but I did notice forum pages were loading slower. I'll keep testing and figure out how to best handle that.

Thanks again!

***
News For Shoppers is seeking consumer reporters,
consumer advocates, and entertainment writers:
visit: NewsForShoppers.com/write/

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 15, 2017 - 2:45 pm

if all you are trying to do is determine if on forum view or topic view, I would suggest using sp_is_forumview() and sp_is_topicview()...

Avatar
Chris_Andrews
Member
sp_UserOfflineSmall Offline
Apr 16, 2017 - 10:11 am

Tried and those don't seem to work, I guess that it's that the object is not created.

***
News For Shoppers is seeking consumer reporters,
consumer advocates, and entertainment writers:
visit: NewsForShoppers.com/write/

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 16, 2017 - 10:51 am

They are the best way to check for the current page view however. Using those wrapped around your code might prevent unnecessary data object loading.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 16, 2017 - 12:37 pm

yeah, sorry, should have been more specific in my response indicating to ADD those to what you had so you only do it on the right page as Andy indicates..

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: 618
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10126
Posts: 79622