![]() |
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? |
You can do something like that with conditionals like say Code: Content visible to verified customers only.Code: Content visible to verified customers only. |
Hmmm, I tried this and it always seems to evaluate to take the cat = 1 path. |
Mine was an example, You need to code it to your site. That way when someone visits one of your categories it will change. |
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. |
Cat is definately valid on showcat script to my knowledge. /classifieds/showcat.php?cat=2 |
Here is my exact code: Code: Content visible to verified customers only. |
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? |
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. |
Taking your code to the letter: Code: Content visible to verified customers only.PAL TITLE1 Stuff1 Frustrated..... |
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. |
1 Attachment(s) Try this template |
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/ |
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 |
The last suggestion did the trick. Thanks Chuck. |
Have a good evening. |
| All times are GMT -5. The time now is 06:19 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0