Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Extra Modoptions into users posts (Ban Link, Edit Avatar, Edit sign,..) Details »»
Extra Modoptions into users posts (Ban Link, Edit Avatar, Edit sign,..)
Version: 1.30, by Kolbi Kolbi is offline
Developer Last Online: Jan 2022 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.0.x Rating:
Released: 12-06-2009 Last Update: 03-20-2010 Installs: 161
Template Edits Auto-Templates
 
No support by the author.

Extra Modoptions into users posts (Ban Link, Edit Avatar, Edit sign,..) - Version 1.30

Install:
If you use TMS you only have to install the product!

1. Upload product-kolbi_modtools.xml via Add-On & Pluginmanager
2. Edit memberaction_dropdown (see below)

Search in the template memberaction_dropdown for:
HTML Code:
{vb:rawphrase send_email}
            </a>
        </li>
        </vb:if>
and add after:

HTML Code:
<vb:if condition="is_member_of($memberinfo, 1, 2, 3, 4, 8) AND is_member_of($vbulletin->userinfo, 5, 6, 7)">
<vb:if condition="$memberinfo['permissions']['genericoptions'] & $vbulletin->bf_ugp_genericoptions['isnotbannedgroup']">
<li class="left"><a href="modcp/banning.php?do=banuser&userid={vb:raw memberinfo.userid}"><img src="{vb:stylevar imgdir_siteicons}/moderation.png" alt="" /> {vb:rawphrase kolbi_banuser}</a></li>
</vb:if>
<vb:if condition="!($memberinfo['permissions']['genericoptions'] & $vbulletin->bf_ugp_genericoptions['isnotbannedgroup'])">
<li class="left"><a href="modcp/banning.php?do=liftban&userid={vb:raw memberinfo.userid}"><img src="{vb:stylevar imgdir_siteicons}/subscribe.png" alt="" /> {vb:rawphrase kolbi_unbanuser}</a></li>
</vb:if>
<li class="right"><a href="modcp/user.php?do=editsig&userid={vb:raw memberinfo.userid}"><img src="{vb:stylevar imgdir_siteicons}/settings.png" alt="" /> {vb:rawphrase kolbi_editsignature}</a></li>
<li class="left"><a href="modcp/user.php?do=avatar&userid={vb:raw memberinfo.userid}"><img src="{vb:stylevar imgdir_siteicons}/settings.png" alt="" /> {vb:rawphrase kolbi_editavatar}</a></li>
<li class="right"><a href="modcp/user.php?do=profilepic&userid={vb:raw memberinfo.userid}"><img src="{vb:stylevar imgdir_siteicons}/settings.png" alt="" /> {vb:rawphrase kolbi_editprofilpic}</a></li>
<li class="left"><a href="admincp/user.php?do=edit&u={vb:raw memberinfo.userid}"><img src="{vb:stylevar imgdir_siteicons}/settings.png" alt="" /> {vb:rawphrase kolbi_edituser}</a></li>
<li class="right"><a href="modcp/user.php?do=reputation&u={vb:raw memberinfo.userid}"><img src="{vb:stylevar imgdir_siteicons}/settings.png" alt="" /> {vb:rawphrase kolbi_editrenommee}</a></li>
</vb:if>
3. You are done.

Notice:

Modcp Name: If you've rename your modcp folder in your server, please change a href="modcp/ in this code.

Admincp Name: If you've rename your admincp folder in your server, please change a href="admincp/ in this code.


First Condition: is_member_of($memberinfo, 1, 2, 3, 4, 8)
Here you define the usergrous there the extra modoptions should be shown.
Here default are usergroups: 1, 2, 3, 4, 8

Second Condition: in_array($bbuserinfo['usergroupid'], array(5,6,7))
In this example, only admins, supermoderators and moderators are able to view this modification.



Please click INSTALL

Regards
Matthias
www.2-wheel-planet.de

Changelog:

version 1.30:
  • corrected 2 phrases - Thanks to zeroality

version 1.20:
  • fully phrased
  • product included
  • TMS support included

version 1.16:
  • added Edit renommee

version 1.15:
  • added Edit this user

version 1.14:
  • phrased (expect unban link )

version 1.13:
  • added icons

version 1.12:
  • ban link only for unbanned users visible
  • unban link only for banned users visible

version 1.11:
  • added condition on which usergroups this modification is shown

Planned for future releases:
  • Usergroups will be selected in AdminCP
  • TMS version

Download Now

File Type: zip kolbi_modtools.zip (20.0 KB, 402 views)

Screenshots

