View Full Version : Miscellaneous Hacks - Cyb - Advanced Permissions Based on Post Count
I can't get this to work on vbulletin 4
Hardly surprising, given that it's for 3.7.X
G37Sam
08-12-2010, 04:42 PM
Well is there one for vbulletin 4 +
ZapFlash
02-13-2011, 06:14 PM
Hi, in the part of "Post Links/Images/e-mails" when i go to "Set post count requirements" and click in "For All Existing Forums", it sends me to the FAQ page of my forums, is that normal? where can i set the minimum messages of that specific part pf post links/images/email? the spammers are driving me crazy
russellw
04-29-2011, 12:21 AM
Great mod.
I have one small issue - in our for sale area we use a form to ensure that all the required information is gathered but it looks as if when the form is posted it ignores the post count restrictions set for that area.
Any ideas?
Cheers
Russ
russellw
05-01-2011, 12:52 AM
Issue resolved. For the benefit of anybody else experiencing a similar issue, the Forms Hack actually doesn't check forum permissions before or at submission time.
In the hook for the form find the following:
if ($_REQUEST['action'] == '')
{
$_REQUEST['action'] = "form";
}
After it add:
$bbuserinfo = $vbulletin->userinfo;
if ($vbulletin->options['apboupc_global_enable'] AND $vbulletin->options['apboupc_forum'])
{
$forumperms = fetch_permissions($foruminfo['forumid']);
if ($vbulletin->userinfo['userid'] AND ($forumperms & $vbulletin->bf_ugp_forumpermissions['canpostnew']) AND ($foruminfo[create_nb] !='0') AND ($foruminfo[create_nb] > $vbulletin->userinfo[posts]) AND (!is_member_of($vbulletin->userinfo, split(',', $vbulletin->options['apboupc_forum_excludedgroups']))))
{
eval(standard_error(fetch_error('error_postcount_t oo_low_create', intval($foruminfo['create_nb']), intval($vbulletin->userinfo['posts']))));
}
}
Cheers
Russ
z0diac
06-24-2011, 08:17 PM
Confirmed not working on 3.8 Each time I try to set
For Individual Forums | For All Existing Forums I get thrown to the Smilies FAQ.
Wish it would work as I desperatly need it.
Thanks - I was just going to ask if it worked on 3.8
any news about the VB4 version of this mod?
HMBeaty
07-20-2011, 01:59 AM
any news about the VB4 version of this mod?
Check his profile ;)
valdet
04-23-2012, 10:21 AM
Valter,
I know this is an old thread, but if you have time, could you possibly add an option to prevent creating a signature based on post count.
This is a wonderful hack which I've been using for a long time, but as vBSEO Conditional Signatures hack seems not to be supported/discontinued anymore, a similar feature of your hack would be very welcome to many.
Thanks.
Christhug
06-10-2012, 10:07 PM
It would be awesome if the option was added for voting on polls.
Jackchan
11-29-2012, 08:54 AM
Does not work on V4.2.0 :(
I created a test user then post a link and can post it just fine, no restriction!
dutchbb
02-20-2013, 11:50 AM
Hello, there's a bug in it, it's completely ignored in Tapatalk! Please provide a fix, thanks.
coolbreeze86
08-04-2013, 04:21 PM
Hi i need like this, is this is possible,
To send a Private message to other members, they need atleast 10 Posts in the last 1 month (not in total, last one month post count should be 10).
I was tired in searching this for more than a month.. help me..
Max Taxable
01-09-2014, 02:08 AM
Anyone have any ideas on this? On install of the product I get:
A conflict was detected in the bitfields. You cannot continue with the installation of this product until this has been fixed. The conflicts found were:
Bitfield Collision: prefixrequired = credits_cantearn
ozzy47
01-09-2014, 03:36 AM
This means that you are trying to install 2 modifications that use the same bitfield name. One of the modifications will need to change the names they are using.
PS It is commonly suggested that all variables in a modification are prefixed with the id of the modification so there can never be a duplicate name used, but not all authors take this effort.
You can view the bitfields in all the ./includes/xml/bitfield_XXXX.xml files.
Max Taxable
01-09-2014, 03:53 PM
This means that you are trying to install 2 modifications that use the same bitfield name. One of the modifications will need to change the names they are using.
PS It is commonly suggested that all variables in a modification are prefixed with the id of the modification so there can never be a duplicate name used, but not all authors take this effort.
You can view the bitfields in all the ./includes/xml/bitfield_XXXX.xml files.I have no idea which one the other could be, but i do know this one produces the error. Where would I change bitfield name in this Mod?
heartsglad
03-29-2014, 06:12 AM
After upgrading to vb 4.2.2 this plugin died (with showing multiple error messages).
So I decided for this one:
VSa - Advanced Permissions Based on Post Count
https://vborg.vbsupport.ru/showthread.php?p=2490200#post2490200
At least plugin working.
Max Taxable
03-29-2014, 11:32 AM
After upgrading to vb 4.2.2 this plugin died (with showing multiple error messages). Well, no kidding. Because this one is for version 3.7. The 4.x.x version you installed instead is by the same coder.
m7sen
11-03-2014, 08:52 PM
$apboupc_get_allowedrecs = $vbulletin->db->query_read("SELECT userid, username, usergroupid FROM `" . TABLE_PREFIX . "user` AS user WHERE `usergroupid` IN (".$vbulletin->options['apboupc_pm_allowed'].") OR FIND_IN_SET('X', membergroupids) ");
What would I need to do to to the above code be able to include secondary usergroups in the allowed PM recipient usergroup ID field? As of now you can select primary groups who are allowed to receive PM's (ie site staff) before a user meets the post-count requirement, but the field is useless if you want to add a secondary group id to it.
I have tried:
$apboupc_get_allowedrecs = $vbulletin->db->query_read("SELECT userid, username, usergroupid, membergroupids FROM `" . TABLE_PREFIX . "user` AS user WHERE `usergroupid` IN (".$vbulletin->options['apboupc_pm_allowed'].") OR WHERE `membergroupids` IN (".$vbulletin->options['apboupc_pm_allowed'].")
");
as well as:
$apboupc_get_allowedrecs = $vbulletin->db->query_read("SELECT userid, username, usergroupid, membergroupids FROM `" . TABLE_PREFIX . "user` AS user WHERE `usergroupid` IN (".$vbulletin->options['apboupc_pm_allowed'].") OR FIND_IN_SET (".$vbulletin->options['apboupc_pm_allowed'].", membergroupids) > 0)
");
the error message varies slightly, but it's along the lines of this one:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/private.php(1174) : eval()'d code on line 40
Anyone able to tackle this? I really need to get secondary ID's added to the allowed recipients field...
EDIT: Found something that works for the time being:
$apboupc_get_allowedrecs = $vbulletin->db->query_read("SELECT userid, username, usergroupid FROM `" . TABLE_PREFIX . "user` AS user WHERE `usergroupid` IN (".$vbulletin->options['apboupc_pm_allowed'].") OR FIND_IN_SET('X', membergroupids) ");
X being the ID of your secondary usergroup. If one was to simply keep continuing to add "OR FIND_IN_SET..." in the above code, they can include as many secondaries as they like. Not the prettiest fix, but still a fix. :)
go to
Cyb - APBOUPC - P5 (PI) plugin
search
$apboupc_recipients = explode(';', $pm['recipients']);
Replaced to
$apboupc_recipients = &$pmdm->info['recipients'];
is will be work and send message for users group id you Chosen
but its give me error
PHP User Warning: trim() expects parameter 1 to be string, array given in ..../private.php(1172) : eval()'d code on line 20
i take this code from VSA - Advanced Permissions Based on Post Count mod for vb4
VSa - APBOUPC - 35 (PI) plugin
and ur code its good and fix it Manual
thanks
kaskull
11-20-2014, 06:57 PM
Is there some version for vb5 version?
ozzy47
11-20-2014, 08:20 PM
Is there some version for vb5 version?
No there is nothing like this for vB5
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.