vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Home Enhancements - [CM] Top Slide Menu (https://vborg.vbsupport.ru/showthread.php?t=286743)

ChiNa 08-16-2012 10:00 PM

[CM] Top Slide Menu
 
1 Attachment(s)
This was brought to you by ChiNa-Man


First of all I am a free soul, So if one of you guys decided to post this on another forum or a website, I would be appreciated if you give some CREDITs to the Developer simply typing his name: Credits to: ChiNa-Man, and do not CHANGE or DELETE the ORIGINAL CONTENT! Thank you!

:::::::::::::::::::::::::::::::::::::::::::::


Top Slide Menu

A big thanks to George from Dynamicdrive.com who answered my Email and with a fast response, and we finally got full permission to this script. As long as the
owner is given credit to.

Extra Credits to:
John Davenport Scheuer / Maxmius & www.dynamicdrive.com

Hey everyone, I have used this Top Menu for a very long, now it was about time to get this officialy on vBulletin! Finally I got the permission to post this and here it is!
Enjoy..



Step 1: Go to your AdminCP, Click on Styles and Templates, then Style Manager, and on your right side in the dropdown sidebar, you choose Edit Templates!

Now you are in the Templates area! You can either add the following code in your "footer" or your "header" template! But always start with the header. Click and open your header template, and add the following code below everything else!

Code to Add in "header" Template:
Code:

<vb:if condition="is_member_of($vbulletin->userinfo,2,5,6,7)">
<style type="text/css">

#menu1 a {color:black;background-color:white;text-decoration:none;text-indent:1ex;}
#menu1 a:active {color:black;text-decoration:none;}
#menu1 a:hover {color:black;background-color:#FFFF99}
#menu1 a:visited {color:black;text-decoration:none;}

#menu2 a {color:navy;background-color:white;text-decoration:none;text-indent:1ex;}
#menu2 a:active    {color:blue;text-decoration:none;}
#menu2 a:visited {color:blue;text-decoration:none;}
#menu2 a:hover {color:navy;background-color:#f0fea8}

#menu3 a { /*Menu3 Links*/
color:black;
background-color:white;
text-decoration:none;
text-indent:1ex;
}
#menu3 a:hover {
color:black;background-color:#FFFF99;
}
#menu3 a:active    {color:black;text-decoration:none;}
#menu3 a:visited    {color:black;text-decoration:none;}


                          /*End Menu Links*/
</style>
<script src="mmenu.js" type="text/javascript"></script>
<script src="menuItems.js" type="text/javascript">

/***********************************************
* Omni Slide Menu script - ? John Davenport Scheuer: http://home.comcast.net/~jscheuer1/
* very freely adapted from Dynamic-FX Slide-In Menu (v 6.5) script- by maXimus
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full original source code
***********************************************/

</script>
</vb:if>


Step 2:
And last step, download the Extras.zip file from the attachments below, and there are 3 files inside. But only upload 2 of the files called menuItems.js and mmenu.js to your forum root!

Names of files
inside the zip file:
Code:

menuItems.js
mmenu.js
Properties (Do not upload)

We are only using and uploading the files menuItems.js and mmenu.js to our forum root! And the 3rd file called Properties (Do not upload) is configurations about the slider, No need to upload! To run it double click or run it in your browser to see the slide options and colors!

We are now done... Please dont forget to click Installed and follow the instructions below for color change and link changes!


------------------------------


Extra & Optional Info (Slide Configuration)


Visibility Notice:
Only Visible for Administrator, Moderator, Super Moderators and Registered Users! If you wanted to change it, then change the code on the first line and the numbers in PINK is the usergoup ID's or numbers showen below:
Code:

<vb:if condition="is_member_of($vbulletin->userinfo,2,5,6,7)">
Important Notice:
(Do not delete the CODE below which is inside our code)

Code:

/***********************************************
* Omni Slide Menu script - ? John Davenport Scheuer: http://home.comcast.net/~jscheuer1/
* very freely adapted from Dynamic-FX Slide-In Menu (v 6.5) script- by maXimus
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full original source code
***********************************************/

The code & script is for free and legal use from & www.dynamicdrive.com! You can also get other version by visiting dynamicdrive.com


Coloring & Editing

If you wanna edit the colors, then ONLY open the menuItems.js with a notepad or a text editor! And folor the "Properties (Do not upload)" FILE for all the instructions! And if you wanted to change the NAMES and LINKS its also very simple! Just replace the links and names at the bottom! DONE



LgsOfChampions 08-16-2012 11:56 PM

very nice. Question, does this remove the current links at the very top (settings, notifications, my profile etc?) Deff like ur mod just don't wanna have that along with what I currently have now.

If you don't know what I mean go to my site top right corner above banner.

PS. check ur PM's on other site :)

ChiNa 08-17-2012 12:11 AM

Nope it doesnt, it fits perfect, Here is an image!
https://vborg.vbsupport.ru/external/2012/08/69.png

Good luck with it, if any questions let me know!

Ups, I just saw your message on the other site, let me check your site and i let you know! Try answer me on the other site so we dont flood it here.. And check my reply as well!

faisaly.com 08-17-2012 01:45 AM

Taken from dynamic drive, hope you asked Maximus if you could use his script...

ChiNa 08-17-2012 03:31 AM

The script is for free legal use, as long as the website is mentioned and given credit too,
And sure we already have contacted DynamicDrive befor publishing, and thanks to George from DynamicDrive, we are good to use the script!

Here are some of the requirments to use this script:

Script for legal use by John Davenport Scheuer / Maxmius & www.dynamicdrive.com
Extra Credits to: John Davenport Scheuer

The script and codes have to be intact:
PHP Code:

/***********************************************
* Omni Slide Menu script - ? John Davenport Scheuer: http://home.comcast.net/~jscheuer1/
* very freely adapted from Dynamic-FX Slide-In Menu (v 6.5) script- by maXimus
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full original source code
***********************************************/ 

:) And thanks for installing

zascok 08-17-2012 11:08 AM

Nice . I can see potential in there. Just a quick suggestion. IMO it would be more effective if the slide come out on hover of the 'Welcome Admin' part. There are enough redundancies on top menu already. Nickname and My Profile are doing exactly the same thing. :)

ChiNa 08-17-2012 01:34 PM

Thank you for your suggestion, because not only that it uses JS file, its very hard to configure! And befor the publish I did speak to many befor making this, and they all suggested that it was best to have to the left side of the Welcome..

I will see if I can make some moves, and get a few people to advice me on the JS file!

Thank you for your suggestion,

qpurser 08-18-2012 12:48 PM

Thanks again for another promising MOD.
I didn't install this one yet but I would have a very good purpose for it on my forum.
I think it would be easy to add a line of coding but don't really know how to do it.

What I would like to do:
We have a special usergroup who has more options on the forum as the "regular" users.
I want to put those links in your MOD for this special user group.
Can I add a conditional to your menu mod which only shows up to this particular user group (when logged in) and how would I do this?

Thanks for any suggestions
Michael

EDIT
Figured it out already but maybe useful for other people using your MOD.
What I did:
<vb:if condition="is_member_of($bbuserinfo, 1,2,3)">
YOUR CODE
</vb:if>

ChiNa 08-18-2012 02:25 PM

Your Idea is great, Now I did modify the code, Thanks for the IDEA.. but your code is right now making it enable for the usergroups below:
1 Unregistered / Not Logged In
2 Registered Users
3 Users Awaiting Email Confirmation

I hope you are aware of it, I am using the code below, a bit different and "ONLY VISIBLE FOR, 5 Super Moderators,
6 Administator, 7 Moderators, 2 Registered Users..

My codes are like this:

For vBulletin 4.x:

Code:

<vb:if condition="is_member_of($vbulletin->userinfo,5,6,7,2)">
PAST THE CODE HERE
</vb:if>

For vBulletin 3.x:
Code:

<if condition="is_member_of($vbulletin->userinfo,2,5,6,7)">
PAST THE CODE HERE
</if>

Good Luck

Milance 08-19-2012 07:37 AM

how to set this to be the left side of the page as http://china-cheats.com/

https://vborg.vbsupport.ru/external/2012/08/64.png


All times are GMT. The time now is 06:40 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.01252 seconds
  • Memory Usage 1,777KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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