vb.org Archive

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

TheSupportForum 09-20-2009 05:41 AM

the only reason why no ip would show in the post you want to ban the user from is very simple

there are many people who use a proxy to access the internet to hide there ip address
vbulletin does not pick up ip address behind some proxy ip address or private ip addresses

for example
i work for a companie that use
equinoxsolutions as there service provider, however to access there internet serivce you are required to input an proxy address in your broswer settings

so if your not seing an ip address related to a post, then this is the reason

if its a different issue please feel free to ask

Dingo14 09-20-2009 08:15 AM

sorted this thanks

need2fart 10-26-2009 04:26 AM

Thank you so much Sofia this is the best mod and makes me feel like forum moderating is so easy. =)

Thank you for making my life so much easier!

bluej 11-09-2009 08:08 AM

not working for me either in 3.8.4

could it have something to do with this mod?
https://vborg.vbsupport.ru/showthread.php?t=207751

Dr.Customs 11-18-2009 09:31 AM

i enhanced this a little bit, its still all the same links
it will only show for admins, but u can add more if u want
and it has better english (no offence)

and i recomend to add it right after
Code:

<if condition="$post['userid'] AND $show['member']">
        <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_contacts]</phrase></a></td></tr>
        </if>



Code:

<if condition="$bbuserinfo[usergroupid] == 6">
<tr><td class="thead"><strong><u>Mod Option</u></strong></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]','ban','width=500,height=350,scrollbars=yes')">Ban: $post[username]</span></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=liftban&userid=$post[userid]','ban','width=500,height=350,scrollbars=yes')">Unban: $post[username]</span></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=editsig&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')">Edit $post[username]'s Signature</span></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=avatar&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')">Edit $post[username]'s Avatar</span></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=profilepic&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')">Edit $post[username]'s Profilpic</span></td></tr>
<tr><td class="vbmenu_option">$post[username]'s IP-Adress: $post[ip]</td></tr></if>


bluej 11-20-2009 02:39 AM

Quote:

Originally Posted by Dr.Customs (Post 1916503)
i enhanced this a little bit, its still all the same links
it will only show for admins, but u can add more if u want
and it has better english (no offence)

and i recomend to add it right after
Code:

<if condition="$post['userid'] AND $show['member']">
        <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_contacts]</phrase></a></td></tr>
        </if>



Code:

<if condition="$bbuserinfo[usergroupid] == 6">
<tr><td class="thead"><strong><u>Mod Option</u></strong></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]','ban','width=500,height=350,scrollbars=yes')">Ban: $post[username]</span></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=liftban&userid=$post[userid]','ban','width=500,height=350,scrollbars=yes')">Unban: $post[username]</span></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=editsig&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')">Edit $post[username]'s Signature</span></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=avatar&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')">Edit $post[username]'s Avatar</span></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=profilepic&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')">Edit $post[username]'s Profilpic</span></td></tr>
<tr><td class="vbmenu_option">$post[username]'s IP-Adress: $post[ip]</td></tr></if>


thanks so much this worked great :D

Fastbird 11-23-2009 11:38 PM

Sofia, can you please update your install instructions with the correct info. I installed this today after the fix had been discovered and had been experiencing similar issues. It would be wonderful for anyone coming in after the fixed code to have it correctly.

delfost 12-02-2009 02:31 AM

how i can add more usergroupid ???
Thanks


Quote:

Originally Posted by Dr.Customs (Post 1916503)
i enhanced this a little bit, its still all the same links
it will only show for admins, but u can add more if u want
and it has better english (no offence)

and i recomend to add it right after
Code:

<if condition="$post['userid'] AND $show['member']">
        <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_contacts]</phrase></a></td></tr>
        </if>



Code:

<if condition="$bbuserinfo[usergroupid] == 6">
<tr><td class="thead"><strong><u>Mod Option</u></strong></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]','ban','width=500,height=350,scrollbars=yes')">Ban: $post[username]</span></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=liftban&userid=$post[userid]','ban','width=500,height=350,scrollbars=yes')">Unban: $post[username]</span></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=editsig&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')">Edit $post[username]'s Signature</span></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=avatar&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')">Edit $post[username]'s Avatar</span></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=profilepic&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')">Edit $post[username]'s Profilpic</span></td></tr>
<tr><td class="vbmenu_option">$post[username]'s IP-Adress: $post[ip]</td></tr></if>



Simon Lloyd 12-02-2009 03:30 AM

Replace this
PHP Code:

<if condition="$bbuserinfo[usergroupid] == 6"

with this and extend for as many usergroups as you wish
PHP Code:

<if condition="is_member_of($bbuserinfo,5,6,7)"


delfost 12-07-2009 01:48 AM

Thanks for the answer and working in vbulletin 3.8.4 Patch Level 1

Code:

<!-- / Moderacion extra Comieza -->
<if condition="is_member_of($bbuserinfo,5,6)"> 
<tr><td class="thead"><strong><u>Moderaci?n - Opciones</u></strong></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]','ban','width=640,height=480,scrollbars=yes')">Ban: $post[username]</span></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=liftban&userid=$post[userid]','ban','width=640,height=480,scrollbars=yes')">Un-Ban: $post[username]</span></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=editsig&userid=$post[userid]','edit','width=640,height=480,scrollbars=yes')">Editar $post[username]'s Firma</span></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=avatar&userid=$post[userid]','edit','width=640,height=480,scrollbars=yes')">Editar $post[username]'s Avatar</span></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=profilepic&userid=$post[userid]','edit','width=640,height=480,scrollbars=yes')">Editar $post[username]'s Foto Perfil</span></td></tr>
<tr><td class="vbmenu_option">$post[username]'s Direccion-IP: $post[ip]</td></tr></if>
<!-- / Moderacion extra Finaliza -->

Btw the code is in spanish :)

Warlord 12-23-2009 01:05 AM

This code looks a bit better if you want it to match the rest of your drop down menu.

HTML Code:

        <if condition="$show['admincplink']">
        <tr>
                <td class="thead">Staff Options</td>
        </tr>

        <tr><td class="vbmenu_option"><a href="misc.php?$session[sessionurl]do=spamcleanconfirm&amp;u=$post[userid]">$vbphrase[spammer_ban_member]</a></td></tr>

      <tr><td class="vbmenu_option"><span onmouseover="this.style.textDecoration='underline'";
onmouseout="this.style.textDecoration='none'"; onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]','ban','width=500,height=350,scrollbars=yes')">
Ban $post[username]</span></td></tr>
      <tr><td class="vbmenu_option"><span onmouseover="this.style.textDecoration='underline'";
onmouseout="this.style.textDecoration='none'"; onClick="window.open('modcp/banning.php?do=liftban&userid=$post[userid]','ban','width=500,height=350,scrollbars=yes')">
Lift $post[username]'s Ban</span></td></tr>
      <tr><td class="vbmenu_option"><span onmouseover="this.style.textDecoration='underline'";
onmouseout="this.style.textDecoration='none'"; onClick="window.open('modcp/user.php?do=editsig&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')">
Edit $post[username]'s Signature  </span></td></tr>
      <tr><td class="vbmenu_option"><span onmouseover="this.style.textDecoration='underline'";
onmouseout="this.style.textDecoration='none'"; onClick="window.open('modcp/user.php?do=avatar&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')">
Edit $post[username]'s Avatar</span></td></tr>
      <tr><td class="vbmenu_option"><span onmouseover="this.style.textDecoration='underline'"; onmouseout="this.style.textDecoration='none'"; onClick="window.open('modcp/user.php?do=profilepic&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')">Edit $post[username]'s Profilepic</span></td></tr>
      <tr><td class="vbmenu_option">$post[username]'s IP Address: $post[ip]</td></tr>
        </if>


choccyclaire 12-24-2009 12:28 AM

Thanks.

I changed two lines so that the lift ban link does not show for someone who is not banned and vica versa so that the ban link does not show for a banned member:

Code:

<if condition="$post[usergroupid]== 2">
            <tr><td class="vbmenu_option"><span onmouseover="this.style.textDecoration='underline'";
onmouseout="this.style.textDecoration='none'"; onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]','ban','width=500,height=350,scrollbars=yes')">Ban $post[username]</span></td></tr>
</if>
<if condition="$post[usergroupid]== 8">
      <tr><td class="vbmenu_option"><span onmouseover="this.style.textDecoration='underline'";
onmouseout="this.style.textDecoration='none'"; onClick="window.open('modcp/banning.php?do=liftban&userid=$post[userid]','ban','width=500,height=350,scrollbars=yes')">Lift $post[username]'s Ban</span></td></tr>
</if>


Warlord 12-26-2009 02:52 AM

Quote:

Originally Posted by choccyclaire (Post 1936920)
Thanks.

I changed two lines so that the lift ban link does not show for someone who is not banned and vica versa so that the ban link does not show for a banned member:

Code:

<if condition="$post[usergroupid]== 2">
            <tr><td class="vbmenu_option"><span onmouseover="this.style.textDecoration='underline'";
onmouseout="this.style.textDecoration='none'"; onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]','ban','width=500,height=350,scrollbars=yes')">Ban $post[username]</span></td></tr>
</if>
<if condition="$post[usergroupid]== 8">
      <tr><td class="vbmenu_option"><span onmouseover="this.style.textDecoration='underline'";
onmouseout="this.style.textDecoration='none'"; onClick="window.open('modcp/banning.php?do=liftban&userid=$post[userid]','ban','width=500,height=350,scrollbars=yes')">Lift $post[username]'s Ban</span></td></tr>
</if>


Good idea, not sure why I didn't think of that. One problem though, any users that aren't a member of the usergroup id 2 (Registered Users) or usergroup id 8 (Banned Users) will have neither option appear. If you want to include the ban option to other usergroups (like disgruntled staff members etc).

Change this:

HTML Code:

<if condition="$post[usergroupid]== 2">
            <tr><td class="vbmenu_option"><span onmouseover="this.style.textDecoration='underline'";
onmouseout="this.style.textDecoration='none'"; onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]','ban','width=500,height=350,scrollbars=yes')">
Ban $post[username]</span></td></tr>
</if>

To this:

HTML Code:

<if condition="$post[usergroupid]!= 8">
            <tr><td class="vbmenu_option"><span onmouseover="this.style.textDecoration='underline'";
onmouseout="this.style.textDecoration='none'"; onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]','ban','width=500,height=350,scrollbars=yes')">
Ban $post[username]</span></td></tr>

Now one of the two options will appear for everyone.

choccyclaire 01-06-2010 03:57 PM

^ Thanks, did not think of that since I only have default usergroups. :)

chrisvonc 01-08-2010 02:22 PM

Installed without issue. Thank you!

HolyKiller 07-06-2010 12:40 PM

Used on vB3, but is there any update or similar mod for vB4 ?

TheInsaneManiac 11-30-2010 04:24 PM

vB4 Bump =]

TheInsaneManiac 12-01-2010 04:48 AM

1 Attachment(s)
I've taken the liberty and ported it to 4.0. The IP Address feature may or may not work. I had to change it a bit due to {vb:raw variable} not being possible to use with conditionals.

4.0 Standards

Find in memberaction_dropdown:
Code:

                <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>

After Add:
Code:

                <vb:if condition="in_array($bbuserinfo['usergroupid'], array(6,7))">
                <li class="left">
<br />
<b>&nbsp;&nbsp;&nbsp;STAFF OPTIONS</b>:
                </li>
                </vb:if>

                <vb:if condition="in_array($bbuserinfo['usergroupid'], array(6,7))">
                <li class="left">
<img src="{vb:stylevar imgdir_siteicons}/profile.png" alt="" />
<a href="#" onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=banuser&userid={vb:raw memberinfo.userid}','ban','width=500,height=350,scrollbars=yes')"><strong>Ban {vb:raw memberinfo.username}</strong></a>
                </li>
                </vb:if>

                <vb:if condition="in_array($bbuserinfo['usergroupid'], array(6,7))">
                <li class="right">
<img src="{vb:stylevar imgdir_siteicons}/profile.png" alt="" />
<a href="#" onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=liftban&userid={vb:raw memberinfo.userid}','ban','width=500,height=350,scrollbars=yes')"><strong>Unban {vb:raw memberinfo.username}</strong></a>
                </li>
                </vb:if>

                <vb:if condition="in_array($bbuserinfo['usergroupid'], array(6,7))">
                <li class="left">
<img src="{vb:stylevar imgdir_siteicons}/profile.png" alt="" />
<a href="#" onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=editsig&userid={vb:raw memberinfo.userid}','ban','width=500,height=350,scrollbars=yes')"><strong>Edit Signature</strong></a>
                </li>
                </vb:if>

                <vb:if condition="in_array($bbuserinfo['usergroupid'], array(6,7))">
                <li class="right">
<img src="{vb:stylevar imgdir_siteicons}/profile.png" alt="" />
<a href="#" onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=avatar&userid={vb:raw memberinfo.userid}','ban','width=500,height=350,scrollbars=yes')"><strong>Edit Avatar</strong></a>
                </li>
                </vb:if>

                <vb:if condition="in_array($bbuserinfo['usergroupid'], array(6,7))">
                <li class="left">
<img src="{vb:stylevar imgdir_siteicons}/profile.png" alt="" />
<a href="#" onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=profilepic&userid={vb:raw memberinfo.userid}','ban','width=500,height=350,scrollbars=yes')"><strong>Edit Profile Pic</strong></a>
                </li>
                </vb:if>

                <vb:if condition="in_array($bbuserinfo['usergroupid'], array(6,7))">
                <li class="right">
<img src="{vb:stylevar imgdir_siteicons}/profile.png" alt="" />
<a href="#" onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=doips&userid={vb:raw memberinfo.userid}&hash=82d83792b7bfa9c66c304d784b8f1700','ban','width=500,height=350,scrollbars=yes')"><strong>IP Address</strong></a>
                </li>
                </vb:if>



All times are GMT. The time now is 04:40 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.01267 seconds
  • Memory Usage 1,847KB
  • 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
  • (11)bbcode_code_printable
  • (3)bbcode_html_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)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