Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
[AJAX] Tabbed Forum Home Details »»
[AJAX] Tabbed Forum Home
Version: 1.5.0, by bobster65 bobster65 is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.8.x Rating:
Released: 04-09-2008 Last Update: 09-02-2008 Installs: 592
Template Edits
Code Changes Additional Files Translations  
No support by the author.

Tabbed Forum Home version 1.01

[AJAX] Tabbed Forum Home version 1.5.0 (BETA)

NOTE: Works with both 3.7x and 3.6x

Description: This MOD is for creating a "Tabbed" Forum Home Page to have Categories displayed within Tab containers (similar to what the new Profile System looks like on vb3.7). Please do not confuse this with the Tab Menu System here at vbulletin.org. They are totally different systems. These Tabs actually switch the content without leaving the main forums page.

I wrote the initial Non AJAX version based on reading many requests from members asking about how namepros created their custom tabbed forum home page. The first implementation I did was a request by bbwforums.net (which you can visit to see a working example). I have shared this version with many members already and decided to release it since it seems to be something that a lot of members are interested in.

UPDATE: I have released a BETA [AJAX] version for those that what something a little more robust and easier to install/configure. This Beta version will never go into production tho as version 2.0 will utilize the YUI AJAX Tabview Toolset. It IS stable tho and is currently running on a few live sites.

NOTE: Keep in mind, I wrote this with the assumption that you are fairly well versed and comfortable with editing files/templates and following the flow of things. If there is something you don't understand, PLEASE let me know so that I can help you understand it. This IS NOT a product that a novice can just plug and play and it takes a little bit of time to setup, but its well worth it in the end (if you want a custom unique look to your forum home page)... the next version (Don't ask when, cause its just on the drawing board) will be a product with ACP controls for easy setup

The attached Zip File(s) contain the Files and Instructions necessary to install each version.

DEMO: www.bbwforums.net or www.namepros.com
[Moderator Edit: The first URL has been un-linked as there has been reported malware on that domain. The mod author may edit this notice once the situation has been cleaned.]

Screen Shots: None, visit one or both of the above links as seeing them in action is better than some static image(s)..

Bobster

Change Log

version 1.01 -
tabcontent.js ver 2.2 to support remote links
updated install instructions (both in txt and rtf format)

version 1.5.0 -
BETA [AJAX] version

July 8, 2008 - Added xml file for WOL
Sep 2, 2008 - Updated xml file for WOL

Download Now

