default forum theme in wrong directory how can i fix this

Started by airtetdotin, November 26, 2012, 09:04:05 AM

Previous topic - Next topic

airtetdotin

http://forum.airtet.in/Themes/default
http://forum.airtet.in/Themes/default/images
/home/india134/public_html/airtet2/Themes/default

But My forum is http://indiagoesonline.com
i am unable to change using repair settings.php
in admin panel
please help anyone


Forum URL http://www.indiagoesonline.com
SMF Directory /home/india134/public_html
Sources Directory /home/india134/public_html/Sources
Cache Directory /home/india134/public_html/cache
databases are same but  different prefixes


emanuele

Quote from: airtetdotin on November 26, 2012, 09:04:05 AM
i am unable to change using repair settings.php
Why are you unable?
What is the problem?
repair_settings should be able to fix the url/path issues of the default theme without any problem.
And anyway you should be able to go to the admin panel and change it from there too because the other forum is still up and so the theme is somehow loaded.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

airtetdotin

When i am editing nothing changed if you wanna check i will pm you link

emanuele



Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

airtetdotin

but theme and other settings in forum1 forum2 changing and two forums using same database with different prefixes sam userid password

emanuele

Sorry, but I'm a bit confused by your answer...

The two forums you linked are very similar (same board, same posts, only different name).
Could you please explain what you want to obtain and how these two forums are related? (so that I can give you proper advices)


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

airtetdotin

I need two forums with same members,topics,messages,boards,categories and all other different

what i  did
istalled two forums in two diffeent root folders used same database with different prefix
also changed all files with db_prefix replaced by forum1 smf table prefix except themes and packages

emanuele

So you need two forums that shares everything except settings?

Even though I would have used a different approach, unless you didn't change the prefixes somewhere, I don't see any reason why it doesn't work...of course without knowing exactly what you did... ;)

If you plan to have different packages and different themes, you should not share the settings table too.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

airtetdotin

#8
i am using different settings to Two individual forums  with different prefixes still forum1 using forum2 settings

when i installed new theme in 2nd forum not selecting and when i choose all over default forum says
The overall forum default theme must be a selectable theme.

If i install this forum1 its changing here forum2 using forum1 settings

emanuele

It really depends *exactly* on what you are doing and what not. Guessing at that point is meaningful.
If you are sharing the table "_settings" too than I would expect a similar behaviour.
Also the cookies are important, etc..


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

airtetdotin

cookies changed to smfcookie11 and smfcookie12 also not sharing setting tables but i replaced db prefix with smf1_ table prefix in sources directory of forum2 when i am changed that this problem occurred but i don't know where to change table prefix once again

kat

i find it very difficult to follow posts with no grammar punctuation and that kinda stuff so im going to have to leave this one to you emanuel im afraid



emanuele

Okay, let's try to recap.
You have two forums: forum1 and forum2.
These two forum share most of the database tables, except: settings, packages and themes that are different for the two forums.
Right?

Have you tried changing the directories directly in Settings.php by hands?
That should be reliable.



Anyway, in order to have this setup, I would not change all the prefixes in sources, but I'd rather change the database files adding something like
$something = str_replace('{db_prefix}settings', 'forum2_settings', $something);
and alike for all the tables I want to not share (or share depending on how you set up Settings.php).


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

airtetdotin

#15
I have replaced with {db prefix}forum2 settings but not worked but the problem is settings

when i change description forum1 forum2 changing  when trying to change from forum 2 settings not changed


I had founded in settings.php

# Note: You shouldn't touch these settings.
$db_last_error = 0;

# Make sure the paths are correct... at least try to fix them.
if (!file_exists($boarddir) && file_exists(dirname(__FILE__) . '/agreement.txt'))
$boarddir = dirname(__FILE__);
if (!file_exists($sourcedir) && file_exists($boarddir . '/Sources'))
$sourcedir = $boarddir . '/Sources';
if (!file_exists($cachedir) && file_exists($boarddir . '/cache'))
$cachedir = $boarddir . '/cache';

$db_character_set = 'utf8';
?>

