Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 10-20-2007, 05:02 PM
wolfyman's Avatar
wolfyman wolfyman is offline
 
Join Date: Apr 2005
Posts: 719
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default same db in 2 seperate directories? 1 is pwd protected for members only!

Is it possible to install vbulletin in two directories, on one database?

I'm trying to do this:

mysite.com/forums <!-- open directory
mysite.com/members/forums <-- password protected directory

I want to use the same db for both, but the /members forum would use a seperate style that would allow access to a "members only" section.

The login would be the same, but the "members" forum would only be accessible via the password protected directory.

This is essentially only one install of vb, but it would utilize two different directories.

how do I accomplish this?
Reply With Quote
  #2  
Old 10-20-2007, 06:27 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Correct me if I'm wrong but doesn't that require two vBulletin licenses?

Why can't you set up a user group and just give them access to specific forums? You'd probably need some custom code to allow members only access to a specific style. However its far easier working this way round then trying to achieve what you are saying.
Reply With Quote
  #3  
Old 10-20-2007, 06:42 PM
wolfyman's Avatar
wolfyman wolfyman is offline
 
Join Date: Apr 2005
Posts: 719
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's the same installation of vbulletin, so I don't think it should require 22 licenses.

Regardless, if my answer DID require 2 licenses, that would defeat the purpose.

Your suggestion is a good one, but I'm using verotel to manage my /members area. verotel isn't supported by vbulletin at this moment, aside from amember. I tried that, and their system is far from desirable.

So I'm thinking 1 database, two directories, two styles. one style is accessible only when in a certain directory (on the same site).
Reply With Quote
  #4  
Old 10-20-2007, 07:11 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How would changing the style stop people viewing the members area ? - all non members would need to do is type in the url.
Reply With Quote
  #5  
Old 10-21-2007, 04:31 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Like paul said, the member forum would be accessible from each installation of the files if the forumid is known (and permissions allow access).
Reply With Quote
  #6  
Old 10-21-2007, 04:44 AM
wolfyman's Avatar
wolfyman wolfyman is offline
 
Join Date: Apr 2005
Posts: 719
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

www.mysite.com/forums is open to the public
www.mysite.com/members is htaccess password protected.


therefore, yes - you simply type the address, but you need a password.

Which is managed by verotel.

there is a way to do this, and there is someone on this forum who is intelligent enough to do it.

--------------- Added [DATE]1192945615[/DATE] at [TIME]1192945615[/TIME] ---------------

honestly, I don't care - I will pay for two licenses, if I can avoid making people register 2 times in order to keep te same username.


I have a members only area that people pay to get to. then they want to share posts with other people that also pay to be in that area. at this time, vbulletin does not support verotel paid subscriptions, so I am looking for a solution.
Reply With Quote
  #7  
Old 10-21-2007, 05:06 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Like i said, that will not stop regular members to visit that forum.

www.mysite.com/forums/forumdisplay.php?f=1
and:
www.mysite.com/members/forumdisplay.php?f=1

Would both lead to the same forum, only the second URL will need additional authentication.
Reply With Quote
  #8  
Old 10-21-2007, 09:22 AM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know how Verotel works or even what it is but I'm guessing that there must be some kind of data stored in a database somewhere. You could create a (cron)script which updates the users usergroup from a normal member to a authenticated member, or something of the sort.

I think the problem is you are trying to draw a line between two different installations but this line isn't between the actual directories its inside the files in the directory. Try working with vB's in-built features and use them to your advantage instead of trying to go to the extra hassle of major editing of files & other things.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:16 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.03901 seconds
  • Memory Usage 2,213KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete