[SOLVED] Main Logo change in multisite environments

grahamb

Joined: 2005-03-22
Posts: 46
Posted: Thu, 2005-08-18 09:45

As far as I can tell, the only place that the main logo on the top of the page is referenced is templates\global.tpl

Which is a site-wide file rather than being specific to a particular theme or layout.

However, I'm running multisite for two (at the moment) domains and need to have a different logo for each one (each one currently runs a different theme - matrix and a variation thereof).

Any suggestions? :)

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-08-18 14:06

There is no global.tpl anymore.. each theme now has total control over the page (theme.tpl), so when you upgrade you'll be able to put a different logo in each.

 
grahamb

Joined: 2005-03-22
Posts: 46
Posted: Thu, 2005-08-18 15:11

Ah righto.

Damn :D Looks like I picked exactly the wrong moment to freeze upgrades then. Nuts. Took a while to get multi working ok.

Okie doke, fingers crossed....:D

 
grahamb

Joined: 2005-03-22
Posts: 46
Posted: Thu, 2005-08-18 20:06

Great...cvs -z3 update -Pd - loads of "in the way" messages from CVS, once complete neither domain kicks off the upgrader and main.php is blank.

Bugger

I stopped upgrading at Bingo, so I guess skipping Flippin Sweet has caused some problems with this CVS update. Guess I better blow away the code and go for a nightly build :(

Hmm..interestingly, my individual photos still work via URL rewriting. Just seems to be the site presentation that's kiboshed.

 
grahamb

Joined: 2005-03-22
Posts: 46
Posted: Thu, 2005-08-18 20:51

I've also just realised, my custom theme on the second domain is not going to work until I reduplicate matrix. Arse.

It reverted back to default (matrix) so at least the sites both function :)

All closable now, cheers :D

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2005-08-19 04:33

The entire theme system was changed between B3 and B4.

 
grahamb

Joined: 2005-03-22
Posts: 46
Posted: Fri, 2005-08-19 10:53

Yes, so I've discovered :D

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Wed, 2005-10-26 20:03

Hello,

Am not quite getting this now. I also have installed a couple of multisites and wish to change the logos, header, footer, etc. Where can this be done in the multisite directory? Pardon me for being dense. Have tried to find the answer but haven't been able to yet.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-10-27 00:19

Multisites all run out of the same codebase; you can't put local tpls in your multisite directory or anything like that. As suggested above you can use different themes in each site and customize each to that site.
http://codex.gallery2.org/index.php/Gallery2:Themes#Cloning_a_theme

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Thu, 2005-10-27 01:59

Thank you for this very fast response. I understand now.

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Fri, 2005-10-28 00:53

Hello,

I followed the instructions in http://codex.gallery2.org/index.php/Gallery2:Themes#Cloning_a_theme above and the end result is I am not seeing the cloned theme show up in the new site's Theme menus.

For instance, let's say the top level directory is drhiii/ and I created a sub dir for the multi site called drhiii/album2

This all works great. Now, I cp -R drhiii/themes album2 and end up with drhiii/album2/themes

I edit the lines in theme.inc according to the instruction. Am certain the changes are accurate. The colned theme does now show up in the multi site called album2.

Help?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-10-28 03:41

hm, perhaps we're missing a step in those instructions.. i'll read them over later.
go to site admin / themes and install/activate your clone.

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Fri, 2005-10-28 04:18

Kewl. I'd thread through the code but know others could spot this with more efficiency.

tx

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-10-28 04:33

i checked, and it does already explain this in the docs.

 
Miselaineous

Joined: 2006-08-19
Posts: 1
Posted: Sat, 2006-08-19 19:31

I have a custom main logo solution that might be helpful to some. I have so many clients that I didn't want to be cloning a theme, cloning another theme, cloning another... and having those clients have access to each other's themes seemed... complicated.

Here's what I did. This is assuming you have each user's gallery installed in "usersdomainname.com/gallery". If not, you'll need to tweak it.

1) I started by cloning a theme. (grin)
I used Carbon, so lets call the theme customcarbon. (Cloning instructions are ref'd elsewhere here)

2) once I have my cloned theme, I open --> /customcarbon/templates/theme.tpl

3) within the code, I look for the line that says

Quote:
<img src="{g->url href="themes/customcarbon/images/logo.gif"}" alt=""/>

and change it to

Quote:
<img border="0" src="/gallery/customtheme/logo.gif" alt=""/>

4) create a new folder/directory called "customtheme" and drop it into your user's site structure like so: usersdomainname.com/gallery/customtheme/

5) create a custom logo.gif (or direct your client to do so) and drop it in that new directory.

6) From within the admin of the client's gallery installation, choose the new custom theme.

For each new client, you need repeat only steps 4,5,6.

NOTE: for the adventurous sorts, you can
1) add code to make the logo image link to the main page of your gallery directory
2) repeat the above process with the css file (though I'd copy the original CSS file rather than starting from scratch!) so your users can have additional control over their look-and-feel.

Hope this helps!
-Elaine