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!


All times are GMT. The time now is 06:32 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.01509 seconds
  • Memory Usage 1,754KB
  • 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
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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