Does a category variable exist within a forumdisplay?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bigsoccer tech
    Senior Member
    • Apr 2000
    • 573
    • 3.6.x

    Does a category variable exist within a forumdisplay?

    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?
    Attached Files
    The BIG Network: Soccer - Aussie Rules - Cricket - Travel - Lacrosse - Music
  • werehere
    Senior Member
    • Apr 2000
    • 1827

    #2
    Have you tried $categorytitle?
    We're Here Forums!
    [email protected]

    Comment

    • bigsoccer tech
      Senior Member
      • Apr 2000
      • 573
      • 3.6.x

      #3
      yes i did.
      The BIG Network: Soccer - Aussie Rules - Cricket - Travel - Lacrosse - Music

      Comment

      • John
        Senior Member
        • Apr 2000
        • 4042

        #4
        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):

        [code]
        $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];

        [/code]

        John
        Attached Files
        John Percival

        Artificial intelligence usually beats real stupidity ;)

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        😀
        😂
        🥰
        😘
        🤢
        😎
        😞
        😡
        👍
        👎