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?
Re:Sub forums dropdown (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Re:Sub forums dropdown
#5278
Sub forums dropdown 1 Year, 4 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, 4 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:


 <div class = "<?php echo $boardclass?>thead-child"> <b><?php echo _JJ_CHILD_BOARDS; ?> :</b>
          <?php
                            foreach ($forumparents as $forumparent)
                                {
?>


<?php  
//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();
?>
<?php
            
//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
"<img src=\"" . JB_URLCATIMAGES . "" . $forumparent->id . "_on_childsmall.gif\" border=\"0\" class='forum-cat-image' alt=\" \" />";
}
else
{
echo $fbIcons['unreadforum'] ? '<img src="' . JB_URLICONSPATH . '' . $fbIcons['unreadforum_childsmall'] . '" border="0" alt="' . _GEN_FORUM_NEWPOST . '" title="' . _GEN_FORUM_NEWPOST . '" />': $fbConfig['newChar'];
}
   
}
else
{
// Check Read Cat Images 
if (is_file(JB_ABSCATIMAGESPATH . "" . $forumparent->id . "_off_childsmall.gif"«»))
{
echo
"<img src=\"" . JB_URLCATIMAGES . "" . $forumparent->id . "_off_childsmall.gif\" border=\"0\" class='forum-cat-image' alt=\" \" />";
}
else
{
echo $fbIcons['readforum']? '<img src="' . JB_URLICONSPATH . '' . $fbIcons['readforum_childsmall'] . '" border="0" alt="'. _GEN_FORUM_NOTNEW . '" title="' . _GEN_FORUM_NOTNEW . '" />': $fbConfig['newChar'];
}

}
}

// Not Login Cat Images
else
{
   
if (is_file(JB_ABSCATIMAGESPATH . "" . $forumparent->id . "_notlogin_childsmall.gif"«»))
{
echo "<img src=\"" . JB_URLCATIMAGES . "" . $forumparent->id . "_notlogin_childsmall.gif\" border=\"0\" class='forum-cat-image' alt=\" \" />";
}
else
{
echo $fbIcons['notloginforum'] ? '<img src="' . JB_URLICONSPATH . '' . $fbIcons['notloginforum_childsmall']. '" border="0" alt="' . _GEN_FORUM_NOTNEW . '" title="' . _GEN_FORUM_NOTNEW . '" />': $fbConfig['newChar'];
}
                    ?>
     
 
 
      <?php    }
  //
  }
// end: parent read unread iconset
            ?>



<?php

                                echo '<a href="' . sefRelToAbs('index.php?option=com_fireboard&Itemid=' . $Itemid . '&func=showcat&catid=' . $forumparent->id) . '">' . $forumparent->name . '</a>  ';
                                }
?>
        </div>





REPLACE :

Code:


<!-- Dropdown Child -->
<div class = "<?php echo $boardclass?>thead-child"> <b><?php echo _JJ_CHILD_BOARDS; ?> :</b>
<script type="text/javascript" language="javascript">
function jumptochild(x){
if (document.jumpchild.jumpmenuchild.value != "null"«») {
 document.location.href = x
}
}

</script>
<form style="margin: 0pt; padding: 0pt;" name="jumpchild">
<select onchange="jumptochild(document.jumpchild.jumpmenuchild.options[document.jumpchild.jumpmenuchild.options.selectedIndex].value)" name="jumpmenuchild" >
<?php  foreach ($forumparents as $forumparent) { ?>
<?php echo '<option value="' . sefRelToAbs('index.php?option=com_fireboard&Itemid=' . $Itemid . '&func=showcat&catid=' . $forumparent->id) . '">' . $forumparent->name . '</option> '; ?>
<?php } ?>
</select>
</form>
</div>
<!-- /Dropdown Child -->





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 Attachment:
File Name: listcat.zip
File Size: 5426


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, 4 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, 4 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, 4 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, 4 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, 4 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, 4 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, 4 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, 4 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
Powered by FireBoard - Creditsget the latest posts directly to your desktop