PDA

View Full Version : End-User Options - Automatic UserCP Navbar Menu


Atakan KOC
05-08-2008, 10:00 PM
Automatic UserCP Navbar Menu

his hack is made for to put tp the navbar the usercp as default whici will not effect by the template changes. I made this hack because sometimes I am so busy to edit the templates so I made navbar default templates. Hope you like it.

install

Go to your admin cp, then:
Plugin System -> Manage Products -> [Add/Import Product] -> Select 'product-usercpnavbarmenu.xml' from your computer then press 'Import'

Modifications Info

Plugin : 2
Phrases : 0
Template : 1
Setting : 0

Versions:
v1.0 - 5 May 2008
-First release

KURTZ
05-09-2008, 04:23 PM
installed!

Subah
05-09-2008, 04:24 PM
Cool , Thanks :)

avsunforum
05-09-2008, 04:41 PM
Thanks

fingertip
05-09-2008, 05:54 PM
Installed. Many thanks.

Hornstar
05-09-2008, 08:02 PM
Yeah, something once again which should be default, makes it so much quicker and faster now to access certain things. Thanks!

rizelim
05-09-2008, 08:04 PM
thanks Atakan

Hornstar
05-09-2008, 08:04 PM
Can you include subscription payments into the menu for us? the more areas it is in the better ^^

habilonline
05-09-2008, 09:48 PM
Thanks Atakan.

Jeordie015
05-10-2008, 01:09 AM
I'm not sure what this does. Could someone explain?

neoxi
05-10-2008, 04:16 PM
thank you. ( teşekk?rler :) )

echo2kk5
05-10-2008, 04:58 PM
I'm not sure what this does. Could someone explain?
I'm with you on this one...what does it do?

prowarfare
05-11-2008, 06:09 AM
I have made a custom navbar, Can you post the code we need to insert for this to work?

Howell
05-11-2008, 07:48 AM
Excellent *installed*

Is it also possible to make this function in the navbar on the vBAdvanced page?

MrNase
05-11-2008, 12:07 PM
I'm with you on this one...what does it do?

I try to explain:

By default there is only a simple link to the User CP. You have to edit the template 'navbar' so that this little menu opens when you click the link (see screenshot, normally you are taken to the User CP directly).

This Add-on generates this menu for you so that you don't have to edit the template every time a new version of vBulletin comes out. :)

BarcaMaroc
05-11-2008, 01:34 PM
very good

Super Jinni
05-18-2008, 07:36 PM
nice one

thanks

is there anyway to add more options?

^^

queengoc
05-19-2008, 04:16 AM
Works great! I was looking for this. Thanks!

SNATCH3R
05-19-2008, 05:09 AM
Wonderful mod......thanks for this...

Super Jinni
05-19-2008, 01:03 PM
emm

there is a small problem

it doesn't work with vbadvanced portal

if you can fix this issue, that will be great for this nice plug-in

thanks

:)

ExTincTi0N
05-20-2008, 11:06 PM
Thanks man but I am using a template I got here and it doesn't work.
What do I need to change in the template you really didnt say what.

Derekclarke
05-23-2008, 08:40 PM
Works Great... As per the post by Super Jinni it would be good to get this working on Vbadvanced.

sdavis2702
05-27-2008, 12:55 PM
I don't know why I never thought to do this already. Thanks!

TheInsaneManiac
06-15-2008, 08:41 AM
I really like this, but unfortunately it does not work on one of my styles. So I was hoping you could just post the template edit and I manually add it to all my templates.

delibakis
06-15-2008, 01:12 PM
Atakan cok sagol süper olmus

TheInsaneManiac
06-27-2008, 10:53 AM
I really like this, but unfortunately it does not work on one of my styles. So I was hoping you could just post the template edit and I manually add it to all my templates.

Still need help on this. Here is my original way the template looks:
<if condition="$show['member']">
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>
<td align="center" class="h_nav"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

</if>

tazzarkin
06-28-2008, 12:12 AM
Okay. After experimenting with my custom styles, this is what I guessed...

Take the original "UserCP" in the NavBar:

<td class="vbmenu_control"><a href="{$vbulletin->options[bburl]}/usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>

And replace it with:

<td id="usercpnmenu" class="vbmenu_control"><a href="{$vbulletin->options[bburl]}/usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a> <script type="text/javascript">vbmenu_register("usercpnmenu"); </script></td>

This seems to make it work. (Took it from the xml file.)

Is that correct?

tazzarkin
06-28-2008, 01:23 AM
A second idea is to edit the template file and create a 2nd Global template called "Header_navbar_user_menu". So then there would be two global templates.

Then change every templatecache['navbar'] to templatecache['header'].

This should make it search the header template as well as the navbar template. That's my guess, but I want to ask the author, Atakan KOC.

Because many of our custom navbars are in the header template as well as the navbar template. I want to test it out, but I am a little afraid because I've never made an xml file before.

Would that work? Could you make a new xml that would search the navbar template AND the header template?

(might as well search the head include and footer too, since those are the main 4 templates they always use for custom styles)

By the way, it's cool how you did this. In the future, I think I'll make an xml file/special template for all my dropdown menus. I need to practice a little though.

One added note: It would be cool to make a mod that would make the xml file for any drop-down menu you choose. You would input the drop-down title, then drop-down items and links, and then the Title and Template name. Then you hit enter and it would make the xml file for you. That would be cool.

tazzarkin
06-28-2008, 01:33 AM
Atakan KOC,

I talked about your xml file in this link:

https://vborg.vbsupport.ru/showthread.php?t=183578

Based on this, I suggested a new mod that would make menu creation so easy. Do they have something like that? Okay... enough for one day. lol.

RedGTiVR6
06-30-2008, 06:18 PM
Hrmmm - sure would be nice to be able to easily add links to this drop down....

tazzarkin
06-30-2008, 08:52 PM
Hrmmm - sure would be nice to be able to easily add links to this drop down....
---------------------------------------

Actually, it is easy... either you change them in the original xml file and then upload it again (with overwrite) as a product, or you just make a change to the template file in the particular style.

Takes a little practice, but after you do it a few times, it becomes a piece of cake.

Thanks to the author for the mod. It taught me an easy way to make menu changes for all my drop-don menus. Thank you so much!

RedGTiVR6
07-01-2008, 12:32 PM
I know it's possible that way, I'm saying it would be cool to have a box or something in the AdminCP where you can add a link without having to type code.

raja811
11-14-2008, 08:19 AM
thanks