WP Theme Options in Coppermine WP Theme Options in Coppermine
 

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

WP Theme Options in Coppermine

Started by SolidSnake2003, June 29, 2014, 09:11:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SolidSnake2003

Is it possible for me to display theme options from wordpress in the photo gallery?

http://www.solidsnakelegacy.net/gallery

phill104

Can you explain in more detail as I am not quite sure what you are asking.
It is a mistake to think you can solve any major problems just with potatoes.

SolidSnake2003

With Wordpress themes you can create an options file that it is setup like the coppermine admin.php file.   You can basically set it up for any kind of content.  I have mine set up for my various affiliates on my site so I don't have to adjust the code everytime I add a new one.  I tried using the custom header feature of coppermine, and created a special header and got this error message:

Fatal error: Cannot redeclare stripslashes_deep() (previously declared in /home/username/public_html/gallery/include/inspekt/cage.php:767) in /home/username/puplic_html/wp-includes/formatting.php on line 1581

Αndré

Quote from: SolidSnake2003 on June 30, 2014, 01:49:39 AM
I tried using the custom header feature of coppermine, and created a special header and got this error message:

Fatal error: Cannot redeclare stripslashes_deep() (previously declared in /home/username/public_html/gallery/include/inspekt/cage.php:767) in /home/username/puplic_html/wp-includes/formatting.php on line 1581
Please attach your custom header file to your next reply.

To answer your question: it may be possible with the theme engine, but it's probably easier to use the plugin engine or the custom header feature.

SolidSnake2003

sorry put the wrong site in the start of the topic

I added the footer and header in a zip file

Αndré

I just had closer look at the error message and seems that Coppermine and WordPress both want to declare the function stripslashes_deep. You have the following options:
1. Rename one of the functions and all function calls in either Coppermine or WordPress
2. Compare both functions and if they don't differ, wrap the Coppermine function in if (!functions_exists('stripslashes_deep')) { ..... }
3. Don't include /home/username/public_html/wp-blog-header.php, but try to fetch the data somehow else

gmc

Looks like that function is part of "Inspekt"... If WP uses this as well, it won't be the only conflict...
Also appears the CPG version is being called first (previously declared in cpg...). So the 'if' logic would need to be in the WP file.

Cleaner might be to separate the affiliates data into its own file and then include just that (wrapped in whatever each program needs) in CPG and WP? (building on suggestion 3 from Andre.)
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money