Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-12-2004, 04:36 PM
sammyman sammyman is offline
 
Join Date: Mar 2004
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default globals.php???

I have two boards, but want to use the same users so they don't have to register twice. Some have said that this is impossible.

It can't be impossible to use users from one board on another. Look at photopost, they use users from a different board. This would be the same type of idea.

I have one idea: One the index.php of a vbulletin homepage there is the line..

require_once('./global.php');
require_once('./includes/functions_bigthree.php');
require_once('./includes/functions_forumlist.php');

Could I use the globals for a different board on part of the code (for the users), and the globals for above for the categories and forums etc. I have tride codes like:

chdir("../forum1/");
require("../forum1/global.php");
chdir("../forum2/");

But that gives me an error since I am calling globals twice. Any way to call two different global files or use parts of each global file in one forum?
Reply With Quote
  #2  
Old 06-12-2004, 05:56 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's not that simple.

You have two forums. Are both forums installed on their own database? If so, you'd have to make two connections for every page to link the databases together, and furthermore structurally redesign vBulletin to be compatible with this.

It's a load of work, and hardly worth it.

How about just have one forum, and combine both forums into it? Are subforums not enough?
Reply With Quote
  #3  
Old 06-12-2004, 06:38 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sammyman
I have two boards, but want to use the same users so they don't have to register twice. Some have said that this is impossible.

It can't be impossible to use users from one board on another. Look at photopost, they use users from a different board. This would be the same type of idea.

I have one idea: One the index.php of a vbulletin homepage there is the line..

require_once('./global.php');
require_once('./includes/functions_bigthree.php');
require_once('./includes/functions_forumlist.php');

Could I use the globals for a different board on part of the code (for the users), and the globals for above for the categories and forums etc. I have tride codes like:

chdir("../forum1/");
require("../forum1/global.php");
chdir("../forum2/");

But that gives me an error since I am calling globals twice. Any way to call two different global files or use parts of each global file in one forum?
You willl need a license for both forums, also it is possible, but not with out quite abit of work, it would be simpilest if both of your forums were stored in the same database.
Reply With Quote
  #4  
Old 06-12-2004, 10:30 PM
sammyman sammyman is offline
 
Join Date: Mar 2004
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok. I will look to other methods
Reply With Quote
  #5  
Old 06-13-2004, 03:21 AM
nicholas nicholas is offline
 
Join Date: Feb 2004
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've been looking into this as well. It is apparent that problems like how and where post counts will take effect, permissions, etc. etc. But the basic premise is something that I'm sure a lot of people want. (And each board will of course have their own license).

Obvously it goes beyond a simple user authentication system. But the basic point is simply to let users from one board be able to use another board in one's network *without* having to re-register or log-in to the other board(s). If I had two or more boards for example, it would be nice to let users from my first board have the ability to use the other board without having to register or login all over again.
Reply With Quote
  #6  
Old 06-13-2004, 03:46 AM
sammyman sammyman is offline
 
Join Date: Mar 2004
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I agree. I wonder how hard it would be if it all was in the same database. Seems like it would not be too difficult when I think about it. They could share the user database and everything else could be different.
Reply With Quote
Reply


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 09:56 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04454 seconds
  • Memory Usage 2,205KB
  • 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)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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