Webmastersite.net
Register Log In

Different # of columns for link types
I think I figured it out

Comments on Different # of columns for link types

designveteran
Beginner

Usergroup: Customer
Joined: Oct 23, 2005
Location: Arizona, US

Total Topics: 2
Total Comments: 3
Posted Oct 28, 2005 - 4:37 AM:

I have three link types: reciprocal, regular and simple. Reciprocal and regular display in two columns and are exactly the same except people either pay a submission fee (which becomes a regular link) or they have to place a reciprocal link to get into the directory.

The simple links only list business name, address, phone and I have them displaying in four columns at the bottom of the page.

To get this to work I had to place a few lines of code in index.php, which override the admin setting for link columns. Here's an example of what you would insert around line 667.

if ($thelink->type == 'regular') {$linkcolumns = 2;}
if ($thelink->type == 'recip') {$linkcolumns = 2;}
if ($thelink->type == 'simple') {$linkcolumns = 4;}

It is working pretty well for me so far.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.