Theme switch (mobile mode) plugin for cpg1.6.x Theme switch (mobile mode) plugin for cpg1.6.x
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Theme switch (mobile mode) plugin for cpg1.6.x

Started by Αndré, January 12, 2019, 11:03:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Αndré

This is the cpg1.6.x and PHP7 compatible version of the Theme switch (mobile mode) plugin.

Quote from: Αndré on April 26, 2012, 02:21:18 PM
This plugin will automatically detect mobile devices and will display Coppermine with a different (preferably optimized for mobile devices) theme. Additionally, if a mobile device is detected, a new button will be displayed to let the user choose to switch between the "normal" and "mobile" view.

1.) Upload and install the plugin as described in the docs
2.) Open the plugin's configuration screen (you can find it in the plugin's box at the plugin manager after you installed the plugin) and choose a proper theme.

For a start I created two mobile themes, mobile_light and mobile_dark.

byloom

Hello,

i have installed this plug in for mobile, and i downloaded the two themes, dark and white one, but when i go to the manager area of the plug in button from plugin section, i see only the standard plug them and not the mobile one...could you help please

Thanks

jimbo123

byloom, not sure if you got a reply to this or not. You need to actually physically put the two themes mentioned in the main coppermine theme directory via ftp or similar method of upload. There are also questions over permissions regarding that directory and the theme is inherant to allowing the whole plugin to work. Otherwise without using one of those two themes or your own based upon those two themes the plugin wont work. At least in my experience.
Once you have copied the two themes to the theme directory you should be able to chose it from the drop down in the theme config.

allvip

Debug \plugins\theme_switch\codebase.php


    Warning line 43: strtolower() expects exactly 1 parameter, 2 given
    Warning line 43: strpos() expects at least 2 parameters, 1 given

allvip

with water drop theme +1 error


Notice line 99: Undefined variable: lang_plugin_theme_switch

phill104

It is a mistake to think you can solve any major problems just with potatoes.