PDA

View Full Version : Forum Home Enhancements - [AJAX] Tabbed Forum Home


Pages : [1] 2 3 4 5 6 7 8

bobster65
04-09-2008, 10:00 PM
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 :cool:

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

bobster65
04-10-2008, 01:18 AM
THIS ENHANCEMENT IS FOR Version 1.50

Tabs for Specific User Groups Only (Ver 1.50)

You can wrap a specific TAB <li> tag with a template conditional where the numbers after userinfo are the User Group IDs that you want to display the Tab too.

So for example if you wanted to hide one for Staff Only it would look like this (See the code in RED)

<div id="ajaxTFH" class="TFHmenu2">
<ul>
<li class="selected"><a href="tabforumhome.php?tabcat[]=1" rel="ajaxTFHcontentarea">TAB 1 NAME</a></li>
<li><a href="tabforumhome.php?tabcat[]=1&tabcat[]=2" rel="ajaxTFHcontentarea">TAB 2 NAME</a></li>

<if condition="is_member_of($vbulletin->userinfo, 5,6)">
<li><a href="tabforumhome.php?tabcat[]=100" rel="ajaxTFHcontentarea">STAFF</a></li>
</if>

</ul>
</div>



THESE ENHANCEMENTS ARE FOR Version 1.01 ONLY

Tabs for Specific User Groups Only

Would you like a Tab to be visible only for a specific User Group(s)? simply wrap the specific tab with this... (use the ID's of the user groups you want to be able to view it)

<if condition="is_member_of($vbulletin->userinfo, 5,6)">

</if>

so it would look something like this.. (The code in RED is what you would need to add ...

<!-- Tabbed Forum Home Tabs Layout -->
<ul id="forumtabs" class="shadetabs">
<li><a href="#" rel="tcontent1" class="selected">Tab 1 Name</a></li>
<li><a href="#" rel="tcontent2">Tab 2 Name</a></li>
<if condition="is_member_of($vbulletin->userinfo, 5,6)">
<li><a href="#" rel="tcontent3">BETA FORUM Tab/a></li>
</if>
</ul>
<!-- /Tabbed Forum Home Tabs Layout -->

Then you will also want to wrap the tab display data as well ..

<!-- Tabbed Forum Home – START BETA FORUM TAB Content Layout -->

<if condition="is_member_of($vbulletin->userinfo, 5,6)">

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

CONTENT REMOVED FOR EXAMPLE ONLY

</div>

</if>

<!-- /Tabbed Forum Home – END BETA FORUM TAB Content Layout-->



Custom Look and Feel

The Look and Feel is all driven by the tabcontent.css file. You can easily customize the look with a few simple edits to the base css. There are also plenty of different "tab" css scripts available at dynamic drive that will work with this.


Using images for the tabs

You can completely customize the look of the tabs, such as changing them to image links. The script treats every link ("A") within the specified tab container as a potential tab link, so as long as your tabs are some form of links, it will work. For example:

<div id="forumtabs">
<a href="#" rel="tcontent1" class="selected"><img src="tab1.gif" /></a>&nbsp;
<a href="#" rel="tcontent2"><img src="tab2.gif" /></a></li>&nbsp;
<a href="#" rel="tcontent3"><img src="tab3.gif" /></a>&nbsp;
<a href="#" rel="tcontent4"><img src="tab4.gif" /></a>
</div>



Changing the location the script looks for a class="selected" declaration

By default, if you wish a tab to be automatically selected when the page loads, you add a class="selected" attribute inside that tab link ("A"). However, sometimes your CSS for the tabs may be structured in a way that would make things a lot easier for you if you can add class="selected" to the parent of the tab link, and still have the "default selected" feature work. An example would be tab links that are each wrapped around a DIV, and styling to the selected tab in your CSS is on the DIV element, not the link:

<div id="forumtabs" class="someclass">
<div class="selected"><a href="#" rel="tcontent1">Tab 1</a></div>
<div><a href="#" rel="tcontent2">Tab 2</a></div>
<div><a href="#" rel="tcontent3">Tab 3</a></div>
<div><a href="#" rel="tcontent4">Tab 4</a></div>

To tell the script to look for class="selected" on each tab link's parent container, you would call setselectedClassTarget() with the string parameter in red:

<script type="text/javascript">

var newcontent=new ddtabcontent("forumtabs")
newcontent.setselectedClassTarget("linkparent") //"link" or "linkparent"
newcontent.init()

</script>



Dynamically selecting a tab anywhere on your page

After your Tab Content is initialized and displayed, you can dynamically select any of its tabs, by calling the method: instance.expandit(tabid_or_position)

The parameter entered should either be a string representing the tab link's ID attribute (you need to first assign one to that tab), or an integer corresponding to that tab's position relative to its peers, to select. For the later, the counting starts at 0 (ie: 0=1st tab). Building on the example above, here are two links that select two tabs within it:

<!--Selects 2nd tab within Tab instance "myflowers" -->
<a href="javascript:myflowers.expandit(1)">Select 2nd Tab</a>

<!--Selects tab with ID="roses" within Tab instance "myflowers" -->
<!--Be sure to first insert ID="roses" inside the target tab's link element.
<a href="javascript:myflowers.expandit('roses')">Select "Roses" tab</a>



Dynamically selecting a tab using a remote link (tabcontent.js v2.2 or above)

Starting in tabcontent.js v2.2, you can define a link on another page that selects a tab on the target page (one containing Tab Content script) when the page is loaded. In other words, depending on the referring page, a different tab can be selected by default. This is done by adding to the original link a URL parameter string specifying the Tab Content's main container ID, plus the index of the tab to select. The syntax is:

<a href="index.php?tabinterfaceid=index">Target Page</a>


where "tabinterfaceid" is the ID of the main tab container, and index is the tab to select based on its position relative to its peers (0=1st tab). For example, given the below initialization code:

<script type="text/javascript">

var myforumtabs=new ddtabcontent("forumtabs") //enter ID of Tab Container
myforumtabs.setpersist(true) //toogle persistence of the tabs' state
myforumtabs.setselectedClassTarget("link") //"link" or "linkparent"
myforumtabs.init()

</script>


The following link (presumably on another page) causes the 2nd tab within the above Tab content instance to be selected by default when "index.php" loads:

<a href="index.php?forumtabs=1">Target Page</a>


If your page contains multiple Tab content instances and you wish to select a tab explicity using the URL method for all of them, you can do that as well:

<a href="index.php?forumtabs=1&subforumtabs=2>Target Page</a>


The URL parameter method of tab selection overrides both the persisted tab states and default selected tab setting using class="selected' within the HTML.

Derek Chai
04-10-2008, 01:26 AM
Very nice!!@#@$

ssslippy
04-10-2008, 01:56 AM
Awesome job!

RvG2
04-10-2008, 02:00 AM
hey will it work on 3.7??

bobster65
04-10-2008, 02:06 AM
hey will it work on 3.7??

yes, it works fine with 3.7x

Hornstar
04-10-2008, 02:11 AM
So this is kind of like split forum home hack where you can split certain forums section to another page, but instead of being on another page with just a link to it, it is ajax based into tabs?
Is that correct?

Will search engines be able to find the content okay? because I notice each of the tab links all end in a #
Ideally it would be great if it was actually showing a link where users could link other people directly to that tabbed page.
Is that possible?

bobster65
04-10-2008, 02:20 AM
So this is kind of like split forum home hack where you can split certain forums section to another page, but instead of being on another page with just a link to it, it is ajax based into tabs?
Is that correct?

Will search engines be able to find the content okay? because I notice each of the tab links all end in a #
Ideally it would be great if it was actually showing a link where users could link other people directly to that tabbed page.
Is that possible?

This version is not AJAX Based, but yes, you have the right concept. Simply check out one of the Demo links to see it in action.

Yes, Search engines can spider the content just fine.

I am pretty sure that there is a way to do direct links.. I'll dig into it and when I find something, I'll respond back to ya :)

Q-v-n-s-Q
04-10-2008, 02:23 AM
cool mod, thanks

AJAX Tab Forum Home 1.5.zip is good for seo. If you need help with your site, feel free to join http://www.highrankforum.com/

ssslippy
04-10-2008, 02:51 AM
This does not allow project tools to display.

What is your trick to get it not to go back to the top of the page?

Also it not switching the highlight for the current selected tab.

bobster65
04-10-2008, 03:50 AM
This does not allow project tools to display.

What is your trick to get it not to go back to the top of the page?

Also it not switching the highlight for the current selected tab.

I don't have project tools, so right now I don't have an answer for you about that. I am sure that it would be easy to incorporate it tho.

The highlights are controlled with the CSS file. Included with the the ZIP are a couple different versions of CSS and you can always modify the CSS to match your style very easy.

ovnnet
04-10-2008, 03:52 AM
Very very beutifull job

@bobster65: You should remove .rtf and .tmp files in your archive :)

Hornstar
04-10-2008, 05:53 AM
This version is not AJAX Based, but yes, you have the right concept. Simply check out one of the Demo links to see it in action.

Yes, Search engines can spider the content just fine.

I am pretty sure that there is a way to do direct links.. I'll dig into it and when I find something, I'll respond back to ya :)

Thanks, with this and a few other features, this has great potential to be mod of the month!

It really frees up the forum home if you have many forums.

viganothing
04-10-2008, 06:26 AM
super cool mod =)

Deepdog009
04-10-2008, 07:41 AM
Great Work Bobster65

TABs CiTy ...

Keep the ball rolling;)

ssslippy
04-10-2008, 08:49 AM
What I ment for the highlighting not showing is when you chose a category it is still showing as if you have selected the base category.

Ozster
04-10-2008, 09:48 AM
Any ideas how to stop it jumping back to the top of the page when you select a tab?

edit: figured it out - what kind of load increase will this hack cause?

beduino
04-10-2008, 10:55 AM
hello bobster!
you rock! :D
tks!
beduino

Hasann
04-10-2008, 11:35 AM
thanks a lot buddy I needed it :D:up:

kushal
04-10-2008, 11:54 AM
Installed, great stuff.

ssslippy
04-10-2008, 11:55 AM
Any ideas how to stop it jumping back to the top of the page when you select a tab?

edit: figured it out - what kind of load increase will this hack cause?

How did u make it stop jumping to the top of the page?

lazydesis
04-10-2008, 12:07 PM
very nicely done :) thanx

will install soon :D

valdet
04-10-2008, 03:17 PM
Bobster thank you very much for this awesome mod. I will test and no doubt it should look great.

Do you know if this might affect search engine crawling..?

Cliked Install and nominated for MOTM

bobster65
04-10-2008, 04:19 PM
Bobster thank you very much for this awesome mod. I will test and no doubt it should look great.

Do you know if this might affect search engine crawling..?

Cliked Install and nominated for MOTM




Thanks Bud!

As far as Search Engine Crawling, it is fully unobtrusive, search engine friendly :up:

tmiland
04-10-2008, 04:45 PM
Hello bobster65,

thanks for this great mod! :)
I have a question, wich have troubled me all day, see the moderator column in the attached picture... What am i doing wrong? I am about to throw my comp out the window :erm:

bobster65
04-10-2008, 05:01 PM
Hello bobster65,

thanks for this great mod! :)
I have a question, wich have troubled me all day, see the moderator column in the attached picture... What am i doing wrong? I am about to throw my comp out the window :erm:

no, don't throw it out the window lol.. I see whats wrong. Its a colspan issue..

in my sample code (step 18) look for this towards the beginning of the step..

What I did was include my custom code that didn't account for the 6th column (Moderator) (See the part in BOLD RED) Below...

<!-- CUSTOM tbody CODE BASED ON YOUR STYLE -->
<tbody>
<tr>
<td class="tcat" colspan="5"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_66')"><img id="collapseimg_forumbit_66" src="images/solido/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=6">CATEGORY NAME</a></td>
</tr>
</tbody>

<tbody id="collapseobj_forumbit_66" style="">
$forumbits2
</tbody>
<!-- /CUSTOM tbody CODE BASED ON YOUR STYLE -->


so what you can do is add this condition to it

<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>

So it would look something like this..

<!-- CUSTOM tbody CODE BASED ON YOUR STYLE -->
<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_66')"><img id="collapseimg_forumbit_66" src="images/solido/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=6">CATEGORY NAME</a></td>
</tr>
</tbody>

<tbody id="collapseobj_forumbit_66" style="">
$forumbits2
</tbody>
<!-- /CUSTOM tbody CODE BASED ON YOUR STYLE -->


That will fix it for you..

pooffck
04-10-2008, 05:34 PM
hi everyone, im new to vbulletin and just set my forum up today and got a skin and all that and loved this mod BUT i am a very big moron at following instuctions. I was wondering if anyone had 5 to 10 mins of there time to help me out personally or do it for me. It would be a great help.

P.S. iv tried to follow the instructions and lost all my forum so i had to revert it.

Some assitance would be nice

P.S... sorry about my english

bobster65
04-10-2008, 06:01 PM
*UPDATED* to version 1.01

Those that marked installed received the updated information via email.

Only the tabcontent.js was updated, so simply download the new zip and upload the new .js file.

Additional information has also been updated in Post #2

bobster65
04-10-2008, 06:03 PM
hi everyone, im new to vbulletin and just set my forum up today and got a skin and all that and loved this mod BUT i am a very big moron at following instuctions. I was wondering if anyone had 5 to 10 mins of there time to help me out personally or do it for me. It would be a great help.

P.S. iv tried to follow the instructions and lost all my forum so i had to revert it.

Some assitance would be nice

P.S... sorry about my english

be sure to follow steps 1-4 for setting up the install environment. I wrote it this way specifically so you won't lose anything that is important while adding this.

I'd install it for you, but I am completely swamped :o

sdfaheem
04-10-2008, 06:33 PM
This is what i was expecting since days.
Excellent work bobster!

tmiland
04-10-2008, 07:08 PM
no, don't throw it out the window lol..

You just saved my computer from going out the window lmao!!
Thank you so very much mister :D
I got the first tab set up now, only hmmm... 10 to go lol!
Well, from my calculations with 1 tab a day, would take me 10 more days to finish'em :eek::D

Nominated and installed etc etc :p

Great mod!

*edit*

Would it be possible to add tabs like in the profile page? For the statistics, about me etc... :)

meissenation
04-10-2008, 08:36 PM
Thank you thank you thank you thank you thank you thank you!!!!!!!! I haven't installed yet, but I'm already nominating for MOTM.

bobster65
04-10-2008, 08:52 PM
Would it be possible to add tabs like in the profile page? For the statistics, about me etc... :)

yes. wouldn't be that hard to do..

meissenation
04-10-2008, 10:23 PM
Has anyone actually implemented it? I had to change

$forumbits2b = construct_forum_bit(45,1,0);
to
$forumbits2b = construct_forum_bit(45);

for the forums to display correctly. I noticed that in my index.php file, directly above the pieces we add, my $forumbits = construct_forum_bit($forumid);

bobster65
04-10-2008, 10:41 PM
Has anyone actually implemented it? I had to change

$forumbits2b = construct_forum_bit(45,1,0);
to
$forumbits2b = construct_forum_bit(45);

for the forums to display correctly. I noticed that in my index.php file, directly above the pieces we add, my $forumbits = construct_forum_bit($forumid);

yes, a lot of members have this already installed and running prior to it being released. Both ways will work. What version of vB are you running?

the construct_forum_bit function is located in the functions_forumlist.php

If you just send 45, then it defaults to (45,0,0) and 0 will be a forum depth of 2


// ###################### Start makeforumbit #######################
// this function returns the properly-ordered and formatted forum lists for forumhome,
// forumdisplay and usercp. Of course, you could use it elsewhere too..
function construct_forum_bit($parentid, $depth = 0, $subsonly = 0)
{
global $vbulletin, $stylevar, $vbphrase, $show;
global $imodcache, $lastpostarray, $counters, $inforum;

// this function takes the constant MAXFORUMDEPTH as its guide for how
// deep to recurse down forum lists. if MAXFORUMDEPTH is not defined,
// it will assume a depth of 2.

meissenation
04-11-2008, 12:17 AM
Ah, that'd also explain why the subforums weren't showing, hahahaha.

I have 3.6.6.


I have it fully implemented on www.mifbody.com and it works great for me! :D Thank you so much for this, it's exactly what we were needing!

bobster65
04-11-2008, 12:32 AM
Ah, that'd also explain why the subforums weren't showing, hahahaha.

I have 3.6.6.

I have it fully implemented on www.mifbody.com and it works great for me! :D Thank you so much for this, it's exactly what we were needing!

Yer welcome.... Looks good. Only suggestion that I have would be to use different tab images to match your style :D

CHIPIT
04-11-2008, 01:45 AM
Thanks! Great mod, installed and nominated.
One thing though...

For dynamically selecting a tab we're supposed to use
<a href="javascript:instance.expandit(1)">Select 2nd Tab</a>

What is exactly is the instance? How is it defined? and when you say tab# starting with 0, would the first one (0) be the one with the first tabbed link, the first one in the code itself, or tcontent1??

tmiland
04-11-2008, 03:03 AM
yes. wouldn't be that hard to do..

Sweet! :)

Awaiting instructions... :o

j-n
04-11-2008, 04:00 AM
thank you

vietfancy
04-11-2008, 07:49 AM
Thanksssss!

exactly what i needed.

I have a little problem here. It seems doesn't work for me.

I edited the index_tab.php


// define max depth for forums display based on $vbulletin->options[forumhomedepth]
define('MAXFORUMDEPTH', $vbulletin->options['forumhomedepth']);

$forumbits = construct_forum_bit($forumid);
// Construct Tabbed Forum Home forumbits
// Category for Tab 2, pulls forum and sub form data from Category (Forum ID 1)
// Category 1 for Tab 1
$forumbits1a = construct_forum_bit(1,1,0);
// Category 2 for Tab 1
$forumbits1b = construct_forum_bit(42,1,0);
// Category 1 for Tab 2
$forumbits2a = construct_forum_bit(66,1,0);
// Category 2 for Tab 2
$forumbits2b = construct_forum_bit(61,1,0);
// Category 3 for Tab 2
$forumbits2c = construct_forum_bit(26,1,0);
// Category 4 for Tab 2
$forumbits2d = construct_forum_bit(5,1,0);
// Category 1 for Tab 3
$forumbits3a = construct_forum_bit(9,1,0);
// Category 1 for Tab 4
$forumbits4a = construct_forum_bit(36,1,0);
// Category 2 for Tab 4
$forumbits4b = construct_forum_bit(40,1,0);
eval('$forumhome_markread_script = "' . fetch_template('forumhome_markread_script') . '";');

// ### BOARD STATISTICS #################################################

and here is my <!-- main --> <!-- /main-->



<!-- main -->


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

<!-- /Tabbed Forum Home Tabs Layout -->
<!-- Tabbed Forum Home – START Tab 1 Content Layout -->
<div id="tcontent1" class="tabcontent">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>

</thead>

<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_1111')"><img id="collapseimg_forumbit_1111" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=1">CATEGORY NAME</a></td>
</tr>
</tbody>

<tbody id="collapseobj_forumbit_1111" style="">
$forumbits1a
</tbody>

<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_4242')"><img id="collapseimg_forumbit_4242" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=42">CATEGORY NAME</a></td>
</tr>
</tbody>

<tbody id="collapseobj_forumbit_4242" style="">
$forumbits1b
</tbody>

<tbody>
<tr>
<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
<a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
<if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if>
</strong></div></td>
</tr>
</tbody>
</table>

$forumhome_markread_script

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





<!-- Tabbed Forum Home – START Tab 2 Content Layout -->
<div id="tcontent2" class="tabcontent">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>

</thead>

<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_6666')"><img id="collapseimg_forumbit_6666" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=66">CATEGORY NAME</a></td>
</tr>
</tbody>

<tbody id="collapseobj_forumbit_6666" style="">
$forumbits2a
</tbody>

<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_6161')"><img id="collapseimg_forumbit_6161" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=61">CATEGORY NAME</a></td>
</tr>
</tbody>

<tbody id="collapseobj_forumbit_6161" style="">
$forumbits2b
</tbody>
<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_2626')"><img id="collapseimg_forumbit_2626" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=26">CATEGORY NAME</a></td>
</tr>
</tbody>

<tbody id="collapseobj_forumbit_2626" style="">
$forumbits2c
</tbody>

<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_555')"><img id="collapseimg_forumbit_555" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=5">CATEGORY NAME</a></td>
</tr>
</tbody>

<tbody id="collapseobj_forumbit_555" style="">
$forumbits2d
</tbody>

<tbody>
<tr>
<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
<a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
<if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if>
</strong></div></td>
</tr>
</tbody>
</table>

$forumhome_markread_script

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




<!-- Tabbed Forum Home – START Tab 3 Content Layout -->
<div id="tcontent3" class="tabcontent">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>

</thead>

<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_99')"><img id="collapseimg_forumbit_99" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=6">CATEGORY NAME</a></td>
</tr>
</tbody>

<tbody id="collapseobj_forumbit_99" style="">
$forumbits3a
</tbody>

<tbody>
<tr>
<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
<a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
<if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if>
</strong></div></td>
</tr>
</tbody>
</table>

$forumhome_markread_script

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



<!-- Tabbed Forum Home – START Tab 4 Content Layout -->
<div id="tcontent4" class="tabcontent">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>

</thead>

<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_3636')"><img id="collapseimg_forumbit_3636" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=36">CATEGORY NAME</a></td>
</tr>
</tbody>

<tbody id="collapseobj_forumbit_3636" style="">
$forumbits4a
</tbody>

<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_4040')"><img id="collapseimg_forumbit_4040" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=40">CATEGORY NAME</a></td>
</tr>
</tbody>

<tbody id="collapseobj_forumbit_4040" style="">
$forumbits4b
</tbody>


<tbody>
<tr>
<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
<a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
<if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if>
</strong></div></td>
</tr>
</tbody>
</table>

$forumhome_markread_script

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

<!-- /main -->
<!-- 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 -->

What did i do wrong?

Edited: I fixed it. Thanks for a cool hack.

Hornstar
04-11-2008, 11:46 AM
My tab 1 is working, but tab 2 and tab 3 just display white under neath the tabs, no forums show up at all.

I used your code first, then modified it to my categories and names, but still just white.

Any idea what I may be missing?

bobster65
04-11-2008, 11:59 AM
My tab 1 is working, but tab 2 and tab 3 just display white under neath the tabs, no forums show up at all.

I used your code first, then modified it to my categories and names, but still just white.

Any idea what I may be missing?

Hey Matt, can you post your Code so I can take a look at it (You can PM me if you wish)..

bobster65
04-11-2008, 12:38 PM
Thanks! Great mod, installed and nominated.
One thing though...

For dynamically selecting a tab we're supposed to use
<a href="javascript:instance.expandit(1)">Select 2nd Tab</a>

What is exactly is the instance? How is it defined? and when you say tab# starting with 0, would the first one (0) be the one with the first tabbed link, the first one in the code itself, or tcontent1??

Thank you :cool:

To answer your first question, the instance is the var name in this chunk of script that you added in Step 16: (Bold Red)

<!-- 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 -->


So to further expand on this function: instance.expandit(tabid_or_position)

This method lets you dynamically select any tab based on either its ID attribute (you need to first assign one to that tab), or position relative to its peer tab links. The method can be called anywhere on the page, such as inside a link on the page.

Parameter:

tabid or position: Either a string representing the tab link's ID, or an integer corresponding to that tab's position relative to its peers, to select. For the later, the counting starts at 0 (ie: 0=Tab 1, 1=Tab 2, 2=Tab 3 and so on).

So to answer your question, 0=the first tab. tcontent1=the content of the tab itself, not the ID of the tab.

Example:

Based on the following sample tabs layout, I added a tab ID to Tab 2. You don't need to do this as you can also just call the position as well.

<ul id="forumtabs" class="shadetabs">
<li><a href="#" rel="tcontent1" class="selected">Tab 1</a></li>
<li><a href="#" rel="tcontent2" id="roses">Tab 2</a></li>
<li><a href="#" rel="tcontent3">Tab 3</a></li>
<li><a href="#" rel="tcontent4">Tab 4</a></li>
</ul>


Here are some examples of how the links can be used:

This one uses the position parameter:
<!--Selects 4TH tab within instance "myforumtabs" -->
<a href="javascript:myforumtabs.expandit(3)">Tab 4</a>


this one uses the tabid parameter:
<!--Selects tab with ID="roses" within instance "myforumtabs" -->
<a href="javascript:myforumtabs.expandit('roses')">Select "Roses" tab</a>


Hope that helped out and answered your questions..

Bobster

Big Boss
04-11-2008, 02:09 PM
Oh my God! I was looking for this mod as I've seen it on vBSEO and it's finally here. Thanks a lot for the release! :D

Any plans on porting this over to 3.7.x as well?

bobster65
04-11-2008, 02:10 PM
Oh my God! I was looking for this mod as I've seen it on vBSEO and it's finally here. Thanks a lot for the release! :D

Any plans on porting this over to 3.7.x as well?

Works fine with 3.7.x just not going to create a thread in the 3.7 forum until it goes gold :)

kollam003
04-11-2008, 04:44 PM
i'm fixed i'm not much into editing could you have a look and help me : www.indianprofits.com

tmiland
04-11-2008, 04:45 PM
Yo! :)
Is there any way to make the forum remember the collapse position?
Doesnt work now...

bobster65
04-11-2008, 04:57 PM
Yo! :)
Is there any way to make the forum remember the collapse position?
Doesnt work now...

you are correct.. I didn't even notice that (don't use the collapse feature much).. I'll have to look into it when I get time. Should be an easy fix tho. Thank you for pointing it out and its added to the list of "needs"

bobster65
04-11-2008, 04:58 PM
i'm fixed i'm not much into editing could you have a look and help me : www.indianprofits.com

What do you need help with?

tiekie
04-11-2008, 05:36 PM
just what i was looking for

heXagon
04-11-2008, 05:48 PM
One should keep in mind, that when javascript is turned off there won't be displayed any forums at all. Should have a workaround for that handy!

bobster65
04-11-2008, 06:00 PM
One should keep in mind, that when javascript is turned off there won't be displayed any forums at all. Should have a workaround for that handy!

There is a very simple work around. Use the child style created in the initial steps (1-4) so you have a Tabbed Style and a NON Tabbed Style. The edits to the index.php file won't effect the non tabbed styles on the site. This is what I do to give my members a choice. Some don't like the Tabbed Layout, others do and for those that don't have JS enabled, they also have a choice ;)

Discussions
04-11-2008, 06:03 PM
One should keep in mind, that when javascript is turned off there won't be displayed any forums at all. Should have a workaround for that handy!


I don't know many computer users who have Java turned off, or don't have Java installed at all. It has become a small issue though after Microsoft was forced to stop distributing Java with all operating systems.

Soonerdude
04-11-2008, 06:28 PM
I have a question about putting more than one category under a tab.

$forumbits2 = construct_forum_bit(13,1,0);

The instructions say the first number is the category number, what would I put if I wanted Category 13 and Category 14 to be in that same tab?

bobster65
04-11-2008, 06:34 PM
I have a question about putting more than one category under a tab.

$forumbits2 = construct_forum_bit(13,1,0);

The instructions say the first number is the category number, what would I put if I wanted Category 13 and Category 14 to be in that same tab?

