PDA

View Full Version : Does a category variable exist within a forumdisplay?



bigsoccer tech
Tue 2nd May '00, 11:35pm
in my breadcrumb instead of:

boards : forum : thread

i'd like to do

boards: category : forum : thread

i messed around for a bit last nite, and couldn't figure out how to pass the forum category in. any ideas?

werehere
Wed 3rd May '00, 1:36am
Have you tried $categorytitle?

bigsoccer tech
Wed 3rd May '00, 1:45am
yes i did.

John
Wed 3rd May '00, 2:51am
Thinking about, there probably is not one.

Add this code into forumdisplay.php (line 64), newreply.php (line 271), newthread.php (line 222) and editpost.php (line 62):



$getcategory=$DB_site->query_first("SELECT category.title,category.categoryid FROM category,forum WHERE category.categoryid=forum.categoryid AND forum.forumid=$forumid");
$categorytitle=$getcategory[title];
$categoryid=$getcategory[categoryid];



John