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)

CLaNZeR 06-10-2012 08:16 PM

Hi Andreas

Thanks for a great Add-on works well.

Is there anyway we can wrap the buttons when it get to a certain amount so we get a double navigation bar. Or specify how many rows they are displayed across?

I am merging my website into my forums with custom pages and would like a double row of buttons to accomodate all the pages.

Cheers

Sean.

wilford brimley 06-10-2012 09:54 PM

how can i make the highlight stay on for more than a few scripts? it erases them after i type it in. I have five custom pages that are "channels"

I enter it like stream1.stream2.stream3.stream4.stream5 but it cuts off the last two scripts. the tab mod from before didnt do this.

EDIT. it works if you append the parent id to url and then do the same on all the links. it doenst seem to be as smooth as when it just uses the php scripts though. it works if you click from the menu bar but if you link directly to the php it does not. if you use the script it will light up regardless of how you get to it, thats why its better. now you have to add the tab id to every link to a php page if you want it to light up. that sucks.

Using the allow/not allow for usergroups doesnt actually protect the page does it? just who can view the menu item, correct? so if they know the url they can still see it. I add this on my custom php pages:

if (!$vbulletin->userinfo['userid'])
{
print_no_permission();
}

if (!is_member_of($vbulletin->userinfo, 6, 18)) {
// no permission if you aren't a member of usergroupid 6, 18
print_no_permission();
}

just change user id to whatever the group is.

AusPhotography 06-10-2012 10:39 PM

@Wilford - yes Navigation Manager only hide/reveals menu items - it does nothing to control page access (nor should it).

Your code snippets are one approach to the permission problem.

If you make your custom page a plugin product, you can parameterise the member usergroups (or anything) that applies to the security you want to implement.

Kym

CLaNZeR 06-11-2012 08:25 AM

Quote:

Originally Posted by wilford brimley (Post 2338563)
how can i make the highlight stay on for more than a few scripts? it erases them after i type it in. I have five custom pages that are "channels"

In each of my custom .PHP pages I place

Code:

define('THIS_SCRIPT', 'xxx');
Where xxx is the reference I want to use.
Then in Navigation specify xxx in the Tab Script's box

Any sub links I then also use the same reference and it stays highlighted.

Quote:


Using the allow/not allow for usergroups doesnt actually protect the page does it? just who can view the menu item, correct? so if they know the url they can still see it. I add this on my custom php pages:

if (!$vbulletin->userinfo['userid'])
{
print_no_permission();
}

if (!is_member_of($vbulletin->userinfo, 6, 18)) {
// no permission if you aren't a member of usergroupid 6, 18
print_no_permission();
}

just change user id to whatever the group is.
I use this in the templates rather than the PHP scripts, that also works.

Code:

<if condition="is_member_of($bbuserinfo, 6) or is_member_of($bbuserinfo, 5) or is_member_of($bbuserinfo, 7)">

<else />

</if>

Cheers

Sean.

Dragonsys 06-12-2012 01:40 PM

I get this error when I try to upgrade from beta 3 to beta 4:
Quote:

Fatal error: Class 'NavmanEnhancements_Admin' not found in /.../includes/adminfunctions_plugin.php(1174) : eval()'d code on line 3

EDIT: I'm an idiot, I uploaded the files to the wrong site... it works now

Falcon Capt 06-12-2012 09:09 PM

How do you use HTML to change the font color of a menu item. When I put this in the Title of a menu item:

Code:

<span style="color:green;font-weight:bold;">Renew/Extend Your Membership</span>
I get the following error:
Quote:

Invalid Navigation Title
I am also now getting the following error on nearly all of my menu items:
Quote:

Invalid Navigation Id
I'm also running into a problem where after several edits of a menu item, I can no longer make changes to it (the changes appear to save, but when you go back and look, they didn't save).

AusPhotography 06-12-2012 11:55 PM

Andreas is @Forumcon in the USA -- there are a few issues with this tool -- I'm sure he will attend to them when he returns

The title is too long which is why you get the error.
For HTML it needs to have a short title

Dragonsys 06-13-2012 12:47 AM

Quote:

Originally Posted by Falcon Capt (Post 2339108)
How do you use HTML to change the font color of a menu item. When I put this in the Title of a menu item:

Code:

<span style="color:green;font-weight:bold;">Renew/Extend Your Membership</span>
I get the following error:

I am also now getting the following error on nearly all of my menu items:

I'm also running into a problem where after several edits of a menu item, I can no longer make changes to it (the changes appear to save, but when you go back and look, they didn't save).

Use this instead
Code:

<font color="green"><b>Renew/Extend Your Membership</b></font>

Falcon Capt 06-13-2012 02:14 AM

Still getting this error:
Quote:

Invalid Navigation Id

popmyzit 06-13-2012 02:20 AM

Two issues still can't figure out:

1) when one hovers over the menu it doesn't drop down automatically for the user - they have to click on it

2) when I have the tab parent set as a link when you click on it nothing happens - would be nice to allow the link to be active.

Any ideas how to fix the above? thanks good extension


All times are GMT. The time now is 06:48 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.01516 seconds
  • Memory Usage 1,750KB
  • 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
  • (5)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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