Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard Spread FireBoard!
Re:How do I default to categories tab with default (1 viewing) (1) Guest
Go to bottom Favoured: 3
TOPIC: Re:How do I default to categories tab with default
#52246
How do I default to categories tab with default_ex 5 Months, 2 Weeks ago  
How do I make it so that the forum starts on the categories tab instead of the "recent discussions" tab using the default_ex template?
ladyb314 (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#54249
Re:How do I default to categories tab with default 4 Months, 2 Weeks ago  
I installed defualt ex today and I am very interested to change this Tab too.

After I fixed my problem with the width in default ex I will play with the code, I will let you know here when I solved this, but shouldnt be difficult.

Kind Regards Tomek1
Tomek1 (User)
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#54251
Re:How do I default to categories tab with default 4 Months, 2 Weeks ago  
Okay I fixed my width problme if you have maybe the same problem I posted my solution there:


Default ex width problem fix!

Now I will try to fix our default tab.

Kind Regards Tomek
Tomek1 (User)
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#54289
Re:How do I default to categories tab with default 4 Months, 1 Week ago  
I made it that the recent discussions tab is replaced by the categories tab.

But when I click on the forum link on the menu fireboard it still starts with the recent discussions tab
Tomek1 (User)
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#54293
Re:How do I default to categories tab with default 4 Months, 1 Week ago  
I made it the russian way

Just go to your joomla backend under menu where your link to fireboard component is located.
Unpublish this link make a new one, set the Type to URL and name it forum or wahtever you want and paste in the url box:

index.php?option=com_fireboard&Itemid=55&func=listcat

this new menu link will now link you to the categories.
I made it on my site this way and I am very happy.

If you want to swap the recent discussions tab with the categories tab.

You have to change some code in the fb_layout.php which is located in

yourjoomlafoldercomponentscom_fireboardtemplatedefault_exfb_layout.php

replace this code part with the original code part its in row number 193:

Code:


function jb_get_menu($cbitemid, $fbConfig, $fbIcons, $my_id, $type, $view = "", $catid = 0, $id = 0, $thread = 0, $is_moderator = false, $numPending = 0)
{

$func = mosGetParam($_REQUEST, 'func', '');

    $header = '<div id="fb_topmenu" ><div id="fireboard_tab"><ul>';


  $header .= ' <li ';
 if (strtolower($func) == 'listcat' || strtolower($func) == ''){  $header .= ' class="fireboard_item_active" '; }
$header .=' ><a href="' . sefRelToAbs(JB_LIVEURLREL . '&amp;func=listcat') . '" ><span>';

            $header .= $fbIcons['home'] ? '<img src="' . JB_URLICONSPATH . '' . $fbIcons['home'] . '" border="0" alt="' . _FB_CATEGORIES . '" title="' . _FB_CATEGORIES . '"/>' : _FB_CATEGORIES;
            $header .= '</span></a></li>';


    $header .= '<li ';
 if (strtolower($func) == 'latest' ){  $header .= ' class="fireboard_item_active" '; }
$header .=' ><a href="' . sefRelToAbs(JB_LIVEURLREL . '&amp;func=latest') . '" ><span>';

    $header .= $fbIcons['showlatest'] ? '<img src="' . JB_URLICONSPATH . '' . $fbIcons['showlatest'] . '" border="0" alt="' . _FB_ALL_DISCUSSIONS . '"  title="' . _FB_ALL_DISCUSSIONS . '" />' : _FB_ALL_DISCUSSIONS;[/color]
    $header .= '</span></a></li>';





I hope it helped you out. For security make a backup of the fb_layout.php.

Now my code works too there was a color bbcode tag in the beginning of the code.

Kind Regards Tomek1
Tomek1 (User)
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/08/04 11:48 By Tomek1.
 
The administrator has disabled public write access.  
#54718
Re:How do I default to categories tab with default 4 Months ago  
Tomek1 wrote:
I made it the russian way

Just go to your joomla backend under menu where your link to fireboard component is located.
Unpublish this link make a new one, set the Type to URL and name it forum or wahtever you want and paste in the url box:

index.php?option=com_fireboard&Itemid=55&func=listcat

this new menu link will now link you to the categories.
I made it on my site this way and I am very happy.

If you want to swap the recent discussions tab with the categories tab.

You have to change some code in the fb_layout.php which is located in

yourjoomlafoldercomponentscom_fireboardtemplatedefault_exfb_layout.php

replace this code part with the original code part its in row number 193:

Code:


function jb_get_menu($cbitemid, $fbConfig, $fbIcons, $my_id, $type, $view = "", $catid = 0, $id = 0, $thread = 0, $is_moderator = false, $numPending = 0)
{

$func = mosGetParam($_REQUEST, 'func', '');

    $header = '<div id="fb_topmenu" ><div id="fireboard_tab"><ul>';


  [color=#0000FF]$header .= ' <li ';
 if (strtolower($func) == 'listcat' || strtolower($func) == ''){  $header .= ' class="fireboard_item_active" '; }
$header .=' ><a href="' . sefRelToAbs(JB_LIVEURLREL . '&amp;func=listcat') . '" ><span>';

            $header .= $fbIcons['home'] ? '<img src="' . JB_URLICONSPATH . '' . $fbIcons['home'] . '" border="0" alt="' . _FB_CATEGORIES . '" title="' . _FB_CATEGORIES . '"/>' : _FB_CATEGORIES;
            $header .= '</span></a></li>';


    $header .= '<li ';
 if (strtolower($func) == 'latest' ){  $header .= ' class="fireboard_item_active" '; }
$header .=' ><a href="' . sefRelToAbs(JB_LIVEURLREL . '&amp;func=latest') . '" ><span>';

    $header .= $fbIcons['showlatest'] ? '<img src="' . JB_URLICONSPATH . '' . $fbIcons['showlatest'] . '" border="0" alt="' . _FB_ALL_DISCUSSIONS . '"  title="' . _FB_ALL_DISCUSSIONS . '" />' : _FB_ALL_DISCUSSIONS;[/color]
    $header .= '</span></a></li>';





I hope it helped you out. For security make a backup of the fb_layout.php.

Kind Regards Tomek1


your code produces errors. heres a better one:

on the file, componentscom_fireboardtemplatedefault_exfb_layout.php
delete from line 193 until 214, then in line 193 posted this code:
Code:


function jb_get_menu($cbitemid, $fbConfig, $fbIcons, $my_id, $type, $view = "", $catid = 0, $id = 0, $thread = 0, $is_moderator = false, $numPending = 0)
{

$func = mosGetParam($_REQUEST, 'func', '');

    $header = '<div id="fb_topmenu" ><div id="fireboard_tab"><ul>';


    $header .= '<li ';
 if (strtolower($func) == 'listcat' ){  $header .= ' class="fireboard_item_active" '; }
$header .=' ><a href="' . sefRelToAbs(JB_LIVEURLREL . '&amp;func=listcat') . '" ><span>';

    $header .= $fbIcons['home'] ? '<img src="' . JB_URLICONSPATH . '' . $fbIcons['home'] . '" border="0" alt="' . _FB_CATEGORIES . '"  title="' . _FB_CATEGORIES . '" />' : _FB_CATEGORIES;
    $header .= '</span></a></li>';


  $header .= ' <li ';
 if (strtolower($func) == 'latest' || strtolower($func) == ''){  $header .= ' class="fireboard_item_active" '; }
$header .=' ><a href="' . sefRelToAbs(JB_LIVEURLREL . '&amp;func=latest') . '" ><span>';

            $header .= $fbIcons['showlatest'] ? '<img src="' . JB_URLICONSPATH . '' . $fbIcons['showlatest'] . '" border="0" alt="' . _FB_ALL_DISCUSSIONS . '" title="' . _FB_ALL_DISCUSSIONS . '"/>' : _FB_ALL_DISCUSSIONS;
            $header .= '</span></a></li>';



- g
guilliam (User)
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#55058
Re:How do I default to categories tab with default 4 Months ago  
this is my version, based on guilliam's one: "category view" tab is before "all discussions", and selected by default without having to change url in the menu.

This has been done by moving " || strtolower($func) == '' " from line 210 to line 202.

fb_layout.php, lines 193-214:
Code:

function jb_get_menu($cbitemid, $fbConfig, $fbIcons, $my_id, $type, $view = "", $catid = 0, $id = 0, $thread = 0, $is_moderator = false, $numPending = 0) 

 
    $func = mosGetParam($_REQUEST, 'func', ''); 
     
    $header = '<div id="fb_topmenu" ><div id="fireboard_tab"><ul>'; 
     
 
    $header .= '<li '; 
     if (strtolower($func) == 'listcat'  || strtolower($func) == ''){  $header .= ' class="fireboard_item_active" '; } 
    $header .=' ><a href="' . sefRelToAbs(JB_LIVEURLREL . '&amp;func=listcat') . '" ><span>'; 
     
    $header .= $fbIcons['home'] ? '<img src="' . JB_URLICONSPATH . '' . $fbIcons['home'] . '" border="0" alt="' . _FB_CATEGORIES . '"  title="' . _FB_CATEGORIES . '" />' : _FB_CATEGORIES; 
    $header .= '</span></a></li>'; 
 
     
      $header .= ' <li '; 
     if (strtolower($func) == 'latest'){  $header .= ' class="fireboard_item_active" '; } 
    $header .=' ><a href="' . sefRelToAbs(JB_LIVEURLREL . '&amp;func=latest') . '" ><span>'; 
 
            $header .= $fbIcons['showlatest']  ? '<img src="' . JB_URLICONSPATH . '' . $fbIcons['showlatest'] . '" border="0" alt="' . _FB_ALL_DISCUSSIONS . '" title="' . _FB_ALL_DISCUSSIONS . '"/>' : _FB_ALL_DISCUSSIONS; 
            $header .= '</span></a></li>';

dolly2 (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/08/03 14:36 By dolly2.
 
The administrator has disabled public write access.  
#59751
Re:How do I default to categories tab with default 1 Month, 3 Weeks ago  
Very helpful, but 1.0.5RC2 is different, what do we have to change in this version?
PGLion (User)
FireBoards Rulez!
Junior Boarder
Posts: 66
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: The Netherlands Birthdate: 1970-08-04
Logged Logged
 
The administrator has disabled public write access.  
#59754
Re:How do I default to categories tab with default 1 Month, 3 Weeks ago  
In RC2 you can specify default tab from backend
johnnydement (User)
FB Quality & Testing Team
Moderator
Posts: 431
graphgraph
User Offline Click here to see the profile of this user
Voces del Vicio Location: Barcelona Birthdate: 1981-12-23
Logged Logged
 
"As a discussion over the net grows longer, the probability of a comparison involving Nazis or Hitler approaches one." - Godwin Law
 
The administrator has disabled public write access.  
#59790
Re:How do I default to categories tab with default 1 Month, 3 Weeks ago  
PGLion wrote:
Very helpful, but 1.0.5RC2 is different, what do we have to change in this version?

Go to the FireBoard backend and select the default page for FireBoard. You can choose between Recent Discussions, My Discussions and Categories.

That should take care of it.
fxstein (Moderator)
FB Core Team
starVmax
Moderator
Posts: 1211
graphgraph
User Offline Click here to see the profile of this user
Gender: Male fxstein starVmax Location: Silicon Valley, USA
Logged Logged
 
 
The administrator has disabled public write access.  
Go to top