PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Classifieds Support > Classifieds How do I...?

Classifieds How do I...? Wondering how to do something in Classifieds?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old January 11th, 2009, 09:33 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Posts: 423
PP Classifieds how do I vary custom3pal.tmpl

I'd like to vary what's in this template depending on what category is currently being displayed. Can this be done?
wacnstac is offline   Reply With Quote
Old January 12th, 2009, 08:40 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
You can do something like that with conditionals like say

Code:
Content visible to verified customers only.
would be more like this

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 12th, 2009, 09:23 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Posts: 423
Hmmm, I tried this and it always seems to evaluate to take the cat = 1 path.
wacnstac is offline   Reply With Quote
Old January 13th, 2009, 08:52 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Mine was an example, You need to code it to your site. That way when someone visits one of your categories it will change.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 13th, 2009, 09:31 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Posts: 423
What I'm trying to say is that the variable in the example $cat doesn't appear to be valid in that contxt. I know I have to customize it but I need to know that $cat is valid category id's. It appears not to be.
wacnstac is offline   Reply With Quote
Old January 13th, 2009, 09:38 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Cat is definately valid on showcat script to my knowledge.

/classifieds/showcat.php?cat=2
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 13th, 2009, 08:43 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Posts: 423
Here is my exact code:

Code:
Content visible to verified customers only.
It always displays "Stuff 1" no matter what category I am browsing. Any ideas anyone?
wacnstac is offline   Reply With Quote
Old January 14th, 2009, 08:55 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
I dont know I would need to see your site. Are you editing the correct custompal template like if your using vb3 are you editing the one in the vb3enhanced templates directory?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 14th, 2009, 06:24 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Posts: 423
Yes, I'm editing the vb3enhanced templates directory. The $cat variable doesn't seem to get evaluated properly. What language are these templates written in. It is a mix of HTML and something else. Perhaps I can get help elsewhere.
wacnstac is offline   Reply With Quote
Old January 14th, 2009, 06:37 PM   #10 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Posts: 423
Taking your code to the letter:
Code:
Content visible to verified customers only.
No matter what category I browse I see:
PAL TITLE1
Stuff1

Frustrated.....
wacnstac is offline   Reply With Quote
Old January 15th, 2009, 08:12 AM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Feel free to discuss code modifications in our code mod forums but also feel free to post a link here for me to see your site. cat is only going to be evaluated on showcat.php and showphoto.php so it all depends what your coding.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 15th, 2009, 08:20 AM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Try this template
Attached Files
File Type: tmpl custom3pal.tmpl (1.2 KB, 6 views)
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 15th, 2009, 09:54 PM   #13 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Posts: 423
It almost works. The $cat are finally getting evaluated properly, but it screwed up my tables in the right hand column. Some of my code that should be in the footer now appears there......

http://www.michigan-sportsman.com/classifieds/

Last edited by wacnstac; January 15th, 2009 at 10:05 PM.
wacnstac is offline   Reply With Quote
Old January 16th, 2009, 08:08 AM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
I just cut and pasted your code. HMM

I just looked through that template there is nothing out of the ordinary in the html its all valid

Now looking at your source I wonder why $ppcloseside is not being evaluated?

Try changing it to $ppclose in that template
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 19th, 2009, 09:33 PM   #15 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Posts: 423
The last suggestion did the trick. Thanks Chuck.
wacnstac is offline   Reply With Quote
Old January 20th, 2009, 08:42 AM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Have a good evening.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S 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
menubar.tmpl oldengine Classifieds Bug Reports 2 October 1st, 2007 07:58 PM
5.6 ppopen.tmpl and ppclose.tmpl invalid html Astaran Photopost Pro Bug Reports 1 November 23rd, 2006 07:10 PM
custom1pal & custom3pal placement blankoboy Classifieds How do I...? 3 June 27th, 2006 11:31 AM
custom1pal.tmpl PranK Photopost Pro Installation & Upgrades 4 August 14th, 2005 02:48 PM
Custom1pal.tmpl Nicke71 Photopost Pro Installation & Upgrades 5 August 7th, 2004 11:25 AM


All times are GMT -5. The time now is 01:34 AM.

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