PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   How do i control the Random and New Images from showing certain categories (http://www.photopost.com/forum/photopost-pro-how-do-i/112240-how-do-i-control-random-new-images-showing-certain-categories.html)

painfulpleasures February 17th, 2005 06:28 PM

How do i control the Random and New Images from showing certain categories
 
On my PHOTOPOST

http://bodypiercingpictures.painfulpleasures.com/

I have the Random Images enabled, but i was wondering if there was a way to
make it so it didn't call images from a certain category? Most of the time
it pulls images from the MALE GENEITAL Piercings and this is seen as
offensive to some people and if they come to this section and see this first
they probably end up leaving

Is there a way to make it so we can block certain categories from appearing
in the Random Images and Recent Photos?

Thanks again

Chuck S February 17th, 2005 07:34 PM

This has been answered by the support email you already sent

painfulpleasures February 17th, 2005 10:07 PM

Hi again

I never got an email so i decided to post it here.

could you post the email here if you don't mind?

Chuck S February 17th, 2005 11:14 PM

Sent to this email marc@painfulpleasures.com

You can mod the file like this

In pp-inc.php find this or something like it

function display_gallery($q_switch, $showuser="", $showcat="", $overcol=0, $overnum=0) {
global $Globals, $CatPerms, $Style, $ppopen, $ppclose, $link, $cat, $exclude_cat, $si, $RP_PATH;

below it add this

$exclude_cat = "AND cat != '517'";

painfulpleasures February 23rd, 2005 09:59 PM

Everything worked like i want it, but i also want to block another section as well from showing up

http://bodypiercingpictures.painfulp...ry.php/cat/516

i want to make it so both of these categories don't show up on the front page.

how do i add this category to not show.

i had originally thought i could just add

$exclude_cat = "AND cat != '516'";

right after the $exclude_cat = "AND cat != '517'";

but it didn't work.

Chuck S February 24th, 2005 08:15 AM

$exclude_cat = "AND cat != '516' AND cat !='517'";


All times are GMT -5. The time now is 03:43 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