Descriptions on index
#1 05-06-2012 
Hi!
I would like know how you have did the descriptions on index, when you hover with mouse on a title, appears also description.
Thank you!

0
#2 05-06-2012 
Aha - you noticed that Big Grin

It is in fact css and is not so hard to do. It is just the forum description hidden.

In the forumbit_depth2_forum you need to have a code similar to the below:

[html]
<tr>
<td class="trow2" align="center" valign="top" width="1">
<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />
</td>
<td class="trow2" valign="top" width="75%">
<div class="big">
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>
{$subforums}{$forum_viewers_text}</div>
<div class="x">
{$forum['description']}
</div>
</td>
<td class="trow2" valign="middle" align="left" style="white-space: nowrap">{$lastpost}
</td>
</tr>
[/html]

You will see there is div class big and div class x. Paste the below in your global css

Code:
.x {
display: none;
color: #C46D16;
font-weight: 700;
margin-top: 5px;
vertical-align:bottom;
}
.big { padding-bottom:0;text-decoration:none; font-size:1.1em;font-weight:700;}
.big a:hover, .big:hover + a:link {color:#a3181e;}
.big:hover + div {
    display: block;
font-size:0.9em;
}

and you can have a similar effect
The site don't jive? PRESS F5 Flower

0
#3 05-06-2012 
I don't have div class x in "forumbit_depth2_forum":

Code:
<tr>
<td class="customhover" align="center" valign="top" width="1"><img src="{$mybb->settings['bburl']}/sezioni/{$forum['fid']}.png" /></td></td>
<td class="customhover" valign="top">
<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div>
</td>
<td class="customhover" valign="top" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
<td class="customhover" valign="top" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>
<td class="customhover" valign="top" align="left" style="white-space: nowrap">{$lastpost}</td>
</tr>

0
#4 05-06-2012 
Maybe try this:

[html]
<tr>
<td class="customhover" align="center" valign="top" width="1"><img src="{$mybb->settings['bburl']}/sezioni/{$forum['fid']}.png" /></td></td>
<td class="customhover" valign="top">
<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />
<div class="big"><a href="{$forum_url}"><strong>{$forum['name']}</strong></a>{$forum_viewers_text}</div><div class="x">{$forum['description']}{$modlist}{$subforums}</div>
</td>
<td class="customhover" valign="top" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
<td class="customhover" valign="top" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>
<td class="customhover" valign="top" align="left" style="white-space: nowrap">{$lastpost}</td>
</tr>
[/html]
The site don't jive? PRESS F5 Flower

0
#5 05-06-2012 
If you have several sub-forums on index this fix might help:

Replace the forumbit_subforums with the below

[html]
<span style="font-size:0.8em;">{$lang->subforums} {$sub_forums}</span>
[/html]
The site don't jive? PRESS F5 Flower

0
#6 05-06-2012 
In forumbit_subforums I have:

Code:
<style>
.alt_sbc {
    list-style: none;
    margin: 0;
    padding: 0;
}
.alt_sbc li {
    width: {$mybb->settings['SubforInCols']}%;
    float: left;
}
</style>
<br />{$lang->subforums}<br /><ul class="alt_sbc">{$sub_forums}</ul>

And I have also subforum in column plugin

0
#7 05-06-2012 
ah. Well , we could do a template conditional, as that way you can EXCLUDE the forums with subforums.
The site don't jive? PRESS F5 Flower

0
#8 17-06-2012 
Lee I have fixed! This is my code:

Code:
<div class="big"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />

<a href="{$forum_url}"><strong>{$forum['name']}</strong></a>{$forum_viewers_text}</div><div class="x">{$forum['description']}{$modlist}</div>{$subforums}
</td>

But now how can I delete threads and posts column? ({$threads}{$unapproved['unapproved_threads']} and {$posts}{$unapproved['unapproved_posts']} )

0
#9 17-06-2012 
yay - looks great. If you want to get rid of the threads and posts you need to change several templates.

In the forumbit_depth1_cat remove:

[html]
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
[/html]

and in the forumbit_depth2_forum remove

[html]
<td class="{$bgcolor}"class="trow2" valign="top" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>
[/html]
The site don't jive? PRESS F5 Flower

0
#10 17-06-2012 
Thank you, I did it Big Grin I have delete also in forumdisplay_subforums

Now it seems more spacious

0


Sorry, that is a members only option