PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   How Do I? - vBulletin 3.0.X (http://www.photopost.com/forum/how-do-i-vbulletin-3-0-x/)
-   -   How do I put a custom block at the top of specific categories? (http://www.photopost.com/forum/how-do-i-vbulletin-3-0-x/117237-how-do-i-put-custom-block-top-specific-categories.html)

Regs January 6th, 2005 01:52 PM

How do I put a custom block at the top of specific categories?
 
Brian,

You showed this to me back in the beta period but I think the thread was deleted when you went to RC :D

What I'm trying to do (again) is add a banner on specific category pages and any image pages that belong to the specified category.

Would/was it as simple as a template conditional?

if (catid=x || catid=y || catid=z)

{HTML code}

Cheers,

~Regs.

Brian January 6th, 2005 02:33 PM

Re: How do I put a custom block at the top of specific categories?
 
Yup, that should do the trick.

Regs January 6th, 2005 03:01 PM

Re: How do I put a custom block at the top of specific categories?
 
Which templates and if you don't mind, what's the exact code (I'm great at pseudo-code, not so great at the real deal) :D

Cheers,

~Regs.

Brian January 6th, 2005 03:06 PM

Re: How do I put a custom block at the top of specific categories?
 
'ADV_GALLERY_BROWSEIMAGES'

<if condition="in_array($catid, array(X,Y,Z))">

Regs January 6th, 2005 03:57 PM

Re: How do I put a custom block at the top of specific categories?
 
Thanks Brian!

I also added the code to the 'ADV_GALLERY_SHOWIMAGE' template... exactly what I was looking for.

Cheers,

~Regs.

Brian January 6th, 2005 04:05 PM

Re: How do I put a custom block at the top of specific categories?
 
You should probably use $image['catid'] in your showimage template. I may be wrong and just have forgotten that it's in there, but I don't believe that $catid is used there.

Regs January 6th, 2005 04:15 PM

Re: How do I put a custom block at the top of specific categories?
 
Is there any downside to keeping it the original way? I ask because it is working fine as is :D

Thanks again!

~Regs.

Brian January 6th, 2005 04:20 PM

Re: How do I put a custom block at the top of specific categories?
 
Try going to one of the images from the What's New section (or anywhere really other than from browsing the category) and you shouldn't see the banner.

Regs January 6th, 2005 04:55 PM

Re: How do I put a custom block at the top of specific categories?
 
Right you are :D

And the updated code you provided works great, thanks!

Now I'm off to make another support ticket for you as I'd like to try the new photopost import script you mentioned elsewhere on my other site :D

Cheers,

~Regs.


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