camry
02-07-2005, 08:34 AM
Hello All ,
In vBulletin RC3 we was use this hack to prevent members to download only after they post 5 posts
[edit attachment.php]
find $postid = verify_id('post', $attachmentinfo['postid']);
[Change It With]
$postid = verify_id('post', $attachmentinfo['postid']);
$foruminfo = $DB_site->query_first("
SELECT thread.forumid, forum.password, thread.threadid
FROM " . TABLE_PREFIX . "post AS post
INNER JOIN " . TABLE_PREFIX . "thread AS thread ON (post.threadid = thread.threadid)
INNER JOIN " . TABLE_PREFIX . "forum AS forum ON (thread.forumid = forum.forumid)
WHERE post.postid = $postid
");
$posts_needed_to_attachment = 5;
$post_diff = $posts_needed_to_attachment - $bbuserinfo[posts];
if($post_diff > 0) {
eval(print_standard_error('error_vbh_attachment')) ;
exit;
}
Now in vBulletin 3.04 3.05 3.06 We can't find "$postid = verify_id('post', $attachmentinfo['postid']);" So please can anyone tell me how to make this hack work with vB3.04 vB3.05 vB3.06 it's need a Hack's Programmer ..
Thanks you
In vBulletin RC3 we was use this hack to prevent members to download only after they post 5 posts
[edit attachment.php]
find $postid = verify_id('post', $attachmentinfo['postid']);
[Change It With]
$postid = verify_id('post', $attachmentinfo['postid']);
$foruminfo = $DB_site->query_first("
SELECT thread.forumid, forum.password, thread.threadid
FROM " . TABLE_PREFIX . "post AS post
INNER JOIN " . TABLE_PREFIX . "thread AS thread ON (post.threadid = thread.threadid)
INNER JOIN " . TABLE_PREFIX . "forum AS forum ON (thread.forumid = forum.forumid)
WHERE post.postid = $postid
");
$posts_needed_to_attachment = 5;
$post_diff = $posts_needed_to_attachment - $bbuserinfo[posts];
if($post_diff > 0) {
eval(print_standard_error('error_vbh_attachment')) ;
exit;
}
Now in vBulletin 3.04 3.05 3.06 We can't find "$postid = verify_id('post', $attachmentinfo['postid']);" So please can anyone tell me how to make this hack work with vB3.04 vB3.05 vB3.06 it's need a Hack's Programmer ..
Thanks you