vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - Extra Modoptions into users posts (Ban Link, Edit Avatar, Edit sign,..) (https://vborg.vbsupport.ru/showthread.php?t=229728)

Kolbi 12-06-2009 10:00 PM

Extra Modoptions into users posts (Ban Link, Edit Avatar, Edit sign,..)
 
1 Attachment(s)
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.

https://vborg.vbsupport.ru/attachmen...hmentid=114507

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

wragge11 12-07-2009 07:48 PM

Perfect; thanks

Charlie98902 12-07-2009 09:21 PM

Tagged for when vb4 goes gold. Thanks!

Alecsmith 12-08-2009 02:41 AM

Very Very Thanks for great Mod :)

mbc100 12-08-2009 11:36 AM

great mo i will installed later

Kolbi 12-09-2009 06:00 AM

Thank you.
In further versions it will be compatible with TMS and perhaps other options will be included.

MrD 12-13-2009 08:59 AM

H,
i hope you have Sofia asked, to port her Addon to vb4.
https://vborg.vbsupport.ru/showthread.php?t=214402

If yes, a Credit to Sofia are the min. in the addon description.

bilgicc 12-13-2009 01:10 PM

Don't work on vb4 release candidate 2 :(

Charlie98902 12-13-2009 01:11 PM

Quote:

Originally Posted by bilgicc (Post 1929864)
Don't work on vb4 release candidate 2 :(

I expected that from looking at the screenshot and what RC2 shows. Waiting for this patiently as well.

Kolbi 12-14-2009 08:56 PM

Quote:

Originally Posted by MrD (Post 1929794)
H,
i hope you have Sofia asked, to port her Addon to vb4.
https://vborg.vbsupport.ru/showthread.php?t=214402

If yes, a Credit to Sofia are the min. in the addon description.

In her thread:
Quote:

Re-usable Code
But I add here to credit :) I only forgot to do it.

Will get it work with RC2 as soon as possible.

Charlie98902 12-14-2009 08:59 PM

Thanks I hope that there isn't much changed between now and gold.

Kolbi 12-16-2009 04:14 PM

This function:
Quote:

First Condition: in_array($post[usergroupid], array(1,2,3,4,8))
Show link in menu of usergroupid specified.
won?t be avaible since RC2...

So the Modoptions are shown up to everone included to administrator or moderators.
But still only Admins, SMods, Mods can see them.

Update will be avaible on Friday.

Kolbi 12-17-2009 10:25 AM

*updated to RC4*

barcena 12-17-2009 06:28 PM

This mod is amazing, is makes the admin work so much easy, sometimes i have to click five times to get into a member profile etc, so thank you very much, i will installed as soon as i upgrade to 4.0.

Cableguy69 12-18-2009 01:51 AM

Great mod and works perfect here on RC2, thanks.

http://www.hostmypics.org/pictures/2...3ccdaca274.png

Kolbi 12-18-2009 11:42 AM

Thank you for your replies :)

Please rate this modification if you want.


*little update*

bilgicc 12-18-2009 02:59 PM

Thank you Kolbi. Great work ;)

Installed.

Kolbi 12-19-2009 10:33 AM

Next version is planned :)

Release in a couple of days :) Perhaps on Monday...

SİMAR 12-21-2009 05:00 PM

thanks

Kolbi 12-21-2009 08:12 PM

Still works with vB 4.0.0 Gold.

Kolbi 12-27-2009 09:55 PM

version 1.12:

* ban link only for unbanned users visible
* unban link only for banned users visible

Charlie98902 12-27-2009 10:00 PM

Can you please add some icons next to each new link?

Kolbi 12-27-2009 10:23 PM

Quote:

Originally Posted by Charlie98902 (Post 1939769)
Can you please add some icons next to each new link?

Included in version 1.13 :)


version 1.13:

* added icons

Kolbi 12-27-2009 10:39 PM

version 1.14:

* phrased (expect unban link )

Charlie98902 12-28-2009 12:10 AM

Sweet Thanks Kolbi.

Charlie98902 12-30-2009 06:54 PM

On the drop down for ban the user it says ban these users can we get an update for that typo?

Kolbi 01-01-2010 10:07 AM

Quote:

Originally Posted by Charlie98902 (Post 1942776)
On the drop down for ban the user it says ban these users can we get an update for that typo?

Today and tomorrow if will not have the time to fix it. But on Sunday I fix it :)

Kolbi 01-03-2010 03:44 PM

Sorry I have currently no running vB4 system (crashed the old one :D)
but please try:
HTML Code:

<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 ban_user}</a></li>
instead of:
HTML Code:

<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 ban_users}</a></li>

Dr.osamA 01-16-2010 01:08 AM

installed

thanxx
________
IPAD ACCESSORIES

Charlie98902 01-16-2010 01:22 AM

Quote:

Originally Posted by Kolbi (Post 1946071)
Sorry I have currently no running vB4 system (crashed the old one :D)
but please try:
HTML Code:

<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 ban_user}</a></li>
instead of:
HTML Code:

<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 ban_users}</a></li>

Sorry for the delayed reply. Get going then you can fix this. Also tried the new code and all I see is the image and not text. No rush get back up first.

Kolbi 01-16-2010 10:10 AM

Okay, will be fixed soon :)

I haven?t much time at the moment to get vb4 to run.

Kolbi 01-17-2010 05:02 PM

Can you tell me what is written in the phrase {vb:rawphrase ban_users}?
The German translation is correct...

Charlie98902 01-17-2010 07:26 PM

Yes I will in a few got to run into town real quick. Then I'll post that.

vexvegaz 01-21-2010 11:02 PM

great mod..but it was missing something "just edit this user"
so i modded this mod a bit
Code:

<li class="right"><a href="admincp/user.php?do=edit&u={vb:raw memberinfo.userid}"><img src="{vb:stylevar imgdir_siteicons}/settings.png" alt="" /> Edit This user</a></li>
now if you just want to edit everything about the user its just 1 click away.
thanks for sharing this mod..installed

Kolbi 01-22-2010 02:55 PM

Quote:

Originally Posted by vexvegaz (Post 1962882)
great mod..but it was missing something "just edit this user"
so i modded this mod a bit
Code:

<li class="right"><a href="admincp/user.php?do=edit&u={vb:raw memberinfo.userid}"><img src="{vb:stylevar imgdir_siteicons}/settings.png" alt="" /> Edit This user</a></li>
now if you just want to edit everything about the user its just 1 click away.
thanks for sharing this mod..installed

I?m adding this to first post!
Thank you!

zeroality 01-28-2010 10:32 PM

Hey, can you post the code modification or update first post to add these options to PMs as well as posts? We got a PM spammer and I just tried to ban him using this but it doesn't work on PMs. Thanks.

Kolbi 01-29-2010 11:55 AM

I donĀ“t know if there is a function to only disallow PMs?
Perhaps create a new usergroup without PM function and move him into this?

Kolbi 01-29-2010 12:00 PM

Changelog:

version 1.16:

* added Edit renommee

steve1966 01-29-2010 02:25 PM

Quote:

Originally Posted by Kolbi (Post 1969743)
Changelog:

version 1.16:

* added Edit renommee

thank you

zeroality 01-29-2010 08:55 PM

Quote:

Originally Posted by Kolbi (Post 1969740)
I don?t know if there is a function to only disallow PMs?
Perhaps create a new usergroup without PM function and move him into this?

No, you are misunderstanding. I want to be able to ban people from their name link in PMs, not just from their posts. If I am still not being clear, I will take screenshots to show you what I mean.


All times are GMT. The time now is 07:14 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.01643 seconds
  • Memory Usage 1,836KB
  • 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
  • (2)bbcode_code_printable
  • (6)bbcode_html_printable
  • (10)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