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)
-   -   Allow URLs in posts only after a minimum number of posts (to reduce spam) (https://vborg.vbsupport.ru/showthread.php?t=44694)

Erwin 10-17-2002 07:54 PM

Quote:

Originally posted by Neo
As a addon to what TECK said you could also place a unset(); just above it.
There's no real need to do that, but I've decided to restrict the file edits to only newthread.php and newreply.php to keep things simple.

Dark Shogun 10-18-2002 08:44 PM

Can you make it so it only works with the registered user group because my admins, mods, and super mods can post any. :(

Dark Shogun

Chris M 10-18-2002 09:26 PM

Wow...

Nice little hack Erwin:D

Satan

Erwin 10-18-2002 11:18 PM

Quote:

Originally posted by Dark Shogun
Can you make it so it only works with the registered user group because my admins, mods, and super mods can post any. :(

Dark Shogun

Your staff have less than the minimum post count required??? :eek:

Easy fix...

In BOTH newthread.php AND newreply.php, find:

PHP Code:

$allowurl 15;
    if(
$bbuserinfo[posts] < $allowurl and strstr($message,'[url]')) {
      eval(
"standarderror(\"".gettemplate("error_nourlallowed")."\");");
      exit;
    } 

Change it to:

PHP Code:

if ($bbuserinfo[usergroupid]!=or $bbuserinfo[usergroupid]!=or $bbuserinfo[usergroupid]!=7) {
$allowurl 15;
    if(
$bbuserinfo[posts] < $allowurl and strstr($message,'[url]')) {
      eval(
"standarderror(\"".gettemplate("error_nourlallowed")."\");");
      exit;
    }


Make sure you change the $allowurl amount to suit your site.

Again, I am very surprised that you have staff members who do not reach the minimum post count for your site. :)

Graphics 10-19-2002 05:22 PM

hey erwin cna u make it for ".com" also. and if u can a lot of ppl use the vbcode [url ] is there a way to make it into that also.

i am just asking if u can. if not its still a great hack.

Erwin 10-19-2002 08:58 PM

Quote:

Originally posted by Graphics
hey erwin cna u make it for ".com" also. and if u can a lot of ppl use the vbcode [url ] is there a way to make it into that also.

i am just asking if u can. if not its still a great hack.

If they only put in a ".com" then the domain will show but it won't be linkable. People will have to type it out.

If they use the vcode [url ] this hack will block it automatically.

Dark Shogun 10-21-2002 06:05 PM

Quote:

Originally posted by Erwin


Your staff have less than the minimum post count required???

Again, I am very surprised that you have staff members who do not reach the minimum post count for your site. :)

It is because my forum is new. :)

Dark Shogun

Erwin 10-21-2002 07:24 PM

Update: Version 1.1 - fixed up a loophole. Just replace the old code with the new.

I've discovered a couple of loopholes that new users can use to post URLs. I've replaced the old code with a new piece of code that closes up these loopholes. Please download the 1.1 version of the text file, and replace the old code with the new. :)

HHTKAO 10-27-2002 02:56 AM

Is step one and two the same for a reason?

Erwin 10-27-2002 02:03 AM

Step One is for newthread.php, Step Two is for newreply.php - different files, but same code to find and add.


All times are GMT. The time now is 06:59 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.01052 seconds
  • Memory Usage 1,744KB
  • 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
  • (2)bbcode_php_printable
  • (4)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
  • (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