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)

Boofo 05-24-2012 07:16 PM

Quote:

Originally Posted by tbworld (Post 2332449)
Bug: You cannot re-edit the html dialog box. Initial edit works fine.

(At least on my test system :))

PS: Looking good, thanks for the html selection!

Juts curious, what html did you enter?

kapii 05-24-2012 07:24 PM

Quote:

Originally Posted by Andreas (Post 2332349)
Congratulations you've found a bug :)

This should be fixed in the current build.

A new build of Beta 3 has been uploaded that should fix those two issues.

Excellent I will check it out and report back, thanks. :)

Merenguista 05-24-2012 07:25 PM

Thank you Andreas!
Installed & voted!

Papa Bear 05-24-2012 07:50 PM

Quote:

Originally Posted by Boofo (Post 2332455)
Juts curious, what html did you enter?

If you want to change the color of the tab edit the tab title with the code there.That how i got it to work on mine.

HTML Code:

<span style='color: #whatever color'>tab name</span>

tbworld 05-24-2012 08:02 PM

Bug: You cannot re-edit the html dialog box. Initial edit works fine.
Bug: You cannot add a link to an additional parent, if the additonal parent is a menu.

Very awesome features - Thanks Andreas.

Papa Bear 05-24-2012 09:00 PM

strange it lets me edit the html on mine.

Boofo 05-24-2012 09:03 PM

But are you editing a sub-link or a navtab?

Papa Bear 05-24-2012 09:07 PM

that was with me trying to edit the html on a navtab..i have not tried it on a sublink yet.

Andreas 05-24-2012 09:19 PM

Quote:

Bug: You cannot re-edit the html dialog box. Initial edit works fine.
Confirmed. Will be fixed in Beta 4.

Quote:

Bug: You cannot add a link to an additional parent, if the additonal parent is a menu.
Working as designed ;)
My initial goal was to add links and menus to other tabs, not to add links to other menus - but that's doable as well and Beta 4 will support this.

Boofo 05-24-2012 09:24 PM

Quote:

Originally Posted by tbworld (Post 2332486)
It was just a scrap of code that I used on an old tab system. However, it let me know if the hook was usefull. (Bug: Currently you cannot re-edit the HTML box, you will have to delete it and then re-enter the html link.)

HTML Code:

<table width="100%">
        <tbody>
                <tr>
                        <td align="left">
                                <span style="font-size: 18px;">Category</span>
                                <br><span style="font-weight:normal;" class="enlighten">Quick Links</span>
                        </td>
                        <td width="34px" align="right">
                                <img width="32" height="32" src="/images/misc/groups.png">
                        </td>
                </tr>
        </tbody>
</table>


You got a pic of how that looks?

tbworld 05-24-2012 09:39 PM

[QUOTE=Andreas;2332500]Confirmed. Will be fixed in Beta 4.

Actually I guessed that... But, I figured I would pass along the information anyway. Hopefully, this is helpful and I am not being a pain. :)
It is a very nice feature. :)

Thanks Andreas!

tbworld 05-24-2012 09:48 PM

Quote:

Originally Posted by Boofo (Post 2332503)
You got a pic of how that looks?

Currently, I do not and have removed the code an hour ago. But, I could reinstall it (obviously), if you really need one. It was just a snippet I installed or just part of the original code. All the code really did was fancy up the drop-down menu header: with text and icon. Created it for my daughters board.

Anyway, if you still want it. Let me know and I will see if I can grab the entire code and send it your way.

CharlieDelta 05-24-2012 11:28 PM

Are we to import the xml that is inside the Beta_3 zip folder? What is the stand alone product-navmanager_enhancements.xml for?

Papa Bear 05-24-2012 11:40 PM

Yes upload the one in the zip folder..

CharlieDelta 05-25-2012 12:22 AM

Quote:

Originally Posted by Papa Bear (Post 2332537)
Yes upload the one in the zip folder..

Thanks.

I can't for the life of me figure out how to turn a tab into a dropdown.

tbworld 05-25-2012 12:27 AM

It's a three step process.

Create a tab.
Create a menu.
Go back and edit your (Tab), modify the select-box "Tab Menu" and point to your menu.
The "Tab Menu" select box is at the bottom of the page. This box is empty when you first create your tab.

Hope that helps :)

CharlieDelta 05-25-2012 01:18 AM

Thank you tbworld!!!

studify 05-25-2012 02:07 AM

Very well done, Andreas. I just can't understand why those features are not part of the vB 4.2 Core, vB seems to be offering a car w/o tyres...

Nonetheless I get a Database-Error when I want to add a heading oder HTML. I can set it up, but when I click 'Save' I get the following MySQL Error: Unknown column 'exttype' in 'field list'.

Thanks for this mode and for any help in advance.

All the best,
Alex

