vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   need a plugin and couldnt find it (https://vborg.vbsupport.ru/showthread.php?t=260268)

oddball91 03-12-2011 08:34 PM

need a plugin and couldnt find it
 
I think this is the right place to post it.

I need a plugin for my forum, I couldn't find it and really don't know enough about programming to do it on my own. Here is what I would need it to do, so any help would be great, I think its pretty easy to do from what I was told.

On my forum, i want it so unpaid members have to wait 30 sec between posts and searches. If the user buys a paid membership, they would no longer have to wait the 30sec to post or do searches.

i talked to someone with a forum that does it, he couldnt give me the code but this is what he told me. He said he hooked in to the style_fetch hook, and checks if a user is a member of the paid usergroup. If they are, he override the vbulletin options to set their floodchecktime to 0.

oddball91 03-14-2011 11:02 PM

Anyone?

oddball91 03-17-2011 04:53 AM

no one?

Lynne 03-17-2011 07:38 PM

How about something like ...
PHP Code:

if (is_member_of ($vbulletin->userinfox)) $vbulletin->options['searchfloodtime'] = yy

Not tested, so test on your test site.

oddball91 03-18-2011 08:38 PM

thank you , ill try that


All times are GMT. The time now is 11:38 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.01352 seconds
  • Memory Usage 1,713KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete