|
How do I default to categories tab with default_ex 6 Months, 3 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?
|
|
|
Logged
|
|
|
|
|
|
Re:How do I default to categories tab with default 5 Months, 3 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
|
Logged
|
|
|
|
|
|
Re:How do I default to categories tab with default 5 Months, 3 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
|
Logged
|
|
|
|
|
|
Re:How do I default to categories tab with default 5 Months, 3 Weeks 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
|
Logged
|
|
|
|
|
|
Re:How do I default to categories tab with default 5 Months, 3 Weeks 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 . '&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 . '&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
|
Logged
|
|
|
Last Edit: 2008/08/04 11:48 By Tomek1.
|
|
|
|
|
|
Re:How do I default to categories tab with default 5 Months, 2 Weeks 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 . '&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 . '&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 . '&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 . '&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
|
|
|
Logged
|
|
|
|
|
|
Re:How do I default to categories tab with default 5 Months, 1 Week 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 . '&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 . '&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
|
Logged
|
|
|
Last Edit: 2008/08/03 14:36 By dolly2.
|
|
|
|
|
|
Re:How do I default to categories tab with default 3 Months ago
|
|
|
Very helpful, but 1.0.5RC2 is different, what do we have to change in this version?
|
|
|
Logged
|
|
|
|
|
|
Re:How do I default to categories tab with default 3 Months ago
|
|
In RC2 you can specify default tab from backend 
|
|
|
Logged
|
|
|
"As a discussion over the net grows longer, the probability of a comparison involving Nazis or Hitler approaches one." - Godwin Law
|
|
|
|
|
|
Re:How do I default to categories tab with default 3 Months 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.
|
|
|
Logged
|
|
|
|
|
|
|
|
|