Multiple categories can be under the same tab. You still need to construct a forum bit for each one tho.. so you would do something like

$forumbits2a = construct_forum_bit(13,1,0);
$forumbits2b = construct_forum_bit(14,1,0);

In the instructions document, Tab 3 Sample is set up to display multiple categories, so just take a look at that part of the setup :)

Our House
04-11-2008, 07:53 PM
Great job Bobster! *installed and looks nice*

Is there any way to use these tabs for individual forums also (instead of just categories)?

bobster65
04-11-2008, 08:07 PM
Great job Bobster! *installed and looks nice*

Is there any way to use these tabs for individual forums also (instead of just categories)?

what did you have in mind for individual forums?

Our House
04-11-2008, 10:25 PM
what did you have in mind for individual forums?Well...

I noticed that when I tried to add one (using the forumid of a singular forum in construct_forum_bit function call), nothing appeared in the forumbit display for that tab. I'm guessing that a threadbit needs to be built instead, right?

I tried using the variables that point to threads in a normal forumdisplay, but they probably aren't in the index.php file or plugged in to the forumhome templates.

CHIPIT
04-11-2008, 10:35 PM
SNIP
Bobster
Thank you very much!

bobster65
04-11-2008, 10:37 PM
Well...

I noticed that when I tried to add one (using the forumid of a singular forum in construct_forum_bit function call), nothing appeared in the forumbit display for that tab. I'm guessing that a threadbit needs to be built instead, right?

I tried using the variables that point to threads in a normal forumdisplay, but they probably aren't in the index.php file or plugged in to the forumhome templates.

Ya, I see what you are saying. That is something I have not tried yet. Maybe if I get some time next week I'll play around with it and see what I can come up with..

gwerzal
04-11-2008, 11:50 PM
This is a great mod but i cant get it working.

I have got it so the tabs are showing but i cant figure out at all how to add content to any of the tabs.

After adding the example 2nd tab content nothing shows up in that tab except an empty forum and i cant figure out how to configure it.

Sorry for being thick but have been messing around for hours trying to get this working.

My forum is getting big and messy now and this would really neaten it up so i really want to get it working.

If anybody can help me get it working it will be very much appreciated and if somebody wants to install it for me and get it how i want it i will be happy to pay them.

Thanks in advance
Ben

kollam003
04-12-2008, 09:39 AM
friend

i need seven tabs the forum category are Tab . 1 . home, tab 2 : cat 25, tab3 : cat 30 , tab4 : 28 , tab 5 : 27, tab 6 : 29 , tab7 :26 , i need the tabs to look like as the first one in your demo forums ,

i'm placing the index php code :

// Construct Tabbed Forum Home forumbits
// Category for Tab 2, pulls forum and sub form data from Category (Forum ID 1)
$forumbits2 = construct_forum_bit(25,1,0);
// Category 1 for Tab 3
$forumbits3a = construct_forum_bit(30,1,0);
// Category 2 for Tab 4
$forumbits3b = construct_forum_bit(28,1,0);
// Category 3 for Tab 5
$forumbits3c = construct_forum_bit(27,1,0);

eval('$forumhome_markread_script = "' . fetch_template('forumhome_markread_script') . '";');




and this is the Forum Main code :

<!-- main -->


<!-- Tabbed Forum Home Tabs Layout -->
<ul id="forumtabs" class="shadetabs">
<li><a href="#" rel="tcontent1" class="selected">Home</a></li>
<li><a href="#" rel="tcontent2">Free Calls</a></li>
<li><a href="#" rel="tcontent3">Premium Section</a></li>
<li><a href="#" rel="tcontent4">IPO</a></li>
<li><a href="#" rel="tcontent5">General</a></li>
<li><a href="#" rel="tcontent6">Markets</a></li>
<li><a href="#" rel="tcontent7">Ask Us</a></li>
</ul>

<!-- /Tabbed Forum Home Tabs Layout -->
<!-- Tabbed Forum Home ? START Tab 1 Content Layout -->
<div id="tcontent1" class="tabcontent">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>

$forumbits

<tbody>
<tr>
<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a><if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if></strong></div></td>
</tr>
</tbody>
</table>

$forumhome_markread_script

</div>
<!-- /Tabbed Forum Home ? END Tab 1 Content Layout -->

<!-- Tabbed Forum Home ? START Tab 2 Content Layout -->
<div id="tcontent2" class="tabcontent">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>

<tbody>
<tr>
<td class="tcat" colspan="5"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_66')"><img id="collapseimg_forumbit_66" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=25">Free Calls</a></td>
</tr>
</tbody>

<tbody id="collapseobj_forumbit_66" style="">
$forumbits2
</tbody>

<tbody>
<tr>
<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a><if condition="$vboptions['forumleaders']">&nbsp; &nbsp;<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if></strong></div></td>
</tr>
</tbody>
</table>

$forumhome_markread_script

</div>
<!-- /Tabbed Forum Home ? END Tab 2 Content Layout -->

<!-- Tabbed Forum Home ? START Tab 3 Content Layout -->
<div id="tcontent3" class="tabcontent">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>

<tbody>
<tr>
<td class="tcat" colspan="5"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_808')"><img id="collapseimg_forumbit_808" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=30">Premium</a></td>
</tr>
</tbody>

<tbody id="collapseobj_forumbit_808" style="">
$forumbits3
</tbody>

<tbody>
<tr>
<td class="tcat" colspan="5"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_55')"><img id="collapseimg_forumbit_55" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=5">CATEGORY NAME</a></td>
</tr>
</tbody>

<tbody id="collapseobj_forumbit_55" style="">
$forumbits4
</tbody>

<tbody>
<tr>
<td class="tcat" colspan="5"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_33')"><img id="collapseimg_forumbit_33" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=3">CATEGORY NAME</a></td>
</tr>
</tbody>

<tbody id="collapseobj_forumbit_33" style="">
$forumbits5
</tbody>

<tbody>
<tr>
<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
<a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
<if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if>
</strong></div></td>
</tr>
</tbody>
</table>

$forumhome_markread_script

</div>
<!-- /Tabbed Forum Home ? END Tab 3 Content Layout -->

<!-- /main -->


<!-- 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 -->




Please correct it accordingly as it would be of great help since i'm too bad in coding these .....

bobster65
04-12-2008, 12:24 PM
friend

i need seven tabs the forum category are Tab . 1 . home, tab 2 : cat 25, tab3 : cat 30 , tab4 : 28 , tab 5 : 27, tab 6 : 29 , tab7 :26 , i need the tabs to look like as the first one in your demo forums ,

Please correct it accordingly as it would be of great help since i'm too bad in coding these .....

I had a few minutes this am to help you out... Here ya go.

// Construct Tabbed Forum Home forumbits (pulls forum and sub form data from Category)

$forumbits2 = construct_forum_bit(25,1,0); // Category 25 for Tab 2
$forumbits3 = construct_forum_bit(30,1,0); // Category 30 for Tab 3
$forumbits4 = construct_forum_bit(28,1,0); // Category 28 for Tab 4
$forumbits5 = construct_forum_bit(27,1,0); // Category 27 for Tab 5
$forumbits6 = construct_forum_bit(29,1,0); // Category 29 for Tab 6
$forumbits7 = construct_forum_bit(26,1,0); // Category 26 for Tab 7

eval('$forumhome_markread_script = "' . fetch_template('forumhome_markread_script')


<!-- main -->

<!-- Tabbed Forum Home Tabs Layout -->
<ul id="forumtabs" class="shadetabs">
<li><a href="#" rel="tcontent1" class="selected">Home</a></li>
<li><a href="#" rel="tcontent2">Free Calls</a></li>
<li><a href="#" rel="tcontent3">Premium Section</a></li>
<li><a href="#" rel="tcontent4">IPO</a></li>
<li><a href="#" rel="tcontent5">General</a></li>
<li><a href="#" rel="tcontent6">Markets</a></li>
<li><a href="#" rel="tcontent7">Ask Us</a></li>
</ul>
<!-- /Tabbed Forum Home Tabs Layout -->


<!-- Tabbed Forum Home ? START Tab 1 Content Layout -->
<div id="tcontent1" class="tabcontent">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>

$forumbits

<tbody>
<tr>
<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a><if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if></strong></div></td>
</tr>
</tbody>
</table>

$forumhome_markread_script

</div>
<!-- /Tabbed Forum Home ? END Tab 1 Content Layout -->

<!-- Tabbed Forum Home ? START Tab 2 Content Layout -->
<div id="tcontent2" class="tabcontent">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>
<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_2525')"><img id="collapseimg_forumbit_2525" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=25">Free Calls</a></td>
</tr>
</tbody>
<tbody id="collapseobj_forumbit_2525" style="">
$forumbits2
</tbody>
<tbody>
<tr>
<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a><if condition="$vboptions['forumleaders']">&nbsp; &nbsp;<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if></strong></div></td>
</tr>
</tbody>
</table>
$forumhome_markread_script
</div>
<!-- /Tabbed Forum Home ? END Tab 2 Content Layout -->



<!-- Tabbed Forum Home ? START Tab 3 Content Layout -->
<div id="tcontent3" class="tabcontent">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>
<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_3030')"><img id="collapseimg_forumbit_3030" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=30">Premium Section</a></td>
</tr>
</tbody>
<tbody id="collapseobj_forumbit_3030" style="">
$forumbits3
</tbody>
<tbody>
<tr>
<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a><if condition="$vboptions['forumleaders']">&nbsp; &nbsp;<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if></strong></div></td>
</tr>
</tbody>
</table>
$forumhome_markread_script
</div>
<!-- /Tabbed Forum Home ? END Tab 3 Content Layout -->




<!-- Tabbed Forum Home ? START Tab 4 Content Layout -->
<div id="tcontent4" class="tabcontent">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>
<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_2828')"><img id="collapseimg_forumbit_2828" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=28">IPO</a></td>
</tr>
</tbody>
<tbody id="collapseobj_forumbit_2828" style="">
$forumbits4
</tbody>
<tbody>
<tr>
<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a><if condition="$vboptions['forumleaders']">&nbsp; &nbsp;<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if></strong></div></td>
</tr>
</tbody>
</table>
$forumhome_markread_script
</div>
<!-- /Tabbed Forum Home ? END Tab 4 Content Layout -->



<!-- Tabbed Forum Home ? START Tab 5 Content Layout -->
<div id="tcontent5" class="tabcontent">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>
<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_2727')"><img id="collapseimg_forumbit_2727" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=25">General</a></td>
</tr>
</tbody>
<tbody id="collapseobj_forumbit_2727" style="">
$forumbits5
</tbody>
<tbody>
<tr>
<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a><if condition="$vboptions['forumleaders']">&nbsp; &nbsp;<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if></strong></div></td>
</tr>
</tbody>
</table>
$forumhome_markread_script
</div>
<!-- /Tabbed Forum Home ? END Tab 5 Content Layout -->




<!-- Tabbed Forum Home ? START Tab 6 Content Layout -->
<div id="tcontent6" class="tabcontent">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>
<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_2929')"><img id="collapseimg_forumbit_2929" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=25">Markets</a></td>
</tr>
</tbody>
<tbody id="collapseobj_forumbit_2929" style="">
$forumbits6
</tbody>
<tbody>
<tr>
<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a><if condition="$vboptions['forumleaders']">&nbsp; &nbsp;<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if></strong></div></td>
</tr>
</tbody>
</table>
$forumhome_markread_script
</div>
<!-- /Tabbed Forum Home ? END Tab 6 Content Layout -->



<!-- Tabbed Forum Home ? START Tab 7 Content Layout -->
<div id="tcontent7" class="tabcontent">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>
<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_2626')"><img id="collapseimg_forumbit_2626" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=25">Ask Us</a></td>
</tr>
</tbody>
<tbody id="collapseobj_forumbit_2626" style="">
$forumbits7
</tbody>
<tbody>
<tr>
<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a><if condition="$vboptions['forumleaders']">&nbsp; &nbsp;<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if></strong></div></td>
</tr>
</tbody>
</table>
$forumhome_markread_script
</div>
<!-- /Tabbed Forum Home ? END Tab 7 Content Layout -->





<!-- /main -->


<!-- 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 -->

kollam003
04-12-2008, 04:12 PM
I thank you very much for this help i nominate this Mod as the Mod of the month ,

one more small request its showing as lines only instead of tabs how can i correct that ?

i thank you once again

bobster65
04-12-2008, 04:16 PM
I thank you very much for this help i nominate this Mod as the Mod of the month ,

one more small request its showing as lines only instead of tabs how can i correct that ?

i thank you once again

make sure the paths to the .js and .css files are correct. If you want, send me a link to your site and I can check it out (PM me). I'll be on and off all day long, so it might take me a bit to respond :)

kollam003
04-12-2008, 04:34 PM
i have send u a PM when u have the time take a look

tmiland
04-12-2008, 10:37 PM
you are correct.. I didn't even notice that (don't use the collapse feature much).. I'll have to look into it when I get time. Should be an easy fix tho. Thank you for pointing it out and its added to the list of "needs"

No problem :)
Looks like my members use it very much, just complaining it doesnt work :erm:

Awaiting fix :D

gwerzal
04-13-2008, 02:06 PM
This is a great mod but i cant get it working.

I have got it so the tabs are showing but i cant figure out at all how to add content to any of the tabs.

After adding the example 2nd tab content nothing shows up in that tab except an empty forum and i cant figure out how to configure it.

Sorry for being thick but have been messing around for hours trying to get this working.

My forum is getting big and messy now and this would really neaten it up so i really want to get it working.

If anybody can help me get it working it will be very much appreciated and if somebody wants to install it for me and get it how i want it i will be happy to pay them.

Thanks in advance
Ben

Could anyone please help me get this working

