coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Ble Velvet on November 16, 2007, 09:33:31 PM

Title: paypal mode with chaoticsoul theme
Post by: Ble Velvet on November 16, 2007, 09:33:31 PM
Hi,
I really hope this is the right place to post.... pardon me, if it's not.

I sucessfully integrated the PaypalMod by madeinhawaii (took it from here: http://forum.coppermine-gallery.net/index.php?topic=22357.0
and it works great with all themes, except with chaoticsoul, which is the one I would like to use.

Here some examples with themes that work (sorry for the mess.... but it's still a test/mess around gallery):
http://www.miniera.ch/arteagricola/arte/displayimage.php?album=lastup&cat=0&pos=0&theme=classic
http://www.miniera.ch/arteagricola/arte/displayimage.php?album=lastup&cat=0&pos=0&theme=kubrick

Here the chaoticsoul theme, in which the "order this print" and "return to browse mode", are missing:
http://www.miniera.ch/arteagricola/arte/displayimage.php?album=lastup&cat=0&pos=0&theme=chaoticsoul

Is there a way I can make it work also with the chaoticsoul theme?


The same problem happens also with youtube... the movies are shown in all themes, but not in chaoticsoul.... but, as I understood, for this problem I have to open a new thread (?)

Thanks a lot for your time and help....
Blue Velvet
Title: Re: paypal mode with chaoticsoul theme
Post by: Nibbler on November 16, 2007, 10:55:51 PM
It says in the instructions what to do:

QuoteNOTE: For some custom themes you may have to edit the theme.php file instead.

Apply the stated modifications to themes/chaoticsoul/theme.php
Title: Re: paypal mode with chaoticsoul theme
Post by: Ble Velvet on November 16, 2007, 11:46:39 PM
QuoteNOTE: For some custom themes you may have to edit the theme.php file instead.


I saw this... and I tried to do it.
Unfortunatelly, in the chaoticsoul theme I can't find this line: "if (!defined('IN_COPPERMINE')) { die('Not in Coppermine...');}         //{THEMES}//" and I don't find the other lines either.

So, I really don't know where to post the commands.

Title: Re: paypal mode with chaoticsoul theme
Post by: Nibbler on November 16, 2007, 11:57:14 PM
Only apply the changes that you can find. The others don't apply.
Title: Re: paypal mode with chaoticsoul theme
Post by: Ble Velvet on November 17, 2007, 12:18:08 AM
As you told me to do: I ignored the first changes and I ignored the following firs command:

Quoteif (!defined('IN_COPPERMINE')) { die('Not in Coppermine...');}         //{THEMES}//

Add the following:

    $pid2 = (int)$HTTP_GET_VARS['pid'];
    $album2 = $HTTP_GET_VARS['album'];
    $pos2 = (int)$HTTP_GET_VARS['pos'];

and the buttons appear: "order this print" and "return to Browse mode"

it looked like everything was ok..... but.... when I click on"order this print" and "return to Browse mode" I arrive to a page where it says that the page (the orderd page) I'm looking for does not exist.
Title: Re: paypal mode with chaoticsoul theme
Post by: Nibbler on November 17, 2007, 12:21:16 AM
Add the code in your quote block into the top of the theme.php