vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Forum Home Enhancements - [AJAX] Tabbed Forum Home (https://vborg.vbsupport.ru/showthread.php?t=175687)

cbiweb 10-16-2009 10:15 PM

Quote:

Originally Posted by cbiweb (Post 1876112)
...would like to have a default tab selected when the page loads. I see instructions for v1.01, is there way to do the same thing in 1.5.0?

Quote:

Originally Posted by bobster65 (Post 1876116)
ya, use the "selected" calls on the specific li tag

Quote:

Originally Posted by cbiweb (Post 1876122)
...doesn't seem to be working... I've made sure that only the tab I want selected has the call. Here's the code from my template:

Code:

<div id="ajaxTFH" class="TFHmenu2">
    <ul>
        <li><a href="/tabforumhome.php?tabcat[]=12" rel="ajaxTFHcontentarea">THE LOBBY</a></li>
        <li class="selected"><a href="/tabforumhome.php?tabcat[]=60" rel="ajaxTFHcontentarea">TECH SUPPORT</a></li>
        <li><a href="/tabforumhome.php?tabcat[]=117&tabcat[]=33&tabcat[]=93&tabcat[]=56" rel="ajaxTFHcontentarea">TECH TALK</a></li>
        <li><a href="/tabforumhome.php?tabcat[]=4&tabcat[]=146" rel="ajaxTFHcontentarea">GENERAL DISCUSSION</a></li>
        <li><a href="/tabforumhome.php?tabcat[]=7&tabcat[]=8&tabcat[]=10" rel="ajaxTFHcontentarea">STAFF</a></li>
    </ul>
</div>

I want the Tech Support tab to be default on page load, but it's not, it just stays on whatever tab was last used. :(

Quote:

Originally Posted by bobster65 (Post 1876126)
That looks correct .. did you try and flip flop the 2 li lines (lobby and Tech support) so that the selected is the first tab (just to make sure that is working)

Quote:

Originally Posted by cbiweb (Post 1876129)
Just tried flip flopping the tabs, and they changed places as expected, but the "selected" didn't do its thing.

Quote:

Originally Posted by bobster65 (Post 1876134)
That's weird... I'll have to dig into it and see if I can replicate the problem and then recommend a solution..




Did you find anything on this? It still does not work for me.

bobster65 10-17-2009 02:21 PM

Quote:

Originally Posted by cbiweb (Post 1901122)
Did you find anything on this? It still does not work for me.

to be honest, no, I have not.. I've been concentrating on v2 and prepping a version for vB4

writerkimba 10-17-2009 11:46 PM

1 Attachment(s)
I've just installed this and think it's a great idea! However, when I worked out my tabs, I have these white spaces between each category. How do I get rid of them? Thanks in advance.

ChopSuey 10-18-2009 01:50 AM

Thats probably from the modification, seperate forum categories. Might want to disable it if you have tabs ;)

writerkimba 10-18-2009 02:06 AM

Err ... disable what exactly? :confused:

If someone can point me in the right direction of getting rid of the whitespace, it'll be greatly appreciated!

writerkimba 10-18-2009 02:13 AM

Nevermind. I've worked it out! :)

I have one question though. Is it at all possible to set it so that different tabs can only be seen by certain usergroups?

cbiweb 10-18-2009 09:58 AM

The second post in this thread explains how to do that. :)

purrtypaws 10-22-2009 08:36 AM

1 Attachment(s)
Hi there, I havent read the whole thread so I'm not sure if this problem has been covered... my problem...

not sure what Ive done wrong, any help would be most appreciated :D

error2 is the forum home, error3 is when i press 'rural' link.

cbiweb 10-22-2009 10:39 AM

Remove the forward slashes in the FORUMHOME template that I've highlighted in red below:

Code:

<!-- Tabbed Forum Home Header Code -->   
    <link rel="stylesheet" type="text/css" href="/clientscript/tabs/ajaxtabs.css" />
    <script type="text/javascript" src="/clientscript/tabs/ajaxtabs.js"> </script>
<!-- /Tabbed Forum Home Header Code -->

That should do the trick. :)


Also, you will need to go to clientscript > tabs > ajaxtab.js , and remove the forward slash in this section of code:
Code:

var ddajaxtabssettings={}
ddajaxtabssettings.bustcachevar=1  //bust potential caching of external pages after initial request? (1=yes, 0=no)
ddajaxtabssettings.loadstatustext="<img src='/clientscript/tabs/loading.gif' /> Requesting content..."

This will make the animated loading image appear when you click a tab.

purrtypaws 10-22-2009 11:45 AM

thank you cbi, you're a star!

is it possible to show the forums too or just the catagories?


All times are GMT. The time now is 07:11 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03418 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete