vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How do i create something like "do=banuser"14" (https://vborg.vbsupport.ru/showthread.php?t=148214)

sonichero 05-27-2007 04:37 AM

How do i create something like "do=banuser"14"
 
How would i go about creating the PHP code for that?

And since i want to add this to replacement variables, how do i make the userid number a variable based on the post of the replaced words?

Antivirus 05-29-2007 10:28 PM

I understand the first part, in your php script, you would have to assign the user to be banned to a variable such as $introuble['userid'] then in your html template, use:

Code:

www.yoursite.com/yourscript.php?do=banuser$introuble[userid]
I dont understand what you mean by adding this to replacement variables?

sonichero 05-30-2007 01:01 AM

oh, its so people get autobanned when using inappropriate phrases or REALLY bad words like the n word.

Me thinks that will take me to the page to ban the user.I need to run a query or something that will automatically ban the user.

Antivirus 05-30-2007 11:53 AM

so if someone types a bad word, the admin can click on the word which will be a link to the ban script?

sonichero 05-31-2007 03:54 AM

No, an autoban. Basically once the word runs through the replacement variable script it will automatically replace the word and then automatically ban the user, without running through an admin.


All times are GMT. The time now is 03:28 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.00990 seconds
  • Memory Usage 1,711KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete