Find programmers and grapic design experts at ScriptLance.com
<? DEW-CODE.COM  
Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Modifying the site results display (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Modifying the site results display
#350
grego (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Modifying the site results display 3 Months, 3 Weeks ago Karma: 0  
When the program displays a list of links, I would like to show only the thumbshot, title, URL, and description. I do not want to show the edit link, site reviews, added, last update, category, or hits. I am using the program in a minimalist style for my personal homepage, so those features are not of interest to me. Please advise.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#351
Dewed (User)
Administrator
Posts: 194
graph
User Offline Click here to see the profile of this user
Dew-Code.com
Re:Modifying the site results display 3 Months, 3 Weeks ago Karma: 6  
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 .= "&nbsp;&nbsp;<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.
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/06/21 18:59 By Dewed.
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#352
grego (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:Modifying the site results display 3 Months, 3 Weeks ago Karma: 0  
Thanks! That worked beautifully.

Almost got the program exactly as I wanted it. Just a few more aesthetic modifications to go in the css file, then add a ton of links.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Newsflash

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008