03-23-2006, 06:53 PM
|
|
|
|
Join Date: Aug 2003
Location: Tampa, FL
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
This causes an error on my board for anyone replying to a thread:
Warning: Missing argument 1 for fetch_userinfo() in /includes/functions.php on line 998
Quote:
Originally Posted by Andreas
@amykhar
This Hack has a serious bug which causes issues with other Hacks that automatically create threads (and are using others users for this):
You check the posts for the viewing user, instead of checking the posts for the user that makes the post.
Corrected Plugins:
postdata_presave
PHP Code:
// get useriinfo for this post
$userid =& $this->fetch_field('userid');
$userinfo = fetch_userinfo();
$pagetext =& $this->fetch_field('pagetext', 'post');
if (($userinfo['posts'] < 2) and (stristr($pagetext,'[url') or stristr($pagetext,'[URL') or stristr($pagetext,'www.') or stristr($pagetext,'http://')))
{
$this->error('error_nourlallowed');
$return_value = false;
}
threadfpdata_presave
PHP Code:
// get useriinfo for this post
$userid =& $this->fetch_field('postuserid');
$userinfo = fetch_userinfo($userid);
$pagetext =& $this->fetch_field('pagetext', 'post');
if (($userinfo['posts'] < 2) and (stristr($pagetext,'[url') or stristr($pagetext,'[URL') or stristr($pagetext,'www.') or stristr($pagetext,'http://')))
{
$this->error('error_nourlallowed');
$return_value = false;
}
|
|