PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old January 6th, 2005, 01:52 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Oct 2002
Posts: 180
Question 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

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.
Regs is offline   Reply With Quote
Old January 6th, 2005, 02:33 PM   #2 (permalink)
Brian
Guest
 
Posts: n/a
Re: How do I put a custom block at the top of specific categories?

Yup, that should do the trick.
  Reply With Quote
Old January 6th, 2005, 03:01 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Oct 2002
Posts: 180
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)

Cheers,

~Regs.
Regs is offline   Reply With Quote
Old January 6th, 2005, 03:06 PM   #4 (permalink)
Brian
Guest
 
Posts: n/a
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))">
  Reply With Quote
Old January 6th, 2005, 03:57 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Oct 2002
Posts: 180
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.
Regs is offline   Reply With Quote
Old January 6th, 2005, 04:05 PM   #6 (permalink)
Brian
Guest
 
Posts: n/a
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.
  Reply With Quote
Old January 6th, 2005, 04:15 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Oct 2002
Posts: 180
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

Thanks again!

~Regs.
Regs is offline   Reply With Quote
Old January 6th, 2005, 04:20 PM   #8 (permalink)
Brian
Guest
 
Posts: n/a
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.
  Reply With Quote
Old January 6th, 2005, 04:55 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Oct 2002
Posts: 180
Re: How do I put a custom block at the top of specific categories?

Right you are

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

Cheers,

~Regs.
Regs is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
'random images' block at the top of page? & multiple /gallery/index.php? criscokid Photopost Pro How Do I...? 3 September 1st, 2005 07:42 AM
Display images from a specific category at the top of the page pharry Photopost Pro How Do I...? 3 June 2nd, 2005 07:30 PM
Block selected categories from showing in featured block on VB index? dobbs Photopost Pro How Do I...? 0 March 15th, 2005 01:04 PM
HTML code for value of a specific custom field? Shon How Do I? - vBulletin 3.0.X 3 December 17th, 2004 02:54 PM
How do I put Recent Photos on top? batmon Photopost Pro Installation & Upgrades 1 September 20th, 2004 01:46 PM


All times are GMT -5. The time now is 04:06 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0