A A A
Forum Scope


Match



Forum Options



Min search length: 3 characters / Max search length: 84 characters
Forum Login
Lost password?
coding-topic
moving 'start new topic'
Avatar
Chris_Andrews
70 Posts
(Offline)
11
Apr 15, 2017 - 2:39 pm
Print

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

19448 Posts
(Offline)
12
Apr 15, 2017 - 2:45 pm
Print

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
70 Posts
(Offline)
13
Apr 16, 2017 - 10:11 am
Print

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

16436 Posts
(Offline)
14
Apr 16, 2017 - 10:51 am
Print

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

19448 Posts
(Offline)
15
Apr 16, 2017 - 12:37 pm
Print

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: America/New_York
All RSSShow Stats
Administrators: Blues Dancer, Simple Press, SP Community Support
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 630
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Newest Members:
Reno Finder
David Hnát
Gary Lee
Glen Stewart
Rodney Pacis
kent black
Robert Meharg
test test
Forum Stats:
Groups: 7
Forums: 17
Topics: 10065
Posts: 79363

 

Member Stats:
Guest Posters: 607
Members: 16924
Moderators: 0
Admins: 3

Most Users Ever Online
499
Currently Online
Guest(s)
13
Currently Browsing this Page

1 Guest(s)