View Full Version : List of "This Script" names?
January 3rd, 2011, 01:51 PM
Hi. I'm putting together a conditional that has to distinguish between vbulletin and Photopost pages. From what I can tell, the "This script" conditional is the only way to do this.
Do you have a list of "This Script" names for the Photopost pages please? If not, it may take a while to go through all the pages to find them all.
I'm doing this as I have a feature installed which works on vBulletin pages, but not Photopost pages, so I have to substitute it for something else.
January 3rd, 2011, 04:55 PM
if ( PP_SCRIPT == "PP_Pro" )
January 4th, 2011, 06:23 AM
Brilliant. Had to change it to this though:
<vb:if condition="PP_SCRIPT == 'PP_Pro'">
January 4th, 2011, 09:40 AM
well yes of course if you are doing vbulletin stuff but you got the drift ;)
June 19th, 2011, 08:56 AM
I tried this code and it doesn't seem to work, but i am using photopost 6.2, maybe it has something different there?
For now, I use complex IF conditionals to cover all photopost pages, like this:
<if condition="THIS_SCRIPT != 'ppindex' AND THIS_SCRIPT != 'showgallery' AND THIS_SCRIPT != 'showphoto' AND THIS_SCRIPT != 'uploadphoto'">
June 19th, 2011, 11:02 AM
well all depends on what your doing. Your conditional above is kind of whacky.
<if condition="PP_SCRIPT != 'PP_Pro'">
That should show something on all NON PHOTOPOST PAGES IN VB. Of course this all depends on what your doing and the example above is vb3.
June 19th, 2011, 06:06 PM
Ok I think I already tried that and it didn't work, or maybe it's the specific goal i need to accomplish.
Thanks Chuck for the immediate reply. :)
June 19th, 2011, 06:24 PM
Yeah what you do all depends on what your trying to do as the conditional would need to be valid and in the proper place.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.