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)

mOdEtWo 02-18-2004 06:02 PM

Quote:

Originally Posted by Zelda-King
That's because you've used the HTL. It automatically puts in that "START HACK/END HACK" lark and it's INSIDE the query. Remove those lines.

Uh huh.

Excactly where do I find these lines? I've got access to phpmyadmin, but I can't seem to find these lines. Any ideas? Never mind, found them in the php code, duh!

Oh, and isn't it pretty stupid that the htl adds such lines? I thought it was developed for making things easier, not the other way around. ;)

Zelda-King 02-18-2004 09:10 PM

Oops! I should have clarified about it being a PHP script matter. :/

ImportPassion 02-19-2004 01:38 AM

I just found that out the hard way too.
But if you want to keep the comments, just put a # in front of the line. THat is a MySQL comment

ImportPassion 02-19-2004 03:37 PM

Ok, I added a "reason" and the "auto PM".
Now, that being said, I coded it for my own use, so I have hardcoded my id in there to send a PM to me when someone is warned and/or banned. It also sends it to the warned user of course.

In postbit and postbit_legacy find the line that resembles this
PHP Code:

<tr><td class="vbmenu_option"><span onClick="window.open('warn.php?$session[sessionurl]newuser=$post[userid]&username=$userinfo[username]&warnings=$post[field60]','warn','width=500,height=350')"><b>Warn $post[username] - Current Warnings: ($post[field60])</b></span></td></tr

right after
PHP Code:

$post[field60]  <--- yours will prolly be a different field number than mine 

add
PHP Code:

&amp;postid=$post[postid

replace your warn template with the contents of this warn.txt
Upload this new warn.php to the forums dir.

Please make sure you go through the files first and change field60 to your warning points field.

I will try to provide support, but no guarantees.

D

ImportPassion 02-19-2004 03:41 PM

one more thing, for those of you that do not want it to say:
Current Warnings: ()

Run this SQL query. Make sure to change field60 to your warning points field

PHP Code:

UPDATE userfield
set field60 
'0'
where field60 '' 


PET 02-24-2004 10:03 AM

I have 2 problems :

When i click WARN [username] ... the browser opens a new page (warn.php......) but i get a white page. And i have uploaded warn.php in my forum root.

And the seccond problem. When i click BAN A USER a new window appear. I only see :

Move User to Usergroup and here ONLY Normal Banned. How can i ban the member as a TROLL BANNED ?

thanx. I'm a bit in a hurry now so i cudn't read all the topics.

PET 02-24-2004 06:26 PM

The first problem was solved. I didn't add the new template, bechoze the HTL file didn't tell me do to that. However, the seccond is still a problem. How can i directly ban a user to be a TROLL BANNED ?

Natch 02-25-2004 06:27 AM

From another thread ...
Quote:

Originally Posted by Erwin
My Warning System hack released here uses a similar system, but it is based on a banned usergroup, so it can be time-based, and all posts automatically disappear. :)

Can you specify how to make the ban apply from a certain date onwards ? cos I have some users that used to be good, then were turned to the dark side ...

Any thoughts ?

Osterling 02-28-2004 07:37 AM

i guess first off is this hack rc4 compatible and second if it is..

http://www.exasko.info/forum_tester

try to click a forum to view.. did i mess up? *this forum is a tester so i don't screw up my main forum untill i know what i am doing*

Osterling 02-28-2004 10:48 AM

going to reinstall.. so right now everythin workds


All times are GMT. The time now is 11:19 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.01285 seconds
  • Memory Usage 1,749KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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