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)

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.


All times are GMT. The time now is 11:02 AM.

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.01401 seconds
  • Memory Usage 1,763KB
  • 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
  • (4)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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