vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Members Only Access Board (https://vborg.vbsupport.ru/showthread.php?t=160610)

tsptom 10-19-2007 09:16 PM

Members Only Access Board
 
Hello -

I'm looking for a way to create a board for members of my site who pay for another subscription based service we offer. I already have a public forum, but I want to set up another board that only the members who have access to the subscription area would see and have access to.

So, members who have acces to my site's members' area (ie. abc.com/members) then see a link to the "second" board to view it (ie. abc.com/members/forum) - but if a non subscribing member types in "abc.com/members/forum" I want them to see a member's area login page and not the board at all.

Can I just add a login check within the vb code to accomplish this?

Code:


<?php include("members/session.php"); ?>
<?php include("members/connection.php"); ?>
<?php include("members/logincheck.php"); ?>

I'm not sure if I make myself clear because when I bring this up I get responses that say to just create a password protected usergroup in my existing board. The problem I see is that it would be difficult to manage the accounts. I have a separate database that tracks the people who pay for the services on my site. I would have to make sure only these people have access to the forums where this service is being discussed.

Bottom line: I only want people who have access to my site's membership area to access the link to this separate board. The board that will be within a subscribers' only website. Does that make sense?

Any help will be much appreciated. I am also willing to compensate anyone who wishes to help me with this project.

Thanks!

Dismounted 10-20-2007 12:11 PM

In a plugin hooked at global_start, do whatever you have to do to see if they are subscribed. Then use this script (replacing whatever is necessary):
PHP Code:

// check for status
if (!$user_subscribed)
{
    
// redirect user, unsubscribed
    
header('Location: http://www.example.com/login_page.php'true301);



tsptom 10-20-2007 04:29 PM

That's what I'm talking about. I'm not exactly sure what you mean by 'plugin hooked at global_start', but I have an idea. I will look in that direction. Thanks for the reponse.

Remember, if interested, I am willing to compensate anyone who wishes to help me with this project.

Opserty 10-20-2007 06:24 PM

He is talking about the plugin system: http://www.vbulletin.com/docs/html/plugin_system


All times are GMT. The time now is 04:59 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.01776 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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