Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Customization Tutorial Unique forumbit
Author Message
Jasonl1331 Offline
Member
***

Posts: 79
Joined: Oct 2010
Reputation: 5
Post: #1
Unique forumbit
This will give a unique looking forumbit. This also combines in euantor's WONDERFUL category description and this is how I threw it all together.
[Image: a1e8bf5feeaaa6b95de8119916379286.png]

As you notice it dosen't change much but it looks great.

ACP > Templates & Style > *Your Theme* > Forum Bit Templates > forumbit_depth1_cat

Replace EVERYTHING with this

Code:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div>
<div><span id="{$forum['fid']}name"><a href="{$forum_url}">{$forum['name']}</a></span> &nbsp; <span class="smalltext forumdesc" id="{$forum['fid']}description">{$forum['description']}</span></div>
</td>
</tr>
</thead>
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
<tr>
<td class="tcat" colspan="2"><span class="smalltext"><strong>Forums</strong></span></td>
<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>
<td class="tcat" width="200" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
</tr>
{$sub_forums}
</tbody>
</table>
<br />
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function() {

    jQuery("#{$forum['fid']}description").hide();

    jQuery("#{$forum['fid']}name").mouseover(function() {

        var content = jQuery("#{$forum['fid']}description").text();

        if (content === "") {} else {
            jQuery("#{$forum['fid']}description").fadeIn('slow', function() {
                // Animation complete
            });
        }

    });

    jQuery("#{$forum['fid']}name").mouseout(function() {
        jQuery("#{$forum['fid']}description").stop(true, true).fadeOut('slow', function() {
            // Animation complete
        });

    });

});
</script>

ACP > Templates & Style > *Your Theme* > Forum Bit Templates > forumbit_depth1_cat_subforum

Replace EVERYTHING with
Code:
<tr>
<td class="tcat" colspan="6"><strong>&raquo;&nbsp;&nbsp;<a href="{$forum_url}">{$forum['name']}</a></strong><br /><span class="smalltext">{$forum['description']}</span></td></tr>{$sub_forums}

ACP > Templates & Style > *Your Theme* > Forum Bit Templates > forumbit_depth2_cat

Replace EVERYTHING with
Code:
<tr>
<td class="tcat" colspan="2"><span class="smalltext"><strong>&nbsp;{$lang->forumbit_forum}</strong></span></td>
<td class="tcat" width="85" align="right" style="white-space: nowrap"><span class="smalltext"><strong>Stats</strong></span></td>
<td class="tcat" width="200" align="left"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
</tr>

ACP > Templates & Style > *Your Theme* > Forum Bit Templates > forumbit_depth2_forum

Replace EVERYTHING with
Code:
<tr>
<td class="{$bgcolor}" 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="{$bgcolor}" valign="top">
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div>
</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}<div id="pt">threads</div> </td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}<div id="pt">posts</div></td>
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
</tr>

ACP > Templates & Style > *Your Theme* > Forum Bit Templates > forumbit_depth3

Replace EVERYTHING with
Code:
<li>{$statusicon}<a href="forumdisplay.php?fid={$forum['fid']}">{$forum['name']}</a></li>

ACP > Templates & Style > *Your Theme* > Forum Bit Templates > forumbit_depth3

Replace EVERYTHING with
Code:
<style type='text/css'>
.groupsub
{
list-style: none;
margin: 0;
padding: 0;
font-size: 11.5px;
}

.groupsub li
{
width: 40%;
float: left;
}
</style>
<br /><ul class="groupsub">{$sub_forums}</ul>

And the last step to activate euantors tutorial.


ACP > Templates & Style > *Your Theme* > Ungrouped Templates > headerinclude

Insert below
Code:
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>


Code:
<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
03-01-2011, 12:44 PM
Visit this user's website Find all posts by this user Quote this message in a reply
envira Offline
Member
***

Posts: 74
Joined: Nov 2010
Reputation: 3
Post: #2
RE: Unique forumbit
wow,this loooks too awesome,may be a demo is needed instead of a screenshot......001_smile
03-02-2011, 01:53 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Jasonl1331 Offline
Member
***

