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)

megabyte366 09-08-2008 09:37 PM

thanks for the reply bobster65... now i have another problems.. and i'm sure it's an easy fix... the left side where you have the new or old icons.... now that is missing the gif pic.. and has words in it...

thanks for the help

bobster65 09-08-2008 09:48 PM

Quote:

Originally Posted by megabyte366 (Post 1617713)
thanks for the reply bobster65... now i have another problems.. and i'm sure it's an easy fix... the left side where you have the new or old icons.... now that is missing the gif pic.. and has words in it...

thanks for the help

Path issue to the image.. yer the first to have that one (that has been reported).. would you mind PMing me the link to your site so I can check out the front end really quick?

Digital Jedi 09-08-2008 11:09 PM

Quote:

Originally Posted by bobster65 (Post 1617679)
You can wrap the specific <li> tag with a template conditional where the numbers after userinfo are the User Group IDs that you want to display the Tab too.

Code:

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


So for example if you had 3 Tabs and wanted to hide one for Staff Only it would look like this..

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>


Wouldn't that be:

Code:


<if condition="is_member_of($bbuserinfo, 5, 6)">

I thought $vbulletin-> only worked in files.

bobster65 09-09-2008 06:40 AM

Quote:

Originally Posted by Digital Jedi (Post 1617757)
Wouldn't that be:

Code:


<if condition="is_member_of($bbuserinfo, 5, 6)">

I thought $vbulletin-> only worked in files.

You can do it both ways, I prefer to use $vbulletin->userinfo however.

megabyte366 09-09-2008 09:13 AM

bobster65, Got everything working now... went back and redid it.... and pics are showing up... maybe did something wrong the 1st time the pic's are showing up... however; tried the hide the staff with your code and it still shows up.... correction: it worked...placed it at the bottom and it worked for me.. thanks

also have another one..... i have two skins... if i made a new dir under the 2 skin and copy all the files to it and direct/change the file path to the sn2d skin this should also work... or do i just need to make a dir for the tabs/

Thanks.

JVCode 09-09-2008 10:59 AM

Thanks for the mod! works a treat... Just a feature request, Would there be a way to have Sub-Tabs? Same as Sub-forums really, but as tabs. Would be excellent for my games forums.

bobster65 09-09-2008 03:11 PM

Quote:

Originally Posted by megabyte366 (Post 1618092)
bobster65, Got everything working now... went back and redid it.... and pics are showing up... maybe did something wrong the 1st time the pic's are showing up... however; tried the hide the staff with your code and it still shows up.... correction: it worked...placed it at the bottom and it worked for me.. thanks

also have another one..... i have two skins... if i made a new dir under the 2 skin and copy all the files to it and direct/change the file path to the sn2d skin this should also work... or do i just need to make a dir for the tabs/

Thanks.

you can use the same .js file for multiple styles, but you will want to create a new .css file for the 2nd style.. it can be in the same directory, just a different name..

Quote:

Originally Posted by JVCode (Post 1618146)
Thanks for the mod! works a treat... Just a feature request, Would there be a way to have Sub-Tabs? Same as Sub-forums really, but as tabs. Would be excellent for my games forums.

I've played around a little bit with this concept, but right now our main focus is to get v2 out the door.. will certainly add this to the white board tho...

JVCode 09-09-2008 08:25 PM

Thanks for the prompt reply.

One other question; The current system 'Acquires Content' each time when visiting the forum homepage, regardless of whether you've visited another tab or not, which in turn takes some time to load. Is there a way to make it so the Home Page loads as it normally would, (when the hack isn't installed) and just acquire the content on the categories which aren't on the home page?

That's the best way I could word my problem. Anyone make heads or tales of it? Help appreciated :)

illithid 09-10-2008 03:31 PM

1 Attachment(s)
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.

First, let me give props to the author of this mod, it is wonderful! Secondly, I have it installed on my forum and decided that I could use it on my home page as well. It works. My problem though, is that if the tab makes a call to a page that has data generated from javascript, the data won't display(while in the tab view). However, if you go directly to the page, outside of the ajax tab, then the data will display.

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

I have added two images, 1 shows the contents of the ajax tab view for my test file, the second image is the actual display when going directly to the test page.

g0dfather1984 09-10-2008 04:41 PM

1 Attachment(s)
Great feature, however I am having one slight problem.

I have the tabs up for the forums & what not. But there is one that doesn't show up. I have the proper ID for it, but still no luck. Out of 6 different tabs, this is the only one that's not working.

Thank you for your help.


All times are GMT. The time now is 08:53 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.02503 seconds
  • Memory Usage 1,751KB
  • 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
  • (4)bbcode_code_printable
  • (5)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