vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Mini Mods - [OzzModz] Extra Mod Options In Member Action Dropdown (https://vborg.vbsupport.ru/showthread.php?t=302780)

ozzy47 09-28-2013 10:00 PM

[OzzModz] Extra Mod Options In Member Action Dropdown
 
Another mod brought to you by,
https://vborg.vbsupport.ru/external/2015/01/1.png

[OzzModz] Extra Mod Options In Member Action Dropdown, has won October 2013 Mod of the Month!



Hi all !!

Here is a small modification you can use to show some moderation links in the member action dropdown menu for users.

This was developed on v4.2.x, but should work on all v4.x series.

It is a simple installation, just import the product XML, product-ozzy_extra_mod_options_ma

You can edit the options under the settings, OzzModz: Extra Mod Options Settings

Complete Feature List
  • Option to disable the mod completely.
  • Setting to enter the directory name of your modcp. (required to work)
  • Setting to enter the directory name of your admincp. (required to work)
  • Option to show the ban user link on the left or right side in the menu.
  • Option to show the edit signature link on the left or right side in the menu.
  • Option to show the edit avatar link on the left or right side in the menu.
  • Option to show the edit profile pic link on the left or right side in the menu.
  • Option to show the edit user link on the left or right side in the menu.
  • Option to show the edit reputation link on the left or right side in the menu.
  • Option to show the view change history link on the left or right side in the menu.
  • Option to open the links in the same window or a new one.
-------------------------------------------------------------------------------------------

Please remember to click the, https://vborg.vbsupport.ru/external/2015/08/2.png button to the right if you installed the mod ---->

What does 'Marking As Installed' do ?

* It helps you to stay on top of updates - members who have installed modifications will be notified whenever new updates are available.

* For security issues - vbulletin.org will contact all members who have installed a modification whenever a security issue is brought to their attention.

* Marking a modification as installed also helps me know how many people are using my work, giving me extra incentive to provide more features and new modifications.

I appreciate the support!
-------------------------------------------------------------------------------------------

Translations
Romanian translation available, here

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

* History (Changelog) *

-------------------------
v1.0.0 (September 28, 2013)
- Initial public release.

v1.1.0 (November 11, 2013)
- Added a link to the View Change History for the user.

v1.1.1 (September 13, 2014)
- Fixed a issue with version checking for the mod.

ozzy47 09-28-2013 11:18 PM

Reserved.

tbworld 09-28-2013 11:20 PM

Should be very useful. It is one of those things we have all thought about doing, but never did. Big thanks for sharing! :)

PS: It does seem weird now complimenting another "advisor". Oh well, you deserve it.

ozzy47 09-28-2013 11:22 PM

Thanks, there were some similar ones, but they did not seem to work that well, hopefully this will work for them. :)

djbaxter 09-29-2013 12:39 AM

Interesting. Will give it a test. :)

ozzy47 09-29-2013 12:49 AM

Thanks, hopefully you will like it. :)

Robru 09-29-2013 11:57 AM

Thank You! :)

ozzy47 09-29-2013 12:11 PM

Your welcome, don't forge to mark as installed if you are using it. :)

ozzy47 09-30-2013 01:38 AM

I see we still have some children on this site that like to 1 star mods, grief get a life.

Krusty1231 09-30-2013 05:51 AM

Does what it says right out of the tin. Thanks for sharing!

ozzy47 09-30-2013 09:19 AM

Not a problem, glad ya like it, and thanks for marking as installed. :)

Formina Sage 10-01-2013 01:45 AM

Convenient! Thanks :)

ozzy47 10-01-2013 01:46 AM

Glad ya found it useful, and thanks for marking as installed. :)

crazyboy1661 10-01-2013 06:00 AM

Hey ozzy47, this is another crispy from your Bunch. Excellent one.
Installed and working fine. Rated 5*.
Find the attached pic.

ozzy47 10-01-2013 09:11 AM

Excellent, glad ya like it, and thanks for rating, and marking as installed. :)

Jester1423 10-03-2013 12:27 PM

Installed thank you!