Posts: 79
Joined: Oct 2010
Reputation: 5
Post: #3
RE: Unique forumbit
(03-02-2011 01:53 AM)envira Wrote:  wow,this loooks too awesome,may be a demo is needed instead of a screenshot......001_smile

http://gothacks.com/mybb
03-02-2011, 05:52 AM
Visit this user's website Find all posts by this user Quote this message in a reply
cassie Offline
Junior Member
**

Posts: 31
Joined: May 2009
Reputation: 0
Post: #4
RE: Unique forumbit
That looks absolutely wonderful, I'm totally going to use this. Thanks!
03-02-2011, 11:31 PM
Find all posts by this user Quote this message in a reply
Jasonl1331 Offline
Member
***

Posts: 79
Joined: Oct 2010
Reputation: 5
Post: #5
RE: Unique forumbit
(03-02-2011 11:31 PM)cassie Wrote:  That looks absolutely wonderful, I'm totally going to use this. Thanks!

No problem! Thank you!
03-03-2011, 06:13 AM
Visit this user's website Find all posts by this user Quote this message in a reply
TeraByTe Offline
PHP Coder
Premium Users

Posts: 64
Joined: Mar 2011
Reputation: 4
Post: #6
RE: Unique forumbit
I don't get exactly what it does... I mean it looks great, but so does your theme, can you post a before picture also

[Ohmy]Hallway Insider Forums - Join Now. [/Ohmy]
Goals :
✔ = Complete X = Incomplete
[✔] 1 Rep
[X] 5 Rep
[✔] 50 posts
[X] 100 Posts
03-03-2011, 08:29 AM
Visit this user's website Find all posts by this user Quote this message in a reply
dudes196 Offline
Junior Member
**

Posts: 9
Joined: Mar 2011
Reputation: 0
Post: #7
RE: Unique forumbit
(03-03-2011 08:29 AM)Dylan Wrote:  I don't get exactly what it does... I mean it looks great, but so does your theme, can you post a before picture also

look at the picture thats how forums look in catagories I believe rather than how it does now which is what we have on this site

or

it re-orders the sum forums to what is shown in the picture
(This post was last modified: 03-03-2011, 08:51 AM by dudes196)
03-03-2011, 08:48 AM
Find all posts by this user Quote this message in a reply
TeraByTe Offline
PHP Coder
Premium Users

Posts: 64
Joined: Mar 2011
Reputation: 4
Post: #8
RE: Unique forumbit
(03-03-2011 08:48 AM)dudes196 Wrote:  
(03-03-2011 08:29 AM)Dylan Wrote:  I don't get exactly what it does... I mean it looks great, but so does your theme, can you post a before picture also

look at the picture thats how forums look in catagories I believe rather than how it does now which is what we have on this site

or

it re-orders the sum forums to what is shown in the picture


Thanks, I will implement it into http://hallwayinsider.com/ tonight =)

[Ohmy]Hallway Insider Forums - Join Now. [/Ohmy]
Goals :
✔ = Complete X = Incomplete
[✔] 1 Rep
[X] 5 Rep
[✔] 50 posts
[X] 100 Posts
03-03-2011, 08:56 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Jasonl1331 Offline
Member
***

Posts: 79
Joined: Oct 2010
Reputation: 5
Post: #9
RE: Unique forumbit
(03-03-2011 08:48 AM)dudes196 Wrote:  
(03-03-2011 08:29 AM)Dylan Wrote:  I don't get exactly what it does... I mean it looks great, but so does your theme, can you post a before picture also

look at the picture thats how forums look in catagories I believe rather than how it does now which is what we have on this site

or

it re-orders the sum forums to what is shown in the picture

Don't forget what it does to the descriptions.
03-03-2011, 11:30 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Mazi1577 Offline
Junior Member
**

Posts: 33
Joined: Jun 2010
Reputation: 0
Post: #10
RE: Unique forumbit
Thanks Big Grin
03-03-2011, 02:21 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: