vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Warnings System Hack v1.0 (https://vborg.vbsupport.ru/showthread.php?t=42972)

Kommissar 08-31-2002 04:34 PM

Where can I change the text of the "warning pm"?

g-force2k2 08-31-2002 04:52 PM

Quote:

Originally posted by Kommissar
Where can I change the text of the "warning pm"?
You can change it in the warn.php file...

find:

PHP Code:

        $reason "$username you have been warned by $bbuserinfo[username]! You now have $warninglvl Warnings. The ban limit is currently set to $banlimit Warnings.\n\nReason: $reason"

And you can replace what you'd like there... regards...

g-force2k2

N9ne 08-31-2002 05:07 PM

Shouldn't that be template driven? :p

g-force2k2 08-31-2002 05:14 PM

it could be Tha Rock but then you have to call that template to get the info from it to simply insert it again :p in this case file work does fine for me ;) regards...

g-force2k2

N9ne 08-31-2002 05:23 PM

lol ok, it doesn't bother me much, just as long as it's not hard to get to the code ;)

NTLDR 08-31-2002 05:40 PM

Thanks for yet another superb hack g-force2k2, I'm going to install this one now :D

Dean C 08-31-2002 07:30 PM

i installed this and its working wonderfully...

do we as admins have the option to delete a warning that a mod makes???

- Mist

N9ne 08-31-2002 07:43 PM

Mist: Yes as admins you can revoke warnings/ all warnings, look at the screenshots posted in the first few replies :)

NTLDR 08-31-2002 07:45 PM

One small suggestion if I can g-force2k2, it would be easier if the templates were all in sperate files with the name so they can be imported quickly ;)

Anyway, hack installed and working a treat, another great addon to my board from you :D

g-force2k2 08-31-2002 07:55 PM

NTLDR if you want i can easily make an install file for running the templates into the set ;) its like not a problem so if you rather have an auto template install i'll make it regards :)

g-force2k2

NTLDR 08-31-2002 07:58 PM

I've already installed all the templates, but an auto installer or similar would be good as it saves so much time on installing, something that many people you really like, a bonus of the installer is that they can go in the default template set which also keeps them neater :)

That just my opinion, other users may not share that ;)

The Ghost 08-31-2002 08:34 PM

Hi,

very Great Hack, thx!!

I love your Hacks!

hypedave 08-31-2002 08:38 PM

hey g-force2k2 if it wouldnt be a problem can you post a text file of the instructions. for some reaon I see the instructions but they are all close to each other, I cant tell the difference from step 1 and 2 and so on. here is a screenshot of what im getting when I run the install file, maybe you can help me out, who knows it may be my crappy broswer.

N9ne 08-31-2002 08:39 PM

Open the attached file in the first post with notepad.

The Ghost 08-31-2002 08:48 PM

Hi,

I have a Problem.

I don't see the Warning Level: 0 [ View User Warnings ] [ Warn This User ] Links on the Admin User's, I think that is normal, but I don't see this link on some Users, too......

Look here:

http://www.root-shell-club.com/board...8752#post28752

The User "Superw?ss" hasn't the Warning link in his post, but he isn't a Moderator, Super Moderator or Admin.

Can anyone help me?

thx in Advance

hypedave 08-31-2002 08:49 PM

Quote:

Originally posted by Tha Rock
Open the attached file in the first post with notepad.

hey thanks I didnt think about opening install_warning.php up in notepad, off to instal now :bunny:


dont know if it will be any user to some, but attached is the install instructions in text file format

N9ne 08-31-2002 08:51 PM

hyperdave: some hackers tend to just put install_ into their attachment filenames along with the .php file type thingy on the end ;) Always open them in notepad first and if they loook weird in notepad, it's probably either an install file or a vBhacker file ;)

Goldknight 08-31-2002 10:34 PM

Quote:

Originally posted by The Ghost
Hi,

I have a Problem.

I don't see the Warning Level: 0 [ View User Warnings ] [ Warn This User ] Links on the Admin User's, I think that is normal, but I don't see this link on some Users, too......

Look here:

http://www.root-shell-club.com/board...8752#post28752

The User "Superw?ss" hasn't the Warning link in his post, but he isn't a Moderator, Super Moderator or Admin.

Can anyone help me?

thx in Advance

Hmm.. did you add new template and modify showthread and postbit?

And did you edit admin/functions.php and add codes from instruction?

Tim Wheatley 08-31-2002 10:58 PM

Hi,

On our forums we publically name those who have been warned to show that it's 'three warnings you're out'... Because of this we've NEVER banned anyone from our forums in 3 years, because they KNOW that it'll be known by everyone what's happened. Is there any way the warnings level of a user can be shown to all members, but not allow them to see the 'warn this user' links?

hypedave 08-31-2002 11:03 PM

I got the following error

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/ochroma/public_html/forums/admin/functions.php(308) : eval()'d code on line 41


when my members fo view threads


http://www.ochroma.net/forums/showth...?threadid=5193

Link14716 08-31-2002 11:08 PM

Installed.... Worked Perfectly... (Found a good proxy...) Thanks for a great hack.

The only problem is I have a trigger happy admin here lol. ;)

Goldknight 09-01-2002 12:51 AM

Quote:

Originally posted by Tim Wheatley
Hi,

On our forums we publically name those who have been warned to show that it's 'three warnings you're out'... Because of this we've NEVER banned anyone from our forums in 3 years, because they KNOW that it'll be known by everyone what's happened. Is there any way the warnings level of a user can be shown to all members, but not allow them to see the 'warn this user' links?

Good idea, that s what is in my mind. I hope g-force2k2 will give it a shot. He is few inches away from becoming insane :p

Link14716 09-01-2002 12:52 AM

sure.

Add $post[warnlvl] to your postbit ;)

Goldknight 09-01-2002 12:53 AM

Quote:

Originally posted by hypedave
I got the following error

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/ochroma/public_html/forums/admin/functions.php(308) : eval()'d code on line 41


when my members fo view threads


http://www.ochroma.net/forums/showth...?threadid=5193

uh? Can you give your code of that?

X-Fan 09-01-2002 01:50 AM

Just wondering if there's any way that you can remove warnings from a user, short of having to do it through phpMyAdmin?

Link14716 09-01-2002 02:06 AM

Admin CP.... the first link under it, it is somewhere there.....

Goldknight 09-01-2002 02:18 AM

lol @ link14716...

Go to AdminCP --> View Warned List --> [revoke warning] or [revoke all warnings] to delete the warning off from user that you pick.

Tim Wheatley 09-01-2002 03:19 AM

revoke is another way of saying remove.

'He had his license revoked' (he was banned from driving) is a normal usage of it. - not that I've ever been banned.

X-Fan 09-01-2002 03:47 AM

Ah, cool, thanks!

The Ghost 09-01-2002 09:19 AM

Quote:

Originally posted by Goldknight

Hmm.. did you add new template and modify showthread and postbit?

And did you edit admin/functions.php and add codes from instruction?

Hi,

yes! It work's, but not for all Users......... I'm wondering.... :cry:

The Ghost 09-01-2002 10:34 AM

hi again,

now I have more Informations.

it work's but not for all Users in all Posts.

Sometimes I see the link, sometimes not. It's not specific Users....

It is so a great Hack, please help me.

Goldknight 09-01-2002 10:52 AM

Warning system are available only to Admin, SuperMod, and Moderator.

Which users you speak of? members? Moderator? SuperMod?

Edit: I check your link that you post to your board and it look fine to me. What do you mean about "users"?

The Ghost 09-01-2002 10:59 AM

Hi,

I mean normal Members.

I don't see the link on every Members.

Look at the Screenies.

thx in Advance.

The Ghost 09-01-2002 11:00 AM

and Screenie 2

Goldknight 09-01-2002 11:10 AM

Ah, I got it. Thanks

Can you PM me your postbit and showthread template? I ll check thur if I can find the problem.

The Ghost 09-01-2002 11:19 AM

Hi,

thx for your help!

Mystics from the vB Germany Support helped me.

I had an error in my Functions.php. I use the "Away Hack" and placed your code on the false place, so your Hack displays the link only on Offline Users. Very funny :D

Now it works fine!

Very Great Hack!

thx

Goldknight 09-01-2002 11:21 AM

That s what I think. It s functions problem after all. Glad that you sort it out. =D Have fun with it. It s one of my fav hack

Edit: fyi it s not my hack, it s g-force2k2. I merely help him by beta testing, thanks to him for this hack but welcome anytime. ;)

Ice Man_00 09-01-2002 11:22 AM

Quote:

Originally posted by The Ghost
Hi,

I have a Problem.

I don't see the Warning Level: 0 [ View User Warnings ] [ Warn This User ] Links on the Admin User's, I think that is normal, but I don't see this link on some Users, too......

Look here:

http://www.root-shell-club.com/board...8752#post28752

The User "Superw?ss" hasn't the Warning link in his post, but he isn't a Moderator, Super Moderator or Admin.

Can anyone help me?

thx in Advance

Just want to say, WOW !! Amazing hack if it had worked :p

I also have the same problem as he does, still nothing shown in postbit, and Yes i have installed it twice to be shure. but nothing still shows. Any clue ??

Thx.

Goldknight 09-01-2002 11:33 AM

Under all members or some of members?

If all member, be sure to check your postbit and showthread

Ice Man_00 09-01-2002 12:55 PM

This is my showthread template
PHP Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<
html>
<
head><title>$bbtitle $thread[title]</title>
$headinclude
<script language="javascript" type="text/javascript">
<!--
function 
aimwindow(aimid) {
    
window.open("member.php?s=$session[sessionhash]&action=aimmessage&aim="+aimid,"_blank","toolbar=no,location=no,menubar=no,scrollbars=no,width=175,height=275,resizeable=yes,status=no")


}
function 
openeditsigwindow(x,y,sessionhash,userid) {
                
window.open("moderator.php?action=editsig&s="+sessionhash+"&userid="+userid"EditSig""toolbar=no,scrollbars=yes,resizable=yes,width="+x+",height="+y);
}
// -->
<!-- Warnings Hack v1.0 g-force2k2 ] -->
function 
showwarnings(userid) { window.open
("warn.php?s=&action=show_warn&userid="+userid,
 
"show_warn""toolbar=no,scrollbars=yes,resizable=yes,width=600,height=350"); }
function 
addwarnings(postid) { window.open
("warn.php?s=&action=add_warn&postid="+postid,
 
"add_warn""toolbar=no,scrollbars=yes,resizable=yes,width=350,height=150"); }
<!-- 
Warnings Hack v1.0 g-force2k2 ] -->
</
script>
</
head

And this is my postbit template :

PHP Code:

    <td bgcolor="$post[backcolor]width="100%" valign="top">
    <
smallfont>$post[icon] <b>$post[title]</b></smallfont>
    <
p><normalfont>$post[message]</normalfont></p>
    
$post[attachment]
    <
p>$post[signature]</p>
    <
p>$post[editedby]</p>
<!-- 
Warnings Hack v1.0 g-force2k2 ] -->
    <
p align="right"><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged]<br>
    
$post[warnings]</smallfont></p>
<!-- 
Warnings Hack v1.0 g-force2k2 ] -->            
</
td>
</
tr

Hmm....and btw, it dosen`t show on any members, admins, or other registrered members. Can it do something with the config.php file ??

Where the path is: shall it stand the path on the server, i mean like /www/home/vbulletin/forum
or just /forum ??????

And on the usergroupID i have put in more than just one (but i have tried with just one also, same thing) like userid, 2,3,4,5 with "," and not "."

Cheers


All times are GMT. The time now is 01:16 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.01591 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
  • (3)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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