vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Warning System, Automatic Ban, Make Posts Invisible, Edit Signature/ Avatar/ Picture (https://vborg.vbsupport.ru/showthread.php?t=59718)

TRStealth 03-08-2004 11:48 PM

Does the hack work in RC4?

trainer 03-09-2004 12:06 AM

yes was also wondering if it worked with RC4

TRStealth 03-09-2004 03:23 AM

Trainer, I went ahead and installed it on my RC4, worked just fine except that my moderators get an 'unauthorized' message when they try to edit sigs, avs, etc.

Holidazed 03-10-2004 12:48 PM

I have this hack working in my vb3 RC4 just fine. Did not have any issues at all.

TRStealth 03-10-2004 07:47 PM

Quote:

Originally Posted by TRStealth
Trainer, I went ahead and installed it on my RC4, worked just fine except that my moderators get an 'unauthorized' message when they try to edit sigs, avs, etc.

Anyone have an an answer to my problem? I also have another problem, for some reason, it's not showing the amount of warnings a user has, and it's not warning them at all if a moderator gives them a warning.

acrimony 03-11-2004 08:04 PM

One thing I did notice in this hack was the main page still lists the person has posted in a forum, yet when u click the link to go to that post, you get a runtime error....

Flashinblue 03-23-2004 02:52 PM

Quote:

d) Find:

PHP:
SUM(IF(lastpost>=$lastread AND open<>10,1,0)) AS newthread


Replace with:

PHP:
SUM(IF(thread.lastpost>=$lastread AND open<>10,1,0)) AS newthread

had a bit of problem with this as it gave me a database error. Swapped this part and it now works fine.

Will now try to add something to the warn.php file so that it sends an automatic pm to the guy that has be warned. Also, will show it under the poster's name... will try, i am everything but a good coder

lasto 03-23-2004 05:16 PM

Quote:

Originally Posted by TRStealth
Anyone have an an answer to my problem? I also have another problem, for some reason, it's not showing the amount of warnings a user has, and it's not warning them at all if a moderator gives them a warning.

RC4 - i installed on
i found everything worked on this except the warning bit

u could give em as many warning as u wanted but it never banned em etc

besides that it does what it says on the tin :)

opps

[high]* lasto click installs[/high]

PranK 03-24-2004 01:39 PM

Erwin,

I had this installed on RC3/4 with no problems, now I have installed it on Gold and I can't get the drop-down menus to appear... any ideas?

Thanks.

Christian

poetic 03-25-2004 12:43 PM

hey im geting a error i installed use the hack file thing and i get this error:

Parse error: parse error in /home/elitexga/public_html/forum/forumdisplay.php on line 523

lasto 03-25-2004 01:10 PM

Quote:

Originally Posted by poetic
hey im geting a error i installed use the hack file thing and i get this error:

Parse error: parse error in /home/elitexga/public_html/forum/forumdisplay.php on line 523


parse error is usually user fault m8 check your files to make sure u done the edit fine as this hack does work.

U proberly missed a , out somewhere or overwrote one


revert to orginal forumdisplay.php and do the changes again but this time double check em

Flashinblue 03-25-2004 01:39 PM

it works on mine

poetic 03-25-2004 01:51 PM

ya reverted but now i gotta install my other hacks over again :-/

lasto 03-25-2004 01:54 PM

just look at line 523 Parse error: parse error in /home/elitexga/public_html/forum/forumdisplay.php

and see where exactly the error is

Zilvia 03-25-2004 06:49 PM

Does this work with the final release of vB 3.0.0?

TRStealth 03-26-2004 07:22 AM

I have it installed on my vB Gold, and it works perfectly. You should have no problems. :)

msimplay 03-27-2004 09:04 AM

to anyone that wants this warn.php i have set it to use user id 1
and the pms are set so that they get sent to user id1
and the person getting warned

i take no credit for this coz the hack was done by Erwin and the modification by 7thgenCivic.Com

ps in the warn.php change wambam to your own username it occurs 3 times
Ctrl + F to search

also use the install instructions found in this post

https://vborg.vbsupport.ru/showpost....&postcount=104

and replace your warning template found with the one in that post

TRStealth 03-28-2004 04:11 AM

Sweet, thanks :D

lasto 03-28-2004 04:14 AM

u know in the drop donw menu where the options appear mine appears in black - anyone know how to leave the color alone so it matches the rest of the box ?

jeoworks 03-29-2004 04:03 AM

msimplay,

Alot more has to be edited in that file before it will work with other installs.

For instance, you have different fieldsets, and it causes database problems because you use a scale of 10, where as the original uses 7.

Just wanted to let everyone know that the file you posted takes PHP knowledge to get it to work.

msimplay 03-29-2004 07:52 AM

Quote:

Originally Posted by jeoworks
msimplay,

Alot more has to be edited in that file before it will work with other installs.

For instance, you have different fieldsets, and it causes database problems because you use a scale of 10, where as the original uses 7.

Just wanted to let everyone know that the file you posted takes PHP knowledge to get it to work.

sorry but it doesn't take anymore php knowledge then that of whats already said in
Erwins original hack ie change the warning points to whatever you would want and i'm sure its simpler then what 7thgenCivic.Com
had already posted
the reason i can say that is because i'm not a coder i just tested and changed a few variables that 7thgenCivic.Com had already said about


however one amendment would be to change 'wambam' which occurs 3 times to your own username

sorry i wasn't clear but i have made amendments to the other post to include extra instructions :o

TRStealth 03-29-2004 09:54 PM

Quote:

Originally Posted by msimplay
sorry but it doesn't take anymore php knowledge then that of whats already said in
Erwins original hack ie change the warning points to whatever you would want and i'm sure its simpler then what 7thgenCivic.Com
had already posted
the reason i can say that is because i'm not a coder i just tested and changed a few variables that 7thgenCivic.Com had already said about


however one amendment would be to change 'wambam' which occurs 3 times to your own username

sorry i wasn't clear but i have made amendments to the other post to include extra instructions :o

Ah, ok. I wasn't quite sure what it was. However, I made a small modification to only allow Admins to subtract and reset the points, if anyone wants it, I can post it.

lasto 03-29-2004 09:56 PM

if the modification allows us to warn people then im for u posting it m8

but the hack does work fine - maybe i messed up making that profile field im unsure :(

TRStealth 03-29-2004 10:13 PM

Yes, anyone can add warning points, but only admins are able to reset/subtract them. I was having trouble with some of my mods removing members' warning points for them to qualify for special access. (Warned members are disqualified)

lasto 03-29-2004 10:36 PM

Quote:

Originally Posted by TRStealth
Yes, anyone can add warning points, but only admins are able to reset/subtract them. I was having trouble with some of my mods removing members' warning points for them to qualify for special access. (Warned members are disqualified)


i have this hack installed installed already and only problem i found with it was even if i warned someone over the allocated points (say 7) they still were`nt moved to the banned group - how did u solve this one ?

also i like your idea on only admins being able to remove points cause people even mods will eventually abuse power.

Post your update m8 and i will try it cheers

msimplay 03-29-2004 11:05 PM

Quote:

Originally Posted by TRStealth
Ah, ok. I wasn't quite sure what it was. However, I made a small modification to only allow Admins to subtract and reset the points, if anyone wants it, I can post it.

i think i would prefer my moderators to act responsibily with the warnings else why have them as moderators
however post the modification am still thinking :p

ps i love the design on your site :D

TRStealth 03-30-2004 06:03 AM

Quote:

Originally Posted by msimplay
i think i would prefer my moderators to act responsibily with the warnings else why have them as moderators
however post the modification am still thinking :p

ps i love the design on your site :D

Thanks :p

ok, in Warn.php find:

PHP Code:

if ($action == "dominus") {
$DB_site->query("UPDATE userfield SET $warnfield=$warnfield-1 WHERE userid='$newuser'");
$error "<b>Message:</b> You have warned this member!";
    
$show['closewindow'] = true;



Replace With:
PHP Code:

if ($action == "dominus") {
if (
$bbuserinfo['usergroupid']==6) {
$DB_site->query("UPDATE " TABLE_PREFIX "userfield SET $warnfield=$warnfield-1 WHERE userid='$newuser'");
$error "<b>Message:</b> You have lowered this members warnings.";
$show['closewindow'] = true;
    } else {
    
$error "<b>Message:</b> Only Administrators can remove warnings.";
    
$show['closewindow'] = true;
    }


Next find:
PHP Code:

if ($action == "doreset") {
$DB_site->query("UPDATE userfield SET $warnfield=0 WHERE userid='$newuser'");
$error "<b>Message:</b> You have warned this member!";
    
$show['closewindow'] = true;


Replace with:
PHP Code:

if ($action == "doreset") {
if (
$bbuserinfo['usergroupid']==6) {
$DB_site->query("UPDATE " TABLE_PREFIX "userfield SET $warnfield=0 WHERE userid='$newuser'");
$error "<b>Message:</b> You have reset this members warnings.";
$show['closewindow'] = true;
    } else {
    
$error "<b>Message:</b> Only Administrators can reset warnings.";
    
$show['closewindow'] = true;
    }


I'm no PHP expert, but I haven't heard that anything's wrong with the code.

msimplay 03-30-2004 02:22 PM

Quote:

Originally Posted by TRStealth
Thanks :p

ok, in Warn.php find:

I'm no PHP expert, but I haven't heard that anything's wrong with the code.

thanks for that :p

obiwan8472 03-30-2004 09:54 PM

Hi, just installed this for the 2nd time... but can not whatever i do.. get the things to appear in the dropdown menu box!! Any ideas?

magnus 03-31-2004 04:45 PM

Quote:

Originally Posted by obiwan8472
Hi, just installed this for the 2nd time... but can not whatever i do.. get the things to appear in the dropdown menu box!! Any ideas?

Are you sure you're editing the correct postbit? If you're using the new postbit (with the poster's information ABOVE the post) then you need to edit "postbit", otherwise, if you're using the layout with the poster's information on the LEFT, you need to make the changes in postbit_legacy.

BamaStangGuy 03-31-2004 06:27 PM

PHP Code:

<if condition="$post['userid']">
    <
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_buddy_list]</phrase></a></td></tr>
<if 
condition="($bbuserinfo[usergroupid]==5 || $bbuserinfo[usergroupid]==6 || $bbuserinfo[usergroupid]==7)">
<
tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('warn.php?$session[sessionurl]newuser=$post[userid]&username=$userinfo[username]&warnings=$post[field7]','warn','width=500,height=350')"><b>Warn $post[username] - Current Warnings: ($post[field7])</b></span></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')"><b>Ban or Suspend $post[username]</b></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')"><b>Unban or Unsuspend $post[username]</b></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')"><b>Edit $post[username]'s Signature</b></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')"><b>Edit $post[username]'s Avatar</b></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')"><b>Edit $post[username]'s Profile Picture</b></span></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='
hand';" onClick="window.open('modcp/user.php?do=reputation&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')"><b>Edit $post[username]'s Reputation Comments</b></span></td></tr>
<
tr><td class="vbmenu_option"><b>$vbphrase[ip] : $post[ip]</b></td></tr>
</if>

    </if>

    </
table

I am not seeing the options in post bit and this is what I have

dsotmoon 04-01-2004 01:11 AM

when you click on ban or suspend from the drop down should it show the "troll banned" as an option, it only shows the 2 banned groups I already had set up

Brahm 04-02-2004 06:08 AM

Thanks, I needed this one. Installed and looks great!

Corvette 04-02-2004 07:16 PM

Is there any way to add a graphical meter showing the members warn status (That staff can see every members warn count and the member can see himselves warn only)

cerebro 04-09-2004 11:27 PM

i have some question.

Ban option, Edit Signature...only Moderators whit access to that thing can use it? or all moderator?

Only mods or admin can Warn users?

Like Corvette say, some way to show every member the warn lvl?

Skyline_GT 04-10-2004 01:29 AM

I don't know why when a member is already over the ban limit.
it didn't ban them automaticlly...
why??
also I did everything correctly..

Zelda-King 04-10-2004 11:45 PM

Quote:

Originally Posted by TRStealth
I have it installed on my vB Gold, and it works perfectly. You should have no problems. :)

Hmm, can you verify that troll banned members get the fake 404 error still? Since I upgraded to vB3 Gold all they see is a blank page, and yes I do still have the code in phpinclude_start.

But it's late at night here. I guess I'll examine this closer tomorrow.

Skyline_GT 04-11-2004 02:31 AM

I have a question..
Is it possible when it sutomatic ban a person, can it only move their usegroup to the ban group but not delete their posts?

Zelda-King 04-11-2004 06:39 AM

Their posts aren't deleted anyway. If you have it send them to the banned group they're just banned. If you have them set to Troll Banned their posts are on ignore, but admins can see them (I forget if mods can).

Skyline_GT 04-11-2004 09:10 PM

hm.. I tried it..
.but after he is moved to the Troll Banned.. I can't see his post ..
and I am an admin..


All times are GMT. The time now is 02:23 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.01526 seconds
  • Memory Usage 1,877KB
  • 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
  • (5)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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