vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Display Enhancements - Tabs Add System for vBulletin 4 (sstab advanced) (https://vborg.vbsupport.ru/showthread.php?t=233629)

Jhonnyf 01-19-2010 10:00 PM

Tabs Add System for vBulletin 4 (sstab advanced)
 
1 Attachment(s)
Review:
This mod allows you to easily add and remove tabs on the navigation bar using the adminCP. Tabs can appear as "selected" after being clicked, automatically deselecting the other tabs.
You also have the option of indicating which groups are allowed and not allowed to see the tabs via usergroup id.
Tabs may operate as normal select tabs, as drop-down menus. or as links to external sites.

The Hack only use 1 SQL sentence to create All the Menu, no Template edition

This Hack allows you to create tabs at the bar of vBulletin 4.0

Installation:

- Upload all files in the UPLOAD folder to the root of the forum
- Import the product 'product-evbs_sstab_advanced.xml'
- Configure and manage your tabs in the "Tabs vbSoporte" menu in AdminCP
- Do not forget to "Allow Overwrite" if you are Updating to 2.0

20-01-10: ver 1.0
  • Create Tabs in vBulletin 4
23-01-10: ver 2.0
  • Create/Manager Tabs Drop Down
  • Create/Manager Sublinks for Tabs
  • Option to Disable FORUM, HOME, BLOG, WHAT'S NEW Defaults vBulletin Tabs and not delete their sublinks menu
  • Phrases in native English and all phrases are in variables
  • Code with new algorithm for better performance
  • Spanish Language (sstab_advanced_spanish.xml)
23-01-10: ver 2.0.1
  • Fix some bugs
  • Work with vBadvanced CMPS Menu
23-01-10: ver 2.0.2
  • Fix menu Tab mix problem
  • Define some Rules:
    1. If TABS is a menu -> No process Sublink
    2. If MENU TAB no have Item -> No Process
27-01-10: ver 2.0.3
  • Change Title Size from 20 to 50 characters
  • Fix Error when not have Tabs
  • Add 2 phrases that I forgot to include in the last version
  • Fix Groups Permission when is a TAB MENU or TAB with SUBLINK
  • Add MultiScript
  • Option to TABMODE (THIS_SCRIPT, URL,URL_PARAMETER) Please, READ POST #2
  • membergroup with a list and checkbox (option to SET Colums in Config)
12-May-10: ver 2.0.4 (Compatible with vB 4.0.3)
  • Fix What's News
  • Add Option to ser Imagen to tabs
  • Credits in footer can be disable from Option Panel
  • Fix Calendar problem
  • Fix Option to URL_PARAMETER
19-Jan-11: ver 2.0.5 (Compatible with vB 4.1.1)
  • Fix All Hide Options
  • Allow to use Phrase as Titles (RULES)
    • If the "Phrase Variable Name" don't exist, them use the TITLE
************************************************** ***
About URL_PARAMETER
To use this Option only Write the Part that Always repeat, por example for this URLs:
  1. http://x.com/showthread.php?1-Nuevo (Main thread)
  2. http://x.com/showthread.php?1-Nuevo&p=13#post13 (Post in thread)
  3. http://x.com/showthread.php?1-Nuevo/page2 (One page of thread)
You Only Set:
  1. Tab Label = Any Name
  2. URL = http://x.com/showthread.php?1-Nuevo (or only http://x.com/showthread.php?1- that have the ID of thread)
  3. Tab mode: URL_PARAMETER
************************************************** ****
About Phrases as TITLES
When you create a New Element (Tab, menu, etc) You see a box to put only the variable Phrase name
https://vborg.vbsupport.ru/attachmen...1&d=1295475459

To create New Phrase go to
Languages & Phrases -> Phrase Manager -> Add New Phrase
************************************************** ****
Special Thank to
vB Style Taught me about new the CSS system and help me using CSS standards
dieKetzer Betatester and Translator to native English Language

Observation:
  • This Hack is FULL AUTO-TEMPLATE but need the default NAVBAR template to work
  • This Hack have copyright ad at the bottom of the page (if you use this)
Spanish Version, (Version en Espa?ol, mi lenguaje Primario :D) -> Tabs Add System for vBulletin 4 (sstab advanced)

************************************************** *****

How to Add Variables Like userid:

if you need to use vBulletin variables to make URL like http://myurl.com/?u={userid} see this Post
https://vborg.vbsupport.ru/showpost....postcount=1031

Jhonnyf 01-20-2010 01:36 PM

Tab mode

URL = With this opcion only the Tab is highlight if match exactly with the URL

if you set "http://www.url.com/showthread.php?59-description"
only with that exactly URL work, then "http://www.url.com/showthread.php?59-description/page2" not macth

URL_PARAMETER = match the URL + Parameters (page=1,etc)
if you set "http://www.url.com/showthread.php?59-description"
then the condition to highlight is
"http://www.url.com/showthread.php?59-description[any, like parameter how /page2, etc]"

THIS_SCRIPT
:

That is a Identificator to know with php archive you are load

You can find this open the php archive that you can highlight, for examples:

In calendar.php
PHP Code:

define('THIS_SCRIPT''calendar'); 

Open showthread.php
PHP Code:

define('THIS_SCRIPT''showthread'); 

Open Group.php
PHP Code:

define('THIS_SCRIPT''group'); 


dieKetzer 01-20-2010 02:08 PM

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.

Jhonnyf 01-20-2010 02:12 PM

Quote:

Originally Posted by dieKetzer (Post 1961225)
these nav hacks are getting better and better :)
any plan to expand the functionality to include subnav links?

Examples? with Imagen please

dieKetzer 01-20-2010 02:20 PM

meaning to allow us to dictate the sub-links associated with each button.
for example, how 'forum' has these sublinks ' New Posts | Private Messages | FAQ | Calendar | Community'
Quote:

Originally Posted by Jhonnyf (Post 1961230)
Examples? with Imagen please


rbc 01-20-2010 02:31 PM

thanks, works great - :)

Jhonnyf 01-20-2010 02:35 PM

Quote:

Originally Posted by dieKetzer (Post 1961236)
meaning to allow us to dictate the sub-links associated with each button.
for example, how 'forum' has these sublinks ' New Posts | Private Messages | FAQ | Calendar | Community'

I did not noticed that there are different links depending on tab, I will do that for the next version or for 500 installs

Skyrider 01-20-2010 03:03 PM

Quote:

Originally Posted by Jhonnyf (Post 1961257)
I did not noticed that there are different links depending on tab, I will do that for the next version or for 500 installs

I hope next version, 500 might take a while. I also would like to see sub-tabs.

BUG REPORT:
I can't delete any tabs! Attempting to delete them brings me to an empty admincp page.

Jhonnyf 01-20-2010 03:29 PM

Quote:

Originally Posted by FF|Skyrider (Post 1961278)
BUG REPORT:
I can't delete any tabs! Attempting to delete them brings me to an empty admincp page.

Fixed. download again

Thank you for report

Muggz562 01-20-2010 03:33 PM

Awesome! Definitely installed! I have been waiting for something like this for awhile. :)


All times are GMT. The time now is 10:14 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.02341 seconds
  • Memory Usage 1,797KB
  • 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
  • (3)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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