PDA

View Full Version : Putting Categories on link pages?


GiveItaGo
01-16-2006, 11:45 PM
Hi

Firstly thanks for a great script!!

Now for my problem, I am trying to set up my directory to show all categories on the left as follows in all of the templates/pages:-

Category 1
Category 2
Category 3
etc

I can do this on the front page/index by moving the code into a .tpl file and using an include, but for some reason it will not work on the links page itself. I am obviously missing something but not sure what - any help would be greatly appreciated.

kind regards

Paul

GiveItaGo
01-17-2006, 04:52 PM
Can anybody help me out here?

bobby9101
01-17-2006, 06:54 PM
I will do it for a $5 donation :)
send me an e-mail and we will tlak
bobby9101 @ gmail.com

GiveItaGo
01-17-2006, 07:32 PM
Thanks for responding - I have sent an email as requested hopefully be with you soon.

regards

Paul

thompson
01-17-2006, 10:54 PM
i think this is open source software and nobody should pay for anything.

is there a easy solution ?

GiveItaGo
01-18-2006, 11:07 AM
Well Bobby gave it a go but to no avail - thanks for trying though mate, it was appreciated!!

thompson - I take your point, but seeing as this is a MOD I don't see how people can complain if individuals make a cursory charge for their time and effort - after all the main script is totally free and usable! I am requesting some specific Mods to meet my requirements, so am happy to pay if someone can do it.

With that in mind perhaps I ought to move this request to one one of the other forums?

If anybody comes up with any ideas please let me know and likewise if I work it out, I will post the results here.

regards

Paul

smugwimp
03-19-2006, 09:51 AM
I hope this is what you're trying to do; sorry if it's not!

I found out by having my links show up on the other pages, when I didn't want them to!

in your main.tpl, find the line(s) that are similar to this:

{if ($smarty.foreach.categs.iteration mod $cats_per_col eq 0 and $cats_per_col gt 1) or $smarty.foreach.categs.last}
{/if}
{/foreach}
{/if}

and insert your links between the {/foreach} and the last {/if}

{if ($smarty.foreach.categs.iteration mod $cats_per_col eq 0 and $cats_per_col gt 1) or $smarty.foreach.categs.last}
{/if}
{/foreach}
{* Your code would go here... *}
{/if}


Cheers!

Smug

blackpepper
03-25-2006, 10:49 AM
Hi,

I manage to show my main (top) categories on all my link pages except for details, submit, contact and suggest pages.

I put the code on a div on the left part. Here's an example: http://webresources.akipus.com/

If this is what you're looking for tell me and I'll try to help out!

Good luck!

anon
03-25-2006, 11:58 AM
pepper, you do realize this post is over 2 months old, right?