Like il say il quite happily pay someone. Its mostly set up just needs configuring.

Our House
04-13-2008, 04:12 PM
Sounds like a simple problem with the $forumbits variables either:

a) named incorrectly in your FORUMHOME template

or

b) missing definitions in your index.php file

PM me if that doesn't solve it.

bobster65
04-13-2008, 06:26 PM
i have send u a PM when u have the time take a look

Problem solved :up: .css URL didn't have the correct path to the file

noj75
04-14-2008, 01:33 AM
Absolutely fantastic mod. Great work!

installed and worked like a charm. Thanks for your time and effort with this.

A happy customer!

ams3521
04-14-2008, 04:45 AM
Heh heh heh this looks great. Nice work bobster thanks. Glad to see folks sorting out their problems for themselves but it would be even better if they told us how they did it as i just know i'm gonna have the same probs when i install this bad boy.

1 question before install if i may. Can i still have my normal forum home as it is and when someone clicks A TAB it shows the forums in A TAB of my forum along with loads of new forums that are just on the click of A TAB?

sorry i tried to make that sound sense. Basically i want to add load more forums to a section of my forum but i also need to leave some forums in that section showing as normal on my Forum Home as the users of these forums will not like to have their forum 'demoted' to being off the forum home and on some new flashy tab button.

thanks

indie2industry
04-14-2008, 08:39 AM
How do you stop the board from jumping to the top every time you click a tab???

*edit* Nevermind, I'm an idiot. lol

indie2industry
04-14-2008, 10:28 AM
Ok, installed..... Loving the sh*t out of this, But I have an error I can't seem to fix. It seems like my moderator,thread, view, & post got shifted somehow...

How do I re-align these columns???

bobster65
04-14-2008, 12:21 PM
Ok, installed..... Loving the sh*t out of this, But I have an error I can't seem to fix. It seems like my moderator,thread, view, & post got shifted somehow...

How do I re-align these columns???

Can you post your FORUMHOME Template and I'll take a look it. Looks like a simple fix.

bobster65
04-14-2008, 12:25 PM
Heh heh heh this looks great. Nice work bobster thanks. Glad to see folks sorting out their problems for themselves but it would be even better if they told us how they did it as i just know i'm gonna have the same probs when i install this bad boy.

1 question before install if i may. Can i still have my normal forum home as it is and when someone clicks A TAB it shows the forums in A TAB of my forum along with loads of new forums that are just on the click of A TAB?

sorry i tried to make that sound sense. Basically i want to add load more forums to a section of my forum but i also need to leave some forums in that section showing as normal on my Forum Home as the users of these forums will not like to have their forum 'demoted' to being off the forum home and on some new flashy tab button.

thanks

You can have the same category on different tabs if thats what you are asking..

ie..
tab 1 could be category 1, 2, 3, 4, 5, 6
tab 2 could be category 1,2, 9, 15
tab 3 could be category 1,2, 10, 16
tab 4 could be category 1,2, 11, 17, 20
tab 5 could be category 1,2, 21

Hope that is what you were asking...

indie2industry
04-14-2008, 12:47 PM
Can you post your FORUMHOME Template and I'll take a look it. Looks like a simple fix.

I guess it's too long to post in a thread. I put it in a text file.

bobster65
04-14-2008, 01:57 PM
I guess it's too long to post in a thread. I put it in a text file.

ah, I should have saw it right off the image you posted... custom style that is different colspan than default vb and most custom styles..

Default vB is a colspan of 5 (or 6 with moderator column) ... your style takes the column that normally is "Last Post" and puts it in a DIV within the "forum" column, so your custom style is a colspan of 4 ( or 5 with moderator column) ..

so what you need to do is take out the "last Post" column in this chunk of code (BOLD RED).. This chunk is the first bit of code for each tab, so you will have to find it for all 6 of your tabs..

<thead>
<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>

THEN in all your tbody chunks (all of them)... you are going to have to change the colspan numbers.. Change all the 6's to 5's and all the 5's to 4's (The numbers are in RED

<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_11')"><img id="collapseimg_forumbit_11" src="images/solido/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=1">Indie 2 Industry General Forum</a></td>
</tr>
</tbody>

indie2industry
04-14-2008, 03:03 PM
You sir, are a genius...

I have some $$$ coming in soon. I'll be donating to EVERYONE who I've installed a mod from. YOU are DEFINITELY on the list.

Thank you so much

Hasann
04-14-2008, 03:09 PM
thank you it's working fine with 3.7.x
http://www.vbulletin-turkey.com/forum/

kollam003
04-14-2008, 03:38 PM
Problem solved :up: .css URL didn't have the correct path to the file



Its really a fantastic mod and i appericate him for his help at times of need .

Thanks

noj75
04-14-2008, 04:12 PM
Hi again,

Just one thing (without trying to sound like an ingrate as this mod is excellent) but if you were to leave the webpage on your forumhome for a while and then click into one of the tabs on a specific forum you would not be able to see if there are any new posts as the page is not actually refreshed. Even if you were to click into another tab from there, I have tested it and my new posts do not show up unless I refresh the pages.

Does this make sense? If so is there a work around for this?

Sorry to be a moaner!

Regards

Endurer
04-14-2008, 05:45 PM
Thanks, I will be installing it at the board tonight.

bobster65
04-14-2008, 06:03 PM
Hi again,

Just one thing (without trying to sound like an ingrate as this mod is excellent) but if you were to leave the webpage on your forumhome for a while and then click into one of the tabs on a specific forum you would not be able to see if there are any new posts as the page is not actually refreshed. Even if you were to click into another tab from there, I have tested it and my new posts do not show up unless I refresh the pages.

Does this make sense? If so is there a work around for this?

Sorry to be a moaner!

Regards

the next version will be ajax ;)

carubmun
04-14-2008, 07:20 PM
the next version will be ajax ;)I hate myself for asking this question....
Next version, we talking bout weeks or months away?

Reason being is that this mod is fantastic work and im sure many would like to install it now.
BUT... it is a bit of work for those less experienced (but still game) users, and knowing that there is a bigger badder better version on its way soon... has some of us thinking that maybe the prudent course of action is to wait.
BUT.... waiting is hard when there is already something this nice that is ready to go.

Bah... i hate myself already, i knew i would.

Just answer by saying that its going to be done when its ready like the people at Valve.
:D

bobster65
04-14-2008, 07:32 PM
I hate myself for asking this question....
Next version, we talking bout weeks or months away?

Reason being is that this mod is fantastic work and im sure many would like to install it now.
BUT... it is a bit of work for those less experienced (but still game) users, and knowing that there is a bigger badder better version on its way soon... has some of us thinking that maybe the prudent course of action is to wait.
BUT.... waiting is hard when there is already something this nice that is ready to go.

Bah... i hate myself already, i knew i would.

Just answer by saying that its going to be done when its ready like the people at Valve.
:D

eh, not going to blow smoke up your ass lol.. I've not started on it and I won't start on it until I have free time (Family and Job comes first) ... I do have a 2nd version in the "planning stage" (meaning that I have a white board with notes on it). A lot of decisions have to be made on whether I want to continue using the current .js or convert to the YUI (since that is what vB uses for the Profile Tabs) .. So its not like version 2 will be released in the next couple weeks.... of course, I will update this version if need be, so don't worry bout that..

carubmun
04-14-2008, 08:00 PM
the next version will be ajax ;)I hate myself for asking this question....
Next version, we talking bout weeks or months away?

Reason being is that this mod is fantastic work and im sure many would like to install it now.
BUT... it is a bit of work for those less experienced (but still game) users, and knowing that there is a bigger badder better version on its way soon... has some of us thinking that maybe the prudent course of action is to wait.
BUT.... waiting is hard when there is already something this nice that is ready to go.

Bah... i hate myself already, i knew i would.

Just answer by saying that its going to be done when its ready like the people at Valve.
:D

noj75
04-15-2008, 06:05 AM
the next version will be ajax ;)

Thanks for the info Bobster, Looking forward to it. This really is a great mod and probably the most useful I have found since using VB boards. If it wasnt for the refresh issue it would be the perfect mod. (so, I will blow smoke up your ass) Great work mate! Cheers. :up:

viganothing
04-15-2008, 07:29 AM
Hey thanks for the uber mod
i have a question .
How can i remove the categories that were previosly used on tab1 and now i integrated em to tab2
i dont want 2 same categories showing on both tabs
thanks in advance

bobster65
04-15-2008, 03:00 PM
Hey thanks for the uber mod
i have a question .
How can i remove the categories that were previosly used on tab1 and now i integrated em to tab2
i dont want 2 same categories showing on both tabs
thanks in advance

Each tab uses the forumbits variables that you created and added to the index.php file. You can create as many as you like and use them on whatever tab you like. Does that make sense and help you out? I am available via PM if you want to discuss offline..

katan
04-15-2008, 04:56 PM
Thank you and very good idea this mod!

shaynehammy
04-17-2008, 02:35 AM
Nominated for MOTM. Awesome stuff.

ams3521
04-18-2008, 03:57 AM
You can have the same category on different tabs if thats what you are asking..

ie..
tab 1 could be category 1, 2, 3, 4, 5, 6
tab 2 could be category 1,2, 9, 15
tab 3 could be category 1,2, 10, 16
tab 4 could be category 1,2, 11, 17, 20
tab 5 could be category 1,2, 21

Hope that is what you were asking...

Thanks bobster that will do for me. I will get my vb man on the case. I want this installed and i want it installed NOW lol

bobster65
04-18-2008, 04:09 AM
Thanks bobster that will do for me. I will get my vb man on the case. I want this installed and i want it installed NOW lol

Cool Beans :cool: let me know how it goes

Basit
04-18-2008, 10:27 PM
for some reasons I am getting following error message on step 4.


Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/*****/public_html/urdu/index_tab.php on line 543

Parse error: syntax error, unexpected $end, expecting ')' in /home/*****/public_html/urdu/index_tab.php on line 543


url is :http://www.hallagulla.com/urdu
error location is: http://www.hallagulla.com/urdu/index_tab.php

Your help is much appreciated.

Regards,

bobster65
04-18-2008, 11:01 PM
for some reasons I am getting following error message on step 4.


Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/*****/public_html/urdu/index_tab.php on line 543

Parse error: syntax error, unexpected $end, expecting ')' in /home/*****/public_html/urdu/index_tab.php on line 543


url is :http://www.hallagulla.com/urdu
error location is: http://www.hallagulla.com/urdu/index_tab.php

Your help is much appreciated.

Regards,


Hey Bud ... can you PM me your index_tab.php file please so I can take a look at it?

Thank you..

Bob

MarsNIIT
04-19-2008, 01:04 PM
Hello,

Please help me check why my Last post, Threads, Posts not display.

http://forums.2it.in/index.php?styleid=16&langid=1 << my forum


Thanks

bobster65
04-19-2008, 01:45 PM
Hello,

Please help me check why my Last post, Threads, Posts not display.

http://forums.2it.in/index.php?styleid=16&langid=1 << my forum

Thanks

Can you please zip up your index.php file and your FORUMHOME Template and post so that I can see the code. You have more than one thing not working and in order to troubleshoot, you need to make sure the basics are all working correctly first.

MarsNIIT
04-19-2008, 01:52 PM
Hello,

Thank for fast reply.

Please help me check attach file

Thanks

bobster65
04-19-2008, 02:32 PM
Hello,

Thank for fast reply.

Please help me check attach file

Thanks

ok, the problem with the 2nd tab is that those are not Categories, but Sub Forums that you are trying to pull.. you are going to have to edit the $FORUMBITS variable that you set up in the index.php file and change the values ..

ie $forumbits2a = construct_forum_bit(136,1,0);

If its not a category, just put in the FORUMID leaving out the 2 other values..

ie $forumbits2a = construct_forum_bit(136);

Give that a try and it SHOULD display the rest of the data correctly.. if not, try and change the other numbers .. ie (136,0,0) or (136,1,1) or (136,2,0) just do it for ONE of them while testing until you get the desired results.

As far as Tab 3... you don't have the code for tab 3 setup yet and without this, it effects the other two tabs displays. Simply add the code for tab 3 and the functionality of the tabs will work as they should..

MarsNIIT
04-19-2008, 02:45 PM
Hello,

problem with the 2nd tab:

- those are Categories, check here: http://forums.2it.in/forumdisplay.php?f=135