File Type: jpg extramodtools.JPG (25.0 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 09-26-2010, 05:26 PM
gagan007's Avatar
gagan007 gagan007 is offline
 
Join Date: Aug 2010
Location: Bangalore
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in AdminCP I can see this product under "Plugins and Products" by name "Extra Modoptions into users posts" but why am I unable to see this under "Settings" > "Options"??

Although I am able to use this mod in the forum
thanks a bunch...MAI
Reply With Quote
  #73  
Old 09-26-2010, 05:48 PM
Kolbi Kolbi is offline
 
Join Date: Mar 2009
Location: D - S?dbaden
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod doesn?t have any settings

This product only imports language phrases.
Reply With Quote
  #74  
Old 09-28-2010, 08:49 PM
Skyrider Skyrider is offline
 
Join Date: Feb 2006
Location: Netherlands
Posts: 1,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This plugin officially confuses me. I've added the template changes, and imported the plugin. But I see nothing new at all when I hover over the usernames. I'm an admin, and 8 seems to be added already as "being able to see" the plugins changes by default.
Reply With Quote
  #75  
Old 10-05-2010, 10:03 AM
Martini-man's Avatar
Martini-man Martini-man is offline
 
Join Date: Apr 2007
Location: Portugal
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FF|Skyrider View Post
This plugin officially confuses me. I've added the template changes, and imported the plugin. But I see nothing new at all when I hover over the usernames. I'm an admin, and 8 seems to be added already as "being able to see" the plugins changes by default.
Mybe your usergroup ID is different from the who in the mod. Try changing it.

--------

Well, the mod is working properly, but I'm having a little insignificant issue:



This "$bbuserinfo" is still present.

Here is the code, maybe someone could help me hide it.

PHP Code:
<div class="popupmenu memberaction<vb:if condition="$page_class"> {vb:raw page_class}</vb:if>">
    <
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">$bbuserinfo
        
<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="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="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:if condition="is_member_of($memberinfo, 9, 10, 11) AND is_member_of($vbulletin->userinfo, 6, 15)">
<
vb:if condition="$memberinfo['permissions']['genericoptions'] & $vbulletin->bf_ugp_genericoptions['isnotbannedgroup']">
<
li class="left"><a href="modcp/banning.php?do=banuser&userid={vb:raw memberinfo.userid}"><img src="{vb:stylevar imgdir_siteicons}/moderation.png" alt="" /> {vb:rawphrase kolbi_banuser}</a></li>
</
vb:if>
<
vb:if condition="!($memberinfo['permissions']['genericoptions'] & $vbulletin->bf_ugp_genericoptions['isnotbannedgroup'])">
<
li class="left"><a href="modcp/banning.php?do=liftban&userid={vb:raw memberinfo.userid}"><img src="{vb:stylevar imgdir_siteicons}/subscribe.png" alt="" /> {vb:rawphrase kolbi_unbanuser}</a></li>
</
vb:if>
<
li class="right"><a href="modcp/user.php?do=editsig&userid={vb:raw memberinfo.userid}"><img src="{vb:stylevar imgdir_siteicons}/settings.png" alt="" /> {vb:rawphrase kolbi_editsignature}</a></li>
<
li class="left"><a href="modcp/user.php?do=avatar&userid={vb:raw memberinfo.userid}"><img src="{vb:stylevar imgdir_siteicons}/settings.png" alt="" /> {vb:rawphrase kolbi_editavatar}</a></li>
<
li class="right"><a href="modcp/user.php?do=profilepic&userid={vb:raw memberinfo.userid}"><img src="{vb:stylevar imgdir_siteicons}/settings.png" alt="" /> {vb:rawphrase kolbi_editprofilpic}</a></li>
<
li class="left"><a href="admincp/user.php?do=edit&u={vb:raw memberinfo.userid}"><img src="{vb:stylevar imgdir_siteicons}/settings.png" alt="" /> {vb:rawphrase kolbi_edituser}</a></li>
<
li class="right"><a href="modcp/user.php?do=reputation&u={vb:raw memberinfo.userid}"><img src="{vb:stylevar imgdir_siteicons}/settings.png" alt="" /> {vb:rawphrase kolbi_editrenommee}</a></li>
</
vb:if>
        {
vb:raw template_hook.memberaction_dropdown_items}
    </
ul>
</
div
Reply With Quote
  #76  
Old 11-04-2010, 10:49 AM
Kolbi Kolbi is offline
 
Join Date: Mar 2009
Location: D - S?dbaden
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Revert your template and then insert my code again.

I guess there is some original code missing
Reply With Quote
  #77  
Old 04-10-2011, 04:14 PM
HolyKiller HolyKiller is offline
 
Join Date: Dec 2006
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works fine at 4.1.3 !
Reply With Quote
  #78  
Old 10-19-2011, 04:49 AM
VBUsers's Avatar
VBUsers VBUsers is offline
 
Join Date: Aug 2004
Posts: 830
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

4.1.7? anyone ?
Reply With Quote
  #79  
Old 10-19-2011, 05:31 AM
Kolbi Kolbi is offline
 
Join Date: Mar 2009
Location: D - S?dbaden
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It should work on vB 4.1.7 as well.

Currently I'm only using vB 4.1.5 but I guess it's still working.
Reply With Quote
  #80  
Old 07-14-2013, 08:12 AM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good for me too... 4.2.1

Great stuff...
Reply With Quote
  #81  
Old 07-19-2013, 06:20 AM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Disappeared a few times so uninstalled.

Maybe some conflict with other mods... Oh well.

Thanks anyway..
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 06: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.05898 seconds
  • Memory Usage 2,408KB
  • Queries Executed 29 (?)
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
  • (2)bbcode_html
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_postinfo_query
  • fetch_postinfo
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete