vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Forum Home Enhancements - [AJAX] Tab Menu For Forum Home (https://vborg.vbsupport.ru/showthread.php?t=181741)

RedTrinity 06-07-2008 09:21 AM

Quote:

Originally Posted by NsT (Post 1542993)
@ GamerGirl27: I checked your source code and everything seems right, I don't see why it doesn't work with default URL. I'll try to see what's happening.

Can you try to set to a different initial category? For example your category 17. Let see if it works?

Hey NsT,

Ok initially I had it set for a few categories for default, now I have just reduced to the one. But its still doing the same thing, unfortunately :confused:

Thanks for your help though, and quick response :D Look forward to getting this working as its just what we need atm!!

Cheers,

Nikki :)

NsT 06-07-2008 09:38 AM

Hi GamerGirl27,

Sorry that I didn't mention on the 1st post that the initial ID must be the same as one of your tabs ID. It means you can only load a specific tab initially.

I see that you reduce the ID string to 3, however, this is not correct because you don't have any <a> and <span> tag with ID=3.

Can you replace 3 by 17? It's the ID of "State Groups & Events" category. Let see how it works.

Stoebi 06-07-2008 09:50 AM

Thanks for this nice hack, but ... the hack is not working, if Javascript is off.

If no Javascript is activated, it should fallback to the normal behaviour. There are so much AJAX hacks around here, but all not really usable, because the most of the programmer are not thinking about Non-Javascript user. :(

NsT 06-07-2008 09:58 AM

Thanks for your comment. Probably in the next version I'll make it workable when Javascript is disable.

In fact, from my experience, 99% of my members use default browser settings and most of them don't know how to disable Javascript. So this mod is okay. I believe disable Javascript is only for people know pretty much about IT and for security reason, Javascript is disable :D

Stoebi 06-07-2008 02:53 PM

Javascript is first disabled for most of the visited sites, because I hate all the popups on many sites. :( If i can trust a site/forum, I'll activate javascript for this site.

For example, see your demo link without Jajvascript. Without javascript, no forums viewable.:(



Kind Regards,

Stoebi

mokonzi 06-07-2008 03:34 PM

I like the idea NsT!

I've installed and come across some problems.

As mentioned, if more than one category is selected for the default, it won't load. Maybe setting the system not to work off the IDs (perhaps giving them unique ones) with a seperate variable that allows you to set what categories are installed might help this problem.

I've also noticed that in IE7 when you load up a tab that has restricted access (this might apply to FF2, I'm not sure yet), for example the Admin Category areas, Moderators forums, etc, the category header loads, as if it's bypassing the check in vBulletin that allows a category to be shown or not. This isn't ideal because I'd like to be able to set a tab to show all the forums that are available, not just a select few. And at the same time not show there are restricted areas to my users, as most will never have a need to know they are there.

This also makes me wonder if it's possible to set a tab to hold the restricted access areas and have it not show up to users without the permissions to see the area.

Also, when you do set the first category to be restricted access in IE7 at least, it loads up the 'no permissions' page within the FORUMHOME template, as opposed to replacing it.

Hope this helps you in the development of a nice little mod.

NsT 06-07-2008 06:30 PM

Hello Mokonzi,

Thanks for your support. I'll spend my time on fixing that problem asap. Since I'm not a coder so I'm not really sure I can do it :D That's why on the Mod Settings, I set this mod to be re-usable so that other coders can develop it if they wish.

About the default category, this won't load probably because you don't have a tab for that category. It means you can only load a specific tab as default when user hit index.php. If you just enter an ID of a category, then sure that it won't load :D

So for example, if you have 3 tabs: Tab 1, Tab 2, Tab 3.
Tab1: href="#1|2"
Tab2: href="#3"
Tab3: href="#4"

If Tab 1 is selected for default, then the startLoad() should take Tab 1 URL: startLoad('1|2') and so on for other tabs.

NsT 06-07-2008 07:53 PM

I've just updated the code. Now there is a message for restricted forum in stead of showing the forum :D or showing the whole login page with header, navigation, footer, etc.

https://vborg.vbsupport.ru/external/2008/06/9.gif

@ Mokonzi: Can you try this and give me your feedback?:D

mokonzi 06-07-2008 08:22 PM

I'll give it a try first thing in the morning.

Regarding the default tab, I have been setting that in the startload() section. If it has a single number in, then it loads that tab, but once it has more than one number ("1|2" for example), then it fails to load anything.

I'm thinking it doesn't like the | character.

Will post back on the new update in the morning.

Deepdog009 06-08-2008 12:58 AM

If U need TAB SETS goto .....>>>>>>>>>> Custom SeTs <<<<<<<<<< *** TAB CiTY ***


All times are GMT. The time now is 11:21 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.01188 seconds
  • Memory Usage 1,741KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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