vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Trial Membership? (https://vborg.vbsupport.ru/showthread.php?t=40107)

TaP 06-21-2002 03:32 AM

Trial Membership?
 
Can someone please make me some small hack where when someone signs up, they are automatically set into a usergroup, and given 10 posts....after they use their 10 posts, they have to be verified by an admin to see if they can stay with the board...i dont think it would be too dificult...i mean, i can create the usergroup, I just don't know how to disable posting after 10 posts for the certain usergroup....

Please help me :)

Velocd 06-21-2002 04:40 AM

This belongs in the Request area ;)
So if a moderator could move it, that would be cool.

Anyway, this hack has seems totally pointless. In what way would you use this, and why? If you ask me, unless your board is crazy popular and just so jammed packed full of members that guests are literally dying to get in forces you to put trial memberships, I just see no point in it ;)

Logician 06-21-2002 08:58 AM

In new thread.php, find:

PHP Code:

$permissions=getpermissions($forumid);
if (!
$permissions[canview] or !$permissions[canpostnew]) {
  
show_nopermission();


Before that add:

PHP Code:

if ($bbuserinfo['usergroupid']==AND $bbuserinfo['posts']>=Y)
{
show_nopermission();exit;


(Replace X with usergroup of these users and Y with the max post count allowed)

If you dont want them to reply existing threads too, add the same code to newreply.php before:

PHP Code:

updateuserforum($threadinfo['forumid']); 

Not tested, but it should work..

Logician

Velocd 06-21-2002 01:08 PM

Just don't ask him to release it ;)

ps: nice signature Logican

Logician 06-21-2002 01:18 PM

hehe thx.

Chris M 06-21-2002 07:25 PM

I didnt know we were allowed Images...

Nice sig yourself Velo...

Satan

TaP 06-24-2002 12:12 AM

hehe thanks man...sorry i posted this in the wrong forum!


All times are GMT. The time now is 11:42 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.01422 seconds
  • Memory Usage 1,723KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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