Support Forum

moving 'start new topic'

< 1 2
Chris_Andrews
Member
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!

Mr Papa
Simi Valley, CA
Member
Free Members
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()...

Chris_Andrews
Member
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.

Yellow Swordfish
Glinton, England
Member
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.

Mr Papa
Simi Valley, CA
Member
Free Members
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..

< 1 2