vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Cyb - Advanced Permissions Based on Post Count (https://vborg.vbsupport.ru/showthread.php?t=177704)

athlon64bit 01-16-2010 12:47 PM

Does this work on vbulletin version 4?

whitedd 02-01-2010 11:15 PM

when this will work on VB 4.0.1.?

Hostboard 02-09-2010 08:37 PM

Quote:

Originally Posted by NAZIA (Post 1851946)
this is also not working.
it is showing, Generic Smilies pages when i open .../misc.php?do=cyb_apboupc_setall url

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.

klyde72 03-10-2010 05:13 PM

Hi, compliments for this product. I would want to hide only the Link and not the images. is it possible?
Thanks

Hendrizius 03-28-2010 06:30 PM

To all you having the accessf_nb error. Install the mod again and allow overwrite. Solved it for me.

chris&barb 04-17-2010 02:55 PM

Guests cant see images. Is there a way to set this so guests can see images? I have the setting to view images at 0 posts but you still need to register to view them.

I like the features of this mod but im really only using it to restrict new members from sending PM's because i was getting a lot of PM spam and competing forums PMing my members.

TFEX 04-18-2010 05:36 PM

PHP Code:

                $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:

PHP Code:

$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:

PHP Code:

$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:
PHP Code:

                $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. :)

TFEX 04-18-2010 05:38 PM

Quote:

Originally Posted by Hostboard (Post 1978632)
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.

You need to turn on the mod before you try, and be sure you are superadmin when you do. Once you turn it on it will allow you to set all rather than take you to the smilies page. When it's turned off it takes you to smilies.

I was fumbling about with it myself when I remembered that that's how CYB's advanced forum rules hack behaves also so I gave it a shot. ;)

Installed and working perfectly on 3.8

Moshe1010 06-14-2010 08:29 PM

Cyb Hello,

first of all I appreciate you work but I found a bug which is very ridicules and it took me couple of hours to find it.
When you have a user with symbols like " or & in his username, your mod is not working!!!!!!!
It's happening only If you send messages to admins and you put a counter limit that all your board users can't send private massages (can send massages only to admins. For example till they get to 150 posts and then they and can send whoever they want).
Dude you killed me, I think I will go to sleep now, I actually started to look in my SQL and do experiments.
So you can't send private massages to admins if an admin has sign in his username, please fix it.

Thank you.

G37Sam 08-12-2010 03:33 PM

I can't get this to work on vbulletin 4

HELP!

ETDC 08-12-2010 04:33 PM

Quote:

Originally Posted by G37Sam (Post 2082730)
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:

Code:

if ($_REQUEST['action'] == '')
{
  $_REQUEST['action'] = "form";
}

After it add:

Code:

$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_too_low_create', intval($foruminfo['create_nb']), intval($vbulletin->userinfo['posts']))));
                }
                }

Cheers
Russ

z0diac 06-24-2011 08:17 PM

Quote:

Originally Posted by Hostboard (Post 1978632)
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

unfv 07-20-2011 01:55 AM

any news about the VB4 version of this mod?

HMBeaty 07-20-2011 01:59 AM

Quote:

Originally Posted by unfv (Post 2222704)
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:

Quote:

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

Quote:

Originally Posted by ozzy47 (Post 2473170)
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/showthrea...00#post2490200
At least plugin working.

Max Taxable 03-29-2014 11:32 AM

Quote:

Originally Posted by heartsglad (Post 2490201)
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

Quote:

Originally Posted by TFEX (Post 2023305)
PHP Code:

                $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:

PHP Code:

$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:

PHP Code:

$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:
PHP Code:

                $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
PHP Code:

$apboupc_recipients explode(';'$pm['recipients']); 

Replaced to

PHP Code:

$apboupc_recipients = &$pmdm->info['recipients']; 

is will be work and send message for users group id you Chosen
but its give me error

PHP Code:

PHP User Warningtrim() 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

Quote:

Originally Posted by kaskull (Post 2523555)
Is there some version for vb5 version?

No there is nothing like this for vB5


All times are GMT. The time now is 01:01 PM.

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.01548 seconds
  • Memory Usage 1,845KB
  • 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_code_printable
  • (11)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (31)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