[mod help] Running ...
 
Notifications
Clear all

[mod help] Running two eFictions with same database tables?

5 Posts
3 Users
0 Reactions
1,925 Views
(@guest1448)
Posts: 0
 

Hi,

just a hypothetical question. Is it possible to run two eFiction sites sharing the same database tables but with different settings tables? That might sound  a little silly, but I'm thinking about this because a member asked me if it's possible to run a bilingual site.

So all I should have to do is the following:

1. upload an exact copy of my current eFiction in another folder and connect it to my existing database.
2. Then I copy the existing settings table to a new one and name it germanfanfiction_settings for example.
3. Then I have to modify the $settingsprefix variable in config.php, login to my new site and change some of the settings (URL, language, stories path ...).

Now I should have two different sites running on the same database with same stories, reviews, panels, modules, skins etc but with two different settings. This wouldn't be a really bilingual site, but because of the two settings tables it should display at least all system messages bilingual, depending on which site the user has logged in. Do I think right or is this modification not possible?


 
Posted : 09/06/2007 12:51 pm
(@tammy)
Posts: 2577
Member Moderator
 

You might get it to work.  I'd probably see if I could set a custom user field for the language and then modify the login and session handlers to switch the site's language based on that.


 
Posted : 09/06/2007 2:27 pm
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

The problem is that the stories themselves will be in one language or the other. It might be a better idea to just have two seperate archives.


Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 09/06/2007 8:37 pm
(@guest1448)
Posts: 0
 

not certainly. Since eFiction comes with the ability to specify classifications, it's possible to add a classification for language and then you have a multi language archive like ff.net. We have a site for german and english stories and some of our members seem to have problems with the english interface sometimes. A second german archive was one of my first ideas, but I found no comfortable way to transfer the existing stories from the old archive to the new one. And to ask nearly 100 authors to re-upload their stories would perhaps cause malicious Emails :).


 
Posted : 10/06/2007 5:20 am
(@tammy)
Posts: 2577
Member Moderator
 

I just posted a mod for what I suggested above.


 
Posted : 10/06/2007 1:26 pm
Share: