Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-16-2014, 03:23 AM
clubkeeper clubkeeper is offline
 
Join Date: Feb 2014
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to remove links from postbit dropdown menu?

First off, thank you to the people on this forum! This sort of stuff is new to me and I have found lots of great info while searching the archives. Now for my question...

How can I remove links from the dropdown menu which appears when you click on a username in the postbit?

Blogs are disabled and the only person posting articles is the admin. I want to remove "View Blog Entries" and "View Articles" because it confuses regular members who do not have access to these features. Also, I want to change "View Forum Posts" to read "View more posts by [username]" - is that possible?

I think the template may be called memberaction_dropdown but I could not find much info while searching.

Thank you!
Reply With Quote
  #2  
Old 04-16-2014, 06:28 AM
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Location: TX
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Removing Links From Member Action Drop Down Menu:
1) Go to AdminCP - Styles & Templates - Style Manager
2) For Default Style - Select Menu Item - Template Options "Edit Templates"
3) Find "memberaction_dropdown" in template list and doubleclick on it
4) You will then see the coding for the individual links. It will look like...

Code:
<!-- <vb:if condition="$show['viewblog']">
		<li class="right">
			<a href="{vb:raw $vboptions.vbblog_url}{vb:if "$vboptions['vbblog_url']", '/', ''}blog.php?{vb:raw session.sessionurl}u={vb:raw memberinfo.userid}" class="siteicon_blog" rel="nofollow">
				{vb:rawphrase view_blog_entries}
			</a>
		</li>
		</vb:if> -->
5) To hide the unwanted links just surround them with code added in red above. You could also delete it, but hiding it will allow you to bring it back easier if you choose to in the future.

6) Do this for each individual condition/link you want to hide in the menu.

Note: Alternatively, I believe if you just disable vBulletin Blog and vBulletin CMS under Plugins & Products - Manage Products these links will no longer show and you will not have to edit the template manually, but I'm not positive.
To Change Phrases:
1) Go to AdminCP - Languages & Phrases - Search in Phrases
2) In the Search for Text box enter: View Forum Posts
3) Select Find. (It should only come up with one result.)
5) Click the "Edit" button to the right of the result.
6) Enter the text you would like the button to say in the box and click save.

...as for adding the username variable someone else will need to step in on that. Since the value is not currently available.

Just be aware that it may be more confusing if you add the username variable to just that one link, when all the links in the menu already pertain to that specific user. You may just want to keep it as is.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:43 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.17944 seconds
  • Memory Usage 2,168KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete