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)

dying4004 09-11-2008 08:19 PM

bobster65: awesome mod bro. just changes the whole look of a forum with many catagories. i mean it looks so sleek. i have a prob though. small prob. when i click the 2nd or 3rd tab the status color of the tab doesnt switch. i mean clicking 2nd tab changes the content of the page but the tab1 still shows active. its a bit confusing u know. so cud u plz shed some light on this issue?? cheerz

bobster65 09-11-2008 08:40 PM

Quote:

Originally Posted by dying4004 (Post 1620107)
bobster65: awesome mod bro. just changes the whole look of a forum with many catagories. i mean it looks so sleek. i have a prob though. small prob. when i click the 2nd or 3rd tab the status color of the tab doesnt switch. i mean clicking 2nd tab changes the content of the page but the tab1 still shows active. its a bit confusing u know. so cud u plz shed some light on this issue?? cheerz

That is all controlled via the CSS file. Simply play around with color settings until you get the desired results.... If you find the file too confusing, just PM me the CSS file that you are using and I will try and help you out when I have time :)

dying4004 09-11-2008 09:48 PM

Quote:

Originally Posted by bobster65 (Post 1620119)
That is all controlled via the CSS file. Simply play around with color settings until you get the desired results.... If you find the file too confusing, just PM me the CSS file that you are using and I will try and help you out when I have time :)

thnx a lot for the reply bro. i will try to solve the prb by myself. but if i cant then i might take a precious time of urs to have a luk at my css. regards.

karlm 09-11-2008 09:58 PM

Nice, but now, my admin zone shows to guests - though the contents don't - but they shouldn't be able to see that.

bobster65 09-11-2008 11:38 PM

Quote:

Originally Posted by karlm (Post 1620163)
Nice, but now, my admin zone shows to guests - though the contents don't - but they shouldn't be able to see that.

This is simple (and is explained in post #2) 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)

Code:

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


bobster65 09-12-2008 10:59 AM

Quote:

Originally Posted by illithid (Post 1619098)
I searched this entire thread for any issues with javascript being used inside of the ajax tab view. Couldn't find what I was looking for.

Obviously, the problem is javascript is being suppressed by the ajax tab view. Is there a way to work around this?

Hey Bud.. good news (unfortunately, not for version 1.5 tho) .. With V2, you will be able to execute scripts both remote and inline during the dataSrc request :D

For In Line Javascript, The script tag will be executed when the tab is activated.

For Remote Javascript, you can load components dynamically during the tab loading process. You can dynamically load CSS for your component and have it injected into the current page style set. You'll then be able to create content on the fly using the script inline.

This actually solved a few of the major "bugs" that have been reported which means Version 2 took a major leap towards being released soon for beta testing...

maidos 09-12-2008 11:32 AM

any eta when 2.0 will get released?

illithid 09-12-2008 04:03 PM

Quote:

Originally Posted by bobster65 (Post 1620459)
Hey Bud.. good news (unfortunately, not for version 1.5 tho) .. With V2, you will be able to execute scripts both remote and inline during the dataSrc request :D

For In Line Javascript, The script tag will be executed when the tab is activated.

For Remote Javascript, you can load components dynamically during the tab loading process. You can dynamically load CSS for your component and have it injected into the current page style set. You'll then be able to create content on the fly using the script inline.

This actually solved a few of the major "bugs" that have been reported which means Version 2 took a major leap towards being released soon for beta testing...

Thanks so much, cause I got the #iframe method working, but the links open in the iframe....not very pretty at the moment. As for this fix fixing other issues, I am glad that I brought it your attention. I hope the release isn't much further away. Good work on this guys. :)

bobster65 09-12-2008 05:04 PM

Quote:

Originally Posted by maidos (Post 1620474)
any eta when 2.0 will get released?

No. Getting closer to Beta Testing tho. Knocked out over 10 bugs last night alone by finding a new YUI Tab Component that works great with inline/external JS... Just hanf tight.. its a heck of a lot closer today than it was 12 hrs ago lol

Quote:

Originally Posted by illithid (Post 1620614)
Thanks so much, cause I got the #iframe method working, but the links open in the iframe....not very pretty at the moment. As for this fix fixing other issues, I am glad that I brought it your attention. I hope the release isn't much further away. Good work on this guys. :)

Ya, I mentioned that it was not the ideal solution (rather ugly lol)..btw, not sure if the JS script that KK has on the Dev server is yours or not, but if it is, Its working fine on my own Server with version 2.0 running ;)

And yes, thank you :up:

ShawnV 09-12-2008 05:06 PM

Quote:

Originally Posted by bobster65 (Post 1620643)
No. Getting closer to Beta Testing tho. Knocked out over 10 bugs last night alone by finding a new YUI Tab Component that works great with inline/external JS... Just hanf tight.. its a heck of a lot closer today than it was 12 hrs ago lol


Great news, waiting on 2.0 also, thanks for the update.

_V


All times are GMT. The time now is 03:57 AM.

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.02433 seconds
  • Memory Usage 1,756KB
  • 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
  • (1)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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