Forum URL:    
Recommended value: "http://www.indiagoesonline.com/repair_settings.php".
Forum Directory:    
Recommended value: "/home/india134/public_html".
Sources Directory:    
Recommended value: "/home/india134/public_html/Sources".
Attachment Directory:    
Recommended value: "/home/india134/public_html/attachments".
Avatar URL:    
Recommended value: "http://www.indiagoesonline.com/repair_settings.php/avatars".
Avatar Directory:    
Recommended value: "/home/india134/public_html/avatars".
Smileys URL:    
Recommended value: "http://www.indiagoesonline.com/repair_settings.php/Smileys".
Smileys Directory:    
Recommended value: "/home/india134/public_html/Smileys".
Default Theme URL:    
Recommended value: "http://www.indiagoesonline.com/repair_settings.php/Themes/default".
Default Theme Images URL:    
Recommended value: "http://www.indiagoesonline.com/repair_settings.php/Themes/default/images".
Default Theme Directory
May I need to change board settings to change all this settings

airtetdotin

I had followed these steps mentioned on

http://www.simplemachines.org/community/index.php?topic=16190.0
Here it goes...

1. Installing the forums
Install two (or more) different SMF forum in the same database, but using different prefix. For this example, the first forum is using "smf1_" (without quotes) and the second is using "smf2_". Just install the two forums normally, don't start telling users to sign up yet.


2. Modifying the source code
Open each of the .php files located in the Sources directory in your hard drive using a text editor program. Find all occurances of "{$db_prefix}members" and replace with "smf1_members" (without quotes). Do this for every single .php file in the Sources directory. Also find and replace the following:
"{$db_prefix}im_recipients" => "smf1_im_recipients"
"{$db_prefix}instant_messages" => "smf1_instant_messages"
"{$db_prefix}membergroups" => "smf1_membergroups"
You can also share more tables if you want and know what you're doing.

If you have a text editor program that can do batch replace or replace in all opened documents, use that instead, it will ease the task a lot (you can open everything at do a replace for all of the opened files). One text editor program that I know can do this is JCreator.


3. Upload the modified source files
Upload the content of the Sources directory that you just modified above to the Sources directory in your forum(s), overwrite any existing files. You don't need to do this for your first forum (smf1_), but doing this won't cause any problems.

Your forums should now share the same member, membergroup and instant message database.


4. Optional settings
If both (or all) of the forums are hosted on the same site (domain), you can use the same Cookie name for SMF, so users won't need to login twice when moving from one forum to another. You can find this setting inside the Admin Center -> Edit Server Settings -> Cookie Name


Possible Issues

    User uploaded avatar
    Temporary solution: disable this feature.
    Better solution: also share the "attachments" table and synchronize the attachment settings (Admin Center -> Edit Features and Options -> Attachments section). This probably won't work if the forums are in different domains or subdomains.
    Forum with multiple themes (ID_THEME conflict in members table)
    Temporary solution: use the same themes, or set the default forum theme for all of the forum using the same ID, and don't let users select their own theme.
    Show unread may not work when moving from one forum to another
    You should edit in the templates and replace the link to "action=unread" to "action=unread;all;start=0". What this does is show all unread posts by that user.


Other recommended tables to share:
- log_karma
- log_online <- session might get screwed if the forums are in different domains


Any comments/suggestions/errors?
I keep on thinking I'm forgetting something here... ::)

frostalf

If I am reading this correctly, you are trying to apply the same theme for both forums? If so, then you will need to share the themes database and use only one themes directory would also have to edit some source files as well for one of the forums. Not sure which forum is the master and which is slave. But if Forum2 is to use what Forum1 has, then you would set forum2 to use forum1's databases that you want to share that even includes themes if you want themes to be controlled from one area. But essentially you would use forum1 to set any options that forum2 would pick up. Not quite sure from reading through as to exactly what your problem is and what it is you want it to do. Also, you should read through the entire Topic board that you were following as well to ensure you have not missed anything, such as also sharing the settings table to apply settings to both forums.  If it is the themes your having issues with, try looking here.
http://www.simplemachines.org/community/index.php?topic=21252.msg175830#msg175830

emanuele

Quote from: airtetdotin on December 07, 2012, 05:54:39 AM
Any comments/suggestions/errors?
I keep on thinking I'm forgetting something here... ::)
That's possible, unfortunately no, I don't have any suggestion because it's really difficult to imagine what the issue is without having worked on the changes and at the moment I don't have much time to dig the issue... :(
I'll try to have a look be the end of the year (feel free to bump this topic once in a while so that I won't forget! ;)).


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Advertisement: