PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   Gallery home conditional (http://www.photopost.com/forum/photopost-pro-how-do-i/148826-gallery-home-conditional.html)

myuption October 7th, 2012 12:49 PM

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

Chuck S October 7th, 2012 01:31 PM

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.

Chuck S October 8th, 2012 10:39 AM

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

Code:

Content visible to verified customers only.
If your adding something in a vb 4.x header the code to add to only show the ads on a gallery index would be the following.

Code:

Content visible to verified customers only.

myuption October 9th, 2012 11:36 AM

It was the first one, inside the gallery.

Thanks Chuck! :D

Chuck S October 9th, 2012 11:52 AM

Glad to help enjoy your day let us know if you need anything else.

myuption October 9th, 2012 12:57 PM

Thanks, same for you. :)

Chuck S October 9th, 2012 01:01 PM

Yep off to go release another plugin. ;)

Chuck S October 10th, 2012 11:50 AM

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.

http://www.photopost.com/forum/photo...er-header.html

myuption October 10th, 2012 12:45 PM

Interesting... thanks! :D

Chuck S October 10th, 2012 12:55 PM

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97