vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   User customizable menu? (https://vborg.vbsupport.ru/showthread.php?t=299415)

lgfilmfest 06-23-2013 01:28 AM

User customizable menu?
 
Hi, yes for certain user group on my site, I would like those users to be able to add links to a custom drop down menu. Is there any plugin for that? Like they would be able to add links in the usercp to this menu. For example in the usercp:

Name of link | Link here

Something like that and it would show up in the navbar or header. Is there any plugin out there for this? I have seen some sites have it and I need it for vb 4.2.1

Lynne 06-23-2013 03:00 PM

Have you tried a search? I have no idea if there is a mod, but a search may find one.

I would guess you would create a profile field and have the users input the link and then just put that in the dropdown via a template_hook, if available, or by editing the template.

lgfilmfest 06-23-2013 04:09 PM

Quote:

Originally Posted by Lynne (Post 2430003)
Have you tried a search? I have no idea if there is a mod, but a search may find one.

I would guess you would create a profile field and have the users input the link and then just put that in the dropdown via a template_hook, if available, or by editing the template.

I have searched EVERYWHERE. I cannot find it at all. If you would be so kind to help me! I've seen this other site have it and have no idea how they do it. It wouldn't be a template edit I don't think because then it would show up for all users and I want them to have there own personal links. Please point me in the right direction, I have been looking for days before I posted this.

Lynne 06-23-2013 04:18 PM

If you have seen a site that has it, why don't you ask them if it is from a modification or it was custom coded for their site?

A template edit to add a $bbuserinfo['fieldx'] would not mean it would show up the same for all users as $bbuserinfo is that individual viewing the page.

lgfilmfest 06-23-2013 08:24 PM

Quote:

Originally Posted by Lynne (Post 2430016)
If you have seen a site that has it, why don't you ask them if it is from a modification or it was custom coded for their site?

A template edit to add a $bbuserinfo['fieldx'] would not mean it would show up the same for all users as $bbuserinfo is that individual viewing the page.

I have tried to ask them, but they will not release it. I want to do this for a certain usergroup and deny others. Is there anyway you can go more in depth on what you are telling me now so I can try to create this for my users or link me to a plugin/tutorial.

Lynne 06-23-2013 08:51 PM

As I suggested before, you could do this with User Profile Fields - http://www.vbulletin.com/docs/html/p...rsion=40200603 Have the user enter a link in there, it will be fieldx and then you can spit it out in the navbar as $bbuserinfo['fieldx']

lgfilmfest 06-24-2013 12:27 AM

Quote:

Originally Posted by Lynne (Post 2430062)
As I suggested before, you could do this with User Profile Fields - http://www.vbulletin.com/docs/html/p...rsion=40200603 Have the user enter a link in there, it will be fieldx and then you can spit it out in the navbar as $bbuserinfo['fieldx']

I get what your saying now. Like would I add the code to the navbar and they would enter the link in the profile field, but how would it be named? Like how would they name the link in the menu? I want it to be a drop down menu. Well I have a drop down menu already, but how would they be able to add links to teh drop down menu already in the header? Would I add another profile field for the name?

Lynne 06-24-2013 03:46 PM

Yes, you can add another profile field for the name.

lgfilmfest 06-24-2013 05:19 PM

Quote:

Originally Posted by Lynne (Post 2430221)
Yes, you can add another profile field for the name.

Can you please put it in the if statement I need to put it in the drop down menu I already have, with like the two profile fields please? I'm not great at like template edits like this and i'm still learning so that would very much be appreciated.

Lynne 06-24-2013 11:17 PM

Just use the fieldx in the condition.

HTML Code:

<if condition="$bbuserinfo['fieldx']"><a href="{vb:raw bbuserinfo.fieldx}"><if condition="$bbuserinfo['fieldy']">{vb:raw bbuserinfo.fieldy}<vb:else />Something Else</vb:if></a></vb:if>
Not tried! But, it should be something like that.


All times are GMT. The time now is 10:27 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.03295 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)bbcode_html_printable
  • (4)bbcode_quote_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