Theme switcher on 1.6.03 Theme switcher on 1.6.03
 

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

Theme switcher on 1.6.03

Started by café, June 06, 2018, 04:29:41 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

café

Hi forum,

I installed Coppermine 1.6.03 recently as I was running into errors on my server when attempting to install v1.5. It's all been working fine using plugins and themes for 1.5x until I tried to configure the "theme_switcher" plugin in the plugin manager. When I attempt to configure it, I get the following error:

Fatal error: Uncaught Error: Call to undefined function mysql_result() in /home/escuta/webapps/joomla/fotos/plugins/theme_switch/admin.php:58 Stack trace: #0 /home/escuta/webapps/joomla/fotos/index.php(78): include_once() #1 {main} thrown in /home/escuta/webapps/joomla/fotos/plugins/theme_switch/admin.php on line 58

Line 58 in plugins/theme_switch/admin.php is:

$theme = mysql_result(cpg_db_query("SELECT value FROM {$CONFIG['TABLE_CONFIG']} WHERE name = 'theme_switch_mobile_theme'"), 0);

Can anyone please suggest a solution, or is v1.6 theme switcher plugin forthcoming?

Thanks,

Café

ron4mac

#1
Here it is for CPG 1.6.x (link)

café

Thanks a lot, it works!

A note for anyone who like me, tries to install the 1.5.x version of theme switcher on Coppermine 1.6.x before installing this new one: this may result in a primary key being written to the mySQL database which blocks the installation of the version for 1.6.x. To fix this duplicate, I needed to open phpMyAdmin and delete the entry "theme_switch_mobile_theme" in "cpg16x_config". After that I could install the new version.

All the best,

ron4mac

Quote from: café on June 07, 2018, 12:24:46 PM
A note for anyone who like me, tries to install the 1.5.x version of theme switcher on Coppermine 1.6.x before installing this new one: this may result in a primary key being written to the mySQL database which blocks the installation of the version for 1.6.x.

Thanks for the feedback, café. I modified the version in the CPG 1.6 Plugin Contributions to not fail on installation in that situation.

ron4mac

The themes that come with CPG1.6 are not very modern in design. They won't be responsive.
This designer has some nice, fairly responsive themes. Theme #12 is free to try/use.

I will also point out to you ... themes that come with CPG will be overwritten during an upgrade. So if you want to modify a theme you should copy it to a new folder first. The themes with CPG 1.6 are made to easily copy and use. Other themes may need to have many things changed in them to point at their new name/folder.

café

Thanks a lot for the information and link!