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?
Posts: 8601
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.
Posts: 46
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
Posts: 46
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.
Posts: 46
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
Posts: 16504
The entire theme system was changed between B3 and B4.
Posts: 46
Yes, so I've discovered :D
Posts: 397
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.
Posts: 8601
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
Posts: 397
Thank you for this very fast response. I understand now.
Posts: 397
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?
Posts: 8601
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.
Posts: 397
Kewl. I'd thread through the code but know others could spot this with more efficiency.
tx
Posts: 8601
i checked, and it does already explain this in the docs.
Posts: 1
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
and change it to
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