There are 2 rather large functions in the file /include/functions.php
This is a fairly large file with the majority of functions the script uses, so please make a back up prior to editing.
The related functions are both near the bottom, the first one
draw_sites() starts around line # 621 , this is the function that draws the site entries for normal browsing.
The 2nd one, draw_search_sites() starts around line # 770 as it's name implies, it draws the entries for the search results. Both use a similar method of assembling the HTML, and then printing it out.
As an example.. Lines 841-844 make the "add review" link. To remove it, simply
comment out the lines by preceding each with 2 forward slashes
| Code: |
// $htmlsrc .= " <a class=\"reviewLink\" ";
// $htmlsrc .= "href=\"$gl[BasePath]/directory/review.html?";
// if ($usesession =="yes"){$htmlsrc .= "". session_name()."=".session_id() ."&";}
// $htmlsrc .= "SiteID=". $sites_array[site_id] . "\">" . $functions_12 . "</a>";
|
Other portions can be removed the same way, but you may need to actually edit a few lines instead of simply commenting them out.
Viewing the HTML source code of one of the entries and comparing it to the code found in the functions mentioned above should allow you to tailor it however you like.
Oh, and for reference, I find my little source code viewer comes in quite handy for a snapshot of "how it was" . You can browse the original code
here.