PDA

View Full Version : Miscellaneous Hacks - Cyb - Advanced Permissions Based on Post Count


Valter
01-09-2009, 10:00 PM
Info:
This product allows you to set permissions based on user?s post count for:
-viewing forum (threads listing),
-viewing threads content,
-creating new threads,
-replying to threads,
-viewing attachments,
-Viewing/Posting links/images and e-mail addresses,
-sending private messages,
-sending e-mails,
-posting Visitor messages
-viewing Albums
-creating new Albums
-posting Picture comments
-viewing Social Groups
-creating new Social Groups
-posting Group messages

This will disallow members with no permissions to view forums/threads/posts/links through normal view, printthread, search, archive*, thread preview. Note that you can set Forum/Thread Permissions for each forum/sub-forum separately. Screenshot shows additional options in Forum Manager and error messages shown to user when trying to view restricted area.

*-When you set in some forum "Minimum Post Count To View Thread Listing In This Forum" option to different value than "0" guests will not be able to see thread listing in that forum through Archive. For logged-in users this function works normally regarding user's post count.
-When you set in some forum "Minimum Post Count To View Threads Content In This Forum" option to different value than "0" guests will not be able to read threads in that forum through Archive. For logged-in users this function works normally regarding user's post count.


How it works and why it's better than vB Promotions system...
First of all it's very easy to use.

Forum is shown on forumhome but if you have no needed post count you'll see lock icon and predefined error message when try to access. When you set this via vB Promotions system forum is hidden on forumhome and you must create additional usergroup to make all this working.

When user collect needed amount of posts he will be able to access protected forum immediately. When you set this via vB Promotions system then user must wait until Promotions task is executed ... then he will be able to access protected forum. How much time user must wait it depends on settings in AdminCP/Scheduled Tasks... and if you set this to run every minute it pushes your server. If you set it to 2 or more minutes then user must wait more and more... and nobody like it.


Thanks to:
grog6 - plugin was inspired by his original hack for vB 3.0.x.
macooper - for help with creating first version of plugin for vB 3.5.0.


Installation:
Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product]


To set options:
Go to: AdminCP > vBulletin Options > Cyb Advanced Permissions Based on User's Post Count - set options here


Versions:
v1.0 - Sep 16.2005.
-First release
v1.1 - Sep 19.2005.
-Updated to disallow users to view forum or threads through printthread or archive
-Changed modification name to "Access Permissions Based on User's Post Count"
v1.2 ? Oct 10.2005.
-Added option to set permissions based on user's post count for creating threads
-Added option to set permissions based on user's post count for posting replies
-Added plugin for archive. No more need to edit any files (this was optional step in v1.1).
v2.0 - Nov 20.2005.
-Now user can not search posts in restricted areas.
-Now "Locked" icon is shown on forumhome for restricted forums (if "Show Lock Icons to Users" is choosen in vB Options).
-Fixed ALL known bugs.
v2.1 - Nov 21.2005.
-Bug fixed - search problems
v2.5 - Jan 29.2006.
-Added Attachment Permissions
-Added Private Messages Permissions
-Added ability to turn off whole system or some parts
v2.5.1 - Jan 30.2006.
-Fixed version info
-Fixed forum manager error
v2.5.2 - Feb 26.2006.
-Archive bug fixed.
*When you set in some forum "Minimum Post Count To View Thread Listing In This Forum" option to different value than "0" guests will not be able to see thread listing in that forum through Archive. For logged-in users this function works normally regarding user's post count.
*When you set in some forum "Minimum Post Count To View Threads Content In This Forum" option to different value than "0" guests will not be able to read threads in that forum through Archive. For logged-in users this function works normally regarding user's post count.
v2.6 - May 02.2006.
-In previous version it was possible to view part of thread when you move mouse over thread title (if configured that users can see thread listing but not thread content)... this is fixed now, please upgrade
-Added e-mail permissions
-Hack renamed from "Access Permissions Based on User's Post Count" to "Cyb Advanced Permissions Based on User's Post Count"
v2.7 - May 04.2006.
-Attachments permissions bug fixed
v2.8 - May 26.2006.
-Added - Now users with no permissions to send PMs can post PMs to usergroups you choose
-Added - Link Posting Permissions. Member must have x posts before can post links.
-Added - Now you can easily exclude usergroups from any restrictions (see screenshots)
v2.9 - May 27.2006.
-Added ability to hide last post info for choosen forums
-"To view attachments..." phrase is now more flexible. Now required post count number must NOT be at the end. Add {1} where you wish to show required post count number and add {2} where you wish to show user's post count in phrase.
v3.0 - May 31.2006.
-Bug fixed. Usergroups who are excluded from "Forum/Thread Permissions" will be able to see last post info in forums where you have choose to hide it.
v3.1 - June 03.2006.
-Added "Excluded groups" to PMs Permissions
-Users with no permissions to send PMs (except to allowed usergroups you choose) will see note on New PM page (see screenshots)
v3.2 - Aug 04. 2006.
- Release of this hack for vB v3.6
v3.3 - Aug 05. 2006.
- Attachment Permissions error message fixed
v3.4 - Aug 24. 2006.
- Fixed bug in "Links Posting Permissions" (user can post link when replying to thread)
- Added "Product Version Checking" - https://vborg.vbsupport.ru/showthread.php?t=124679
v3.5 - Aug 25. 2006.
- Another "Link Permissions" bug fixed
v3.6 - Sep 02. 2006.
- If user has no permissions to view forum/thread he will see standard no permission message instead of "post count needed" one
- Fixed error messages for archive
- Added: "Links Viewing Permissions" (regular post view, printthread view, thread preview, archive view)
- Added: Forums can be excluded from "Links Posting Permissions" restrictions
- Added: Forums can be excluded from "Attachment Permissions" restrictions
v3.7 - Sep 04. 2006.
- Added ability to easily set forum/thread-permissions to the same level for all existing forums (only SuperAdmin can do this)
v3.8 - Sep 20. 2006.
- Fixed bug (posting links permissions doesn't work)
v3.9 - Feb 23. 2007.
- Fixed bug (guests can't see attachments even there are no post count requirements)
- Fixed bug (links not hidden in showpost)
- In "Links Posting Permissions" added option to additionally disallow members to post e-mail addresses
- Several code improvements for better compatibility
v4.0 - Apr 04. 2007.
-Post count requirements to view attachments, view links/images, and post links/images, moved to Forum Manager (different settings for individual forums possible)
-Quote is now enabled when user has no permissions to view links/images but they are not shown inside quote tags.
-You must not rebuild forum info manually after setting up parameters for all forums ("Global-set" page). This is now done automatically.
-"Links/Images Viewing Permissions" much better hides links/images, now including ones in search results post titles and notification e-mails.
-Added option to hide links/images in signatures
-Fixed bug (vBulletin RSS Feed Robot stops working when post count is required to create threads)
-"Global-set" page improved with new options, list of forums with current settings, quick forum edit links,...
-General code cleanup, optimizations, improvements,...
v4.1 - Aug 18. 2007.
-Fixed bug with errors in Archive
-Group membership checking works now for supplementary usergroups too
-Some minor security and compatibility improvements...
v4.2 - Sep 01. 2007.
-Definitely fixed bug with blocking RSS Poster
-Improved "Attachments Viewing Permissions" (now user can not download attachment when attachment id is known)
-New in "Attachments Viewing Permissions": Option to allow users to view image thumbnails, but not full size images
-New in "Private Messages Sending Permissions": With no-permissions error affected user gets list of allowed recipients too
-Minor bug fixes...
v4.3 - May 01. 2008.
-CSRF protection added
-Compatible with vBulletin 3.7 Gold (may not work with Beta/RC releases)
-Fixed bug where some users are not able to import product
v4.4 - Jun 19. 2008.
-"Last post info" automatically hidden for users who are not able to acces forum
-Fixed bug where e-mails posting permissions does not work properly
-New: Minimum post count to post Visitor messages
-New: Minimum post count to view Albums
-New: Minimum post count to post Picture comments
-New: Minimum post count to create new Albums
-New: Minimum post count to view Social Groups
-New: Minimum post count to create new Social Groups
-New: Minimum post count to post Group messages
-Minor bug fixes...


PLEASE click INSTALL if you use this plugin ;)

dreads
01-10-2009, 04:05 PM
Another great mod by Cyb :D thanks

* Clicks Install

nfn
01-10-2009, 07:34 PM
Hi ...

Can we have an option to allow images but disallow links?
I' forced to use this (https://vborg.vbsupport.ru/showthread.php?t=173490) because of this feature :(
My members need to post images but I need to avoid links in the firsts posts

Can we have this options please?

Thanks
N

Stubbed
01-11-2009, 09:34 PM
I don't quite know how I didn't see this earlier, it's everything I was after and more, however...

All I really want to do is put new users posts into a moderation queue, except in a certain forum (For example, the new users forum).

While I could use this mod to do similar, it seems excessive for my requirements. Are there any recommendations for what I am after?

MikeHolohan
01-16-2009, 06:41 PM
I don't quite know how I didn't see this earlier, it's everything I was after and more, however...

All I really want to do is put new users posts into a moderation queue, except in a certain forum (For example, the new users forum).

While I could use this mod to do similar, it seems excessive for my requirements. Are there any recommendations for what I am after?

That's what I need too...

Brandon Sheley
01-16-2009, 07:06 PM
It's good to see this updated, I know a few sites that use it. :)

mattbarb
01-16-2009, 07:29 PM
When this plugin is enabled, non-admins cannot do a mouse-over thread preview in search results. It works fine in forumdisplay. This does not happen to admins/moderators. Any ideas? vb 3.8.0. Al forums are set to 0 posts so far so its not a permission setting.

redraider
01-18-2009, 12:46 PM
when i upgraded from vb3.7.0 to vb3.8.0 version of this mod, the link in my admincp still points to the vb3.7.0 version of this mod, how do I know if its updated properly or not?

troppodel
01-19-2009, 07:29 AM
Hi Cyb
i love this mod
please a question, how can i use it with my dynamics instance?
please let me know
thanks
Ivan

nwingate
01-22-2009, 02:18 AM
Great hack... thanks!

I'm having a problem with spambots who join the post and post a bunch of crap (which isn't new of course) but they are also rating threads so people will view their posts. So, I can remove all their posts quickly but the threads remain rated 5 stars which is not great for the site.

Is there anyway we can add an additional option to prevent people from rating threads before X amount of posts?

Thanks!

GrendelKhan{TSU
01-23-2009, 08:43 AM
awesome Thanks!!!

Kihon Kata
01-24-2009, 03:08 AM
Updated my live site

spipo
01-26-2009, 01:21 PM
I have the previous version of 3.7.2 .
I will upgrade my forum to 3.8
how to upgrade this plugin to the last version : only overwriting ? or it need some steps ..?

regards

Valter
01-26-2009, 07:18 PM
Just upgrade vBulletin, this product will continue working with 3.8.

BlackJacket
01-28-2009, 04:25 PM
*Installs*

This is great. Exactly what i was looking for!

Works great also.

Lautaro
01-29-2009, 11:45 PM
marked as installed. Thanks Cybernetec again for this great mod..

trickfly
01-30-2009, 06:46 PM
is it possible to hide links within the [code] tags ?

Kuydoha
02-04-2009, 01:19 PM
installed :)
Thank you

xpinx2pin
02-05-2009, 12:22 AM
can i req for new feature?
can u add enable/ disable signature base on post count ?

Thanks before, this is are good mod

rockinaway
02-05-2009, 03:42 PM
I just wanted to verify, that if all settings are disabled, except the posting of links, then will this overwrite any settings I have for the usergroups in my core installation?

And this will not effect guests if they are not allowed to post right?

Nantrox
02-09-2009, 07:54 PM
now its getting boring ^^ one more time: thx for another great hack ! *installed*

mitch84
03-05-2009, 07:43 AM
hi,can I to set on the number of subjects create?
sorry for my poor english
thank you

Chadi
03-16-2009, 11:41 PM
I'm using another hack in conjuction with this one. The other mod (now in mod graveyard) is called Check4Spam. The reason I use that one still is because it allows custom rules.

My custom rules are:

[url|www .|www. |w-w-w|w.w.w|(dot)|[dot]|{dot}|.html|.htm|.shtml|.php|.asp|.cgi|.com |.net |.org |.info |.co.uk |.com/ |.net/ |.org/ |.info/ |.co.uk/ |.com.|.net.|.org.|.info.|.co.uk.|http://

It also allows ignore list (whitelist domains rules) and spam keyword check as well.

Would you be willing to add such features into yours?

My Feature Requests Summed Up:
- white list domains
- spam keyword check
- custom rules for link/image/email prevention (as shown above) [aka
URL Identifiers]

I've attached the original mod file.

steampunks
03-17-2009, 04:35 PM
It would be useful to base permissions upon post ratio. So that too many posts in a designated forum(s) limits access to other forums.

masterweb
03-19-2009, 07:48 PM
That's my problem too, i noticed new signups with 0 posts using signature for spamming (redirecting traffic to their signs in order to redirect once again to the final spamming links). This could be a great feature for sure (in the meantime great mod dude, congratz for your hard work ;) )

can i req for new feature?
can u add enable/ disable signature base on post count ?

Thanks before, this is are good mod

Scovic
03-20-2009, 07:10 PM
Great mod.
Thanks

rveram
03-24-2009, 08:47 PM
Anyone know how to fix this error:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/private.php(1174) : eval()'d code on line 23

I get this error when a User with less than 50 posts wants to send a private message.

TilkiBey
03-25-2009, 05:34 PM
good job cybernetec :thumbup:
installed and nominated ;)

HansMuenchen
03-28-2009, 09:24 AM
Hello,

I have two Problems with the Addon:

1st When I click on the link into Addons I will be directed to the 3.7 Page not to the 3.8 page here
2nd When I say that Links are only possible by postcount of 1 and the user have 0 I also see the links and can use them.

What I can do to make it work?

Thnx for your help
Hans

P.S. Sorry for my terrible english :(

YLP1
03-31-2009, 05:12 PM
Will this mod work to not allow members to send/receive private messages EXCEPT to/from mods/admins until x number of posts are made? I don't want to disable the pm feature for members because I want them to be able to communicate with mods/admins and vice versa but new members will pm other members to sell products or to coax them to other boards.

Thanks in advance for info.

Valter
03-31-2009, 05:19 PM
Yes, you can limit users with post count less than x to PM members, but allowing them to PM Staff.

YLP1
03-31-2009, 10:14 PM
Yes, you can limit users with post count less than x to PM members, but allowing them to PM Staff.
Can this be done by usergroup to? For instance, I have seven usergroups that I only want to be able to send pms to admins/mods and receive only from admins/mods.

TIA

Chadi
04-01-2009, 04:43 PM
I'm using another hack in conjuction with this one. The other mod (now in mod graveyard) is called Check4Spam. The reason I use that one still is because it allows custom rules.

My custom rules are:

[url|www .|www. |w-w-w|w.w.w|(dot)|[dot]|{dot}|.html|.htm|.shtml|.php|.asp|.cgi|.com |.net |.org |.info |.co.uk |.com/ |.net/ |.org/ |.info/ |.co.uk/ |.com.|.net.|.org.|.info.|.co.uk.|http://It also allows ignore list (whitelist domains rules) and spam keyword check as well.

Would you be willing to add such features into yours?

My Feature Requests Summed Up:
- white list domains
- spam keyword check
- custom rules for link/image/email prevention (as shown above) [aka
URL Identifiers]

I've attached the original mod file.

Anyone else interested in this idea? Perhaps we can donate $10 each until the author is satisfied?

Valter
04-01-2009, 09:08 PM
Can this be done by usergroup to? For instance, I have seven usergroups that I only want to be able to send pms to admins/mods and receive only from admins/mods.

TIA
You can set which usergroups are NOT affected by the hack, and also which usergroups will be available to affected users to send PMs to.
https://vborg.vbsupport.ru/attachment.php?attachmentid=92194&d=1231601713

Chadi,
I have no time to add new features to my hacks atm, as I'm very busy. Only potential major bugs will be fixed in the near future.

supLaditOz
04-03-2009, 09:39 PM
This is what i need

Tnx Cyb

Chadi
04-03-2009, 11:07 PM
You can set which usergroups are NOT affected by the hack, and also which usergroups will be available to affected users to send PMs to.
https://vborg.vbsupport.ru/attachment.php?attachmentid=92194&d=1231601713

Chadi,
I have no time to add new features to my hacks atm, as I'm very busy. Only potential major bugs will be fixed in the near future.

Thanks for the follow up. If you can implement the suggested features from the other mod I attached earlier, eventually at least - that would be great. I'll gladly donate $25 myself.

smirkley
04-04-2009, 04:35 AM
Thanks, I really needed this mod for spam reasons.

Can it eventually be expanded to include vb-blogs too?

Thanks again.

fanyap
04-04-2009, 07:21 AM
Whenever I try and alter the permissions for "All Existing Forums" in the View Links / Images section of the vB options it is taking me to mydomain.com/misc.php?do=cyb_apboupc_setall

Shouldn't it be taking me somewhere in the admincp? I am trying to update it so it requires you to globally have 1 post before you can post any links in the forum.

Thanks & Great Mod!

opy01
04-07-2009, 01:10 PM
Whenever I try and alter the permissions for "All Existing Forums" in the View Links / Images section of the vB options it is taking me to mydomain.com/misc.php?do=cyb_apboupc_setall

Shouldn't it be taking me somewhere in the admincp? I am trying to update it so it requires you to globally have 1 post before you can post any links in the forum.

Thanks & Great Mod!

Same here. I had the one for 3.7 installed and thought updating would fix it but it doesnt. Any help is appreciated. All that comes up is a page full of smilies.

morrow
04-09-2009, 01:20 AM
When I click, "For All Existing Forums", the link takes me to my smilies page. The link "myforumsdir/misc.php?do=cyb_apboupc_setall"

Uninstalling until this is resolved.

ABDALWAHID
04-11-2009, 03:01 AM
Can you update this mod exclude youtube video or swf code free.

because if these addons then active guest can no longer video or flash code see

regard

profanitytalker
05-14-2009, 03:47 PM
Hi, do you have an option of limiting from voting on polls?

rase2
05-22-2009, 03:17 AM
I'm getting the following error

MySQL Error : Unknown column 'accessf_nb' in 'field list'

any ideas why this might be?

Valter
05-22-2009, 06:26 AM
Not properly installed.

Uninstall, re-install, set options.

rase2
05-22-2009, 03:59 PM
^Thanks.

swiper the fox
05-28-2009, 02:57 PM
Hello
Is it possible that you can rewrite this mod to basically do the same function, but based on usergroup (secondary usergroup/membership) instead of by post count ?

this would be great !!

Valter
05-28-2009, 04:31 PM
It's already part of vBulletin.

https://vborg.vbsupport.ru/external/2009/05/23.jpg

swiper the fox
05-28-2009, 05:48 PM
It's already part of vBulletin.

https://vborg.vbsupport.ru/external/2009/05/23.jpg




example: one forum i would like to one 1 usergroup only able to view or post pictures/attachments in that forum but would like another usergroup to NOT view pictures/attachments in that same forum

this can not be resolved easily with default vb permissions easily

swiper the fox
05-28-2009, 07:49 PM
maybe need more details

usergroup 1 along with a secondary membership a needs access to view/post to ALL forums except 1or2 (for those) we would like them to only post text (no viewing IMG or uploading pictures/attachments)

usergroup 1 along with secondary membership B needs full access to post and view pcitures/attachments for same forums 1or2

RaceJunkies
05-29-2009, 06:37 PM
Nice mod!!

Already installed and working.

Just was wondering how to change text

"To reply to threads in this forum your post count must be 1 or greater.

You currently have 0 posts."

Valter
05-30-2009, 07:35 AM
Phrase Manager is some magic place in the heart of Disneyland.

swiper the fox
05-30-2009, 01:06 PM
Any possibility of creating/modifying your existing mod CYB ?

Advanced Permissions Based on (primary usergroup and/or secondary usergroup(membership) ?

Thanks

RaceJunkies
05-30-2009, 02:00 PM
Phrase Manager is some magic place in the heart of Disneyland.

Guess I was lazy...

Did it! :)

4nawadir.com
05-30-2009, 02:16 PM
Great Work
Installed & Notaminated

Abdallah

HDT
06-01-2009, 12:42 AM
Any chance get this mods work with Downloads II? I already set permission based on post account via vB "Promotions" system but as declared this mod it's better than vB Promotions system, I want to know if this can be done.Thanks.

JohorBahru
06-06-2009, 05:59 PM
could the user lesser than the required posts view their own posted pictures and links?
thank you for the help. has marked as installed :)

RichieBoy67
06-09-2009, 03:12 AM
There are no upgrade instructions??

I am upgrading a 3.6.8 version of VB to 3.8.2--The forum has the 3.6.8 version of this mod-In order to upgrade is it just a product overwrite? Will this even work?

I will be doing this upgrade shortly so an answer would be great...

Thanks

Valter
06-09-2009, 09:02 PM
Import product XML, allow overwrite.

thebeanie
06-17-2009, 09:58 PM
I am getting this error message:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]\private.php(1177) : eval()'d code on line 23

On this page:

http://forum.contexteditor.org/private.php?do=insertpm&pmid=

Just thought I would report it!

sportwiz628
06-19-2009, 11:27 PM
XML Error: Empty document at Line 1

Why does it say that?

Valter
06-20-2009, 06:54 AM
Use original XML. Re-download if needed.

presh
06-20-2009, 05:22 PM
This was the very first mod I have ever personally installed. so please excuse me if this is incredibly stupid.

I did install the mod, and went into Vbulletin options to set the preferences.
At each section, there are two options: Individual Forums or All Existing Forums.
so far so good.

When I choose "All Existing Forums", the link takes me to a page that shows all the smilies that are installed for the forums. That's it.

How/where do I merely set new users unable to post links or email addresses until they've posted x # of messages?

barb

presh
06-20-2009, 06:01 PM
Use original XML. Re-download if needed.

I downloaded the 3.8 version and installed the XML file.
Will redo that and see if it helps.
should I try 3.7?

barb

presh
06-20-2009, 06:07 PM
Use original XML. Re-download if needed.

uninstalled.
re-downloaded the version for 3.8
installed.

same result - "all existing forums" opens SMILIES page.

barb

Valter
06-20-2009, 07:16 PM
You must be SuperAdmin to be able to access this page.

SuperAdmins are set in config.php in 'includes' folder on your server.

ShadowStalker
07-06-2009, 04:10 AM
I was having an issue with this mod in conjunction with one of the backup mods on this database or a vb ad management mod. I will reinstall those mods and see if I can pinpoint the issue I was experiencing.

tafreeh
07-07-2009, 01:12 AM
it dosent work on private messagin....

SoloX
07-09-2009, 12:29 AM
You must be SuperAdmin to be able to access this page.

SuperAdmins are set in config.php in 'includes' folder on your server.


I am editing as superadmin but i still get the smilies page when setting permissions for all forums.

EidolonAH
07-09-2009, 07:07 AM
Weird, I have had this installed for a while now, I have recently reset all permissions so members cannot post anywhere until they have 1 post count other than an intro forum. The minimum post count of 1 is being ignored, new members are making their first posts in areas other than the intro forum. I know you're bust Cybernetec but would you have any idea what I might have got wrong to cause the post count requirement to be ignored.

atonement
07-13-2009, 06:53 PM
selecting "for all existing forums" brings me to FAQ-->smiley page?

cnutter
07-14-2009, 02:23 PM
Can your Add-on be used with/in addition to VBs system?

EidolonAH
07-15-2009, 04:21 PM
Hiya Cybernetec, sorry to be a pain in the butt but I really do need to push you for some kind of answer please.
Currently this mod no-longer works on my site, the minimum post count requirement is being completely ignored, people are posting all over the site even though they don't have the required post count to do so. I really need your help please.

Valter
07-15-2009, 07:28 PM
I really don't know what it can be.

If you wish create temp admin account for me and I'll fix it for you.

I need access to options/products/styles.

EidolonAH
07-16-2009, 08:42 AM
I really don't know what it can be.

If you wish create temp admin account for me and I'll fix it for you.

I need access to options/products/styles.

Account set-up and details PM'd.

Valter
07-16-2009, 05:46 PM
I've just checked your site.

Product works fine for me.

I've removed temporarily Admin group from "excluded groups" and I was not able to reply to threads in your forums.

EidolonAH
07-17-2009, 07:44 AM
****** edited******

Scratch all of that, I have found the problem, it's the mod system modification, I haven't found a simple solution to the problem so have engaged a work-around.
Thanks for your help Cybernetec, I greatly appreciate it.

LTW
07-18-2009, 11:18 PM
< edit >

I see what happened.

LTW

NAZIA
07-20-2009, 01:38 AM
this is also not working.
it is showing, Generic Smilies pages when i open .../misc.php?do=cyb_apboupc_setall url

can anyone tell me what to do to resolve this issue...



---------edit----
here is the solution.. Super admin can do it.. wow i did it ..
https://vborg.vbsupport.ru/showpost.php?p=1833531&postcount=65

abbas73
07-24-2009, 02:06 AM
excellent. i have been searching for this one. thank you

setishock
07-29-2009, 06:49 PM
I nabbed this because of spam attacks. This should slam the door finally on that chapter.
I'll mark it "installed" but will have to wait until my day off tomorrow to slip it in and test drive it.

Darkgardevoir
07-29-2009, 09:20 PM
hey Cyb is there a way to only hide links and show the images?

tpearl5
08-04-2009, 08:40 PM
For some reason that I can't figure out, thumbnails are showing as broken images to unregistered users. Anyone have any ideas?

tpearl5
08-08-2009, 05:24 PM
Thanks, I really needed this mod for spam reasons.

Can it eventually be expanded to include vb-blogs too?

Thanks again.

Second the blog request

MikeDVB
08-10-2009, 05:49 PM
This is exellent - I'm now trying to find a mod that will prevent more than X posts per X hours/days/weeks for particular forums. Any suggestions?

rrudeboy
08-13-2009, 12:21 AM
i installed this, set it up that members with less than 10 posts can NOT post links -mainly to prevent them putting links in the signature, logged in as test user, 0 posts.. post a message with a link in the sig, and it still shows.. not clickable but still shown :(

is there anything i can do about it short of disallowing links in sigs all together ?

bojomojo
08-13-2009, 08:11 AM
Hey,

is it possible to use this to give signature permissions?

sdavis2702
08-15-2009, 08:24 PM
Someone mentioned it but it looks like they were ignored a bit... I'm sure by accident.

"For All Existing Forums" is taking me to a page describing smileys for some reason. Any clue why?

sdavis2702
08-18-2009, 03:41 PM
Got it... thanks I didn't see your post up there NAZIA. I had to log in with the main admin account to do it. Good stuff.

Kadi
08-30-2009, 12:56 PM
Hi,

We have temporarily disabled private messages and have set the number of posts needed to send pm's to "0". But it still shows up to members as needing posts to send pm's.

How do we disable it?

Thanks.

Mum
09-02-2009, 04:50 AM
Would there be a way to use this for post count of 10 posts within the last month?

Kadi
09-15-2009, 04:56 AM
Hi,

We have temporarily disabled private messages and have set the number of posts needed to send pm's to "0". But it still shows up to members as needing posts to send pm's.

How do we disable it?

Thanks.

can someone help with this?

osix
09-16-2009, 05:59 PM
Is this Mod able to restrict user base on Thread reply .

Meaning the user can only view the Thread image after he Reply .

= if so this would really push the post count for the forum .

would be even better if can some who control and allow a few image preview and upon reply on the thread you get to see the full post . or hidden section .

possible ?

JacquiiDesigns
09-18-2009, 02:38 AM
Awesome modification Cybernetec!
I'm using it exclusively in an attempt to prevent spam PMs/emails from new members. I edited the phrases to make it a bit more "kewl" LOL:

http://jpicforum.info/imagehosting/images/hu1tzxp2k6o4r3cw5z5.png

I like it though - Very nice work = Thanks so much for the share ;)

Jacquii.

Tilly
09-20-2009, 02:49 PM
Is there an option for voting on polls?

We have a bike of the month poll every month and would love to ensure members aren't registering new names to drive up their votes.

mcloud
09-30-2009, 02:23 PM
Cybernetec, this is the translation into spanish language of this add-on

Traducci?n al espa?ol de este hack.
M?s traducciones al espa?ol en vBulletin es espa?ol (http://www.vbsoporte.com/foros/)

Speysider
09-30-2009, 05:01 PM
A great hack. Wondering if there will be an update that makes the users post go on the moderation queue?

Kingdombuilder
10-24-2009, 03:06 AM
Wow, This is what i've been looking for. I have a site that give away cell phone themes and i was getting people coming in and downloading the themes and taking off without registering. Thanks, I installed it and can't wait to configure criteria.

Kingdombuilder
10-24-2009, 03:59 AM
I configured it, and it is working great!!!

ricardoNJ
10-24-2009, 12:50 PM
Testing..

Aquazelf
10-27-2009, 07:47 PM
Someone on my forum said that having a post limit for viewing images and links was the most insane thing they had seen in their entire life...

JacquiiDesigns
10-27-2009, 08:09 PM
Someone on my forum said that having a post limit for viewing images and links was the most insane thing they had seen in their entire life...

Then that's why you don't install the modification LOL or rather - don't use the images and links restrictions.

Different strokes for different folks. But I must say I agree in a sense anyway - I only use the modification for the PM restriction based on post count feature. It's nice to have the additional options if needed though :)

Jacquii.

Speysider
11-07-2009, 07:42 PM
For some reason, installing this mod worked fine on my forums, and it gives the cyb apbopc page for quick editing.

But on Aquazelf's forum, it just goes to the page of smilies. Why is this?

Speysider
11-14-2009, 05:32 PM
Is anyone going to bother replying?

zelnik
12-22-2009, 02:03 PM
any ideas or plans on a vb4.0 version?! thanks.

Tagert
12-24-2009, 07:59 PM
any ideas or plans on a vb4.0 version?! thanks.

Yeah I wonder that too :)

j4ck455
01-02-2010, 01:34 PM
any ideas or plans on a vb4.0 version?! thanks.Ditto that, really need to know if there will be a version compatible with version 4.x.Is there some add-on that does the same sort of permission restrictions but based on how long a user has been registered?? Like cannot create threads if the user has not been a member for say at least 30 days...I would also like to know if there is an add-on that can restrict permissions based on the number of days a user has been registered.

greenflag
01-03-2010, 04:13 PM
i have them same issue - help plz.

For some reason, installing this mod worked fine on my forums, and it gives the cyb apbopc page for quick editing.

But on Aquazelf's forum, it just goes to the page of smilies. Why is this?

DCX000
01-09-2010, 05:46 AM
This would be so welcome and appreciated for my 4.0 suite. The ability to manage posting links by usergroup is a real problem for me. I am tempted to give it a try even knowing it has a slim chance of working.

spipo
01-16-2010, 08:25 AM
I wonder if you have in mind upgrading this Mod to VB4 ...
It will be useful for blocking the increasing amount of spam which will affect our boards daily

BillieJoe
01-16-2010, 12:32 PM
is there a chance to have the option that a user needs to have x posts in the past y days to view a forum?

for example, user a needs 3 posts in the past 30 days to view the sportforum or whatever.
even if he allready has, lets say 300, he needs 3 posts in the past 30 days or he just cant view the forum.

alper069
01-16-2010, 01:03 PM
Good Mod.. ty

captkirk
01-17-2010, 03:34 PM
This works very excellent thanks

sheep92032
01-24-2010, 06:47 AM
This plugin is great, but it invites floods. It'd be really good to have a feature, or maybe a new plugin to let users only post so many times in x seconds/ minutes.

An alternative would be an Advanced Permissions Based on Time. But I think the former would be easier.

Deska
01-25-2010, 11:31 PM
I'm waiting for version that compatible with vBulletin 4.
Thank you....

Valter
01-26-2010, 12:15 AM
It's already in 4.x section.

antarvasna
02-08-2010, 06:59 PM
As alwayz great mod by CYB. You are The Man

NetRover
02-19-2010, 10:24 PM
Many thanks, this is an excellent product and very powerful for increasing a community and getting people to post. well worth the install.

Reza_Mk
02-23-2010, 08:38 PM
Where can I set the number of post to see attachments?
There isn't any field for it? :(

Another thing is about using attachments.
Can I set some permissions to avoid user to attach before the post X posts?

Kadi
02-27-2010, 08:56 AM
Hi,

We have temporarily disabled private messages and have set the number of posts needed to send pm's to "0". But it still shows up to members as needing posts to send pm's.

How do we disable it?

Thanks.

I still need help with this please.

lokash20
03-04-2010, 08:48 PM
Insatlled. Very happy. Thanks! :)

Feature request - Assuming I haven't missed something - A log of failed attempts to PM/e-mail/whatever due to being blocked by this plugin would be useful.

gsmlover4u
03-09-2010, 06:13 AM
good mods

gsmlover4u
03-09-2010, 06:29 AM
is it working with 4.0.2 ?

dmark101
03-14-2010, 06:33 PM
is it working with 4.0.2 ?
he's got a version specifically for vB 4.0 (https://vborg.vbsupport.ru/showthread.php?t=233979), if you searched for his mods. ;)

IsMaR
03-23-2010, 07:56 AM
Script works for some members, but for some strange reason, some spammers are able to bypass it (i believe particularly xrumer users)

gamerfu
03-25-2010, 05:24 PM
Does this mean: "Minimum post count user must have to be able to view thread content"

Can View Own Thread Content or Others' Threads or Both?

Does this mean: "Minimum post count user must have to be able to reply to threads"

Can Reply to Own Threads or Others' Threads or Both?

IsMaR
03-26-2010, 10:11 AM
Does this mean: "Minimum post count user must have to be able to view thread content"

Can View Own Thread Content or Others' Threads or Both?


Does this mean: "Minimum post count user must have to be able to reply to threads"

Can Reply to Own Threads or Others' Threads or Both?

I think it means exactly what it sounds like, both on both cases...

FleXy
04-04-2010, 09:57 AM
unregistered user got message: "To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts."

I think something goes wrong with this option :)

BirdOPrey5
05-29-2010, 08:54 PM
Thanks, Installed.

Any chance of getting an option to block users from posting links in their sig until they have a minimum post count? Seems like a new type of spammer makes two or three posts then changes their sig to link to their web page... their posts are somewhat on topic so hard to weed them out before they make the sig change.

BirdOPrey5
05-29-2010, 09:08 PM
i installed this, set it up that members with less than 10 posts can NOT post links -mainly to prevent them putting links in the signature, logged in as test user, 0 posts.. post a message with a link in the sig, and it still shows.. not clickable but still shown :(

is there anything i can do about it short of disallowing links in sigs all together ?

Really, mine were clickable... :confused: Is there a separate location for disabling links in sigs?

TheKdd
06-01-2010, 08:20 PM
I third the links in sigs request :)

Mostjolly
06-09-2010, 11:25 PM
Is there a way to hide links but NOT images?

BirdOPrey5
06-15-2010, 05:08 PM
I've noticed when clicking on the link in product manager it takes me to the 3.7 version/page even though this is the one I installed.

https://vborg.vbsupport.ru/showthread.php?t=177704

No biggie, just makes keeping track of latest versions a little tricky.

Zylantex
06-23-2010, 01:11 PM
Please ignore. I caused the problem myself. :(

DAMINK
07-14-2010, 08:33 AM
Any way to ban viewing of all images. img tag included?
I did test it but could only get sigs to stop working.
IMG tags were still visible.

Black Tiger
10-02-2010, 01:15 AM
Tagged for long, but installed now.:)
Thank you.

Black Tiger
10-02-2010, 01:43 AM
Found a typo and a problem.
Typo: when clicking on the product in the Admincp, it's linked to the 3.7 version of this mod instead of the 3.8 version.

Problem: First time all went well, second time I can't get the global options anymore. Just saw it once. Did not install any other mods after this mod. Just uninstalled this and installed it again (using overwrite=yes).
When I click on the option "For All Existing Forums" it points to this:
http://www.myforums.com/forum/misc.php?do=cyb_apboupc_setall

Don't ask me why, but on my forums it opens the smilie list under faq's.
How can this be fixed?

weindians
10-11-2010, 07:59 PM
the post count permissions in forum manager not showing anymore... on 4.4 version vb 3.8.4

i can acesss all forums option via vb option -> cyb- adva post count options... it was there before when we first set permissions....

EDIT : i sorted it out.. vboptimise was causing CAPBOPC , v3Arcade, options in forum manager edit to disappear.. uninstalled it as its not giving obvious difference

Black Tiger
10-27-2010, 09:20 PM
Pity that support is not good on this mod. Almost a month without an answer. But hey, it's free so I won't be too mad.:D
Anyway, found the fix for my problem in post #136. I had not enabled the "enable whole hack" option.
But IMHO this is still a bug if the hack is not enabled, that it points to the smilies page, it should not do that. So maybe this can be fixed in the future.

Black Tiger
11-07-2010, 01:29 PM
Big problems, seems not to work on 3.8.5.

I setup a forum like this:
Minimum post count user must have to be able to create new threads 5
Minimum post count user must have to be able to reply to threads 5

Yesterday a new user with postcount 0 posted a thread in that forum.

The only excluded usergroups are 5 and 6 which are Supermods and Admins.

How can this happen?

v12kid
11-10-2010, 12:20 AM
will this mod work if I want to restrict new users from creating signatures until they X post count?

Black Tiger
11-13-2010, 11:41 PM
Probably it does but you can better test it.

My problem is also over, it only works when the "view forum/thread" restrictions are set to yes, even if you don't need them.
Same goes for the enable whole mod option.
Pitty support is so low on this mod.

Jon12345
11-19-2010, 02:29 PM
If I install this mod on my 3.8.1 site, can I uninstall it easily or does it leave stuff behind, like extra tables or extra columns in the db? I've always wondered this on these types of mods.

Black Tiger
11-19-2010, 04:20 PM
As far as I know this mod will remove everything, also the extra tables. Not all mods do that, but many or even maybe most which make extra tables, do.
However, you manually have to remove the download directory and the files you place within there.

KID_1194
11-20-2010, 05:58 PM
{For All Existing Forums} ... when I click on it, it transfer me to the forum help !!

although the url for it is .. misc.php?do=cyb_apboupc_setall

please fix :D

Black Tiger
11-20-2010, 06:12 PM
Read my post #138 Kid, the solution is in there.

KID_1194
11-21-2010, 11:18 AM
Dear Black Tiger ..

I tried with the {Enable Whole Hack} is No & Yes .. and in both, it transfer me to the smiles page.

Best regards

Black Tiger
11-21-2010, 12:54 PM
You need to have set -everything- to YES (and then save first) where you want to use the "for all existing forums" option.
If there is one of them set to NO and you use the all forum option, you will get to the smilies page.
Otherwise put everything to yes, save and then try the "for all existing forums" option and you will see that I'm correct.:)

Normally Cybs hacks are great, but this a bit lazy work I guess because it should be rather easy to give an error notice instead of redirecting to the smilies page.

KID_1194
11-22-2010, 10:36 PM
I'm still getting redirected to the smiles page .. never mind !
---------------

For sure this is a lazy work .. I've tried most of their hacks, some got issues but they manage
to fix it asap ..

Thanks for the help bro .. !

Black Tiger
11-22-2010, 11:12 PM
If every option is set to YES and you saved it, and afterwards you still get to the smilies page, probably another mod is conflicting.
That's more difficult to find

But it's a pity there is so little support on this mod, especially with this issue.

About the help... no problem.
Just pity my tips did not brought you the solution to the problem.

jscieza
01-01-2011, 05:07 PM
Hi Valter,

Your product prevents people from watching announcements under certain circunstances. Please take a look at this thread for full and detailed information regarding this issue: https://vborg.vbsupport.ru/showthread.php?t=254612

Hope you can fix it soon!

Thank you,
Jonathan

BirdOPrey5
01-01-2011, 05:27 PM
Hi Valter,

Your product prevents people from watching announcements under certain circunstances. Please take a look at this thread for full and detailed information regarding this issue: https://vborg.vbsupport.ru/showthread.php?t=254612

Hope you can fix it soon!

Thank you,
Jonathan

I see the issue, this has fixed it for me but haven't tested it much:

In the plugin called search_results_start at the very end of the plugin add the following line:

$foruminfo['forumid'] = NULL;

jscieza
01-01-2011, 05:43 PM
Just wanted to say thank you very much!!!

gsmlover4u
01-09-2011, 01:33 PM
how i can change the size and collor of font
To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.

BirdOPrey5
01-09-2011, 04:35 PM
how i can change the size and collor of font
To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.


Find the phrase, edit it or add a "translation" and use HTML code to change it as you want...

You might change it to for example:

<span style="color:red;">To view links or images in this forum your post count must be {1} or greater. You currently have {2} posts.</span>

To make it red.

You can find the phrase by searching for it in Admin CP-> Languages and Phrases -> Search in Phrases.

AzH
02-28-2011, 03:25 PM
Best mod ever.

Scyther
07-08-2011, 10:54 AM
Wonderful mod.

downloaded and marked installed.

11133
09-17-2011, 09:41 PM
is it posible
this to be change instead based of post count to be based of helpfull answers
https://vborg.vbsupport.ru/showthread.php?t=204117

11133
09-20-2011, 10:16 PM
bump

how to change to count reputation, couse helpfull answers can be integrate with reputation

Ghostt
12-13-2011, 08:53 PM
I have exactly the same FATAL bug like Black Tiger. minimum post count restriction for crating new thread dont work!
PLease is there a fix possible?
has someone an idea?
please help.
thank you

Big problems, seems not to work on 3.8.5.

I setup a forum like this:
Minimum post count user must have to be able to create new threads 5
Minimum post count user must have to be able to reply to threads 5

Yesterday a new user with postcount 0 posted a thread in that forum.

The only excluded usergroups are 5 and 6 which are Supermods and Admins.

How can this happen?

Black Tiger
12-13-2011, 09:21 PM
@Ghostt: Did you try the solutions I gave on the previous page?

My problem is also over, it only works when the "view forum/thread" restrictions are set to yes, even if you don't need them.
Same goes for the enable whole mod option.

Ghostt
12-13-2011, 09:35 PM
i will try

/edit.
yes enabling the view forum restriction option fixed it!

thank you very much.

Black Tiger
12-13-2011, 09:45 PM
You're welcome.;)

angeljs
12-18-2011, 09:15 PM
Fab...just what I need. I've had an influx of spammers join lately posting rubbish. This should slow them down a little.

OmerE
02-05-2012, 04:37 PM
There are a few issues with the PM limitations part of this add-on (they are trivial to circumvent), please see my post here:
https://vborg.vbsupport.ru/showpost.php?p=2296483&postcount=178

sailnet
02-20-2012, 01:14 PM
due to a rash of spammers showing up recently and sending PM's to my membrs are they've met their posts count requirements I'd like to extend this mod to also include a minimum number of days that someone must be a forum member before they can send PM's.

can someone give me some guidance as to how to add this code?

thanks in advance.

kh99
02-20-2012, 03:44 PM
due to a rash of spammers showing up recently and sending PM's to my membrs are they've met their posts count requirements I'd like to extend this mod to also include a minimum number of days that someone must be a forum member before they can send PM's.

can someone give me some guidance as to how to add this code?

thanks in advance.

You (of course) need to add a check for days registered wherever the posts are checked. You could do something like:


$min_days = 3;
$days_registered = floor((TIMENOW - $vbulletin->userinfo['joindate']) / 86400);



Then add "AND ($days_registered >= $min_days)" in the appropriate places. You could also create a new option and use it to set $min_days (or in place of $min_days) instead of using a constant.

sailnet
02-20-2012, 04:38 PM
You (of course) need to add a check for days registered wherever the posts are checked. You could do something like:


$min_days = 3;
$days_registered = floor((TIMENOW - $vbulletin->userinfo['joindate']) / 86400);



Then add "AND ($days_registered >= $min_days)" in the appropriate places. You could also create a new option and use it to set $min_days (or in place of $min_days) instead of using a constant.

thank you very much! - any leads on which module in the cyb mod I would put this type of code in? I'm modify the notice message to the user telling them their have no been registered long enough or do not have enough posts to be entitled to send PM's to other users.

thanks in advance.

kh99
02-20-2012, 08:34 PM
thank you very much! - any leads on which module in the cyb mod I would put this type of code in? I'm modify the notice message to the user telling them their have no been registered long enough or do not have enough posts to be entitled to send PM's to other users.

thanks in advance.

Are you adding this check to the mod or creating a different one? If you're adding it, then look at each plugin and find everywhere $vbulletin->userdata[posts] is checked and add this (there were multiple places when I glanced at the code). If you want to have two separate notices then you may have to copy an 'if' block and duplicate it. (It might be easier to change the message to say "and/or you haven't been registered long enough", but that's up to you of course).

I don't want to post the entire solution because I've been told some mod authors don't like that.

sailnet
02-20-2012, 08:44 PM
well I did find this module that looks like the once that needs to be modifed


<plugin active="1" product="fsvpboupc">
<title><![CDATA[Cyb - APBOUPC - P5 (SR)]]></title>
<hookname>parse_templates</hookname>
<phpcode><![CDATA[
if ($vbulletin->options['apboupc_global_enable'] AND ($vbulletin->options['apboupc_pm_amount']>0) AND (THIS_SCRIPT=='private'))
{
if (($vbulletin->options['apboupc_pm_amount'] !='0') AND ($vbulletin->options['apboupc_pm_amount'] > $vbulletin->userinfo[posts]) AND (!is_member_of($vbulletin->userinfo, split(',', $vbulletin->options['apboupc_pm_excludedgroups']))))
{
$apboupc_pmsnote = construct_phrase($vbphrase['apboupc_pm_note'], $vbulletin->options['apboupc_pm_amount']);
$vbulletin->templatecache['pm_newpm'] = str_replace('$vbphrase[separate_multiple_names]', '$vbphrase[separate_multiple_names]<br /><br />$apboupc_pmsnote', $vbulletin->templatecache['pm_newpm']);
}
}]]></phpcode>
</plugin>

kh99
02-20-2012, 09:59 PM
OK, if you create a new options called apboupc_pm_days and a new phrase called apboupc_pm_note_days, you might do something like this:



<plugin active="1" product="fsvpboupc">
<title><![CDATA[Cyb - APBOUPC - P5 (SR)]]></title>
<hookname>parse_templates</hookname>
<phpcode><![CDATA[
if ($vbulletin->options['apboupc_global_enable'] AND (THIS_SCRIPT=='private') AND (!is_member_of($vbulletin->userinfo, split(',', $vbulletin->options['apboupc_pm_excludedgroups']))))
{
if ($vbulletin->options['apboupc_pm_days'] > 0)
{
$days_registered = floor((TIMENOW - $vbulletin->userinfo['joindate']) / 86400);
if ($days_registered >= $vbulletin->options['apboupc_pm_days'])
{
$apboupc_pmsnote = construct_phrase($vbphrase['apboupc_pm_note_days'], $vbulletin->options['apboupc_pm_daye']);
$vbulletin->templatecache['pm_newpm'] = str_replace('$vbphrase[separate_multiple_names]', '$vbphrase[separate_multiple_names]<br /><br />$apboupc_pmsnote', $vbulletin->templatecache['pm_newpm']);
}
}
if (($vbulletin->options['apboupc_pm_amount'] !='0') AND ($vbulletin->options['apboupc_pm_amount'] > $vbulletin->userinfo[posts]))
{
$apboupc_pmsnote = construct_phrase($vbphrase['apboupc_pm_note'], $vbulletin->options['apboupc_pm_amount']);
$vbulletin->templatecache['pm_newpm'] = str_replace('$vbphrase[separate_multiple_names]', '$vbphrase[separate_multiple_names]<br /><br />$apboupc_pmsnote', $vbulletin->templatecache['pm_newpm']);
}
}]]></phpcode>
</plugin>

sailnet
02-20-2012, 10:11 PM
tried this to no avail...

if ($vbulletin->options['apboupc_global_enable'] AND ($vbulletin->options['apboupc_pm_amount']>0) AND (THIS_SCRIPT=='private'))
{
$min_days = 7;
$days_registered = floor((TIMENOW - $vbulletin->userinfo['joindate']) / 86400);
if ( ($vbulletin->options['apboupc_pm_amount'] !='0') AND ($vbulletin->options['apboupc_pm_amount'] > $vbulletin->userinfo[posts]) AND (!is_member_of($vbulletin->userinfo, split(',', $vbulletin->options['apboupc_pm_excludedgroups']))) )
|| ($days_registered <= $min_days)
{
$apboupc_pmsnote = construct_phrase($vbphrase['apboupc_pm_note'], $vbulletin->options['apboupc_pm_amount']);
$vbulletin->templatecache['pm_newpm'] = str_replace('$vbphrase[separate_multiple_names]', '$vbphrase[separate_multiple_names]<br /><br />$apboupc_pmsnote', $vbulletin->templatecache['pm_newpm']);
}
}

kh99
02-20-2012, 11:38 PM
That looks like maybe it would work but I think you have a paren problem. I think that one by itself under the word "split" should go down one line so that $min_days has two after it.

Edit: except one other thing...if you were to set $vbulletin->options['apboupc_pm_amount'] option to 0 it wouldn't kick in even if they days registered was too low.

sailnet
02-21-2012, 12:03 AM
thanks - but I don't think so....unless I'm really missing something here:

here's the standard code - I did not change the original condition in the if statement with the ANDS, I just spread it out to make it more readable.

if ($vbulletin->options['apboupc_global_enable'] AND ($vbulletin->options['apboupc_pm_amount']>0) AND (THIS_SCRIPT=='private'))
{
if (($vbulletin->options['apboupc_pm_amount'] !='0') AND ($vbulletin->options['apboupc_pm_amount'] > $vbulletin->userinfo[posts]) AND (!is_member_of($vbulletin->userinfo, split(',', $vbulletin->options['apboupc_pm_excludedgroups']))))
{
$apboupc_pmsnote = construct_phrase($vbphrase['apboupc_pm_note'], $vbulletin->options['apboupc_pm_amount']);
$vbulletin->templatecache['pm_newpm'] = str_replace('$vbphrase[separate_multiple_names]', '$vbphrase[separate_multiple_names]<br /><br />$apboupc_pmsnote', $vbulletin->templatecache['pm_newpm']);
}
}

and here's my modded code:

if ($vbulletin->options['apboupc_global_enable'] AND ($vbulletin->options['apboupc_pm_amount']>0) AND (THIS_SCRIPT=='private'))
{
$min_days = 7;
$days_registered = floor((TIMENOW - $vbulletin->userinfo['joindate']) / 86400);
if ( ($vbulletin->options['apboupc_pm_amount'] !='0') AND
($vbulletin->options['apboupc_pm_amount'] > $vbulletin->userinfo[posts]) AND
(!is_member_of($vbulletin->userinfo, split(',', $vbulletin->options['apboupc_pm_excludedgroups'])))
)
or ($days_registered <= $min_days)
{
$apboupc_pmsnote = construct_phrase($vbphrase['apboupc_pm_note'], $vbulletin->options['apboupc_pm_amount']);
$vbulletin->templatecache['pm_newpm'] = str_replace('$vbphrase[separate_multiple_names]', '$vbphrase[separate_multiple_names]<br /><br />$apboupc_pmsnote', $vbulletin->templatecache['pm_newpm']);
}
}


you wrote: Edit: except one other thing...if you were to set $vbulletin->options['apboupc_pm_amount'] option to 0 it wouldn't kick in even if they days registered was too low.

you are correct - I have it set to 15 and I'm the only person who touches the admin panel so this is not a concern of mine.

ps: thank you for you help thus far - it is much appreciated.

kh99
02-21-2012, 12:08 AM
Well, it's obvious something's wrong with the parens just from looking at these lines:


or ($days_registered <= $min_days)
{



For it to be correct, the closing paren for the very first opening one after 'if' has to be the last thing before the '{', and you can see that it's not.

sailnet
02-21-2012, 12:22 AM
thanks for the fast reply. I fail to see what I'm missing for instance:


if ( (a = b) and (c = d) and (e = f) ) // condition 1
or
(g = h) // condition 2
{
do something; // get's executed if condition 1 is true or condition 2 is true
}


this is how I read the above code.

kh99
02-21-2012, 12:35 AM
thanks for the fast reply. I fail to see what I'm missing for instance:


if ( (a = b) and (c = d) and (e = f) ) // condition 1
or
(g = h) // condition 2
{
do something; // get's executed if condition 1 is true or condition 2 is true
}


this is how I read the above code.


That's not correct syntax. An if statement has to be

if (expr)
statement


so all parts of the expression have to be inside the outer set of parentheses. What you have is

if (expr) or (expr)
statement

sailnet
02-21-2012, 12:14 PM
kh99 - thank you for all your help. trying to insert the code into the mod was taking too long so I just added a few lines to code to private.php - not my first choice of how to do things but it works for now and perhaps 4.0 has a mod I can use when I upgrade soon.

brandon515
07-20-2012, 07:29 PM
This mod is awesome...thanks for you work on this!

Quick question: Can I use this mod in conjunction with VB paid subscriptions? I only allow new threads to be created if a user has X number of posts (this mod works great for that). But if a member chooses to do so, they can pay to be bumped up to a usergroup that is allowed to create new threads.

Just I guess I'm really asking which of the two overrides the other....usergroups vs. Cyb-Advanced Perms

Thx
Brandon

chefy
08-22-2012, 04:29 PM
I have identified 2 bugs on this product. Hope Valter or any other programmer could share with us the patch instructions:

[BUG 1] If you have enabled the restriction "Post Links/Images/emails" with a minimum post count of X (we'll use X=5 in this example) then a member with less than 5 posts is in fact unable to post any link. But what happens when he wants to report a post? The system will allow him to send the report, however it will not get posted on the moderators forum. Guess why? Yes, because the reports contain links in their body and since this member has lees than 5 posts the system will prevent his report from being posted. Instead of posting the report on the predefined forum it is being sent to all the moderators through email which isn't the expected behavior.

[BUG 2] If you have enabled the restriction "Post Links/Images/emails" with a minimum post count of X (we'll use X=5 in this example) then a member with less than 5 posts is in fact unable to post any image. But what happens if our smart member makes use of "https" in their image link instead of "http"? Something like this: https://vborg.vbsupport.ru/. Answer is easy: the image will get posted bypassing the restriction of the 5 minimum posts to post images.

Unfortunately 4.4 is the latest vB 3.x version of this mod. The current version is 5.2.1 but only available for vB 4.x series. I don't know if version 5.2.1 still have these bugs but maybe the programmer want to check.

Please fix these bugs and share with us the patch instructions.

chefy
08-27-2012, 03:53 PM
Valter or any other programmer could fix those bugs please?

OHVUI.ORG
05-13-2013, 05:19 PM
thanks for sharing this mod

financegav
04-04-2014, 07:13 AM
The stop links for users is exactly what I've been looking for! I've tried numerous different ones on http://www.saverscene.com.au/forum.php - but they all flash up the message so fast unless you know what it says no one has time to read it and real users tried posting and then just left.

With this mod they actually know what's happening and real users stay around, spam bots get blocked.

Perfect!!!

metrika
07-24-2014, 08:02 AM
Hi, is there any similar product for VB 4.x ? Thanks

ozzy47
07-24-2014, 09:12 AM
Hi, is there any similar product for VB 4.x ? Thanks

Sure, https://vborg.vbsupport.ru/showthread.php?t=233979

HM666
09-09-2014, 09:54 AM
How would I go about adding iTrader? I want it where a user cannot use iTrader before they have at least 10 posts.

kartik786
09-17-2014, 04:46 PM
can we do a pay with a tweet / pay with a like integration?

Allow users to download only after they tweet or like it?

digif
09-21-2014, 03:32 PM
It would be great if there is an option for inactive users, who had many posts earlier but now inactive. So, that you can put restrictions on those who have less than 1 post per week for example, and restrict them for a day.

m7sen
11-02-2014, 12:50 AM
can u please add option
Usergroup can not creat new thread or post before *** hourse of last post
in some forums

another option

Usergroup less than **** post they can not be creat new thread or post before approved by management in some forums

any upgrade for 3.8.8

marysnow786
02-08-2018, 10:31 AM
i think its available for vBulletin 4.x.x also can someone provide me link and its fully compatible with latest version ?

MarkFL
02-08-2018, 03:55 PM
i think its available for vBulletin 4.x.x also can someone provide me link and its fully compatible with latest version ?

VSa - Advanced Permissions Based on Post Count (https://vborg.vbsupport.ru/showthread.php?t=233979)

MaKayWeB
01-02-2019, 10:51 AM
thanks forewer vBulletin :)