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)

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?


All times are GMT. The time now is 11:16 AM.

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.01573 seconds
  • Memory Usage 1,763KB
  • 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
  • (7)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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