- I try as you tell but this problem not sloved :(

when i use vbb 3.6.8, this mod run good, but when i upgrade to 3.7CR3, it has problem.

Thanks

bobster65
04-19-2008, 03:45 PM
Hello,

problem with the 2nd tab:

- those are Categories, check here: http://forums.2it.in/forumdisplay.php?f=135

- I try as you tell but this problem not sloved :(

when i use vbb 3.6.8, this mod run good, but when i upgrade to 3.7CR3, it has problem.

Thanks

I might have to take a look at your site... I'll send you a PM :)

netcommander
04-20-2008, 10:11 AM
can anybody use with vbseo ?

dreads
04-22-2008, 03:38 AM
Ran into a problem?
Thats what my forumhome looks like.. so when i put in the codes u said.. it doesnt seem to work out?
So what should i do?

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>

<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
$headinclude
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>


<!-- Tabbed Forum Home Header Code -->
<link rel="stylesheet" type="text/css" href="http://www.g4hq.com/tabs/tabcontent.css" />
<script type="text/javascript" src="http://www.g4hq.com/tabs/tabcontent.js"> </script>
<!-- /Tabbed Forum Home Header Code -->

</head>
<body>
$header
$navbar

<!-- main -->
<!-- Tabbed Forum Home Tabs Layout -->
<ul id="forumtabs" class="shadetabs">
<li><a href="#" rel="tcontent1" class="selected">Tab 1 Name</a></li>
<li><a href="#" rel="tcontent2">Tab 2 Name</a></li>
<li><a href="#" rel="tcontent3">Tab 3 Name</a></li>
</ul>
<!-- /Tabbed Forum Home Tabs Layout -->

<!-- Tabbed Forum Home ? START Tab 1 Content Layout -->
<div id="tcontent1" class="tabcontent">

<if condition="$show['guest']">
<!-- guest welcome message -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
</tr>
<tr>
<td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
<phrase 1="faq.php$session[sessionurl_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>
</td>
</tr>
</table>
<!-- / guest welcome message -->

<!-- /main -->

<!-- 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 -->

<br />
</if>

<div id="fhomeright">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr><td class="aboxhead">MiniCP</td></tr>
<tr><td class="alt1"><div align="left">
<p>Under Construction</p>
</div></td></tr>
</table>

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr><td class="aboxhead">Your Quick Links</td></tr>
<tr><td class="alt1"><div align="center">
<a href="http://www.g4hq.com/">G4HQ.com</a>
</div></td></tr>
</table>


<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr><td class="aboxhead">Advertisement</td></tr>
<tr><td class="alt1"><div align="center">
<!-- Begin: AdBrite -->
<script type="text/javascript">
var AdBrite_Title_Color = '000000';
var AdBrite_Text_Color = '000000';
var AdBrite_Background_Color = 'FFFFFF';
var AdBrite_Border_Color = 'FFFFFF';
var AdBrite_URL_Color = '000000';
</script>
<script src="http://ads.adbrite.com/mb/text_group.php?sid=654110&zs=3136305f363030" type="text/javascript"></script>
<!-- End: AdBrite -->
</div></td></tr>
</table>
</div>
<div id="fhomeleft">

$forumbits
$forumhome_markread_script


</div>
<!-- /Tabbed Forum Home ? END Tab 1 Content Layout -->

<!-- Tabbed Forum Home ? START Tab 2 Content Layout -->
<div id="tcontent2" class="tabcontent">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>

<!-- CUSTOM tbody CODE BASED ON YOUR STYLE -->
<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_66')"><img id="collapseimg_forumbit_66" src="images/solido/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=6">CATEGORY NAME</a></td>
</tr>
</tbody>

<tbody id="collapseobj_forumbit_66" style="">
$forumbits2
</tbody>
<!-- /CUSTOM tbody CODE BASED ON YOUR STYLE -->


<tbody>
<tr>
<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a><if condition="$vboptions['forumleaders']">&nbsp; &nbsp;<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if></strong></div></td>
</tr>
</tbody>
</table>

$forumhome_markread_script

</div>
<!-- /Tabbed Forum Home ? END Tab 2 Content Layout -->
</div>

<!-- what's going on box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
</tr>
</thead>
<if condition="$show['loggedinusers']">
<!-- logged-in users -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
<a href="online.php$session[sessionurl_q]" rel="nofollow">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
<tr>
<td class="alt2"><a href="online.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
<td class="alt1" width="100%">
<div class="smallfont">
<div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
<div>$activeusers</div>
</div>
</td>
</tr>
</tbody>
<!-- end logged-in users -->
</if>
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
<tr>
<td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
<td class="alt1" width="100%">
<div class="smallfont">
<div>
$vbphrase[threads]: $totalthreads,
$vbphrase[posts]: $totalposts,
$vbphrase[members]: $numbermembers<if condition="$show['activemembers']">,
<span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
</if>
</div>
<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
</div>
</td>
</tr>
</tbody>
<if condition="$show['birthdays']">
<!-- today's birthdays -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
$vbphrase[todays_birthdays]
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
<tr>
<td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]" border="0" /></a></td>
<td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
</tr>
</tbody>
<!-- end today's birthdays -->
</if>
<if condition="$show['upcomingevents']">
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
<if condition="$show['todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
<tr>
<td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
<td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
</tr>
</tbody>
</if>
</table>
<br />
<!-- end what's going on box -->

<!-- icons and login code -->
<table cellpadding="6" cellspacing="1" border="0" class="tborder" width="100%" style="text-align: center;">
<tr>
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
<td class="alt2 smallfont">&nbsp; $vbphrase[forum_contains_new_posts]</td>
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
<td class="alt2 smallfont">&nbsp; $vbphrase[forum_contains_no_new_posts]</td>
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
<td class="alt2 smallfont">&nbsp; $vbphrase[forum_is_closed_for_posting]</td>
</tr>
</table>
<if condition="!$show['guest']">
<!-- member logout -->
<td align="$stylevar[right]"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>
<!-- end member logout -->
</if>
</tr>
</table>
<!-- / icons and login code -->

$footer
</body>
</html>

kushal
04-22-2008, 03:46 AM
I have forum which is hidden from public and only available for team members, however, forum does show up though it cannot be opened. Is there a way to stop private forum from showing up?

Check up:
http://www.rtiindia.org/forum/

gwerzal
04-23-2008, 11:26 AM
If anybody has got this working and could spend 10 minutes helping me configure it it will be very very much appreciated.

I have spent far too much time trying to get it running now.

I have got it installed and the tabs showing i just can't figure out how to configure it to show what i want.

I will quite happily pay someone to help me as i really want to get this working.

Thanks in advance
Ben Jones

gwerzal
04-23-2008, 12:13 PM
Woop woop think i might have just figured it out.

kushal
04-23-2008, 12:29 PM
@gwerzal,
I didn't saw your second Post... PM already sent. Never Mind :)

Regards,

gwerzal
04-23-2008, 12:46 PM
Got it working at http://www.cashloopholes if anybody wants to take a look

Was stressin me out trying to install it. Soz for pestering you bobster.

I think this is a really good mod and im nominating it for mod of the month.


Would it be able to pull information up in a tab which isnt one of the forum pages. For example would it be able to display my download2 section in one of the tabs.

bobster65
04-23-2008, 01:13 PM
Got it working at http://www.cashloopholes if anybody wants to take a look

Was stressin me out trying to install it. Soz for pestering you bobster.

I think this is a really good mod and im nominating it for mod of the month.


Would it be able to pull information up in a tab which isnt one of the forum pages. For example would it be able to display my download2 section in one of the tabs.

No worries, you were not pestering me ;) Glad you got it working, was just going to take a look at it.

Yes, you can use it to pull info other than Forums (there are multiple ways to do this). I don't have any specific examples YET, but it is very doable.

bobster65
04-23-2008, 01:20 PM
can anybody use with vbseo ?

I've not had any issues so far..... if anyone find an issue, let me know and we'll try and get it resolved.

kushal
04-23-2008, 01:34 PM
I have forum which is hidden from public and only available for team members, however, forum does show up though it cannot be opened. Is there a way to stop private forum from showing up?

Check up:
http://www.rtiindia.org/forum/

No issues with VBSEO, things are ok with it. Though I have issue with keeping private forum private with Tabs

bobster65
04-23-2008, 01:45 PM
Ran into a problem?
Thats what my forumhome looks like.. so when i put in the codes u said.. it doesnt seem to work out?
So what should i do?


Well, you have a lot of the code misplaced and out of order. I would start over and follow the install steps correctly making sure you place the key blocks of code where they are supposed to go.

bobster65
04-23-2008, 01:46 PM
No issues with VBSEO, things are ok with it. Though I have issue with keeping private forum private with Tabs

What is the issue with the private forum?

kushal
04-23-2008, 01:56 PM
The tabs shows up the private forum category, though forums inside it are not visible.

I guess, the tab itself should be invisible for members not allowed access to it.

Even if I put the Private forums inside the already existing tab, the header category still shows up.

To see what I mean kindly visit the site here http://www.rtiindia.org/forum/ and see that you can see the private forum named 'RTI team'.

I have kept the child forum without tabs, and here they are not visible to guests..

bobster65
04-23-2008, 02:10 PM
The tabs shows up the private forum category, though forums inside it are not visible.

I guess, the tab itself should be invisible for members not allowed access to it.

Even if I put the Private forums inside the already existing tab, the header category still shows up.

To see what I mean kindly visit the site here http://www.rtiindia.org/forum/ and see that you can see the private forum named 'RTI team'.

I have kept the child forum without tabs, and here they are not visible to guests..

Ah, I see what you are talking about. One way to fix that is to wrap the block of code in the template (for that specific forum) with an IF statement so that it only displays for the specific user groups.

MarsNIIT
04-23-2008, 03:19 PM
Hello bobster65,

Can you check your pm??

Thanks.

RawTaLenT
04-23-2008, 04:23 PM
can the first tab be edited? i can edit all the tabs accpet that one!

the firs tab still shows my whole forum and when ppl come ot the site i just want them to see one section and so on.
is this possible?

bobster65
04-23-2008, 05:27 PM
can the first tab be edited? i can edit all the tabs accpet that one!

the firs tab still shows my whole forum and when ppl come ot the site i just want them to see one section and so on.
is this possible?

yes, tab one can be anything you want.... just replace the tab one block of code with the same code you use to create the other tabs.... everything in the install doc is simply examples of what you can do... feel free to modify it to your personal needs :cool:

bobster65
04-23-2008, 05:29 PM
Hello bobster65,

Can you check your pm??

Thanks.

I read it.. just have not had time yet to check it out yet.. will check it out later today and reply to you :cool:

kushal
04-23-2008, 06:03 PM
Ah, I see what you are talking about. One way to fix that is to wrap the block of code in the template (for that specific forum) with an IF statement so that it only displays for the specific user groups.

Yes, I think that was the only solution as of now. Any member facing that kindly use this to wrap around with if statement

<if condition="is_member_of($vbulletin->userinfo, 5,6,)">

bobster65
04-23-2008, 06:20 PM
Yes, I think that was the only solution as of now. Any member facing that kindly use this to wrap around with if statement

<if condition="is_member_of($vbulletin->userinfo, 5,6,)">

This will also work for hiding the entire TAB as well ... I do this with my STAFF tab ;)

ams3521
04-24-2008, 12:31 AM
Great stuff bobster I got my man onto it and it was a big old brute to get in but it's well worth the effort if you want a great looking forum. Much appreciated. Prob is my main man has gone to bed and im trying to sell the idea of the tabs to my forum members. I never installed it but i know a wee bit about template changing etc. My problem is as 3 othe folks was on this thread

Any ideas how to stop it jumping back to the top of the page when you select a tab?

edit: figured it out - what kind of load increase will this hack cause?

they all sussed it out but they never told us how. Can anyone tell me what i should do to make that happen before everyone calls me a 'meddling git' on my forum? thanks

indie2industry
04-24-2008, 01:16 AM
Great stuff bobster I got my man onto it and it was a big old brute to get in but it's well worth the effort if you want a great looking forum. Much appreciated. Prob is my main man has gone to bed and im trying to sell the idea of the tabs to my forum members. I never installed it but i know a wee bit about template changing etc. My problem is as 3 othe folks was on this thread


they all sussed it out but they never told us how. Can anyone tell me what i should do to make that happen before everyone calls me a 'meddling git' on my forum? thanks

Its kinda simple.
When using this mod, it'll continue to jump until you have completed ALL OF THE TABS you what done. THEN, it's stops jumping.

If you complete your tabs and it still jumps, look over your steps again. More than likely there's a minor error somewhere.

ams3521
04-24-2008, 02:13 AM
ahhhh brilliant indie thanks. thats saved me a lot of fiddling about and breaking it. I will just leave it to him then and let my forum memebers continue to think it's not as great as i made out to them. I havent even changed the css yet so its pretty ugly still (in relation to my forum) and i ve really got them fearing the worse. I'll get all the forums into the order that they need to be displayed in, try that css again and when my mate sorts it in the morning they can all say 'i was wrong and you were right AGAIN. It is pretty neat. Nice one' and i will go to bed with a contented smile as i leave them all to explore the new nooks and crannies.

Sorry i got a bit carried away there indie. NOOB QUESTION time if i may. In the tabcontent.css file i get the message '######### CSS for Shade Tabs. Remove if not using ######### *' and im presuming that there is 3 differant css 'thjngies' there for me to pick? I just want one of them? so i remove everying from that title on the 2nd one to the end of the file? When i do the TABS go Text Link and from top to bottom. Is the solution to what i am doing wrong a quick fix anyone?

thanks again and of course i will make a rare visit to this Mod of the Month place as it's gave me a bit of freedom. Nice one bobster xxx (a couple of kisses for you ;)


eDIT: HOLD THE BUS!!!! ive added an example to it and it's working fine. Thanks.

gwerzal
04-24-2008, 01:12 PM
@gwerzal,
I didn't saw your second Post... PM already sent. Never Mind :)

Regards,

Thank you very much for the offer anyway.

Much appreciated.

MarsNIIT
04-25-2008, 12:04 AM
I read it.. just have not had time yet to check it out yet.. will check it out later today and reply to you :cool:

Thank you verry much,

ams3521
04-25-2008, 10:57 PM
Fantastic Hack Bobster its a great way to tidy up a large forum and get the main forums on the forumhome to attract new members, gets my vote for motm by a country mile, many thanks.

Just need the noob above to work on his css to get the tabs nice and trendy then i think were done
http://www.thedailypunt.com/forum/

bobster65
04-26-2008, 02:11 PM
Fantastic Hack Bobster its a great way to tidy up a large forum and get the main forums on the forumhome to attract new members, gets my vote for motm by a country mile, many thanks.

Just need the noob above to work on his css to get the tabs nice and trendy then i think were done
http://www.thedailypunt.com/forum/

Glad you find it useful :cool: doing the CSS part is pretty simple.. let me know if you have any questions regarding it.

@ everyone else that has posted and I have not yet responded.... you are not being ignored, its just been a very busy week... so, if you have something specific that is holding you up, blast me a PM or post again and I will try and get things answered ASAP.

Thanks to all :cool:

kollam003
04-26-2008, 05:54 PM
i upgraded to 3.6.10 and it stopped working please have a look : www.indianprofits.com

kushal
04-27-2008, 07:55 AM
i upgraded to 3.6.10 and it stopped working please have a look : www.indianprofits.com (http://www.indianprofits.com)

On upgrades, your index.php file must have been overwritten. You might need to recreate the $forumbits.

kollam003
04-27-2008, 10:18 AM
On upgrades, your index.php file must have been overwritten. You might need to recreate the $forumbits.

Thanks missed that point it works fine now

kushal
04-27-2008, 11:42 AM
You are welcome. :)

MarsNIIT
04-27-2008, 12:58 PM
@ everyone else that has posted and I have not yet responded.... you are not being ignored, its just been a very busy week... so, if you have something specific that is holding you up, blast me a PM or post again and I will try and get things answered ASAP.

Thanks to all :cool:


Hello bobster65,

Thank you verry much, i still waiting your reply :D

bobster65
04-27-2008, 08:31 PM
Hello bobster65,

Thank you verry much, i still waiting your reply :D

Im working on it.. have the same issue with another member that has a unique forumhome as well... I've been sick this weekend, so I have not been online much. hang in there! :)

ams3521
04-29-2008, 12:31 AM
Fantastic Hack Bobster its a great way to tidy up a large forum and get the main forums on the forumhome to attract new members, gets my vote for motm by a country mile, many thanks.

Just need the noob above to work on his css to get the tabs nice and trendy then i think were done

Git. thats the installer of the tabs using the same login as me bobster. Im the noob that is trying to add serperate images for each tab whilst he sleeps in bed with a lovely large breasted lady. im the one that doesnt know css or anything. im the one thats had to explain to our forum members 'you'll get used to it trust me' Im the one that gets made homeless on wednesday and am i looking for a new flat? No im trying to work on adding these images.

Has anyone managed to add seperate images for each tab? Ive searched the thread but to no avail. Is it all just in the css thing?

bobster65
04-29-2008, 01:57 AM
Git. thats the installer of the tabs using the same login as me bobster. Im the noob that is trying to add serperate images for each tab whilst he sleeps in bed with a lovely large breasted lady. im the one that doesnt know css or anything. im the one thats had to explain to our forum members 'you'll get used to it trust me' Im the one that gets made homeless on wednesday and am i looking for a new flat? No im trying to work on adding these images.

Has anyone managed to add seperate images for each tab? Ive searched the thread but to no avail. Is it all just in the css thing?

Its all in the CSS bud :cool: Really easy to do.

Endurer
04-29-2008, 05:59 PM
Is it currently compatible with vb 3.7?

sunnycher
04-29-2008, 06:09 PM
Awesome Bob!

Endrer, on the first page, he says it is!

taru
04-29-2008, 08:04 PM
I'm still playing around with getting it working - however I've yet to be able to get the tabs to even show up...

bobster65
04-29-2008, 08:12 PM
Is it currently compatible with vb 3.7?

Yes, I've had no problems with it working on 3.7 Upgraded my site today and it is still working fine :cool:

Awesome Bob!

Endrer, on the first page, he says it is!

Hi ya Cher :D I'll hook you up with it once you decide on a new style :cool:

I'm still playing around with getting it working - however I've yet to be able to get the tabs to even show up...

What step are you on?

taru
04-30-2008, 02:58 AM
my default style has quite a bit going on... i'm going to retest it on a base style... which might explain why the js isn't firing...

bobster65
04-30-2008, 03:04 AM
my default style has quite a bit going on... i'm going to retest it on a base style... which might explain why the js isn't firing...

sometimes it helps to put the full URL to the .js file and or .css file let me know if you still have problems with a base style.

MarsNIIT
04-30-2008, 01:09 PM
Hello bobster65,

If you have fee time, please help me my problem.

Thank you verry much.

bobster65
04-30-2008, 01:18 PM
Hello bobster65,

If you have fee time, please help me my problem.

Thank you verry much.

:) Have not forgot about you.. still working on it (when I have spare time).... I'll get it working tho, so hang in there. :cool:

taru
05-01-2008, 11:13 PM
i got it working... now i'm just working on customizing the tab content and the tabs themselves... so far pretty cool bobster!

bobster65
05-01-2008, 11:14 PM
i got it working... now i'm just working on customizing the tab content and the tabs themselves... so far pretty cool bobster!

Sweet, if you run into any problems, don't hessitate to ask for help :)

taru
05-02-2008, 02:37 AM
it's working great... got all my categories set up etc... did take quite a bit of time though

going to look at seeing what needs to happen to get more images going etc

oz_girl
05-02-2008, 04:20 AM
Reserved ... just what i was looking for :D

sdavis2702
05-02-2008, 07:56 AM
This looks absolutely awesome... I wish I had the guts to go for it. With only one month experience... I'll hold off. Awesome hack though...

pakomen
05-02-2008, 10:59 AM
Wow, very nice. Will think about installing. :)

siriuxs
05-02-2008, 08:57 PM
It's compatible with vbulletin 3.7 ?

ThreeD
05-03-2008, 08:36 PM
Nice mod :)

Just a little sidenote to all users. Per default, if you copy paste all the steps from the step by step instructions, the collapse_tcat.gif file has a location of images/solido/buttons/collapse_tcat.gif. You have to manually go in and remove the solido subdir if you want the collapse_tcat image to show.

DeanoG
05-04-2008, 08:28 AM
it is possible to use Usergroup permissions to view tabs?

I have some Beta Software testing forums on my board only visible to the Beta Testing Group.
Is it possible to show the a "Beta Forum" tab using usergroup permissions so that the tab is only visible to the Beta testers ?

Jase2
05-04-2008, 09:27 AM
Hello bobster65,

Any chance we could have it like this (http://forums.techguy.org) website. They have tabs for each category, then a drop down with the forums inside that. That would make this even better!

Well done!

bobster65
05-04-2008, 04:36 PM
Hello bobster65,

Any chance we could have it like this (http://forums.techguy.org) website. They have tabs for each category, then a drop down with the forums inside that. That would make this even better!

Well done!

Hey Jase, That is a total different concept. That is navigation system similar to vborgs tabbed menu system where you actually are taken to another page. There is an article on how to do that. This system stays on the FORUMS HOME page and switches categories without another page view involved.

-Bob

bobster65
05-04-2008, 04:50 PM
it is possible to use Usergroup permissions to view tabs?

I have some Beta Software testing forums on my board only visible to the Beta Testing Group.
Is it possible to show the a "Beta Forum" tab using usergroup permissions so that the tab is only visible to the Beta testers ?

yes, just wrap the specific tab with this... (use the ID's of the user groups you want to be able to view it)

<if condition="is_member_of($vbulletin->userinfo, 5,6)">

</if>

so it would look something like this.. (The code in RED is what you would need to add ...

<!-- Tabbed Forum Home Tabs Layout -->
<ul id="forumtabs" class="shadetabs">
<li><a href="#" rel="tcontent1" class="selected">Tab 1 Name</a></li>
<li><a href="#" rel="tcontent2">Tab 2 Name</a></li>
<if condition="is_member_of($vbulletin->userinfo, 5,6)">
<li><a href="#" rel="tcontent3">BETA FORUM Tab/a></li>
</if>
</ul>
<!-- /Tabbed Forum Home Tabs Layout -->

Then you will also want to wrap the tab display data as well ..

<!-- Tabbed Forum Home – START BETA FORUM TAB Content Layout -->

<if condition="is_member_of($vbulletin->userinfo, 5,6)">

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

CONTENT REMOVED FOR EXAMPLE ONLY

</div>

</if>

<!-- /Tabbed Forum Home – END BETA FORUM TAB Content Layout-->

bobster65
05-04-2008, 04:52 PM
It's compatible with vbulletin 3.7 ?

Yes

Nice mod :)

Just a little sidenote to all users. Per default, if you copy paste all the steps from the step by step instructions, the collapse_tcat.gif file has a location of images/solido/buttons/collapse_tcat.gif. You have to manually go in and remove the solido subdir if you want the collapse_tcat image to show.

Whoops.. I'll take that out on the next update.... guess I didn't have enough coffee that day ;) Thank you for catching that :up:

joakandr
05-04-2008, 08:22 PM
can you make something that automates all this? Would be a lot easier...

DeanoG
05-05-2008, 06:27 AM
yes, just wrap the specific tab with this... (use the ID's of the user groups you want to be able to view it)

<if condition="is_member_of($vbulletin->userinfo, 5,6,)">

</if>

so it would look something like this.. (The code in RED is what you would need to add ...

<!-- Tabbed Forum Home Tabs Layout -->
<ul id="forumtabs" class="shadetabs">
<li><a href="#" rel="tcontent1" class="selected">Tab 1 Name</a></li>
<li><a href="#" rel="tcontent2">Tab 2 Name</a></li>
<if condition="is_member_of($vbulletin->userinfo, 5,6,)">
<li><a href="#" rel="tcontent3">BETA FORUM Tab/a></li>
</if>
</ul>
<!-- /Tabbed Forum Home Tabs Layout -->

Then you will also want to wrap the tab display data as well ..

<!-- Tabbed Forum Home ? START BETA FORUM TAB Content Layout -->

<if condition="is_member_of($vbulletin->userinfo, 5,6,)">

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

CONTENT REMOVED FOR EXAMPLE ONLY

</div>

</if>

<!-- /Tabbed Forum Home ? END BETA FORUM TAB Content Layout-->

Thanking you sir !

siriuxs
05-05-2008, 08:40 AM
Hi, this mod is more beautiful but it's installation is more complex... :(

Moreover when is relased a news versione of vbulletin and style (ex: 3.7.1) and I update the style, I lost all modified and I have to redo the procedure :(

Excuse me for my bad english but I'am italian

siriuxs
05-05-2008, 09:47 AM
At the step N.12 there is:
Locate the HTML comment <!-- main -->

In my FORUMHOME template there isn't code <!-- main --> :(

Where I can find it?

siriuxs
05-05-2008, 11:55 AM
This is my FORUMHOME code:

$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
$headinclude
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
</head>
<body>
$header
$navbar
$photoplog[minithumbnails]
$forumbits
</tbody>
</table>
<div class="spacer"></div>
<br />


<!-- what's going on box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
</tr>
</thead>

<if condition="$show['loggedinusers']">
<!-- logged-in users -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
<a href="online.php$session[sessionurl_q]" rel="nofollow">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
<tr>
<td class="alt2"><a href="online.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
<td class="alt1" width="100%">
<div class="smallfont">
<div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
<div>$activeusers</div>
</div>
</td>
</tr>
</tbody>
<!-- end logged-in users -->
</if>
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
<tr>
<td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
<td class="alt1" width="100%">
<div class="smallfont">
<div>
$vbphrase[threads]: $totalthreads,
$vbphrase[posts]: $totalposts,
$vbphrase[members]: $numbermembers<if condition="$show['activemembers']">,
<span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
</if>
</div>
<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
</div>
</td>
</tr>
</tbody>
<if condition="$show['birthdays']">
<!-- today's birthdays -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
$vbphrase[todays_birthdays]
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
<tr>
<td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]" border="0" /></a></td>
<td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
</tr>
</tbody>
<!-- end today's birthdays -->
</if>
<if condition="$show['upcomingevents']">
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
<if condition="$show['todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
<tr>
<td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
<td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
</tr>
</tbody>
</if>

<tbody>
<tr>
<td class="tcat" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
<a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
<if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
<a href="showgroups.php?$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if>
</strong></div></td>
</tr>
</tbody>

</table>
$forumhome_markread_script
$ad_location[ad_forumhome_afterforums]
<!-- end what's going on box -->

<!-- icons -->
<div class="spacer"></div>
<table class="icon_legend" align="center" border="0" cellpadding="6" cellspacing="0" width="100%">


<tbody>
<tr align="center">
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_new_small.gif" alt="" border="0" /></td>
<td align="left" class="alt1">
<div class="smallfont">$vbphrase[forum_contains_new_posts]</div>


</td>
<td class="alt2" ><img src="$stylevar[imgdir_statusicon]/forum_old_small.gif" alt="" border="0" /></td>
<td align="left" class="alt1" ><div class="smallfont">$vbphrase[forum_contains_no_new_posts]</div></td>
<if condition="$vboptions['showlocks']"><td class="alt2" ><img src="$stylevar[imgdir_statusicon]/forum_new_lock_small.gif" alt="" border="0" /><img src="$stylevar[imgdir_statusicon]/forum_old_lock_small.gif" alt="" border="0" /></td>
<td align="left" class="alt1" ><div class="smallfont">$vbphrase[forum_is_closed_for_posting]</div></td></if>
</tr>


</tbody>

</table>
<!-- /icons-->


<!-- time and login code -->
<div class="spacer"></div>
<table cellpadding="0" cellspacing="2" border="0" width="100%">
<tr valign="bottom">
<!-- Time -->
<td align="$stylevar[left]" valign="top"><div class="smallfont">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div></td>
<!-- /Time -->

<!-- member logout -->
<if condition="!$show['guest']">
<td align="$stylevar[right]"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>
</if>
<!-- /member logout -->
</tr>
</table>
<!-- /time and login code -->
$footer
</body>
</html>

I don't see the main :S:S:S

Astrof
05-06-2008, 01:24 PM
Bobster,

This is wonderful work.

I just have one question - is it smart to install this to forums with an increadible amount of boards?

I have a forum with around a 100 forums that are set as sub-forums to forums that act as categories on the homepage in order to save bandwidth and take the load off the server (otherwise the site would barely be able to work), and I reckon that since this mod isn't AJAX-based, it would mean all of my sub-forums would have to load on the homepage in order for the members to browse via tabs, am I right?

bobster65
05-06-2008, 01:47 PM
Bobster,

This is wonderful work.

I just have one question - is it smart to install this to forums with an increadible amount of boards?

I have a forum with around a 100 forums that are set as sub-forums to forums that act as categories on the homepage in order to save bandwidth and take the load off the server (otherwise the site would barely be able to work), and I reckon that since this mod isn't AJAX-based, it would mean all of my sub-forums would have to load on the homepage in order for the members to browse via tabs, am I right?

I've installed this on a site that has 300+ forums and it didn't increase the load any, however it didn't decrease it any either. I do have plans for a AJAX Version in the future which would be a lot better for larger forums like yours (its a ways out tho). If you have a development instance, you could test it out and compare the loads. From the sounds of your system tho, if the load is to high to display all your forums normally, its probably going to be the same load using this ... I'll keep you in mind for testing the AJAX version as I will need some beta testers when it comes time (if you are interested)

Bob

bobster65
05-06-2008, 01:49 PM
This is my FORUMHOME code:

I don't see the main :S:S:S

Hey Siriuxs - when I get some free time, I am going to come up with a solution for custom FORUMHOME templates ... I've got a few members that have this same challenge and I will come up with something soon that works for you :)

bobster65
05-06-2008, 01:55 PM
can you make something that automates all this? Would be a lot easier...

That is something that I am "planning" on for version 2 (also AJAX). Feel free to PM me what you would like to see as far as controls... gather ideas on the white board now, so if ya got em, send em :cool:

Astrof
05-06-2008, 02:14 PM
I've installed this on a site that has 300+ forums and it didn't increase the load any, however it didn't decrease it any either. I do have plans for a AJAX Version in the future which would be a lot better for larger forums like yours (its a ways out tho). If you have a development instance, you could test it out and compare the loads. From the sounds of your system tho, if the load is to high to display all your forums normally, its probably going to be the same load using this ... I'll keep you in mind for testing the AJAX version as I will need some beta testers when it comes time (if you are interested)

Bob

Hey, Bob,

Thanks for such a quick response.

So, yes, obviously it's better for me not to install this as all of the forums will need to load this way, which is not the case with my current layout (only links to the forums in the subcategory list in the category row).

Well, I might try and see, if I do, I'll report about the load.

I don't have a development site yet, if that changes, I'd be glad to help you with beta testing if I'll have time.

heeroyun
05-08-2008, 06:11 AM
It's cool :D

BozzaJos
05-08-2008, 06:44 PM
Hello bobster,

First of all, this is an amazing hack! I got it too work (for the most part) even thought my knowledge about this all is really limited. Tested it on a test site and it worked. Can't wait to integrate it on my live site.

One question though. I tested it out with 3 tabs but when I click on a different tab, it goes to the tab but the first tab is still highlighted. Since a screenshot says more than words, here is a screenie (the screenshot is taken when I was on tab 2):

http://img211.imageshack.us/img211/3537/tabshighlightxg9.png

Could you help me out with this problem? Thanks in advance.

Take care,

Bozza

bobster65
05-08-2008, 07:01 PM
Hello bobster,

First of all, this is an amazing hack! I got it too work (for the most part) even thought my knowledge about this all is really limited. Tested it on a test site and it worked. Can't wait to integrate it on my live site.

One question though. I tested it out with 3 tabs but when I click on a different tab, it goes to the tab but the first tab is still highlighted. Since a screenshot says more than words, here is a screenie (the screenshot is taken when I was on tab 2):

Could you help me out with this problem? Thanks in advance.

Take care,

Bozza

PM sent for additional info..

Rickeo
05-08-2008, 07:39 PM
This has to be one of the HARDEST most COMPLEX installs I have ever done I can't understand it which is a HUUUUGGGGGEE shame because this would be one of the best mods ever if it were easy to install.

Rick

bobster65
05-08-2008, 07:55 PM
This has to be one of the HARDEST most COMPLEX installs I have ever done I can't understand it which is a HUUUUGGGGGEE shame because this would be one of the best mods ever if it were easy to install.

Rick

Sorry Bud, version 2 is under development (and will be a product which hopefully will be easier to install). If you need help with this one, just ask. Its really not that complicated ... just a little overwhelming if you've never built up a template before. The mistake most people make is trying to build the entire system at once .. one tab at a time... add a category to the tab, test it.. add another one, test it.. once you do a few, you will understand how it works and can knock the rest of the tabs out very quick....

Rickeo
05-08-2008, 08:18 PM
I can build the templates fine I have added the tabs fine I got all the tabs there and named the problem is now having the correct forums shown under each tab no offence because this mod is the best and your a great coder no doubt but the install instructions are lacking very much so it would have been easier just to say backup your forum like everyone else coz everyone knows how to do that but all this back and forth of editing index_tabs.php etc etc just over complicates it.

Not ur fault more mine I just have a simple brain lol but now am stuck I have the tabs fine but the forums aren't displaying under any of them :)

Rick

Rickeo
05-08-2008, 09:59 PM
bobster thank you so so much for all your help getting this online out of all the mods I have used and the year and a half I have been apart of the community I have never ever come across a coder who is willing to help and offer support as much as you do :)

Thank you so much *installed & nominated*

Rick

bobster65
05-08-2008, 10:04 PM
bobster thank you so so much for all your help getting this online out of all the mods I have used and the year and a half I have been apart of the community I have never ever come across a coder who is willing to help and offer support as much as you do :)

Thank you so much *installed & nominated*

Rick

No Problem Bud .. you almost had it complete, just needed some minor tweaks and fixed your CSS up for ya :) Looks great!

Thank you for your kind words... Enjoy :cool:

Bob

OsideRida06
05-09-2008, 10:38 AM
I am trying to install this right now.

I have not quite figured it out yet. I had things showing up under tab 2 once. Then I did something and lost it. So now I just have the first tab showing content. The whole forum of course.

I am going to give it another go here in a bit though.

Great mod by the way.

Anyone that may be able to help me out can hit me up on instant messenger.

AIM = OsideRida06
Yahoo = hellafine_guy2780

Hopefully I will not need the help. I am hoping to figure it out. Any help in helping me figure it out though, would be great.

titchpitch
05-09-2008, 02:20 PM
im having troubles...
i cant figure out how to properly set up the forumhome and index_tab variables, i have the tabs showing but cant put the info in there.
http://tv-forums.co.uk/forums

its not a live board yet... an import from a phpbb3 forum i plan to use on vB soon

bobster65
05-09-2008, 02:31 PM
im having troubles...
i cant figure out how to properly set up the forumhome and index_tab variables, i have the tabs showing but cant put the info in there.
http://tv-forums.co.uk/forums

its not a live board yet... an import from a phpbb3 forum i plan to use on vB soon

are you view the forum home with index_tab.php or index.php?

rapidphim
05-09-2008, 07:59 PM
Bob... are you going to release this for 3.7.0 gold?

bobster65
05-09-2008, 08:03 PM
Bob... are you going to release this for 3.7.0 gold?

It works fine with 3.7 Gold .. I want to rewrite the install instructions tho before I create a new thread in the 3.7 Release area..

bobster65
05-09-2008, 08:04 PM
I am trying to install this right now.

I have not quite figured it out yet. I had things showing up under tab 2 once. Then I did something and lost it. So now I just have the first tab showing content. The whole forum of course.

I am going to give it another go here in a bit though.

Great mod by the way.

Anyone that may be able to help me out can hit me up on instant messenger.

AIM = OsideRida06
Yahoo = hellafine_guy2780

Hopefully I will not need the help. I am hoping to figure it out. Any help in helping me figure it out though, would be great.

Did you get things figured out? If not, PM me and lets set up a time to chat so I can help you out ...

rapidphim
05-09-2008, 09:42 PM
Thanks Bob, I'll try it out tonight.

viganothing
05-09-2008, 09:57 PM
PM sent for additional info..

can you send me the info plz , i'm having the same problem

bobster65
05-09-2008, 10:11 PM
can you send me the info plz , i'm having the same problem

I sent him a PM asking Him for additional info so I could trouble shoot his problem ..

His problem was that he didn't complete the install instructions. He had 3 tabs, but only 2 content areas.. the number of content areas needs to match the number of tabs...

ie..

This is the part where you determine the number of "tabs" In this example, there are 3 Tabs and each tab is associated with a content area ie... rel="tcontent1"

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

For the above example to work, you need to have the 3 content areas ... rel="tcontent1" , rel="tcontent2" , rel="tcontent3"

This is a sample content area.. I personally start out (and end) each content area with a comment to identify it. You will notice that the first line of code is a Div with the content ID that matches the specific tab. Make sure that there is only one content area for each of your tabs..

<!-- Tabbed Forum Home ? START Tab 2 Content Layout -->
<div id="tcontent2" class="tabcontent">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>

<!-- CUSTOM tbody CODE BASED ON YOUR STYLE -->
<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_66')"><img id="collapseimg_forumbit_66" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=6">CATEGORY NAME</a></td>
</tr>
</tbody>

<tbody id="collapseobj_forumbit_66" style="">
$forumbits2
</tbody>
<!-- /CUSTOM tbody CODE BASED ON YOUR STYLE -->


<tbody>
<tr>
<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a><if condition="$vboptions['forumleaders']">&nbsp; &nbsp;<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if></strong></div></td>
</tr>
</tbody>
</table>

$forumhome_markread_script

</div>
<!-- /Tabbed Forum Home ? END Tab 2 Content Layout -->

If you have more Tabs then you have content areas, the entire system won't work correctly....

Bree
05-09-2008, 10:49 PM
I can't believe I hadn't posted in here yet *blush*...

This is awesome Bobster! I am definitely using this on one of my sites... I just gotta figure out which one and exactly for what first hehe... You have gotten me 100% addicted to ajax tabs.. Keep coming up with stuff like this and my whole site will be one big tab! LOL You are awesome... keep up the great work!

Always, Bree
PS.. I Voted for you: MOTM <-- of course

bobster65
05-09-2008, 10:58 PM
I can't believe I hadn't posted in here yet *blush*...

This is awesome Bobster! I am definitely using this on one of my sites... I just gotta figure out which one and exactly for what first hehe... You have gotten me 100% addicted to ajax tabs.. Keep coming up with stuff like this and my whole site will be one big tab! LOL You are awesome... keep up the great work!

Always, Bree
PS.. I Voted for you: MOTM <-- of course

You better install it soon (and learn it inside out) cause you are going to help with version 2.0 :p ( altho I still need to fill you in on that minor detail lol )

Thanks Sunshine :D

rapidphim
05-10-2008, 04:49 AM
I'm so lost on this one. I was able to create the tab but not sure how to move the whole selected section to second tab or third tab....

mikkitine
05-10-2008, 06:33 AM
I'm so lost on this one. I was able to create the tab but not sure how to move the whole selected section to second tab or third tab....Just follow the instructions step-by-step from start to end and you'll get a result. It might take some trial and error, but if you're doing everything as the instructions say you will get what you want.

This is a great mod and looks very nice. I want to see what kind of effect it has on my forum registrations. If I get positive results I'll return to nominate this mod. :up:

rapidphim
05-10-2008, 09:46 AM
As you can see I am still now awake to work on this hack. I just could not get it to work properly

bobster65
05-10-2008, 11:18 AM
As you can see I am still now awake to work on this hack. I just could not get it to work properly

I replied to your PM .. I am sure you are close (from the sounds of it).. We'll get you up and running :cool:

rapidphim
05-10-2008, 04:12 PM
bob, thanks much. I sent you pm

MarsNIIT
05-10-2008, 04:24 PM
Hello bobster65,

Please help me fix my problem,

thank you verry much.

Bree
05-10-2008, 04:28 PM
Ok... I got it all installed on my test forum.... for some reason I expected it to be way harder, but of course, am happy that it was not LOL This is going to be so much fun to customize! I had originally planned not to put it at my .com but pretty sure I changed my mind REAL fast once I actually got to play with it =0) Think I am going to surprise everyone with it hehe

Anyways... Get some sleep everyone... grab a cup of coffee (or some other type of liquid motivation) and relax... One step at a time and the tutorial really is easier than first expected.

Have fun!
Always, Bree

mikkitine
05-10-2008, 08:05 PM
I take back what I said about waiting to see what effect this modification will have on my sign ups. This mod is absolutely gold. After I realised I can control exactly what forums appear in which tabs, and that sub-forum links need not be shown in forums displayed under tabs of my choice, the deal was sealed for me.

Thanks for this bobster, really brilliant. /nominates

Defkalion
05-10-2008, 08:25 PM
Bob,

excellent work, thankyou so much.

I installed without any problems, it was a piece of cake.

Question: is there any way to create an extra tab with the "what's going on" box, instead of having it appear under every tab?

Again, thankyou for a great hack. :)

bobster65
05-10-2008, 09:33 PM
I take back what I said about waiting to see what effect this modification will have on my sign ups. This mod is absolutely gold. After I realised I can control exactly what forums appear in which tabs, and that sub-forum links need not be shown in forums displayed under tabs of my choice, the deal was sealed for me.

Thanks for this bobster, really brilliant. /nominates

Thank you for the kind words... look for an even better version coming soon :)

bobster65
05-10-2008, 09:50 PM
Bob,

excellent work, thankyou so much.

I installed without any problems, it was a piece of cake.

Question: is there any way to create an extra tab with the "what's going on" box, instead of having it appear under every tab?

Again, thankyou for a great hack. :)

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

<!-- 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 ..

<!-- 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)

<!-- 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...

Eq4bits
05-10-2008, 10:13 PM
Love this mod!
Clicks 'Installed'
using on vB3.6.10 with no problems

veenuisthebest
05-11-2008, 12:31 AM
this is just toooooooo good :) i'm loving it ..

there's one little problem sir that I find with the collapsible buttons.

