Thread: Forum Display Enhancements - Tabs Add System for vBulletin 4 (sstab advanced)
View Single Post
  #3  
Old 01-20-2010, 02:08 PM
dieKetzer dieKetzer is offline
 
Join Date: Mar 2002
Location: melbourne, australia
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry guys, youre on your own with this mod.
i am off to greener pastures; xenforo.com
==================================


update (dec 2011) it appears another coder has made some changes to this mod and made them available. this may fix some issues you are having with this mod.

==================================
this mod is intended for vb4 and its default header navigation template set. if you try to use this on a third-party template set, youre on your own.

quickstart:

in the admin cp under the section 'Tabs vbSoporte' (in the left frame)...

-config - use to turn off/on the default vb tabs, such as forum, whats new, blogs, etc or to turn off the mod, or to change the number of allow/not allow columns to show.

-menu tabs - create a tab for the menu, and decide how it will function.
click 'add new tab' at the bottom and bring up the following
-----tab label - this is the name of the tab, and the text that will appear on the nav tab.
-----this tab is a menu- if you want the tab to activate a drop down list of links, select yes. if you want it to function as a link to a page, leave it set to no.
-----url- if you want this tab to link to a page, enter the url here. if this tab will activate a drop-down menu, leave this blank.
-----tab mode- there are 3 ways to decide how the tabs become 'highlighted', in a selected state:
---------this_script- the most reliable method is to enter the ''this_script' information and select this option. there are cases where tabs will interfere with one another and result in multiple tabs being selected at one time. this is a 'this_script conflict', so you may need to try a url option.
--------url- to instead use the url to enter a selected state, enter an absolute url (ie http://www.example.com/forum/memberlist.php). relative urls (ie /memberlist.php) will fail. do not enter anything into the 'this script' field. (currently bugged)
---------url_parameter- if your url contains parameters (somepage.php?action=1&etc), you will need to select this option. to enter a selected state, enter an absolute url (ie http://www.example.com/forum/memberl...p?action=1&etc). relative urls (ie /memberlist.php) will fail. do not enter anything into the 'this script' field. (currently bugged)
-----set the this_script value- if youre using the 'this_script' method, enter the information here, ie arcade. if you are instead using the one of the url options, leave this blank.
-----target- determines if the link should open a new window or not. _self=same window, _blank=new window. if you are attempting to use javascript* to open a new window you may want to leave this set to _self if extra windows open.
-----allow/not allow- you can make tabs visible to admin-only, invisible for the unregistered, etc.
-----tab is active- you can turn off a tab if need be
-----tab position- use this to position a tabs location on the nav bar relative to the default vb tabs.
-----display order- within each tab position, in what order will these tabs appear in the navigation bar? enter a numeric value. lower numbers appear first, a tab with an order of 10 will appear before one with an order of 20.
*you can set multiple tabs' display orders in one shot on the main menu tab page. remember to click 'save changes' when youre finished.

-drop-down items- if you selected tab is a menu=yes when creating a tab. you can enter its menu items here. a drop-down menu tab and its menu items are not expected to select/highlight.
click 'add item' at the bottom and bring up the following
-----parent tab- which tab is this a menu item for? select it from the list. if the tab is not listed, check to make sure you set its 'tab is a menu' option to yes.
-----menu text- what you want the link to say on the menu.
-----url- the page you want to link to
-----target- determines if the link should open a new window or not. _self=same window, _blank=new window. if you are attempting to use javascript* to open a new window you may want to leave this set to _self if extra windows open.
-----allow/not allow- you can make tabs visible to admin-only, invisible for the unregistered, etc.
-----menu item active- you can turn off a menu item if need be
-----display order- in what order will these tabs appear in the drop down menu? enter a numeric value. lower numbers appear first, a tab with an order of 10 will appear before one with an order of 20.
*you can set multiple menu items' display orders in one shot on the main menu item page. remember to click 'save changes' when youre finished.

-nav sub-links- if you want a horizontal row of links to appear under the tabs when clicking a tab and navigating to a particular page, you may add them here. in order for sub-links to appear, the parent tab must be in a selected state. if you havent managed to get the tab to appear highlighted, your sub-links will not appear.
click 'add item' at the bottom and bring up the following
-----parent tab- which tab is this a sub-link item for? select it from the list. if the tab is not listed, check to make sure you set its 'tab is a menu' option to no.
-----menu text- what you want the link to say on the sub nav bar.
-----url- the page you want to link to
-----target- determines if the link should open a new window or not. _self=same window, _blank=new window. if you are attempting to use javascript* to open a new window you may want to leave this set to _self if extra windows open.
-----allow/not allow- you can make links visible to admin-only, invisible for the unregistered, etc.
-----menu item active- you can turn off a link item if need be
-----display order- in what order will these links appear in the sub nav bar? enter a numeric value. lower numbers appear first, a tab with an order of 10 will appear before one with an order of 20.
*you can set multiple menu items' display orders in one shot on the main nav sub-links item page. remember to click 'save changes' when youre finished.

*about launching javascript windows: RK1gaming found he could get a tab to launch a javascript window by using the following injection as the tab url:
Code:
'javascript:void(0)' onclick='window.open("http://www.example.com/somepage.html","","height=407,width=650,status=1")
leave 'target = _self'. this is an unsupported use, but it appears to work.

here are THIS_SCRIPT for things
  • vbadvanced home - adv_index
  • ispy - vaispy
  • vbcms 'content.php' - vbcms
  • PhotoPost - ppindex
  • links and downloads manager - local_links
  • ibProArcade - arcade
to find a this_script:
open the php file (locally, not the webpage!) youre trying to link to and look for this line in the code:

define('THIS_SCRIPT', 'blahblahblah');

insert the blahblahblah into the 'this_script' field (without the quote marks).
although not chiselled in stone, generally this_script is is the same as the script file name.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01716 seconds
  • Memory Usage 1,798KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete