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.
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on Different # of columns for link types
Beginner
Usergroup: Customer
Joined: Oct 23, 2005
Location: Arizona, US
Total Topics: 2
Total Comments: 3
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.