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)

tmiland 04-10-2008 07:08 PM

Quote:

Originally Posted by bobster65 (Post 1487620)
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

Quote:

Originally Posted by tmiland (Post 1487715)
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

Quote:

Originally Posted by meissenation (Post 1487858)
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


Code:

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

Quote:

Originally Posted by meissenation (Post 1487922)
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

Quote:

Originally Posted by bobster65 (Post 1487793)
yes. wouldn't be that hard to do..

Sweet! :)

Awaiting instructions... :o

j-n 04-11-2008 04:00 AM

thank you


All times are GMT. The time now is 06:35 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.02155 seconds
  • Memory Usage 1,745KB
  • 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
  • (5)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