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)
-   -   Miscellaneous Hacks - Floating Side Menu (https://vborg.vbsupport.ru/showthread.php?t=162958)

Saviour 11-18-2007 05:27 PM

Fungsten...

Change the code back and let me know if the menu now appears in your forum.

Also...are you trying to get the menu to appear within a CMS...like vbAdvanced?

yoyoyoyo 11-18-2007 05:34 PM

many people have blogs, project tools, vba links, photopost, vba gallery, etc. posted outside the forum directory, or at the root level. I think it is best to change the code from:
Code:

<script src="mmenu.js" type="text/javascript"></script>
<script src="menuItems.js" type="text/javascript">

to:
Code:

<script src="$vboptions[bburl]/forum/mmenu.js" type="text/javascript"></script>
<script src="$vboptions[bburl]/forum/menuItems.js" type="text/javascript">

to avoid any problems like that, and to have the floating side menu appear in every part of your forum. If you do not want the floating sidebar to appear in those places, and only in your forum directory, then do not make that change.

Saviour 11-18-2007 05:39 PM

And a big "Thank You" goes out to yoyoyoyo for making that post.

Fungsten 11-18-2007 05:40 PM

Quote:

Originally Posted by Saviour (Post 1385075)
Fungsten...

Change the code back and let me know if the menu now appears in your forum.

Also...are you trying to get the menu to appear within a CMS...like vbAdvanced?

  1. I changed it back and it worked.
  2. Whatever the code does.

MR.BOSS 11-18-2007 09:20 PM

thanks for this hack, but where should i upload the 2 files exactly?

stationar 11-18-2007 11:45 PM

Quote:

How can I make this menu to also appear in VBadvanced pages?
In "Head" template replace relative links with constant ones:

(Add your address in places, marked red)

src="http://www.yoursite.com/forum/mmenu.js"
src="http://www.yoursite.com/forum/menuItems.js"

Saviour 11-18-2007 11:52 PM

Quote:

Originally Posted by MR.BOSS (Post 1385191)
thanks for this hack, but where should i upload the 2 files exactly?


If you are uploading them for use on just your forum...upload them to the root of your forum directory.

Are you going to be using the menu anywhere else? Do you use vbAdvanced or any other CMS hack? If so...read the post just before this one.

Did you read the directions provided in the text file included in the zipped attachment?

Saviour 11-19-2007 01:53 AM

FLOATING SIDE MENU TIP


This tip is for those who are already using this mod, but have different skins within their forum.

Hopefully, everyone who has downloaded and installed this mod is getting used to the variable changes and adapting the menu to whatever theme they have installed within their forum.

Not to confuse anyone, but did you know you can rename the two javascript files included in this mod and then use them to customize a separate menu for another theme being used within the same forum?

1. Simply rename the two javascript files within the zipped folder of this mod...and edit them by changing any of the related variables to match the style of your other theme.

2. Upload the renamed javascript files to your forum's root directory. You now have 2 sets of the same javascript...both with different names...and both edited to match the other skin you may be using on your forum.

3. Edit the script you will be placing in your skin's header template(s) to point to the new scripts. No need to change the name of the menu within that script.

4. Now copy the script to the beginning of the skin's header template...save your template changes...and, Voila! You have a new menu that matches the look of another skin.

If you'd like a live example, visit the Saviour PC Forum. Do you see the menu for my default skin?

Go to the bottom of the page and choose vbulletin's default skin...notice the new menu?

Pretty cool, huh?

Enjoy!

firstrebel 11-19-2007 03:59 PM

How can I make the menu tab thinner please. Great work, thanks.

Bob

Saviour 11-19-2007 04:34 PM

Quote:

Originally Posted by firstrebel (Post 1385632)
How can I make the menu tab thinner please. Great work, thanks.

Bob

Bob...

Look for this code in the menu.js file:
Code:

if(!o.barwidth) {o.barwidth=22};
Change the number to the width you desire...


All times are GMT. The time now is 01:20 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.01306 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
  • (4)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
  • (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