multiple site linking multiple site linking
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

multiple site linking

Started by Motorhead, February 17, 2005, 06:01:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Motorhead

Sorry if this is wrong section, but wasn't sure what this would come under :D ...


OK I've got two sites that I want to both access my Coppermine Gallerys, but I want them to appear slighlty different

One is my SMF forum which I've already intergrated Coppermine with and also gone with the SMF theme, really pleased with that...

The other is another website I run, but I don't want it to see the SMF forum banner or buttons ...

I'm not sure what the code is but put simply some code that does this......

QuoteIf website calling this coppermine page is site 1 then jump to section 2 (ignoring display banner code)

Display Gallery Banner and Buttons

Section 2

Display thumbnails and images




hope this makes sense

thanks








Joachim Müller

you have to create two coppermine themes: the one that comes with your smf site should be your default theme (set in coppermine config), and the other one that overrides the default one - just do so by changing the link that points from your second site to your gallery: instead of<a href="http://yoursite.tld/your_coppermine_folder/">your gallery link</a>, it should be<a href="http://yoursite.tld/your_coppermine_folder/?theme=your_second_theme_name">your gallery link</a> - this sets the cookie of the visitors from the second site to override the default theme.
HTH

Joachim

Motorhead

wow that sounds simple even a code dope like me could handle that :D

now what happens if I join the red and black wires ;)

thanks off to make a theme now :D


Motorhead

sorry back again

I'm just trying it as a direct link in my browser but failing

this is what I'm putting in my browser using an exisiting theme

[url="http://www.orrp.com/copper/?theme="classic""]http://www.orrp.com/copper/?theme="classic"[/url]

the theme that is set is the "smf" one, so I'm trying to get the standard classic to show without changing the config

I'm guessing I'm missing something




Ignore me , I'd quoted the "theme" :) sorted crawls off in shame

thanks



Motorhead

In the words of Slim Shady "guess whose back"

By adding the theme option to a URL to link to the main index page of Coppermine no problem

eg http://www.orrp.com/copper/?theme=classic

But when I try to use theme in the URL of a Catergory I'm not having any success

ie   what I want is to be able to link to different catergorys or pages within my Album and use a theme other than the one set in config !!!


Joachim Müller

when adding more than one var to an url you separate the vars with ampersands, like this: http://yoursite.tld/folder_name/file_name.xyz?var1=foo&var2=bar&var3=whatever, so in your case you would have to create a link like this: http://www.orrp.com/copper/index.php?cat=3&theme=classic

Joachim

Motorhead

once again I bow before your wisdom :D


Now one final question, if I use a URL containing the theme tag that works great....but when I enter the gallery via my SMF forum using the User links in the SMF member profiles it still seems to use the theme I used in a direct link URL

1.   If I haven't used a theme tag in a URL link and I enter the gallery by a normal link I get the theme set in the gallery settings

2. If I've entered the Gallery using a link containing a specified theme, then leave the Gallery and then re-enter using a URL which doesn't specify a theme it still uses the theme I set in the previous URL

It's hard to explain but hopefully it makes sense

thanks again




Joachim Müller

Quote from: Motorhead on February 18, 2005, 02:27:42 PM
1. If I haven't used a theme tag in a URL link and I enter the gallery by a normal link I get the theme set in the gallery settings
expected behaviour: isn't this what is suppossed to happen?

Quote from: Motorhead on February 18, 2005, 02:27:42 PM
2. If I've entered the Gallery using a link containing a specified theme, then leave the Gallery and then re-enter using a URL which doesn't specify a theme it still uses the theme I set in the previous URL
The theme a user has selected is stored in a cookie. I thought it was your intention that users coming from the second page are never meant to see the theme the smf users can see - that's what the mod does. You (as admin) have to trick your way around all this, I recommend you use a different browser to see what this all looks like for "regular" users. To reset the theme a user has chosen for himself (that is stored in the cookie), just specify a theme name that doesn't exist, e.g. http://www.orrp.com/copper/?theme=reset or http://www.orrp.com/copper/?theme=foobar

Joachim

Motorhead

OK guessed it might be cookie related, and yes Number 1 is usual behaviour I understand that, I was just finding it hard to explain what happens :D

I'll download another browser and see how it looks to normal users ....

Once again thanks for the help

Motorhead

I think I'm going to have to find another way, this just isn't working

I want it to display differentently no matter which way I access the gallery...with using theme in the url its still remembering the theme when I try to view it through the smf forum and thats on a new browser and not even logging in so no admin powers...

oh well it was worth a try :(