Pragmatism in Code

Michael Percy AKA DeeEmm - Waxing lyrical about life the universe and everything software related...

  • Home
    Home This is where you can find all the blog posts throughout the site.
  • Categories
    Categories Displays a list of categories from this blog.
  • Tags
    Tags Displays a list of tags that has been used in the blog.
  • Login
Posted by on in Dolphin 7.0.x Modifications
  • Font size: Larger Smaller
  • Hits: 2711
  • 0 Comments
  • Print

Dolphin Forum - Show Expanded Categories

Here's a quick hack to get the forum categories to display as expanded by default on the forum home page.

Edit modules/boonex/forum/classes/Forum.php

Search for the following...

            if (( isset($p['cat']) && $p['cat'] == $r['cat_uri'] ) /*|| 1 == $r['cat_id'] */)
            {
                $this->setTitle ($r['cat_name']);
                $c .= ''.$this->getForumsXML ($r['cat_uri'], 0) . '';
            }

Comment the following lines

            //if (( isset($p['cat']) && $p['cat'] == $r['cat_uri'] ) /*|| 1 == $r['cat_id'] */)
            //{
            //    $this->setTitle ($r['cat_name']);
                $c .= ''.$this->getForumsXML ($r['cat_uri'], 0) . '';
            //}

Now go to the forum home page and compile the language by clicking the compile link.

All done...

Enjoy

/DM

Rate this blog entry:
0
DeeEmm AKA Michael Percy is an industrial software engineer specialising in language based programming. A long time supporter and contributor to the open source community, he can mostly be found tinkering about creating web sites and plugins for various CMS platforms as well as maintaining several websites of his own.
  • No comments found
Add comment