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 Hack V1.5 (https://vborg.vbsupport.ru/showthread.php?t=65336)

bnn121 10-31-2004 11:46 PM

Quote:

In postbit, find the following code:

PHP Code:

<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new"><strong>$post[postcount]</strong></a> &nbsp;</if> 

Right above it, add:

PHP Code:

 
<!-- checks for warning system -->
<if 
condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])"><a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[username]</a> ?
</if>
<if 
condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 AND ($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==6)">
<
a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[username]'s Warnings</a> ?</if>
<if condition="$post[userid]==$bbuserinfo[userid] AND $post[usergroupid]==2 AND $post[warning_level]>0">
<a href='
Warn.php?do=ViewMyWarnings'>View your Warnings</a> ?</if>
<!-- end of warning system --> 


In the above instructions I'm able to find that one line of code in my postbit and postbit_legacy templates for my first board style...now I have three more styles...and when I go to look for that first line of code...it does not find that exact line of code...what is finds is this.

PHP Code:

<if condition="$show['postcount']">? #<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new"><strong>$post[postcount]</strong></a></if> 

I noticed that right after this part of the code

Quote:

<if condition="$show['postcount']">
there is a period or dot or whatever that is.

Now all three of my other styles have this code in it...just like I qouted...but my first style is just like the instructions line of code.

Is there any reason to have that period or dot or whatever it is in that line of code for the other three styles?

In the original instructions of this hack it is said to find

Quote:

PHP Code:

In template 'postbit' AND 'postbit_legacy'
Find:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
<if 
condition="$show['postcount']">#<a
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Replace With:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
<
a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[musername]</a> ? <a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[musername]'s Warnings</a>
                <if condition="$show['
postcount']">? #<a
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 


In refence to the first set of code i posted above ...once this original code is changed...where does this new code come in? Is the original modified code getting overwritten or is it getting put in between the origianl modded code?

Roms 11-01-2004 01:16 AM

Thanks for the warning system. :)

*Clicks install

bnn121 11-01-2004 01:16 AM

Database error in vBulletin 3.0.1:

Invalid SQL: update warning_options set
banned_limit='14',
points_before_banned='5',
banned_usergroup_id='8',
troll_usergroup_id='4',
protected_usergroups='6|15',
multiple_per_post='Yes',
send_pm_warning='$pmoption'
where oid='1'
mysql error: Unknown column 'send_pm_warning' in 'field list'

mysql error number: 1054

Script: /board/admincp/admin_warn.php
Referer: /board/admincp/admin_warn.php?act=view

This occured when I was in AdminCP attempting ot change the

Allow multiple warnings for the same post?
and
Send PM to the warned member

bnn121 11-01-2004 01:26 AM

I think I found the problem...either this is not to be in the database or it is.

I your mymods.txt it makes no mention of the

send_pm_warning

but yet its being called in your

admin_warn_php file

If this needs to be added to the database table under warning options...what should the varibles be?

bnn121 11-01-2004 02:20 AM

Quote:

I fixed this issue...seems I had to many lines in my template...LOL
Quote:

Still looking for some help with the two last post of mine...Thanks
Now...I have another issue...I'm seeing


10. Template warn_viewtype_row

at the lower right hand side of this screen shot.

how do I get ride of that?

crd 11-01-2004 06:47 PM

what about warning for non post related infractions.

Wow a lot of chat about this hack. I'm having a problem with people registering and sending spammy PM's. It would be nice if there was a way for users to click to report spam pm to some mod and it would go right to their profile with a warn this user right there . These spammers don't typically make posts so tying their warning to a post is not be very useful.

rinkrat 11-01-2004 09:01 PM

OK, I just installed but there is no clue as to what warning type's (sic) are. Can you do a quick run though of different sample warning types that can possibly be used with this system and how they are configured. It's hard for a new user to create one when it's not explained. You might want to just pre-configure a basic setup so it works out of the box.

sv1cec 11-02-2004 03:20 AM

Quote:

Originally Posted by bnn121
Database error in vBulletin 3.0.1:

Invalid SQL: update warning_options set
banned_limit='14',
points_before_banned='5',
banned_usergroup_id='8',
troll_usergroup_id='4',
protected_usergroups='6|15',
multiple_per_post='Yes',
send_pm_warning='$pmoption'
where oid='1'
mysql error: Unknown column 'send_pm_warning' in 'field list'

mysql error number: 1054

Script: /board/admincp/admin_warn.php
Referer: /board/admincp/admin_warn.php?act=view

This occured when I was in AdminCP attempting ot change the

Allow multiple warnings for the same post?
and
Send PM to the warned member

You have to add the send_pm_warning field first, obviously, so install that mod first.

Rgds

sv1cec 11-02-2004 03:23 AM

Quote:

Originally Posted by bnn121
Now...I have another issue...I'm seeing


10. Template warn_viewtype_row

at the lower right hand side of this screen shot.

how do I get ride of that?

Remove that line from the previous template mentioned. You just added that descriptive line, in the text of the previous template, which should be warn_viewtype_end (I think).

Rgds

sv1cec 11-02-2004 03:25 AM

Quote:

Originally Posted by crd
what about warning for non post related infractions.

Wow a lot of chat about this hack. I'm having a problem with people registering and sending spammy PM's. It would be nice if there was a way for users to click to report spam pm to some mod and it would go right to their profile with a warn this user right there . These spammers don't typically make posts so tying their warning to a post is not be very useful.

The function for non-post related offenses is there already. When someone reports you an offensive PM, go to the User profile of the sender and warn him.

Rgds


All times are GMT. The time now is 07: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.01910 seconds
  • Memory Usage 1,769KB
  • 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
  • (8)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