Any idea how to get this fixed the words overlap the image

ozzy47 10-03-2013 12:48 PM

What version of vB are you running?

Can you paste me the contents of your memberaction_dropdown template?

Jester1423 10-03-2013 01:00 PM

im running 4.2.1


Code:

<div class="popupmenu memberaction<vb:if condition="$page_class"> {vb:raw page_class}</vb:if>">
        <a class="username {vb:raw memberinfo.online} popupctrl" href="{vb:link member, {vb:raw memberinfo}}" title="{vb:rawphrase {vb:raw memberinfo['onlinestatusphrase']}, {vb:raw memberinfo.username}}"><strong><vb:if condition="$memberinfo['musername']">{vb:raw memberinfo.musername}<vb:else />{vb:raw memberinfo.username}</vb:if></strong></a>
        <ul class="popupbody popuphover memberaction_body">
                <li class="left">
                        <img src="{vb:stylevar imgdir_siteicons}/profile.png" alt="" />
                        <a href="{vb:link member, {vb:raw memberinfo}}">
                                {vb:rawphrase view_profile}
                        </a>
                </li>
               
                <li class="right">
                        <img src="{vb:stylevar imgdir_siteicons}/forum.png" alt="" />
                        <a href="search.php?{vb:raw session.sessionurl}do=finduser&amp;userid={vb:raw memberinfo.userid}&amp;contenttype=vBForum_Post&amp;showposts=1" rel="nofollow">
                                {vb:rawphrase view_forum_posts}
                        </a>
                </li>
               
                <vb:if condition="$show['pmlink']">
                <li class="left">
                        <img src="{vb:stylevar imgdir_siteicons}/message.png" alt="" />
                        <a href="private.php?{vb:raw session.sessionurl}do=newpm&amp;u={vb:raw memberinfo.userid}" rel="nofollow">
                                {vb:rawphrase private_message}
                        </a>
                </li>
                </vb:if>
               
                <vb:if condition="$show['viewblog']">
                <li class="right">
                        <img src="{vb:stylevar imgdir_siteicons}/blog.png" alt="" />
                        <a href="{vb:raw $vboptions.vbblog_url}{vb:if "$vboptions['vbblog_url']", '/', ''}blog.php?{vb:raw session.sessionurl}u={vb:raw memberinfo.userid}" rel="nofollow">
                                {vb:rawphrase view_blog_entries}
                        </a>
                </li>
                </vb:if>
               
                <vb:if condition="$show['homepage']">
                <li class="left">
                        <img src="{vb:stylevar imgdir_siteicons}/homepage.png" alt="" />
                        <a href="{vb:raw memberinfo.homepage}" rel="nofollow">
                                {vb:rawphrase visit_homepage}
                        </a>
                </li>
                </vb:if>
               
                <vb:if condition="$show['viewarticles']">
                <li class="right">
                        <img src="{vb:stylevar imgdir_siteicons}/article.png" alt="" />
                        <a href="{vb:raw vboptions.vbcms_url}{vb:if "$vboptions['vbcms_url']", '/', ''}list.php/author/{vb:raw memberinfo.userid}-{vb:raw memberinfo.username}" rel="nofollow">
                                {vb:rawphrase view_articles}
                        </a>
                </li>
                </vb:if>

                <vb:if condition="$show['addfriend']">
                <li class="left">
                        <img src="{vb:stylevar imgdir_siteicons}/add.png" alt="" />
                        <a href="profile.php?{vb:raw session.sessionurl}do=addlist&amp;userlist=buddy&amp;u={vb:raw memberinfo.userid}">
                                {vb:rawphrase add_as_contact}
                        </a>
                </li>
                </vb:if>

                <vb:if condition="$show['emaillink']">
                <li class="right">
                        <img src="{vb:stylevar imgdir_siteicons}/email.png" alt="" />
                        <a href="sendmessage.php?{vb:raw session.sessionurl}do=mailmember&amp;u={vb:raw memberinfo.userid}" rel="nofollow">
                                {vb:rawphrase send_email}
                        </a>
                </li>
                </vb:if>
                {vb:raw template_hook.memberaction_dropdown_items}
        </ul>
</div>


ozzy47 10-03-2013 01:09 PM

Seems like that template is using some older code, does it show correctly on a default unmodified style?

Jester1423 10-03-2013 01:20 PM

Its like that even in the default style.

ozzy47 10-03-2013 01:23 PM

Hmmm, that is strange, I guess I can try to add a option somehow that can switch between the older display and the newer code. I will work on that when I get a chance, and hopefully have something by the end of the weekend.

Jester1423 10-03-2013 01:24 PM

Quote:

Originally Posted by ozzy47 (Post 2449674)
Hmmm, that is strange, I guess I can try to add a option somehow that can switch between the older display and the newer code. I will work on that when I get a chance, and hopefully have something by the end of the weekend.

No worries It works fine, just figured if it was an easy fix. Thanks for your support.

synseal 10-23-2013 03:51 PM

Installed Rated and Nominated :)

Excellent mod thank you!

ozzy47 10-23-2013 08:07 PM

Thanks, glad ya like it, and thanks for marking as installed. :)

Terrablade 10-26-2013 01:50 AM

will it work with vb 3.8.7?

ozzy47 10-26-2013 01:53 AM

No it will not sorry. :(

Terrablade 10-26-2013 01:56 AM

Guess not. Installed it but wont show non of the options this pluggin has. :/

ozzy47 11-01-2013 11:13 PM

Thank you to everyone who nominated, and voted for this mod, it did win MOTM for October 2013! :)

Terrablade 11-08-2013 09:01 AM

cant it be done for vb 3.8.7 please/ very useful and it will be very handy for me.

ozzy47 11-08-2013 11:08 AM

I may look into it when I can, but I am a bit back logged at the moment.

Terrablade 11-08-2013 06:54 PM

I hear ya.
Please dont forget about it though. Ill be waiting for it "someday" :D

dizzynation 11-08-2013 07:52 PM

Fantastic Mod, what a time saver....

ozzy47 11-08-2013 08:48 PM

Thanks, glad ya like it, and thanks for marking as installed. :)

Pocket Aces 11-11-2013 03:50 AM

This is really handy. It's a shame though I stumbled with this mod just now. We have this already as template edit. But we prefer product installs over template edits so maybe we'll use this one if this mod behaves the same way as ours.

By the way, if you're planning to upgrade this maybe you could add Account History (admincp/user.php?do=changehistory&userid=X) which is really helpful in viewing changes to username, email add, user groups.

And does a link shows to moderators who doesn't have permission to do so? Our Edit Profile and Account History links are viewable by Admins only. Some board owners here might also have limit Ban User option to Super Moderators and Admins only.

Another thing, if a link is not available for user (ie. Add as Contact), will it show as blank similar to this...

http://leadsites.net/memberdropdown.jpg

ozzy47 11-11-2013 04:11 AM

Yeah I prefer products over template edits.

I can see about adding the Account History to a future version, but is it available to admins, or admins and mods? Also how it the link supposed to know which userid?

Links only show to those who have the proper permissions to do the actions.

If the link is not available to the mod/admin, then nothing shows.

Pocket Aces 11-11-2013 05:02 AM

I see, we'll give this a try then. :)

You may use the same userid variable you used in edit avatar, ban user, etc. Those options depend on userid as well, right? We're using {vb:raw memberinfo.userid} in our template edit. You need admincp access to view account history changes so its for admins only I guess.

ozzy47 11-11-2013 12:21 PM

A new version is now released.

v1.1.0
Added a link to the View Change History for the user.

Pocket Aces 11-11-2013 03:01 PM

Great! Thanks ozzy47 for the fast update. We'll undo our template edits and try this new version. :)

ozzy47 11-11-2013 03:25 PM

Not a problem, glad to help. :)

flirtsnfriends 11-11-2013 04:16 PM

Love it! Thanks for sharing!


All times are GMT. The time now is 04:57 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.01363 seconds
  • Memory Usage 1,826KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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