vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   End-User Options - Navbar Forumjump- Adds a DHTML "Forum Jump" menu to your Navbar (https://vborg.vbsupport.ru/showthread.php?t=157353)

Selene 09-17-2007 12:40 AM

thanks

jzewatsky 09-17-2007 12:49 AM

Quote:

Originally Posted by oly51 (Post 1340476)
One more change is needed to get the "Go to Last Post" feature working with vbadvanced CMPS.
Change the first part of line 82 to:
Code:

$lastpostlink = ' <a href="../forums/showthread.php'
Again, change "/forums/" to whatever your forums directory is.
Import and overwrite.

Thanks Oly, works great!

Analogpoint 09-17-2007 05:03 PM

Quote:

Originally Posted by yoyoyoyo (Post 1339487)
When I log out of my forum the "Forum Jump" is still showing on the login.php?do=logout&logouthash= link, and it is showing forums that should not be viewable by unregistered guests, such as my moderator areas:

http://img522.imageshack.us/img522/4590/erroryw7.jpg

when I go from there to the forum index.php the forumjump is not viewable, but it is on the login page

This is a problem with the vB core. The forum jump menu is showing for the same reason that the 'register' link is not showing and the 'search' dropdown is showing instead of just a link to the search page. If, after logging out, you go to the forum home page, you will get the register link, as well as just the 'search' link instead of a drop-down.

But in any case, this is *not* a problem, since the *only* way to get to that page and view the forumjump dropdown, is to actually have the privileges and then log out.

There's not much I can do about it, since at that point the vB core code tells me that the user is still a member-- ie the $show[member] variable still evaluates to true.

Analogpoint 09-17-2007 05:19 PM

For those of you who installed this with vBa, there is now a setting to add a relative URL to prepend to the links, so you don't have to hack the files.

@Smoothie. I've done some testing and I think the latest version (1.0.6) should fix your problem. Overwrite the old version with this one, then in the settings, choose not to auto-display the menu, then in your templates, add $forumjumpmenu where you want the menu to appear.

Smoothie 09-18-2007 12:05 AM

Ok, given it another shot.

Smoothie 09-18-2007 12:09 AM

works, somewhat. Link appears in header, dropdown works, but for some reason it displays under the navbar..It's installed on site, check it out.

Analogpoint 09-18-2007 12:44 AM

Quote:

Originally Posted by Smoothie (Post 1341339)
works, somewhat. Link appears in header, dropdown works, but for some reason it displays under the navbar..It's installed on site, check it out.

Would you be so kind as to try this?

Smoothie 09-18-2007 12:47 AM

Quote:

Originally Posted by Analogpoint (Post 1341354)
Would you be so kind as to try this?

trying now.

Smoothie 09-18-2007 12:50 AM

It's installed, but it does not work as well as 1.0.6. It throws all the other links out of wack and it's still under the navbar.

Analogpoint 09-18-2007 12:51 AM

It must be an issue with the fact that the (hidden) dhtml menu is output right beside the menu link, instead of at the bottom of the template, like with the standard menus. Would you like to try one other tweak to see if that's the problem?

Smoothie 09-18-2007 12:52 AM

hope you got a look because I'm uninstalling this last version you posted for me.

Smoothie 09-18-2007 12:53 AM

Quote:

Originally Posted by Analogpoint (Post 1341361)
It must be an issue with the fact that the (hidden) dhtml menu is output right beside the menu link, instead of at the bottom of the template, like with the standard menus. Would you like to try one other tweak to see if that's the problem?

sure.

Analogpoint 09-18-2007 12:58 AM

Try this, and put $forumjumpmenu where you want the menu displayed, and put $forumjumphidden down at the bottom of either your header or navbar templates where it says <!-- NAVBAR POPUP MENUS --> by default that's in the navbar template.

Smoothie 09-18-2007 12:58 AM

For the link dropdowns in the header to work correctly I have to add the id # to my css class. Example,
margin-top: -128px;
margin-left: -50px;

Not sure why the forumjump is displaying under the navbar

Smoothie 09-18-2007 01:01 AM

Quote:

Originally Posted by Analogpoint (Post 1341369)
Try this, and put $forumjumpmenu where you want the menu displayed, and put $forumjumphidden down at the bottom of either your header or navbar templates where it says <!-- NAVBAR POPUP MENUS --> by default that's in the navbar template.

Added like this, in navbar template, still no luck. I'm using the version you posted a few posts above:

PHP Code:

<!-- NAVBAR POPUP MENUS -->
$forumjumphidden 


Smoothie 09-18-2007 01:04 AM

ok, let me try what's posted in post 93

Smoothie 09-18-2007 01:06 AM

Looks like we're 95% of the way home.....give it a look.

Analogpoint 09-18-2007 01:08 AM

Quote:

Originally Posted by Smoothie (Post 1341374)
ok, let me try what's posted in post 93

It's a forum jump allright, it jumped about 200 pixels down from where it should be :) That must be related to the

margin-top: -128px;
margin-left: -50px;

you were talking about. try adding that for this id as well and you should be set.

EDIT: The link id is navbar_forumjump and the hidden menu's id is navbar_forumjump_menu

EDIT2: Also be sure and add the vertical bar divider between the forum jump menu and the Register link :)

Smoothie 09-18-2007 01:12 AM

Quote:

Originally Posted by Analogpoint (Post 1341377)
It's a forum jump allright, it jumped about 200 pixels down from where it should be :) That must be related to the

margin-top: -128px;
margin-left: -50px;

you were talking about. try adding that for this id as well and you should be set.

EDIT: The link id is navbar_forumjump and the hidden menu's id is navbar_forumjump_menu

Jumping for sure. Whats the id name?

Smoothie 09-18-2007 01:13 AM

Bingo! You win. Nice work. Strawberry Smoothie, eh? LOL

Smoothie 09-18-2007 01:23 AM

quick question. when set to "Show Link to Last Post in Forum", hovering over the link gives me a $vbphrase[go_to_last_post]

Smoothie 09-18-2007 01:24 AM

Quote:

Originally Posted by Analogpoint (Post 1341377)

EDIT2: Also be sure and add the vertical bar divider between the forum jump menu and the Register link :)

Thanks, forgot about that.

Smoothie 09-18-2007 01:33 AM

Any word on why this is happening:
https://vborg.vbsupport.ru/showpost....&postcount=101

yoyoyoyo 09-18-2007 02:15 AM

Quote:

Originally Posted by Analogpoint (Post 1340987)
This is a problem with the vB core. The forum jump menu is showing for the same reason that the 'register' link is not showing and the 'search' dropdown is showing instead of just a link to the search page. If, after logging out, you go to the forum home page, you will get the register link, as well as just the 'search' link instead of a drop-down.

But in any case, this is *not* a problem, since the *only* way to get to that page and view the forumjump dropdown, is to actually have the privileges and then log out.

There's not much I can do about it, since at that point the vB core code tells me that the user is still a member-- ie the $show[member] variable still evaluates to true.

since the problem seems to be viewing the forum jump menu after a user logs out, and is sent to the login.php page automatically, can't you just add this conditional around the code?
Quote:

<if condition="THIS_SCRIPT !== 'login'">plugin code goes here</if>
and it actually IS a problem, because as I pointed out, guests can view the moderator only forums - that pic I posted was a registered user account, not my admin account, and as you can see the moderator forums are visible to guests - I do not want that.

Analogpoint 09-18-2007 04:43 AM

Quote:

Originally Posted by Smoothie (Post 1341384)
quick question. when set to "Show Link to Last Post in Forum", hovering over the link gives me a $vbphrase[go_to_last_post]

Fixed in 1.0.7 (also includes the fixes from the strawberry smoothie 'release')

Quote:

Originally Posted by yoyoyoyo (Post 1341404)
since the problem seems to be viewing the forum jump menu after a user logs out, and is sent to the login.php page automatically, can't you just add this conditional around the code?

added

Quote:

Originally Posted by yoyoyoyo (Post 1341404)
and it actually IS a problem, because as I pointed out, guests can view the moderator only forums - that pic I posted was a registered user account, not my admin account, and as you can see the moderator forums are visible to guests - I do not want that.

Hmmm, how are you only displaying the menu to your mods? The plugin only has a setting for displaying to logged in members or to everybody.

That being said there is still no problem, since each user will only see the forums that they have permission to see (just like when viewing the forum home page). And even with out the conditional I added, no user could see any forums they didn't already have permission to see, since the user (with proper permissions) would have to be logged in first, then log out to see the page from your screenshot. Unless of course a moderator logged out, left their browser window open, and then a regular user sat down at the same computer and look at the menu. And even in that case, they could only see the forum titles, and wouldn't be able to enter the forums.

In conclusion, guests can't see your moderator forums. :)

michaelsilvia 09-18-2007 04:52 AM

Always fun getting ignored. :(

yoyoyoyo 09-18-2007 04:53 AM

Quote:

Originally Posted by Analogpoint (Post 1341445)
In conclusion, guests can't see your moderator forums. :)

Well, that is the problem - I think you are misunderstanding me - I did not create an option to only show this to guest or to mods, etc. - the menu displays forums that the guests shouldn't see - the moderator forums - upon logout in the "Forum Jump" menu on the "login.php" page, which is what I have been saying all along. I guess I am the only one having this problem, so I will drop it.

yoyoyoyo 09-18-2007 04:59 AM

WOOT! I just installed 1.0.7 and it is all fixed - thanks much!

Analogpoint 09-18-2007 06:00 AM

Quote:

Originally Posted by michaelsilvia (Post 1341447)
Always fun getting ignored. :(

Sorry, it wasn't on purpose. :(

Quote:

Originally Posted by michaelsilvia (Post 1339872)
Installed it again, but nothing shows up.

http://www.sportscardforum.com

I searched and found:

$template_hook[navbar_buttons_left]

In my navigation bar. I checked and it is turned on. Any idea?

If you're running vB 3.6.8 and import/overwrite the product with version 1.0.7 it should show up by default.

It looks like you have some other mods that quite possibly use the same template hook $template_hook[navbar_buttons_left] probably one of those is overwriting the contents of the template hook instead of adding to it.

I looked at your source code and the hidden menu is actually there, just the link that is attached to the navbar is missing.

Try one of these options:
1. Fix the offending mod(s).
2. Try putting the forumjump menu on the right side of your navbar (in the options)
3. Try manually adding the $forumjumpmenu and $forumjumphidden variables to your templates
4. Change the execution order of the plugins that muck with the $template_hook[navbar_buttons_left] variable and put the forumjump menu plugin last (give it a high execution number), so that if another plugin is overwriting the variable, the forumjump will be added last.

Analogpoint 09-18-2007 06:12 AM

NOTE: This issue is cleared up in version 1.0.7, with a workaround for the fact that vB doesn't update the logged in status for the logout page before the plugin code is called.

Quote:

Originally Posted by yoyoyoyo (Post 1341448)
the menu displays forums that the guests shouldn't see - the moderator forums - upon logout in the "Forum Jump" menu on the "login.php" page

Yes, you are correct, forums that guests shouldn't see are (were in v. 1.0.6) displayed on the forumjump menu when a moderator logs out. BUT, if a guest browsed to the login.php page, they would NOT see the forumjump menu. The only way someone could see it would be to actually log in, and then log out. After you log out, if you hit refresh to re-load the login.php page, the forumjump menu would disappear. So, guests never were able to see forums they didn't have permission to see. I just wanted to clear that up. :)

Smoothie 09-18-2007 07:41 AM

excellent update, thank you.

oly51 09-20-2007 01:19 AM

My members love it. Had a couple of requests from them asking if is was possible to have forums with unread posts highlighted (bold or italic).

periphrastic 09-20-2007 04:03 AM

okay installed & thank you

however, it's not showing up. (i've looked through this thread for answers, but cannot make sense of anything. cannot find the template hook navbar at all)

i think i might need 'beginner's advisement' on this one, if you can

Analogpoint 09-20-2007 04:46 PM

Quote:

Originally Posted by periphrastic (Post 1342875)
okay installed & thank you

however, it's not showing up. (i've looked through this thread for answers, but cannot make sense of anything. cannot find the template hook navbar at all)

i think i might need 'beginner's advisement' on this one, if you can

Go to the product's options page and follow the instructions in the help items. (the little question mark icon.).

If the automatic display is not working, set it to not automatically display, and then insert these two variables into your templates:

$forumjumpmenu -- where you want the menu to appear.
$forumjumphidden -- at the bottom of the same template.

Analogpoint 09-20-2007 05:33 PM

Quote:

Originally Posted by oly51 (Post 1342820)
My members love it. Had a couple of requests from them asking if is was possible to have forums with unread posts highlighted (bold or italic).

Not a bad idea. I'll take a look at it when I get a chance, but if it requires extra queries, I probably won't add it. (right now the product doesn't add any extra queries.)

periphrastic 09-21-2007 03:04 AM

thank you analogpoint for reiterating the instructions, and again for the hack - indeed works well!

Smoothie 09-24-2007 03:07 AM

Quote:

Originally Posted by Analogpoint (Post 1341377)

EDIT2: Also be sure and add the vertical bar divider between the forum jump menu and the Register link :)

Question, which I also asked in the other mod you have, login popup. When I include the vertical pipe between these links, the | shows when the link is not visible. How to include the separator when links are not shown?

Analogpoint 09-24-2007 09:16 PM

Quote:

Originally Posted by Smoothie (Post 1345652)
Question, which I also asked in the other mod you have, login popup. When I include the vertical pipe between these links, the | shows when the link is not visible. How to include the separator when links are not shown?

In your templates, wherever you have the pipe character, just wrap it in a conditional: :)

Code:

<if condition="$vboptions[navbar_forumjump_enable] && $show[popups]"> | </if>

Smoothie 09-24-2007 09:58 PM

Quote:

Originally Posted by Analogpoint (Post 1346314)
In your templates, wherever you have the pipe character, just wrap it in a conditional: :)

Code:

<if condition="$vboptions[navbar_forumjump_enable] && $show[popups]"> | </if>

That didn't quite work. I have the fj disabled for guests, but the pipe still shows.

Smoothie 09-24-2007 09:59 PM

This is what I have in the header template:

PHP Code:

$forumjumpmenu <if condition="$vboptions[navbar_forumjump_enable] && $show[popups]"> | </if> 



All times are GMT. The time now is 06:40 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.01534 seconds
  • Memory Usage 1,850KB
  • 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_php_printable
  • (23)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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