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?
Sub forums dropdown (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Sub forums dropdown
#5278
Sub forums dropdown 1 Year, 5 Months ago  
Would it, or is it possible to have the sub forums in a drop down list ?
coldclimber (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#5328
Re:Sub forums dropdown 1 Year, 5 Months ago  
coldclimber wrote:
Would it, or is it possible to have the sub forums in a drop down list ?

Yes iy is possible.

You can edit your components/com_fireboard/template/default/listcat.php

FIND THIS CODE

[code:1]
:
foreach ($forumparents as $forumparent)
{
?>


//Begin: parent read unread iconset
if ($fbConfig['showChildCatIcon'] ) {
//
if ($fbConfig['showNew'] && $my->id != 0)
{
// get all threads with posts after the users last visit; don't bother for guests
$database->setQuery(
"SELECT thread from #__fb_messages where catid='$forumparent->id' and hold='0' and time>$prevCheck group by thread"«»);
$newPThreadsAll=$database->loadObjectList();
if (count($newPThreadsAll) == 0)
$newPThreadsAll=array();
?>

//Check if unread threads are in any of the forums topics
$newPPostsAvailable=0;

foreach ($newPThreadsAll as $npta)
{
if (!in_array($npta->thread, $read_topics))
{
$newPPostsAvailable++;
}
}

if ($newPPostsAvailable > 0 && count($newPThreadsAll) != 0)
{



// Check Unread Cat Images
if (is_file(JB_ABSCATIMAGESPATH . "" . $forumparent->id . "_on_childsmall.gif"«»))
{
echo
"id . "_on_childsmall.gif" border="0" class='forum-cat-image' alt=" " />";
}
else
{
echo $fbIcons['unreadforum'] ? '' . _GEN_FORUM_NEWPOST . '': $fbConfig['newChar'];
}

}
else
{
// Check Read Cat Images
if (is_file(JB_ABSCATIMAGESPATH . "" . $forumparent->id . "_off_childsmall.gif"«»))
{
echo
"id . "_off_childsmall.gif" border="0" class='forum-cat-image' alt=" " />";
}
else
{
echo $fbIcons['readforum']? ''. _GEN_FORUM_NOTNEW . '': $fbConfig['newChar'];
}

}
}

// Not Login Cat Images
else
{

if (is_file(JB_ABSCATIMAGESPATH . "" . $forumparent->id . "_notlogin_childsmall.gif"«»))
{
echo "id . "_notlogin_childsmall.gif" border="0" class='forum-cat-image' alt=" " />";
}
else
{
echo $fbIcons['notloginforum'] ? '' . _GEN_FORUM_NOTNEW . '': $fbConfig['newChar'];
}
?>



//
}
// end: parent read unread iconset
?>




echo '' . $forumparent->name . ' ';
}
?>


[/code:1]


REPLACE :

[code:1]

:






[/code:1]



NOT: If you want you can create new template. Than create new listcat.php for your new template .

New template will be have

header.html
footer.html
forum.css
listcat.php
images/

Keeping your default template files will be good.
;) [file name=listcat.zip size=5426]http://www.bestofjoomla.com/components/com_fireboard/uploaded/files/listcat.zip[/file]

Post edited by: greatpixels, at: 2007/05/07 00:59
greatpixels (Admin)
BoJ Team
Moderator
Posts: 456
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Best of Joomla! Location: USA Birthdate: 1978-10-31
Logged Logged
 
Project Manager : Lead Developer
 
The administrator has disabled public write access.  
#5330
Re:Sub forums dropdown 1 Year, 5 Months ago  
thanks for that it seems to work but when i select the forum from the drop down list there is no way to actually go it or am i missing something

see here
www.adventurexplore.com/forum/index.php
coldclimber (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#5331
Re:Sub forums dropdown 1 Year, 5 Months ago  
I made new template file for you. If you want you can use.
File Attachment:
File Name: default_with_ddchild.zip
File Size: 42520
greatpixels (Admin)
BoJ Team
Moderator
Posts: 456
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Best of Joomla! Location: USA Birthdate: 1978-10-31
Logged Logged
 
Project Manager : Lead Developer
 
The administrator has disabled public write access.  
#5332
Re:Sub forums dropdown 1 Year, 5 Months ago  
coldclimber wrote:
thanks for that it seems to work but when i select the forum from the drop down list there is no way to actually go it or am i missing something

see here
www.adventurexplore.com/forum/index.php


Code has a black after select edIndex. it sholud be selectedIndex
jumptochild(document.jumpchild.jumpmenuchild.options[document.jumpchild.jumpmenuchild.options.selectedIndex].value)
greatpixels (Admin)
BoJ Team
Moderator
Posts: 456
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Best of Joomla! Location: USA Birthdate: 1978-10-31
Logged Logged
 
Project Manager : Lead Developer
 
The administrator has disabled public write access.  
#5338
Re:Sub forums dropdown 1 Year, 5 Months ago  
Thanks i have over written all the files with the ones you have given me but nothing has changed in respect to the select option
coldclimber (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#5343
Re:Sub forums dropdown 1 Year, 5 Months ago  
Did you install default_with_ddchild template which is i sent you?
And dont forget to asign this template on your fireboard backend

Post edited by: greatpixels, at: 2007/05/07 01:25
greatpixels (Admin)
BoJ Team
Moderator
Posts: 456
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Best of Joomla! Location: USA Birthdate: 1978-10-31
Logged Logged
 
Project Manager : Lead Developer
 
The administrator has disabled public write access.  
#5349
Re:Sub forums dropdown 1 Year, 5 Months ago  
Yep i have set the template with the one you have given me


Post edited by: coldclimber, at: 2007/05/07 01:52
coldclimber (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#5377
Re:Sub forums dropdown 1 Year, 5 Months ago  
Ok,

First select imageset default template.

And use this template :
File Attachment:
File Name: default_with_ddchild_2.zip
File Size: 42599
greatpixels (Admin)
BoJ Team
Moderator
Posts: 456
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Best of Joomla! Location: USA Birthdate: 1978-10-31
Logged Logged
 
Project Manager : Lead Developer
 
The administrator has disabled public write access.  
#5383
Re:Sub forums dropdown 1 Year, 5 Months ago  
Hi thanks for your work and time on this it is appreciated. The drop down menu is now working fine thanks.
coldclimber (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
Go to top