Whenever I click on the collapse button, the row above CATEGORY NAME that displays Forum, Last Post, Threads, Post is disturbed.

Please try to notice in the attachments or you can have a look here (http://www.vinayaks.com/testvb/index_tab.php?styleid=2).. try collapsing and you would notice a change in the row above CATEGORY NAME.. BUT this does not happen with default FORUMHOME template, infact the row remains intact.

I noticed the same problem in www.vbulletin-turkey.com (http://www.vbulletin-turkey.com) as well as yours too !!

Eq4bits
05-11-2008, 01:36 AM
Looks to me like if you change that 'cell' just before the one that contains the word 'Forum' needs to be changed to the size of the icon that fills it in the forum list on the page... when you collapse you are no longer displaying the row with the cell that contains the image so the cell width is no longer filled.

find:
<td class="thead">&nbsp;</td>
<td class="thead" width="**%" align="$stylevar[left]">$vbphrase[forum]</td>(asterisks for percentage value)
and add a percentage value to
<td class="thead">&nbsp;</td>[code]
that would be the equivalent of the 29px that the icon gif is (depending on what layout you use for your board and the percentages used for the other 'columns').
for example
[code]<td class="thead" width="5%" align="$stylevar[center]">&nbsp;</td>

veenuisthebest
05-11-2008, 02:10 AM
thanks.. I did what you said sir..

you may look here (http://www.vinayaks.com/testvb/index_tab.php?styleid=2) now for Tab 1 name. Its working fine but not perfect coz there's still a slight movement in the Forum text... and do notice the Last Post. It is still moving.

Plzz compare it with the default style there, you would notice that everything seems so perfect in Default Style. And why does Threads and Posts are't moving ??

WhaLberg
05-11-2008, 03:02 AM
This is really a great mod Bob!

Congratulations.

MarsNIIT
05-11-2008, 03:18 AM
this is just toooooooo good :) i'm loving it ..

there's one little problem sir that I find with the collapsible buttons.

Whenever I click on the collapse button, the row above CATEGORY NAME that displays Forum, Last Post, Threads, Post is disturbed.

Please try to notice in the attachments or you can have a look here (http://www.vinayaks.com/testvb/index_tab.php?styleid=2).. try collapsing and you would notice a change in the row above CATEGORY NAME.. BUT this does not happen with default FORUMHOME template, infact the row remains intact.

I noticed the same problem in www.vbulletin-turkey.com (http://www.vbulletin-turkey.com) as well as yours too !!


Hello,

Can you tell me how to sloved this problem.

Thank you verry much.

Eq4bits
05-11-2008, 03:56 AM
looking at the source code on the link you gave you need to change the percentages in each case (everytime it appears in the FORUMHOME template:
<thead> <tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>



for example: <thead>
<tr align="center">
<td class="thead" width="5%">&nbsp;</td>
<td class="thead" width="80%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="5%">$vbphrase[last_post]</td>
<td class="thead" width="5%">$vbphrase[threads]</td>
<td class="thead" width="5%">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>

by adjusting ALL percentages to total 100% (5%+80%+5%+5%+5%=100%) OR use px width's that total the width of your forum/table (25px+500px+175px+50px+50px=800px) instead of percentages... using the SAME percentages/px's in the section of code for ALL of the tabs (if you have 4 tabs then the code is in FORUMHOME four times. percentages and pixels used for 'example' only).

veenuisthebest
05-11-2008, 04:02 AM
have already solved the problem sir...thats exactly what we have to do.. I was just going to post this !! lol.. thank you

veenuisthebest
05-11-2008, 04:11 AM
by the way... 5,80,5,5,5 would give us a bit wider columns width.

Have been testing this since an hour, the exact values that are giving me the perfect column width's exactly similar to default FORUMHOME are 4,87,5,4,4. They do not total 100 but working fine ;)

veenuisthebest
05-11-2008, 04:43 AM
ohhh.... the problem remains in IE... what to do now ???

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

rapidphim
05-11-2008, 06:24 AM
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?

OsideRida06
05-11-2008, 07:22 AM
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?

https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/

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.

Defkalion
05-11-2008, 08:05 AM
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

<!-- 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 ..

<!-- 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)

<!-- 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?

bobster65
05-11-2008, 11:13 AM
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 ..

<!-- 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 -->

bobster65
05-11-2008, 11:37 AM
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 ..

sweede
05-11-2008, 11:54 AM
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 !

bobster65
05-11-2008, 11:58 AM
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?

https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/

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....

<!-- 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 )

bobster65
05-11-2008, 12:09 PM
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..

MarsNIIT
05-11-2008, 02:53 PM
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)

rapidphim
05-11-2008, 03:47 PM
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 ..

<!-- 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?

veenuisthebest
05-11-2008, 04:21 PM
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 !!

powerful_rogue
05-11-2008, 07:34 PM
Looks like a great mod!

I tried to give it a go, but got lost half way through the instructions, so will probably wait until the next version comes out.

bobster65
05-11-2008, 10:03 PM
Looks like a great mod!

I tried to give it a go, but got lost half way through the instructions, so will probably wait until the next version comes out.

Sorry, I seriously need to rewrite the instructions. I wrote them in a hurry and though they made sense to me, its obvious that they are hard to follow along, specially for those that don't do a lot of manual template editing/template coding .... I'll try and get some better instructions out sometime this week so you can at least play around with it. Its really not that tough, just a little confusing/overwhelming when you first try and attempt to install it.

bobster65
05-11-2008, 10:05 PM
pleasee ... bob.. help out this one !!

What exactly is the issue?

veenuisthebest
05-11-2008, 10:38 PM
my issue is here on 14th page (https://vborg.vbsupport.ru/showthread.php?t=175687&page=14) following post #201 onwards !!

Its almostt solved.. but can't get it to work in I.E.

rapidphim
05-11-2008, 11:30 PM
umm.. now I noticed that bug. Only the very first original tab is stayed the same when you collapsed. The rest of the tabs' header will also move/adjust ....

glowinggal
05-11-2008, 11:57 PM
Originally Posted by kushal

The tabs shows up the private forum category, though forums inside it are not visible.

I guess, the tab itself should be invisible for members not allowed access to it.

Even if I put the Private forums inside the already existing tab, the header category still shows up.

To see what I mean kindly visit the site here http://www.rtiindia.org/forum/ and see that you can see the private forum named 'RTI team'.

I have kept the child forum without tabs, and here they are not visible to guests..


Ah, I see what you are talking about. One way to fix that is to wrap the block of code in the template (for that specific forum) with an IF statement so that it only displays for the specific user groups.


what specifically would be the code to be written? Very interested in this but know in advance we have private forums that would need to be hidden for sure.

bobster65
05-12-2008, 12:11 AM
what specifically would be the code to be written? Very interested in this but know in advance we have private forums that would need to be hidden for sure.

just wrap the specific tab with this... (use the ID's of the user groups you want to be able to view it)

<if condition="is_member_of($vbulletin->userinfo, 5,6)">

</if>


so it would look something like this.. (The code in RED is what you would need to add ...

<!-- Tabbed Forum Home Tabs Layout -->
<ul id="forumtabs" class="shadetabs">
<li><a href="#" rel="tcontent1" class="selected">Tab 1 Name</a></li>
<li><a href="#" rel="tcontent2">Tab 2 Name</a></li>
<if condition="is_member_of($vbulletin->userinfo, 5,6)">
<li><a href="#" rel="tcontent3">Tab Private Name</a></li>
</if>
</ul>
<!-- /Tabbed Forum Home Tabs Layout -->


Then you will also want to wrap the tab display data as well ..

<!-- Tabbed Forum Home – START Private FORUM TAB Content Layout -->

<if condition="is_member_of($vbulletin->userinfo, 5,6)">

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

CONTENT REMOVED FOR EXAMPLE ONLY

</div>

</if>

<!-- /Tabbed Forum Home – END Private FORUM TAB Content Layout-->

ERAFOX
05-12-2008, 03:01 AM
this ++++1ng amazing !

BarcaMaroc
05-12-2008, 03:05 AM
nice

Defkalion
05-12-2008, 05:57 AM
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 ..

Thanks Bob, I tried but that didn't work, the tabs show up at the bottom but when clicking on them it just throws me back at #top of the page, it doesn't go to that tab. Any ideas? :)

powerful_rogue
05-12-2008, 08:54 AM
Sorry, I seriously need to rewrite the instructions. I wrote them in a hurry and though they made sense to me, its obvious that they are hard to follow along, specially for those that don't do a lot of manual template editing/template coding .... I'll try and get some better instructions out sometime this week so you can at least play around with it. Its really not that tough, just a little confusing/overwhelming when you first try and attempt to install it.

Thanks Bob.

Im ok with template editing (from the old days of phpbb!) its just the coding or "tweaking" that stumped me. Mainly to do with the "<!-- CUSTOM tbody CODE BASED ON YOUR STYLE -->".

I managed to get the tabs up, but they looked all out of place when I clicked on them. I also use rounded corners for all my forum sections and I dont think that helped.

I notice you said in version 2 that the custom tbody section will be automatic, so I think my best plan of action is to hold fire until thats completed :)

OsideRida06
05-12-2008, 09:42 AM
Thanks Bob.

Im ok with template editing (from the old days of phpbb!) its just the coding or "tweaking" that stumped me. Mainly to do with the "<!-- CUSTOM tbody CODE BASED ON YOUR STYLE -->".

I managed to get the tabs up, but they looked all out of place when I clicked on them. I also use rounded corners for all my forum sections and I dont think that helped.

I notice you said in version 2 that the custom tbody section will be automatic, so I think my best plan of action is to hold fire until thats completed :)

I would not do that. He is helping me work through it, I am sure he will do the same for you. I am very intrigued by this mod. I cannot wait to get it up and running.

Just have patience.

OsideRida06
05-12-2008, 11:27 AM
UPDATE: So here is the progress of my tabs. I have the tabs made and put on the forum. They do not touch down all the way though. Is that possible? And the style for all the tabs but the first one are still messed up. I need it to be my custom style for the skin. I am working with bobster right now to get that fixed. Here are the pics now to show the tabs and the style differences.

The top one is the real style. And the bottom one is the off style that needs to be changed to the first style. But how? Bobster is going to pm me about it. I just want to post it here so we can get these questions answered for others as well.

http://www.calistyle101.com/images/forum1.jpg

http://www.calistyle101.com/images/forum2.jpg

What do you guys think?

edytwinky
05-12-2008, 03:32 PM
Good stuff!

OsideRida06
05-12-2008, 04:28 PM
We have officially got the style updated and fixed now. Everything is working great. Great support. I will post a link to my forum as soon as I transfer it over as my main skin.

Thanks for the GREAT mod. Marked as "Installed!"

lange
05-12-2008, 05:35 PM
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..


Waiting for this Ajax release.

Big Boss
05-12-2008, 09:51 PM
I'm waiting for this mod to be released for the 3.7.x version. Any idea when will that happen? Also, is there any news regarding version 2 of this hack?

bobster65
05-12-2008, 10:30 PM
I'm waiting for this mod to be released for the 3.7.x version. Any idea when will that happen? Also, is there any news regarding version 2 of this hack?

this works on 3.7 .. no need to release a separate version when its the same exact files and steps ...

Just started working on version 2 .. have no set target date yet..

Deepdog009
05-12-2008, 10:49 PM
Outstanding Job Bobster...


Keep the ball rolling...;)

maidos
05-13-2008, 04:09 PM
nice idea but the instructions is quite alot, possible to make this a product?

bobster65
05-13-2008, 04:17 PM
nice idea but the instructions is quite alot, possible to make this a product?

A few posts ago ... :D

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..

maidos
05-13-2008, 07:59 PM
can u post it, since theres too many pages, and if theres any announcement please include it on ur first post

ubeaut
05-13-2008, 09:08 PM
G'day Bobster - I have searched here and can't find the answer to this one. Might be here but...... I can't find it.

On page one the forums are expanded and look like this:
80571

However on the tabbed page all I can get is this:
80572

Is there some code that allows me to have the header expanded as in page 1. Not the brightest with code but not scared to have a go either.

The top link (header) will expand to give the same view as page 1 when it's clicked on.

Cheers - Neil :)

PS Thanks for this great add-on. You've done really well. I love it.

bobster65
05-13-2008, 09:16 PM
can u post it, since theres too many pages, and if theres any announcement please include it on ur first post

When it is done, I will update this Mod thread. (you will receive automatic notice if you have it marked as installed) It is going to be awhile tho.

bobster65
05-13-2008, 09:17 PM
G'day Bobster - I have searched here and can't find the answer to this one. Might be here but...... I can't find it.

On page one the forums are expanded and look like this:
80571

However on the tabbed page all I can get is this:
80572

Is there some code that allows me to have the header expanded as in page 1. Not the brightest with code but not scared to have a go either.

The top link (header) will expand to give the same view as page 1 when it's clicked on.

Cheers - Neil :)

PS Thanks for this great add-on. You've done really well. I love it.

Hey Neil ... looks like from the images that you have some errors in your template .. if you want me to take a look at it, PM the entire FORUMHOME template to me ..

Bob

infinityloop
05-14-2008, 05:55 AM
holy cow, thats cool!

chubzilla
05-14-2008, 06:07 AM
so this mod has no effect on search engine spyders going from tab to tab right?

infinityloop
05-14-2008, 08:55 AM
i have just tried to install it, but i can not find this in the FORUMHOME template

12. Locate the HTML comment <!-- main -->

i am using 3.7.0

fariborz
05-14-2008, 10:17 AM
This Installation very hard :(
Please release your easy setup version.
I'm waiting for new version :)

Thanks

OsideRida06
05-14-2008, 12:09 PM
So does anyone have any ideas on the no refreshing problem?