Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
one database 2 vanilla installations
andsnake
New
basically i was wondering if i can have two vanilla forums use the same database.
What i want to do is have the first vanilla (lets say in myhost/fb/) folder and the second in the root folder of my host. The first will have an embed friendly theme while the other will be a style theme best for desktops. Theoretically it should be possible, but haven't tried it out, so i'm asking here in case anyone did it in the past ( also would appreciate if some hints-tips are given alongside your answer)
0
Comments
If what you want to do is change theme then you need a theme changer. You can see this is what happens with the mobile support.
I would be careful with duplicated content there isn't an SEO advantage. You can link to the same database, but there has to be a good reason for doing this.
People after ask how to do something after deciding on the solution rather then asking what solution would fit their needs.
grep is your friend.
basically i want to make the one site especially available though facebook(using static html tab) while also keeping it available from a desktop browser. The quick way that came to my mind was having two versions of the same content with different layouts each.( instead of messing with the css to make it mobile+embed friendly)
Themes allow you to change the style and the structure of pages. Most people are familiar with restyling (CSS) but not restructuring (tpls, views, and html markup overrides).
I can't really fathom why you would want to do this, but here are some resources and plugins to get you started.
Views: http://vanillawiki.homebrewforums.net/index.php/Views
Custom themes: http://vanillawiki.homebrewforums.net/index.php/Custom_Themes_1
Themehooks: http://vanillawiki.homebrewforums.net/index.php/Theme_Hooks
Admin Theme Switcher: http://vanillaforums.org/addon/admintheme-plugin
Mobile Theme Switcher: http://vanillaforums.org/addon/mobilethemeswitcher-plugin
The plugins are more a starting point and how to change the theme. You would need to add logic to figure if a user is visiting via facebook or your main site.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
This can be done through detection, it is simply not necessary to duplicate all of the code.
grep is your friend.