View Full Version : Variable for linkcount?
macker123
10-13-2004, 09:57 PM
I am wanting to create a custom look for the links homepage and I think the easiest way for me is using a static page. I have everything created and looks great except I obviously want the link count to change when new links are added. I see the general variable $cats[linkcount]
Is there a variable so for example I have a links category of id 4 so I can call that exact categories link count? So say instead of $cats[linkcount] it would be $cat4[linkcount] or something like that?
Brian
10-14-2004, 11:53 AM
You are not going to be able to display the correct number of links on a static page. If you want to change the look you need to edit the templates instead.
macker123
10-14-2004, 01:34 PM
You are not going to be able to display the correct number of links on a static page. If you want to change the look you need to edit the templates instead.
Brian,
I "know" I need to edit the templates. Unfortunatly no one has provided any help on my post about customizing the links template to display in 2 columns, so my only hope is using static html.
I didn't mean static page, although I said that, I mean simply hardcoding each category into the template so I can tell it exactly how to look. I simply need to know the variable to call each categories link count.
Brian
10-14-2004, 02:08 PM
There's not really a way you could just enter a variable for each categories linkcount without it going through the category templates.
macker123
10-14-2004, 02:12 PM
Could you simply tell me how to have the link categories appear in 2 columns then? I have seen numerous other posts with people asking the same question.
I assume a simple if odd appear on left if even appear on right would work.
pulsetoday
10-23-2004, 12:21 PM
Phew... I also want it!!!! :D
Brian
10-23-2004, 01:29 PM
Hacks forum. ;)
pulsetoday
10-24-2004, 12:54 AM
;) Isn't it already there :P
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.