File Type: zip Tab Forum Home 1.01.zip (22.7 KB, 3409 views)
File Type: zip AJAX Tab Forum Home 1.5.zip (13.8 KB, 4632 views)
File Type: xml tfh-wol-plugins.xml (855 Bytes, 1845 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #212  
Old 05-11-2008, 07:22 AM
OsideRida06 OsideRida06 is offline
 
Join Date: Apr 2008
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So here is my progress thus far.

I now have all of my tabs up and all the categories in each tab. I am still having a few problems though.

The first tab where it is set up different (done just as explained for the first tab) shows what the real skin is suppose to look like. The other tabs do not. Here are some screen shots to show you what I mean. Pay attention to the difference right below the tabs. I need to get the other tabs (in pic 2) to look like the first tab (in pic 1). I know once I change the first tab to only having one category like the others, that it to will look like the other tabs. How do I fix this?





Also I tried to make my Moderators 101 tab only viewable to Moderators, Super Moderators, and Admins. This also did not work. It gave me an error message and asked if I wanted to continue. So I clicked on continue. I then went to test it, and the index_tab page just gave an error message. So I removed the <if> commands until I can figure out why it is not working. Any suggestions? I am 99% sure I had them in the correct places.
Reply With Quote
  #213  
Old 05-11-2008, 08:05 AM
Defkalion Defkalion is offline
 
Join Date: Jan 2007
Location: Athens, Greece
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bobster65 View Post
Yer welcome

Yes, you can create extra tabs with info in them other than just Forum categories. All you need to do is put the info in what I call a content div area just like you did with the other tabs ..

Here is an example of putting the Whats going on box into a tab .. Note the RED IDs .. those are what link the tab to the div content ..

First you need to create an li tag for your new extra tab (I added a 4th tab in this example called Whats Going On and its ID=tcontent4

Code:
<!-- Tabbed Forum Home Tabs Layout -->
	<ul id="forumtabs" class="shadetabs"> 
	<li><a href="#" rel="tcontent1" class="selected">Tab 1</a></li> 
	<li><a href="#" rel="tcontent2">Tab 2</a></li> 
	<li><a href="#" rel="tcontent3">Tab 3</a></li>
	<li><a href="#" rel="tcontent4">Whats Going On</a></li>
       	</ul> 
<!-- /Tabbed Forum Home Tabs Layout -->

Then you need to create the Content Container and make sure that it has the same ID as the li tag you just added ..

Code:
<!-- Tabbed Forum Home – START whats going on box Tab Content Layout -->

<div id="tcontent4" class="tabcontent">

<!-- what's going on box -->
CONTENT REMOVED FOR SAMPLE
<!-- end what's going on box -->

</div>

<!-- /Tabbed Forum Home – END Tab 4 Content Layout -->


NOTE: Make sure that when you add extra tabs that they go BEFORE the below block of code.. You can always move this chunk of code lower in the template, just make sure that any content area Divs that you add go before it .. (Hope that made sense)

Code:
<!-- Tabbed Forums switch tab script -->
	<script type="text/javascript">
	var myforumtabs=new ddtabcontent("forumtabs") 
	myforumtabs.setpersist(true) 
	myforumtabs.setselectedClassTarget("link") 
	myforumtabs.init()
	</script>
<!-- /end Tabbed Forums switch tab script -->
Thats all there is to it...
Bob your help is much appreciated. This worked excellent, you can check it here : http://www.travelstories.gr/index_forums.

Is there any way to "force" this last fourth tab to the right, since it contains stats? And also to have a diferrent font size/color for its text? I want to give more attention to the content tabs and "degrade" the stats tab

EDIT: also another question: what is the way of placing the Tabs ALSO in the bottom, besides the top of the forums?
Reply With Quote
  #214  
Old 05-11-2008, 11:13 AM
bobster65's Avatar
bobster65 bobster65 is offline
 
Join Date: Mar 2006
Location: Montana
Posts: 1,169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rapidphim View Post
Is it possible for:
1/ On each tab, show the number of new threads created/replied? For example: Tab 1 (2 New)
2/ A quick ajax display all the new created/replied threads when click on number of new created/replied threads?
3/ Everytime user clicks Home, is there away to bring them back to first tab, instead of staying at the current tab that they selected?
1. Yes, that is possible, you could get that information from the specific $forumbit array for each tab.

2. This version is not AJAX. The next version will have various AJAX settings that can be used.

3. Yes, set instance.setpersist(false). This tells the script whether to persist the tabs' state for the duration of the browser session. If enabled (true), the last clicked on tab is remembered and recalled upon the visitor's return. If disabled (false), it will load the "selected" tab upon each page load.

example ..

Code:
<!-- Tabbed Forums switch tab script -->
<script type="text/javascript">
var myforumtabs=new ddtabcontent("forumtabs") 
myforumtabs.setpersist(false) 
myforumtabs.setselectedClassTarget("link")
myforumtabs.init()
</script>
<!-- /end Tabbed Forums switch tab script -->
Reply With Quote
  #215  
Old 05-11-2008, 11:37 AM
bobster65's Avatar
bobster65 bobster65 is offline
 
Join Date: Mar 2006
Location: Montana
Posts: 1,169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Defkalion View Post
Bob your help is much appreciated. This worked excellent, you can check it here : http://www.travelstories.gr/index_forums.

Is there any way to "force" this last fourth tab to the right, since it contains stats? And also to have a diferrent font size/color for its text? I want to give more attention to the content tabs and "degrade" the stats tab

EDIT: also another question: what is the way of placing the Tabs ALSO in the bottom, besides the top of the forums?
The "LOOK" of the tabs is all driven by CSS, so you can do just about anything you want to. The tabs are simply list based links, and the tab contents are regular DIV contents on the page. Customization couldn't be easier. You are not "stuck" using the shadetabs CSS. The CSS File actually contains 2 other examples that you can configure (and modify) as well. Plus you can always use other CSS that can be found @ dynamic drive

If you note the content areas, they all currently use the class="tabcontent" ... for your extra tab, you could use another class for that individual Div and then define that in the CSS file

Tabs at the bottom and top? Haven't tried it, but simple copy the "tab" portion and place it after the last content area and before the switch tabs script .. in theory, that should work. one of the CSS style is use has tabs at the bottom, so I know it works, just never tried it with both top and bottom ..
Reply With Quote
  #216  
Old 05-11-2008, 11:54 AM
sweede's Avatar
sweede sweede is offline
 
Join Date: Jan 2007
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm enjoying this hack info on my site http://dramaloot.com/forums/index.php , but instead of giving different tabs for different forum categories, I've created a plugin that allows me to use either a template or since i use VbaCMPS , a BBCode Page.

The tabs are also created by a vbulletin config option and you can also dynamicly adjust their order.

Since i added a considerable amount of content to the forum home , i have added an Ajax plugin that automaticly refreshes the forum content every 5 minutes or so. Instead of downloading a 140kb file every time you want to refresh the page to check for new posts, you only download a 20kb or so of data !
Reply With Quote
  #217  
Old 05-11-2008, 11:58 AM
bobster65's Avatar
bobster65 bobster65 is offline
 
Join Date: Mar 2006
Location: Montana
Posts: 1,169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by OsideRida06 View Post
So here is my progress thus far.

I now have all of my tabs up and all the categories in each tab. I am still having a few problems though.

The first tab where it is set up different (done just as explained for the first tab) shows what the real skin is suppose to look like. The other tabs do not. Here are some screen shots to show you what I mean. Pay attention to the difference right below the tabs. I need to get the other tabs (in pic 2) to look like the first tab (in pic 1). I know once I change the first tab to only having one category like the others, that it to will look like the other tabs. How do I fix this?





Also I tried to make my Moderators 101 tab only viewable to Moderators, Super Moderators, and Admins. This also did not work. It gave me an error message and asked if I wanted to continue. So I clicked on continue. I then went to test it, and the index_tab page just gave an error message. So I removed the <if> commands until I can figure out why it is not working. Any suggestions? I am 99% sure I had them in the correct places.
The problem some people are having is that they are trying to use the examples that are based off of the default vbulletin style when they are using custom styles that are slightly different layouts than default vbulletin.. this is why I included remarks in the code like this....

Code:
<!-- CUSTOM tbody CODE BASED ON YOUR STYLE -->
You just need to "tweak" it a little bit to get the correct layouts working based on your style. Version 2.0 is going to fix this problem as this step will be automated

as far as the error message, you must have grabbed what I had posted prior to me editing it.. I had a dang extra comma (,) after the last group id ... the example is fixed now and I know it works as Its running on multiple sites right now (just without the extra comma lol )
Reply With Quote
  #218  
Old 05-11-2008, 12:09 PM
bobster65's Avatar
bobster65 bobster65 is offline
 
Join Date: Mar 2006
Location: Montana
Posts: 1,169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sweede View Post
I'm enjoying this hack info on my site http://dramaloot.com/forums/index.php , but instead of giving different tabs for different forum categories, I've created a plugin that allows me to use either a template or since i use VbaCMPS , a BBCode Page.

The tabs are also created by a vbulletin config option and you can also dynamicly adjust their order.

Since i added a considerable amount of content to the forum home , i have added an Ajax plugin that automaticly refreshes the forum content every 5 minutes or so. Instead of downloading a 140kb file every time you want to refresh the page to check for new posts, you only download a 20kb or so of data !
Cool Beans Looks good! Looks like a combo of my CMPS MOD and this one..

Version 2 (already being built) will be a product with ACP controls, dynamic tab generation, additional content addition, usergroup permissions, AJAX (with multiple settings that can be turned on and off and set for specific "times") and more..

Version 3 (on the white board) will consist of USER controlled Tabs so that THEY can decide what order they want the tabs and what categories/forums fall under each tab..
Reply With Quote
  #219  
Old 05-11-2008, 02:53 PM
MarsNIIT MarsNIIT is offline
 
Join Date: Aug 2005
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Category1
-Forum1
--Subforum1
---Subforum1a
---Subforum1b

Category2 (hide)
-Forum2
--Subforum2
---Subforum2a
---Subforum2b
When i use subforum2, the tab not display: Last Post, Threads and Posts

But no problem when i use these forum in Forum1 (not hide)

not hide mean: Forum is Active selecte no
(Will not appear if set to no, but remains accessible if the forum's URL is known)
Reply With Quote
  #220  
Old 05-11-2008, 03:47 PM
rapidphim rapidphim is offline
 
Join Date: Feb 2007
Posts: 733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bobster65 View Post
1. Yes, that is possible, you could get that information from the specific $forumbit array for each tab.

2. This version is not AJAX. The next version will have various AJAX settings that can be used.

3. Yes, set instance.setpersist(false). This tells the script whether to persist the tabs' state for the duration of the browser session. If enabled (true), the last clicked on tab is remembered and recalled upon the visitor's return. If disabled (false), it will load the "selected" tab upon each page load.

example ..

Code:
<!-- Tabbed Forums switch tab script -->
<script type="text/javascript">
var myforumtabs=new ddtabcontent("forumtabs") 
myforumtabs.setpersist(false) 
myforumtabs.setselectedClassTarget("link")
myforumtabs.init()
</script>
<!-- /end Tabbed Forums switch tab script -->
Thanks Bob for this... and how I am going to complete #1? And lots of queries will be using for this?
Reply With Quote
  #221  
Old 05-11-2008, 04:21 PM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by veenuisthebest View Post
ohhh.... the problem remains in IE... what to do now ???

The row gets totally messed up in IE, however.. working only in Firefox !!

pleasee ... bob.. help out this one !!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:21 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06386 seconds
  • Memory Usage 2,350KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete