vBulletin

Thank you for visiting. This is our website archive. Please visit our main website by clicking the banner above.
vBulletin FAQ is dedicated to helping the forum owner build, manage and profit from his vBulletin Forum
vBulletin Web Hosting - Free skins and styles for your vBulletin - Search Engine Optimization




Prevent Users With Low Post Counts PostingPM'ing URLS

lily143
08-21-2005, 12:41 PM
File edits:

In includes/functions_newpost.php find:


PHP Code:
eval('$errors[] = "' . fetch_phrase('toomanyimages', PHRASETYPEID_ERROR) . '";');
}



Add after:


PHP Code:
$errors = array_merge($errors, verify_message_urls($post['message']));



Find:


PHP Code:
return sizeof($errors);
}



Add after (making sure you change REPLACE_NUMBER_OF_POSTS_HERE to the number of posts a user must have before being able to post/pm URLS):


PHP Code:
function verify_message_urls($pagetext) {

global $vboptions, $vbphrase, $bbuserinfo;
credit: vb.org

SoftDux
05-17-2007, 07:05 AM
I don't see the line
eval('$errors[] = "' . fetch_phrase('toomanyimages', PHRASETYPEID_ERROR) . '";');
}
in my VB 3.6 installation?

Dave A
05-17-2007, 07:44 AM
Released 2005 and not updated - I'm not surprised.


vBulletin

seo book

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum