79
Scenario
I have to build a community website, and I already have one running. So lets say I have a running website A and the new website will be B.
I can launch B in the following ways:
1) Download and install a fresh copy with a new database. In this case ill have 2 databases.
2) Install a fresh copy with a new database, but update the xoops_users table of site A. This way I ll have all the users of site A and B on site A's database. However site B database will have only users registered on site B.
3) Dont install any thing, but do sutmhing like if the referred website is site A, then show launch\display modules for site A, if the ref. site is B launch\display for that.
Now I have the follwing questions
For 2nd option, i ll have to hack register.php. I was lookin for the line where it enteres data in xoops_users, but I wasnt able to find it. If i know in what file is it, I can hack the code to meet my needs.
I like 3rd option, I can include a website_assign.php in my theme.html. In website_assign.php i'll have the followings:
if ref site A, tpl->assign 'title' Site A
assign --> 'menu2' news
assign --> 'menu1' blog
else tpl->assign 'title' Site B
assign ---> menu whateva
etc etc..
I am good with assigning menus, as I have disabled them (uers menu). I am using customized menus using <{menu1}> in my theme.html file using smarty tags.
Final Question
- What would you recommend.
- Are number 2 and 3 doable?