Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 09-12-2008, 06:37 AM
d2sector d2sector is offline
 
Join Date: Feb 2003
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Multiple Sites same Forum DB showing different forums on the forumhome?

I currently have a Site that covers a few topics. I want to put forums at sitea.com/forums and siteb.com/forums and use the same DB to share the users and common community forums on each. Just hide the sitea specific forums on siteb vise versa and use custom themes on each. I've seen it done before, how does one go about it?

Thanks.
Reply With Quote
  #2  
Old 09-25-2008, 03:51 AM
Amenadiel's Avatar
Amenadiel Amenadiel is offline
 
Join Date: Sep 2006
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1.- there is a mod that forces a style upon a specific domain (different style different domain it is).
2.- you should use CES cookie cutter to do a single login/logout
3.- you can use template conditionals on each style (hence in each domain) on the template forumbit_level1_nopost (not sure) to display only certain categories.
4.- You still have to work out a way to redirect or rewrite wrong combinations (i.e. linking to threads of forums that "belong" to another domain) you will need to do this with a plugin.
5.- Above all things, you should buy as many licences as virtual sites you'll have.
Reply With Quote
  #3  
Old 09-25-2008, 11:19 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please be aware that this would require multiple licenses.
Reply With Quote
  #4  
Old 09-28-2008, 08:43 PM
ukgamblingforum ukgamblingforum is offline
 
Join Date: Jun 2007
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Amenadiel View Post
1.- there is a mod that forces a style upon a specific domain (different style different domain it is).
2.- you should use CES cookie cutter to do a single login/logout
3.- you can use template conditionals on each style (hence in each domain) on the template forumbit_level1_nopost (not sure) to display only certain categories.
4.- You still have to work out a way to redirect or rewrite wrong combinations (i.e. linking to threads of forums that "belong" to another domain) you will need to do this with a plugin.
5.- Above all things, you should buy as many licences as virtual sites you'll have.
1. what is the style mod?
3. can you give an example please?

i'm trying to share the vbulletin databse from my domain A on domain B [apart from style and name].. i have licences for both..
Thx
Reply With Quote
  #5  
Old 09-28-2008, 11:08 PM
craig5320 craig5320 is offline
 
Join Date: Aug 2004
Location: Manchester, UK
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. DDDS https://vborg.vbsupport.ru/showthread.php?t=174381

3. I'm currently trying to get something working here

Currently I'm wrapping

forumhome_forumbit_level1_nopost

with this:

<if condition="in_array($forum['forumid'], array(130,6))">

original template code here

</if>

Where 130 and 6 are the forum categories ID's. Seems to do the job, but I need to hide/show child forums as well, and it doesn't seem to work as well trying to show only part a category.
Reply With Quote
  #6  
Old 09-28-2008, 11:12 PM
Amenadiel's Avatar
Amenadiel Amenadiel is offline
 
Join Date: Sep 2006
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ukgamblingforum View Post
1. what is the style mod?
This one

https://vborg.vbsupport.ru/showthread.php?t=174381


Quote:
Originally Posted by ukgamblingforum View Post
3. can you give an example please?
Ok let's say you have your forumhome list grouped by categories like "general"(forumid 1), "gadgets" (forumid 2), "staff issues" (forumid 3) and "marketplace" (forumid 4). Each one contains a few forums but we aren't concerned about that.

you want domain A to force style 1 and display only general and gadget categories, while you wand domain B to force style 2 and display staff issues and marketplace.

You would edit template forumhome_forumbit_level1_nopost on style 1 and at the very beggining add:

Quote:
<if condition="in_array($forum[forumid], array(1,2))">
while in the same template, but for style 2 you would add

Quote:
<if condition="in_array($forum[forumid], array(3,4))">
remember to close both with

Quote:
</if>
What it does is to display forumhome_forumbit_level1_nopost if and only if the category is compliant with the condition.


Quote:
Originally Posted by ukgamblingforum View Post
i'm trying to share the vbulletin databse from my domain A on domain B [apart from style and name].. i have licences for both..
Thx
well, good luck, it seems you just need to use the same database and find a way to redirect forums to the right domain in case you move a thread to the other domain group and someone follows the old link.
Reply With Quote
  #7  
Old 10-31-2008, 08:44 AM
shridevimoogi shridevimoogi is offline
 
Join Date: Aug 2008
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Amenadiel,

I need exactly the same presentation what you have explained
you mentioned about child forms do you have any update on it please
and also the mod you had mentioned for different style could you please tell me how to use that
I have imported it to my vb instance but do not know where to mention the domains and particular style for each

your guidance will be of great help to me

Thanks
Shridevi
Reply With Quote
  #8  
Old 11-01-2008, 06:17 AM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Post questions about the mod in the mod's thread.

https://vborg.vbsupport.ru/showthread.php?t=174381
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:45 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.06363 seconds
  • Memory Usage 2,227KB
  • 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
  • (7)bbcode_quote
  • (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