Gallery home conditional
I have a sponsor that wants their ads only in the gallery index page... guess I could add it somewhere in the sidebar.
But I can't figure out a conditional to only show this code in the main page and avoid it on the other pages. :eek:
Thanks for helping
well to give you a suggestion I need to know what your doing where.
Are you using this code in the gallery only meaning this is a standalone or non vb install or is this a vb install where your placing code in vbulletin?
There is a huge syntax difference between the two.
Here is an example if your doing a non vb install using the a php header or editing one of our templates the php code would look like this. This will only show the ads on the gallery index page
It was the first one, inside the gallery.
Thanks Chuck! :D
Glad to help enjoy your day let us know if you need anything else.
Thanks, same for you. :)
Yep off to go release another plugin. ;)
yeah with the new plugin system say for instance you wanted to only display an ad below the header instead of the sidebar the code would look something like this.
Does not matter that I say this is for classifieds this works for photopost pro also.
You would just surround the plugin code with the if clause and do a plugin on the header_bottom location. Of course edit the code for your ad display.
Trying to get everyone use to the plugin system so they can give feedback and ideas on plugins they might want.
Interesting... thanks! :D
Yep trying to get people use to the new plugin system and how versatile it is. last thing you want to do is hard code stuff in files and templates. That is why there is a plugin system so nothing is affected you can upgrade and things are easy and good to go without mess ups.
|All times are GMT -5. The time now is 05:14 PM.|
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0