PDA

View Full Version : Mini Mods - [OzzModz] Extra Mod Options In Member Action Dropdown


ozzy47
09-28-2013, 10:00 PM
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! (https://vborg.vbsupport.ru/showthread.php?t=302841)


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 (https://vborg.vbsupport.ru/showpost.php?p=2465471&postcount=48)

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

* 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


<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;showpo sts=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
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!

ozzy47
11-11-2013, 04:45 PM
Glad ya like it, and thanks for marking as installed. :)

Andy.H
11-13-2013, 09:10 PM
Excellent little mod... should help make life easier for our mods, thanks :)

ozzy47
11-13-2013, 10:43 PM
Your welcome, and thanks for marking as installed. :)

SPEEDKILLZ
11-14-2013, 05:05 AM
Great mod ozzy. Marked as installed. Any way to move empty spots to bottom of box?

Terrablade
11-16-2013, 01:18 AM
:( sniff sniff

nxtgen
11-16-2013, 07:11 PM
Great Mod

ozzy47
11-16-2013, 07:12 PM
Thanks, glad ya like it, and thanks for marking as installed. :)

Teascu Dorin
12-03-2013, 05:16 PM
Here is the Romanian translation:

Support and Updates: https://www.rostyles.com/forum/f11/%5Bozzmodz%5D-extra-mod-options-member-action-dropdown-2598/

ozzy47
12-04-2013, 12:16 AM
Thanks for the translation. :)

Teascu Dorin
12-04-2013, 04:36 AM
Thanks for the translation. :)

Welcome.

sv1cec
12-04-2013, 09:37 AM
Could you please add an "Infractions" link to show the member's infactions? That would be tremendous help for our mods.

ozzy47
12-04-2013, 11:00 AM
I will look into it during the next update. :)

sv1cec
12-04-2013, 04:25 PM
While you are at it, why don't you add an "AdminCP Edit" to allow admins and mods to edit the user information, in AdminCP.

Pieper
12-07-2013, 09:51 AM
Hi Ozzy,

Great mod and everything is working!
Do you know why I get this result in Opera's WebInspector (audit):

Put CSS in the document head (91)
CSS in the document body adversely impacts rendering performance.
Link node ozzy_extra_mod_options_mad.css should be moved to the document head in forum.php
Link node ozzy_extra_mod_options_mad.css should be moved to the document head in forum.php
Link node ozzy_extra_mod_options_mad.css should be moved to the document head in forum.php

etc.. (91 lines)

ozzy47
12-07-2013, 10:43 AM
Must be being fussy, there is many mods that start off the css inside the template.

Do these show up all the time or is this some sort of developers tool that shows that?

Pieper
12-07-2013, 11:01 AM
Yes it's the developers tool thats build in Opera (webinspector). when running an audit it shows those 91 lines.
It's shows up all the time when running the audit.

When in a specific forum it show for example:
Put CSS in the document head (19)
CSS in the document body adversely impacts rendering performance.
Link node ozzy_extra_mod_options_mad.css should be moved to the document head in forumdisplay.php
Link node ozzy_extra_mod_options_mad.css should be moved to the document head in forumdisplay.php

Do you think it's one of the other mods I use, because I dont see other people here with the problem. Or can it be the custom style I use?

ozzy47
12-07-2013, 11:06 AM
I don't know, I never tried Opera. I can try it some time this weekend. How do I access the tool once I install Opera on my computer?

Pieper
12-07-2013, 11:21 AM
First screenshot is in Dutch but its: Opera -> Developer tools - > webinspector ( screenshot 1): And there: Audit ( screenshot 2)

ozzy47
12-07-2013, 11:27 AM
Ok I'll check it out when I get a chance. I don't know if there is something that can be done though, I fing it kinda silly to sent that info in the header, instead of in the mods template, but we shall see. I'll have to do some research on it.

Pieper
12-07-2013, 11:32 AM
Thank you.

Hmm, can be something on my site, because when I activate your 'social media link' I get the same result:

Put CSS in the document head (1)
CSS in the document body adversely impacts rendering performance.
Link node ozzy_social_media_links.css should be moved to the document head in forum.php

ozzy47
12-07-2013, 11:39 AM
No it may not be your site, I insert the css the same way in that mod as well, in the template for the mod.

djbaxter
01-07-2014, 12:59 AM
I'd like to add one more item to this: View usernotes for this member

A bonus would be to display this item only if 1 or more usernotes exist.

ozzy47
01-07-2014, 01:01 AM
I'll see what I can do in the next update. :)

djbaxter
01-07-2014, 04:21 AM
I'd like to add one more item to this: View usernotes for this member

A bonus would be to display this item only if 1 or more usernotes exist.

I'll see what I can do in the next update. :)

Thank you! :)

But actually, strike that second part. If it were displayed for users whether or not they had an existing note and linked to the usernotes page/tab, then one could also ADD a note for a user who had none so far, right from the username dropdown.

The label/phrase could be something like "Add/Edit usernotes".

ozzy47
01-07-2014, 04:26 AM
Cool, that will make it easier. :)

djbaxter
01-18-2014, 10:59 PM
Any progress on that addition?

ozzy47
01-18-2014, 11:01 PM
No sorry, I have not had the chance to update this yet. :( Thanks for the reminder though. :)

hoof
01-20-2014, 02:10 AM
Thanks for this, looks and works great - marked installed :)

ozzy47
01-20-2014, 02:11 AM
Glad ya like it, and thanks for marking as installed. :)

Barcham
01-27-2014, 08:20 PM
Hi everyone! I have to confess that I'm a total newb when it comes to setting things up in vBulletin, this is actually my first time setting up a board. I'd love to install this hack but to be completely honest I haven't a clue how to import the XML code or where to import it to! If anyone could just give me a bump in the right direction, it would really, really be appreciated!!

djbaxter
01-27-2014, 08:45 PM
It's all easily done from your vBulletin AdminCP:

1. Download the product XML file from the first post in this thread and save it somewhere where you can easily find it on your home computer: product-ozzy_extra_mod_options_ma.xml (https://vborg.vbsupport.ru/attachment.php?attachmentid=147126&d=1384176006)

2. Go to AdminCP >> Plugins & Products >> Product Manager (left hand menu)

3. Scroll down to the bottom of the list of installed products and click on [Add/Import Product] (right hand AdminCP panel)

3. On the next Import Product screen, next to where is says, "EITHER upload the XML file from your computer", click on Browse and browse to where you saved the XML file from Step 1. Click on the XML filename.

4. Since this is your first time installing this product, leave Allow Overwrite set to No.

5. At the bottom of the top box for that screen, click on the Import button.

And that's it... product installed.

Then go to AdminCP >> Settings >> Options and find in the right panel OzzModz: Extra Mod Options Settings. Click on that and select the settings you want for this mod/add-on... most of them you can probably leave as the defaults.

Barcham
01-27-2014, 08:58 PM
Thanks very much! Followed your instructions and I managed to get everything installed perfectly. The only thing is that I had no choice but to set Allow Overwrite to YES or I would get an error to check my Internet connection. As soon as I set that option to YES, it installed without a hitch and it works perfectly.

I moderated a board for quite a few years and I wish we had such options so easily available from the dropdown menu. Excellent hack!:up:

ozzy47
01-27-2014, 11:17 PM
Glad djbaxter was able to get you going, and thanks for marking as installed. :)

SPEEDKILLZ
02-06-2014, 02:53 AM
Hey ozzy, where i have changed my modcp name i get an error when trying to use certain options on this mod. something that can be fixed?

ozzy47
02-06-2014, 02:56 AM
Edit the settings for the mod, and enter your renamed folders.

djbaxter
02-06-2014, 01:40 PM
Thank you! :)

But actually, strike that second part. If it were displayed for users whether or not they had an existing note and linked to the usernotes page/tab, then one could also ADD a note for a user who had none so far, right from the username dropdown.

The label/phrase could be something like "Add/Edit usernotes".

Bumping to remind you. :)

ozzy47
03-07-2014, 02:17 AM
You must have the reputation system off.

ACP --> Settings --> Options --> User Reputation Options, set the setting Enable User Reputation system to Yes

edgeless
03-07-2014, 02:41 AM
Yes, I just realized that fact and I deleted my post here before refreshing to see that you had already replied (bad me - sorry). Now when I click the edit reputation link with the reputation system enabled, it gives me a "no record" message. Thanks much for the reply.

ozzy47
03-07-2014, 02:48 AM
Correct, no record means there were no comments added. :)

ozzy47
09-13-2014, 10:14 AM
v1.1.1 (September 13, 2014)
- Fixed a issue with version checking for the mod.

kevius
11-08-2014, 09:27 AM
oups i found the answer in this topic. Great !

ozzy47
11-08-2014, 10:45 AM
What was the question?

civicf
02-26-2015, 04:42 AM
Great mod. Thank you!
Is possible to display member email address or ip on dropdown ?