vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   globals.php??? (https://vborg.vbsupport.ru/showthread.php?t=66108)

sammyman 06-12-2004 04:36 PM

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?

Velocd 06-12-2004 05:56 PM

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?

Zachery 06-12-2004 06:38 PM

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.

sammyman 06-12-2004 10:30 PM

Ok. I will look to other methods

nicholas 06-13-2004 03:21 AM

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.

sammyman 06-13-2004 03:46 AM

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.


All times are GMT. The time now is 01:41 AM.

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.00951 seconds
  • Memory Usage 1,724KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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