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)

tikichick 04-09-2009 02:19 AM

Exactly what I needed, thanks!

mohammadxxx 04-10-2009 09:02 AM

hi

if you want user can't see links but can view image , need change a plugin .

Go to : Product and plugin => manege plugin => find plugin postbit_display_complete , delete all code and copy This code :

Code:

if ($this->registry->options['apboupc_global_enable'] AND $this->registry->options['apboupc_viewlinks'])
                {
                        if (((ereg("(showthread)", $GLOBALS[vbulletin]->scriptpath)) OR (ereg("(showpost)", $GLOBALS[vbulletin]->scriptpath))))
                        {
                                if ($this->registry->userinfo[userid])
                                {
                                        $cyb_apboupc_viewlinks_userpostsnr = $this->registry->userinfo['posts'];
                                }
                                else
                                {
                                        $cyb_apboupc_viewlinks_userpostsnr = '0';
                                }

                                if (($forum['linkview_nb'] !='0') AND ($forum['linkview_nb'] > $this->registry->userinfo[posts]) AND (!is_member_of($this->registry->userinfo, split(',', $this->registry->options['apboupc_viewlinks_excl_groups']))))
                                {
                                        $this->post['message'] = preg_replace('!(\\[url(\\[i.mg)?|\\[email|\\[i.mg)(.*)((\\[\/i.mg\\])?\\[\/url\\]|\\[\/email\\]|\\[\/i.mg\\])|<a[^>]*(http|www|mailto)(.*)</a>|(http:\/\/)?www(.*)[\s]\b|<i.mg[^>]*(src|border|title)(.*)(</i.mg>|\/>)|[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}\b!siU', construct_phrase('<br /><span class="smallfont"><i>'.$vbphrase['error_postcount_too_low_viewlinks'].'</i></span><br />', $forum[linkview_nb], $cyb_apboupc_viewlinks_userpostsnr), $this->post['message'].' ');
                                }
                                if (($this->registry->options['apboupc_viewlinks_sigs'] > $this->registry->userinfo[posts]) AND (!is_member_of($this->registry->userinfo, split(',', $this->registry->options['apboupc_viewlinks_excl_groups']))))
                                {
                                        $this->post['signature'] = preg_replace('!(\\[url(\\[img)?|\\[email|\\[img)(.*)((\\[\/img\\])?\\[\/url\\]|\\[\/email\\]|\\[\/img\\])|<a[^>]*(http|www|mailto)(.*)</a>|(http:\/\/)?www(.*)[\s]\b|<img[^>]*(src|border|title)(.*)(</img>|\/>)|[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}\b!siU', construct_phrase('<br /><span class="smallfont"><i>'.$vbphrase['error_postcount_too_low_viewlinks_sigs'].'</i></span><br />', $this->registry->options['apboupc_viewlinks_sigs'], $cyb_apboupc_viewlinks_userpostsnr), $this->post['signature']);
                                }
                        }
                }


now user can't see links but can see image .
that work fine in my 3.8.2 vb

ch1nkayy 04-16-2009 04:37 PM

-----------------

tafreeh 06-04-2009 05:41 PM

dude, i love dis hack and i really need it....
but today i moved to new server and start getting problems...

there is only forum (which i m using for cyb auto reply)... whenever a new register click on that section they get a white page with the message that your post is less than 10, and u can not make new thread with link or images...

i tried disabling auto reply but it didnt work, but when i try disable cyb-advance permission hack, error was vanished...

i can not keep it disable.... please tell me how to fix that problem...

CYB ROCKS

RTMdotORG 06-09-2009 03:20 PM

can we get minimum posts to vote in poll?

Farrhad A 06-10-2009 06:25 PM

Hey it just says that you dont have permission to do this action to the new members.
How can the new users know that you need 15 posts to create a new thread?

David Bott 06-22-2009 05:21 PM

Thanks for the nice product. Now in use on avsforum.com

If this product is still under development, might I kindly suggest also to be key on registration date?

I ask, for one of the issues we seem to have of late is PM spammers. The will register and then start to send spam via PM usually the same day.

Right now I have it set where a person needs to make 3 posts in order to send a PM, but this also hurts some members who may have been here from some time and may only have a few posts. Example...The classified ad system works on PM and as such the person needs to have made 3 posts in order to send a PM to ask questions or what have you.

So being able to have a check based on date of registration may be nice to go along with this. If Date of Registration is greater than or equal to X days ago. Than allow. (Or something like that.)

Thank you kindly.

Sadie Frost 07-01-2009 06:07 AM

Would be great if you could set a max number of posts rather than a minimum. :)

djbaxter 07-01-2009 01:06 PM

Quote:

Originally Posted by Sadie Frost (Post 1840579)
Would be great if you could set a max number of posts rather than a minimum. :)

:confused:

Why would you want / how would you use an add-on like that?

Valter 07-01-2009 01:19 PM

Quote:

Originally Posted by djbaxter (Post 1840724)
:confused:

Why would you want / how would you use an add-on like that?


People who's post count is 1 or higher gets error message:

Quote:

To be able to view this section your post count must be 0.
So instead of posting and keeping forums alive they will start deleting old posts.

And when they finally get access to these sections vBulletin notice will appear:

Quote:

There are no posts in this forum.
https://vborg.vbsupport.ru/external/2009/07/87.jpg

No hard feelings, just joking...


All times are GMT. The time now is 05:05 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.01370 seconds
  • Memory Usage 1,750KB
  • 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
  • (1)bbcode_code_printable
  • (4)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