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)
-   -   Administrative and Maintenance Tools - Navigation Manager Enhancements (https://vborg.vbsupport.ru/showthread.php?t=283123)

AusPhotography 05-25-2012 02:50 AM

Andreas, Will this tool support product import export <navigation> with the extended features?

That would be really cool! :D

Kym

Edit: Or its own standalone import/export navigation function :up:

Andreas 05-25-2012 05:25 AM

Quote:

Andreas, Will this tool support product import export <navigation> with the extended features?
I knew someone would ask :D

It's a bit tricky, but certainly doable!

I'll try to include this in Beta 4.

AusPhotography 05-25-2012 09:33 AM

@Andreas... your mod breaks javascript URLs...

Code:

                        <url><![CDATA[javascript://window.open(getBaseUrl() + 'misc.php?{session.sessionurl}do=buddylist&focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;]]></url>
Eg. The Buddy pop up
:(

Hippy 05-25-2012 09:08 PM

1 Attachment(s)
@Andreas

I have the gameroom mod
on a few sites I manage

the button has a active users [3] in the button <example
here is the code from the plugin

Code:

$lastGameroomTime = time() - 30;
$result = $vbulletin->db->query_read("SELECT COUNT(userID) AS c FROM " . TABLE_PREFIX . "session WHERE lastactivity > $lastGameroomTime AND location LIKE '%gameroom%'");
 $row = $vbulletin->db->fetch_array($result);

$playersInGameroom = $row['c'];

$tabselected = '';
$tablinks = '';
if (THIS_SCRIPT == 'gameroom')
{
    $vbulletin->options['selectednavtab']='gameroom_tab';
    $tabselected = ' class="selected"';
    $tablinks = '                <ul class="floatcontainer">
                        <li><a href="Gameroom.php">Casino [' . $playersInGameroom . ']</a></li>
                </ul> ';


$template_hook['navtab_end'] .= '<li'.$tabselected.'><a class="navtab" href="gameroom.php">Casino [' . $playersInGameroom . ']</a></li>' ;

How would I go about adding this

will your mod do this?

here is a screen shot
https://vborg.vbsupport.ru/attachmen...1&d=1337983705

thanks for any help with this

AusPhotography 05-25-2012 11:15 PM

@hippy I modify the text of the Tab on the fly for our photo competition system.

@hook: parse_templates (just convenient for me)
Code:

$vbphrase['vb_navigation_tab_YOURTABNAME_text'] = "New text";
Easy!

Hippy 05-25-2012 11:25 PM

snoopytas thanks for the reply
but I am confused ..

AusPhotography 05-26-2012 01:33 AM

To alter the text of a tab you need to change the relevant $vbphrase
In my example YOURTABNAME will need to be the name of the tab which is displayed in the Navigation manager.

"New Text" can be anything you need.

Dragonsys 05-26-2012 04:02 AM

a small problem with the Append parent tab id if the link already has var in it (such as page.php?id=2) then the tab id breaks the page (ie: page.php?id=2?tabid=30) in this case it should append a & in place of a ? (ie: page.php?id=2&tabid=30)

awesome improvements to the nav manager!!

Hippy 05-26-2012 10:49 AM

Quote:

Originally Posted by Dragonsys (Post 2332950)
a small problem with the Append parent tab id if the link already has var in it (such as page.php?id=2) then the tab id breaks the page (ie: page.php?id=2?tabid=30) in this case it should append a & in place of a ? (ie: page.php?id=2&tabid=30)

awesome improvements to the nav manager!!

confirmed

thanks
snoopytas will see where my knowledge bring me ..

Hostboard 05-26-2012 01:19 PM

Could you add the ability to show the Nav Bits on a per forum basis.

For example I host 2 forums. 1 for company X and the other for company Y. Company X would like some links added for their members but these links have nothing to do with company Y thus theoretically should not be shown.

Thanx for the consideration


All times are GMT. The time now is 10:36 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.01518 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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