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 07-05-2005, 10:37 AM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Shared database, only users, possible?

Howdy!

I have a question. I'll try to explain it so clear as possible.

I'm going to set-up 5 new vBulletin forums. So far no problem. But here it is.
My client wants to have a single-registration for all forums (if possible with selection).
So for example. I have forums A-B-C-D-E.
A user is browsing the web and sees forum A. He clicks "register" fills in the forum and then: he can tick checkboxes on wich forum he wants to be registered also. So he sees on forum A:
"On what forums do you want to register
A
B
C
D
E
"

Something like this.
The user is ticking the boxes A C and D and he is registered on that forums.
OTHER OPTION (maybe easyer) IS:
just register at all forums at the same time (no checkboxes at all). So, somebody sees forum C, starts to register and when he access forum E he just can log in and post..

BUT:, and this is the hard part I'm affraid..
The other foruminformation has to be seperated!
So when I give "Thomas" A nickban on forum A, he just have to have access on forum B-C-D-E. And when I make "Thomas" moderator on forum D, he still have to be a normal user on forum A-B-C-E.

Is this possble to do??? I heared it was a lot easyer in 3.5 then in 3.0.7 but how?
I know don't much about MYSQL so if possible, explain it easy to me.

Reply With Quote
  #2  
Old 07-05-2005, 04:24 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the checkbox option would be easier to do, just except regarding already existing nicknames.

sharing the userDB is possible theoretically, but as you mentioned already, the moderator or usergroup problem in general is a tough thing to to....


so possible yes, but easy no
Reply With Quote
  #3  
Old 07-05-2005, 05:33 PM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xenon
the checkbox option would be easier to do, just except regarding already existing nicknames.

sharing the userDB is possible theoretically, but as you mentioned already, the moderator or usergroup problem in general is a tough thing to to....


so possible yes, but easy no
Checkbox system easier?

Why?

In my idea; it seems easier for me to register once and put the registerinformation in all forums.. But like I said I don't know much about MYSQL so when you say this is ""simple""; ok. .

I don't know exactly what data is shared. I already tolled my client that I was affraid that it wasn't possible because more data (like usergroup membership) is shared.

So; do you have any tips for me how I can do this? Or is ut just "too hard" to do?

Sure; everything is possible but it shouldn't take a month of work : -)
Reply With Quote
  #4  
Old 07-05-2005, 07:26 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is never too hard, but it will need a lot of work to do it right (and if you can't do that yourself, a lot of money probably).

Reading users from 1 database is not too difficult. But keeping the postcounts, permissions etc seperated is.

Consider this a major project, to be done by an expert.
Reply With Quote
  #5  
Old 07-05-2005, 08:36 PM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, thanks. This is enough information for now.

I will ask if it's worth the money for him.

Thank you Marco and Xenon!

Edit:
Hi, I'm back ( )

My client is still interested. How much would such a thing cost?
I know different persons would calculate other prices but can you give me a "average price", what would you want to have for a job like this?
Reply With Quote
  #6  
Old 07-05-2005, 08:46 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, if you have one seperate DB to store some infos in additional to the normal forum's db, i think there would be a way which is not too hard to achieve. (ok, just a small idea in my mind )

i'd say a prize around $50 - $100 depending on what exactly would be done, but don't quote me on that
Reply With Quote
  #7  
Old 07-05-2005, 09:40 PM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xenon
Hmm, if you have one seperate DB to store some infos in additional to the normal forum's db, i think there would be a way which is not too hard to achieve. (ok, just a small idea in my mind )

i'd say a prize around $50 - $100 depending on what exactly would be done, but don't quote me on that
I don't know yet or I will have just one database..

The 5 different forums are on 5 different accounts..
So maybe one account with a shared database only for the userdata?

I don't know what's more easier to make.

There are (in this example) 5 different webserver account configured on the webserver. These accounts contain the vBfiles (and database? don't know yet).
So it shouldn't be one account on the webserver, containing 5 folders with 5 forums .
Reply With Quote
  #8  
Old 07-05-2005, 09:45 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Apparently 3.5 was meant to make a shared user db a possiblity. I haven't poked with the source much yet but on first glance it still seems a pain in the ass to do
Reply With Quote
  #9  
Old 07-05-2005, 09:50 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In a nutshell it would just be much easier if vb had a table for base user data and then a seperate table for items like postcounts, activity and such. I wouldnt be so much difficult to do - just a pain in the butt to impliment as it means re-routing all existing queries accordingly.

On a side note, you could in theory just push user row changes to other forums. I havent looked close enough to see if there is a hook around the creation/saving of a user profile. But If there is, you could simply place a script in there that would push the releavant data to another database - in essence replicating it (seems the sanest way of doing it).

Hell, in fact... it seems very logical and not overly difficult to do.
Reply With Quote
  #10  
Old 07-07-2005, 07:09 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@The Geek: that was mainly the idea i was thinking about

there isn'T much to replicate -> passwordchanges, email, homepage, signature everything else like options or so, can stay individual i think.
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 07:43 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.04473 seconds
  • Memory Usage 2,260KB
  • 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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete