Webmastersite.net
Register Log In

Different # of columns for link types

Title Different # of columns for link types
Description I think I figured it out
Message Text 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.
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership designveteran
Views 457 views. Averaging 0 views per day.
Similar Topics
Submission Date Oct 28, 2005 - 4:37 AM