View Single Post
  #8  
Old 02-13-2005, 12:15 AM
Durtay Durtay is offline
 
Join Date: Feb 2004
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FASherman
I'll give you a hint on how to make this work.

1. 2 VB sites sharing 1 DB
2. Create all your forums. Doesn't matter on which site, they'll both see it.
3. Create 2 public groups, one for each site.
4. For Site A forums, user must be a member of Group A to view.
5. For Site B forums, user must be a member of Group B to view.
6. Now hack the code so that if user is logged into site A, user is a member of Group A but not Group B. If logged into Site B, user is a member of Group B but not A.

Its really not that major a hack.
That would work if you have the identical purpose for both of your "sites". But say you want to have one forum with the RPG hack and the other without, you'd have to hack the forum so that when you log into the non-RPG hacked part of the forum, you don't see any of the RPG template effects. Which just becomes even more complicated. And this applies for all template modifications for various hacks if you want them to appear on one "site" but not your other. (Edit: I did just realise that this could be avoided with seperate styles, but two of the three sites I run will use the same hack, but for different reasons. And some of these hacks the actual coding for those hacks would have to have a complete overhaul to have two seperate instances, so this would still not work, atleast for me.)

My view is that all you'd have to do is alter the register.php file that when a user registers on any of the forums, it inserts all the info into every database you define via admincp or the register.php file. That way it registers a user once, but places them in all the seperate sites' databases that you'd like.

And to make this hack more complex (maybe for a 2.0 release), you make it that for a site-trading ring where you require each forum in the ring to make a 'receiving-end' file that when a user registers on one site, it sends their registration information to those other sites' receiving-end file and registers them on that site. This would make it that other site admins wouldn't have to give out their database information for security reasons and it would help expand their communities. And all this could be optional for the user when they sign-up, and once they're signed up via usercp, where they can opt to send their registration information to those other sites.

I wish I could write hacks and I'd make this work as I think I can't explain it very well. But that would be an awesome hack. :classic:
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01042 seconds
  • Memory Usage 1,768KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete