Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[YUI] Tabbed Forum Home Details »»
[YUI] Tabbed Forum Home
Version: 2.0.0, by bobster65 bobster65 is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.7.x Rating:
Released: 12-02-2008 Last Update: 12-02-2008 Installs: 36
Uses Plugins Template Edits
Additional Files Translations Is in Beta Stage  
No support by the author.

Tabbed Forum Home v2.0.0 Beta 1 - YUI Based Tabs

Pulled back and will be re-released at a later date

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #102  
Old 12-04-2008, 10:39 AM
ArnyVee's Avatar
ArnyVee ArnyVee is offline
 
Join Date: Mar 2008
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ooo....share with us AWJunkies!
Reply With Quote
  #103  
Old 12-04-2008, 11:00 AM
AWJunkies AWJunkies is offline
 
Join Date: Jan 2005
Location: San Diego
Posts: 947
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HERE IS A FIX ENJOY

Step #1
Ok do not or revert whatever patch king posted on his link to his site the trying of passing variable to template which you can not do in this case and circumstances. Basically you should have everything installed how they said to do and the files in zip without changing a thing.

Step #2
Now the correct IF statement to enter is below. So change the if statement they have and where to add it to the below one.

NEW CORRECT IF STATEMENT:
Code:
<if condition="(THIS_SCRIPT == 'indexTAB' AND (in_array($forum['forumid'], $_REQUEST['tabcat']) OR in_array('all', $_REQUEST['tabcat']))) OR (THIS_SCRIPT == 'forumdisplay')">

Step #3
Fix for All forums module: For some reason they put -1 instead of all for the tabcat value. So to fix is real easy. There was no check within IF statement for -1 but there was for all.

Module File info BEFORE:
Code:
tabindex.php?tabcat[]=-1
Module File info AFTER:
Code:
tabindex.php?tabcat[]=all

Step #4
Fix for data arrays within modules must be URL strict not safe.

Example before:
Code:
tabindex.php?tabcat[]=1&amp;amp;tabcat[]=47&amp;amp;tabcat[]=58&amp;amp;tabcat[]=70&amp;amp;tabcat[]=78&amp;amp;langid=1
Example after:
Code:
tabindex.php?tabcat[]=1&tabcat[]=47&tabcat[]=58&tabcat[]=70&tabcat[]=78&langid=1

OPEN:
tfh_modules.php (admincp file)

FIND TWO INSTANCES OF:
Code:
'file' => TYPE_NOHTML,
REPLACE WITH:
Code:
'file' => TYPE_HTML,

Step #5 (OPTIONAL)
Also highly recommended for up to date YUI libraries and much quicker load and single batch calls follow the below instructions. Basically replace the add js code into header that is posted in instructions with the below.

FORUM HOME TEMPLATE CHANGE:
Code:
<!-- Tabbed Forum Home Header Code -->	
<!-- Dependencies -->
<!-- TFH Skin CSS for TabView -->
<link rel="stylesheet" type="text/css" href="clientscript/yui/tabview/assets/tabview.css" />
<link rel="stylesheet" type="text/css" href="clientscript/yui/tabview/assets/skin-tfh.css" />

<!-- JavaScript Dependencies for Tabview: -->
<script type="text/javascript" src="clientscript/yui/utilities/utilities.js"></script>
<script type="text/javascript" src="clientscript/yui/element/element-beta-min.js"></script>

<!-- Source file for TabView -->
<script type="text/javascript" src="clientscript/yui/tabview/tabview-min.js"></script>

<!-- Source file for Dispatcher -->
<script type="text/javascript" src="clientscript/yui/tabview/dispatcher.js"></script>

<!-- /Tabbed Forum Home Header Code -->

REPLACE WITH:
Code:
<!-- Tabbed Forum Home Header Code -->	
<!-- Dependencies -->
<!-- TFH Skin CSS for TabView -->
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.6.0/build/tabview/assets/skins/sam/tabview.css">
<link rel="stylesheet" type="text/css" href="clientscript/yui/tabview/assets/skin-tfh.css" />

<script type="text/javascript" src="http://yui.yahooapis.com/combo?2.6.0/build/utilities/utilities.js&2.6.0/build/element/element-beta-min.js&2.6.0/build/tabview/tabview-min.js"></script>

<!-- Source file for Dispatcher -->
<script type="text/javascript" src="clientscript/yui/tabview/dispatcher.js"></script>

<!-- /Tabbed Forum Home Header Code -->
HERE IS A FIX ENJOY
Reply With Quote
  #104  
Old 12-04-2008, 11:02 AM
sweetguy2004's Avatar
sweetguy2004 sweetguy2004 is offline
 
Join Date: Feb 2007
Location: uk
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1- No number of visitors viewing each forum
2- Not crawlable by search engines !

when this problem will be solved this things are important but before this i will have to install it on my forum m also getting this error

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/functions_forumlist.php(395) : eval()'d code on line 1
Reply With Quote
  #105  
Old 12-04-2008, 11:10 AM
AWJunkies AWJunkies is offline
 
Join Date: Jan 2005
Location: San Diego
Posts: 947
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sweetguy2004 View Post
1- No number of visitors viewing each forum
2- Not crawlable by search engines !

when this problem will be solved this things are important but before this i will have to install it on my forum m also getting this error

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/functions_forumlist.php(395) : eval()'d code on line 1
Try the fixes I posted above your post
Reply With Quote
  #106  
Old 12-04-2008, 11:12 AM
sweetguy2004's Avatar
sweetguy2004 sweetguy2004 is offline
 
Join Date: Feb 2007
Location: uk
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

but if i remove if statement will this mod will work?

also i want to know which tab vb.org useis it ajax or simple
& it there any tabb mod which is stable have
1- No number of visitors viewing each forum
2- Not crawlable by search engines !
Reply With Quote
  #107  
Old 12-04-2008, 12:59 PM
SteamyLightning SteamyLightning is offline
 
Join Date: Oct 2008
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sweetguy2004 View Post
but if i remove if statement will this mod will work?

also i want to know which tab vb.org useis it ajax or simple
& it there any tabb mod which is stable have
1- No number of visitors viewing each forum
2- Not crawlable by search engines !
You're not removing the if statement. You're amending the if statement with one that contains parentheses.

And yes, the no number of visitors for each forum is something that they should look into. I reported that bug back in 1.5.
Reply With Quote
  #108  
Old 12-04-2008, 01:01 PM
AWJunkies AWJunkies is offline
 
Join Date: Jan 2005
Location: San Diego
Posts: 947
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SteamyLightning View Post
You're not removing the if statement. You're amending the if statement with one that contains parentheses.

And yes, the no number of visitors for each forum is something that they should look into. I reported that bug back in 1.5.
Just want to make CLEAR MY IF STATEMENT IS COMPLETELY DIFFERENT. So please look at it and read that post.
Reply With Quote
  #109  
Old 12-04-2008, 01:10 PM
sweetguy2004's Avatar
sweetguy2004 sweetguy2004 is offline
 
Join Date: Feb 2007
Location: uk
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AWJunkies View Post
Just want to make CLEAR MY IF STATEMENT IS COMPLETELY DIFFERENT. So please look at it and read that post.
Thanks junkies atleast its work fine i was trying it from 6 months good work
Reply With Quote
  #110  
Old 12-04-2008, 02:32 PM
lowey lowey is offline
 
Join Date: Feb 2007
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ThomasR View Post
Code:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/adminfunctions_template.php(3729) : eval()'d code on line 1
when I save the two templates

and still the error in the tabs:
Code:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/functions_forumlist.php(395) : eval()'d code on line 1
Still the same here after applying the fix.
Reply With Quote
  #111  
Old 12-04-2008, 03:55 PM
murekhalir murekhalir is offline
 
Join Date: Oct 2006
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you guys sure this is the correct insturctions?

when i put this code in lvl1 nopost i get an error.
Quote:


Template: forumhome_forumbit_level1_nopost, forumhome_forumbit_level1_post

Add this code to the beginning of the template:
HTML Code:

<if condition="(THIS_SCRIPT == 'indexTAB' AND in_array($forum['forumid'], $GLOBALS[tabcats]) OR in_array('all',$GLOBALS[tabcats])) OR THIS_SCRIPT == 'forumdisplay'">
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:00 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.04717 seconds
  • Memory Usage 2,323KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (11)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete