Gossamer Forum
Home : Products : Gossamer Links : PHP Front End :

Re: [Dan Kaplan] misc. (and mostly minor) laundry list

Quote Reply
Re: [Dan Kaplan] misc. (and mostly minor) laundry list In reply to
#1 and #2 can be scratched off the list.

1) Turns out 'title_linked' actually is available in detailed.html, it was just mislabled in the available tags at the top of the template. In Page.inc.php's generate_detailed_page(), it is prepared as 'title_l' instead of 'title_linked'.

2) It appears the review routines (Review.inc.php's review_search_results() ) only query the categories if it is a user search, so I had to add my own category lookup:

Code:
$sth = $DB->query("SELECT Full_Name FROM ${PREFIX}Links l, ${PREFIX}Category c, ${PREFIX}CatLinks cl WHERE l.ID = cl.LinkID AND c.ID = cl.CategoryID AND l.ID = '$id'");
$row = $sth->fetchrow_hash();
$results['title_linked'] = _title_linked($row['Full_Name'], array('link_all' => 1));

I added that after $results['link'] = $results; near the bottom of the function.

Dan
Subject Author Views Date
Thread misc. (and mostly minor) laundry list Dan Kaplan 3875 Jul 15, 2002, 8:13 AM
Thread Re: [Dan Kaplan] misc. (and mostly minor) laundry list
Dan Kaplan 3802 Jul 16, 2002, 8:02 AM
Thread Re: [Dan Kaplan] misc. (and mostly minor) laundry list
Dan Kaplan 3790 Jul 17, 2002, 8:47 AM
Post Re: [Dan Kaplan] misc. (and mostly minor) laundry list
Dan Kaplan 3760 Jul 17, 2002, 6:25 PM
Post Re: [Dan Kaplan] misc. (and mostly minor) laundry list
Dan Kaplan 3746 Jul 18, 2002, 11:02 AM
Post Re: [Dan Kaplan] misc. (and mostly minor) laundry list
Dan Kaplan 3766 Jul 17, 2002, 11:48 AM