Hippy 05-25-2012 02:13 AM

Quote:

Originally Posted by studify (Post 2332572)
Very well done, Andreas. I just can't understand why those features are not part of the vB 4.2 Core, vB seems to be offering a car w/o tyres...

Nonetheless I get a Database-Error when I want to add a heading oder HTML. I can set it up, but when I click 'Save' I get the following MySQL Error: Unknown column 'exttype' in 'field list'.

Thanks for this mode and for any help in advance.

All the best,
Alex

Quote:

Originally Posted by Andreas (Post 2332394)
Hmm ... you learn smth. new every day ... my Installcode Generator doesn't work properly with ENUM fields :D

[sql]
ALTER TABLE navigation ADD exttype ENUM ('heading', 'html') NULL
[/sql]

should take care of that.

Quote:

Originally Posted by Boofo (Post 2332375)
I spoke too soon. I get this db error when trying to add a heading:

Code:

Database error in vBulletin 4.2.0:

Invalid SQL:

                REPLACE INTO navigation
                (name, productid, navtype, exttype, html, state, displayorder, parent,
                scripts, showperm, url, version, username, dateline , includegroups, excludegroups, sections, parents)
                VALUES ('heading_nzg4_407','boofo_user_links','link','heading','',0 | 0,40,'menu_nzg0_544','','','','4.2.0','Boofo',1337880296,
        '',
        '',
        '',
        ''
);

MySQL Error  : Unknown column 'exttype' in 'field list'
Error Number  : 1054
Request Date  : Thursday, May 24th 2012 @ 01:24:56 PM
Error Date    : Thursday, May 24th 2012 @ 01:24:57 PM
Script        : http://www.iamgrumpy.com/forums/admincp/navigation.php?do=doaddcustom
Referrer      : http://www.iamgrumpy.com/forums/admincp/navigation.php?do=addcustom&type=heading&navid=78
IP Address    : 173.21.27.150
Username      : Boofo
Classname    : vB_Database
MySQL Version : 5.5.22-cll

Stack Trace:

#0 vB_Database->halt() called in [path]/includes/class_core.php on line 426
#1 vB_Database->execute_query() called in [path]/includes/class_core.php on line 444
#2 vB_Database->query_write() called in [path]/admincp/navigation.php(85) : eval()'d code on line 203
#3 eval() called in [path]/admincp/navigation.php on line 85


same thing boofo posted
the fix is posted there from Andreas

Boofo 05-25-2012 02:16 AM

Yep. Andreas fell asleep on that one. ;)

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

djbaxter 05-26-2012 02:29 PM

Not sure how to use the target option in this add-on and can't find any instructions.

Do I enter _blank, _new, etc.?

Boofo 05-26-2012 02:46 PM

Quote:

Originally Posted by djbaxter (Post 2333094)
Not sure how to use the target option in this add-on and can't find any instructions.

Do I enter _blank, _new, etc.?

Yes. I use _blank to have it open another tab. Whatever you want to show for target="option_here" in the URL. I don't know what _new is.

CoZmicShReddeR 05-26-2012 03:39 PM

Was there something mentioned of custom icon support?

djbaxter 05-26-2012 04:37 PM

Quote:

Originally Posted by Boofo (Post 2333103)
Yes. I use _blank to have it open another tab. Whatever you want to show for target="option_here" in the URL. I don't know what _new is.

Thanks. It doesn't seem to work in Firefox though - loads in the same tab/window regardless. May have something to do with my settings...

"_new" was a lack of coffee... "_blank" is a new page of course. Meant to type "_top".

Added: Just tested it in IE9 and it works as it should.

Boofo 05-26-2012 06:23 PM

I would never intentionally steer you wrong. ;)

dazed12 05-30-2012 04:34 PM

How and where would you add html to center drop-down links?

Andreas 05-30-2012 05:28 PM

Beta 4 has just been released

Changes since Beta 3:
  • All bugs reported for Beta 3 should be fixed
  • Links can now have menus as additional parents (previously links could only have tabs as additional parents)
  • The enhanced attributes are now being imported/exported with the product XM?
  • I've added a new feature to set URL component for each item

res6cue 05-30-2012 06:19 PM

The Beta 3 zip included cssrollup_navmanager_enhancements.xml, which Beta 4 does not have. Should we delete cssrollup_navmanager_enhancements.xml after installing Beta 4, and are we supposed to upload the navmanenhancements folder into the packages folder before installing Beta 4? Or should we just uninstall Beta 3 entirely before installing Beta 4?

Andreas 05-30-2012 09:05 PM

The XML is still required and was missing from the ZIP.

Jakub03 05-30-2012 09:27 PM

awesome mod! works great!


All times are GMT. The time now is 01:02 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.01776 seconds
  • Memory Usage 1,839KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_html_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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