Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Theme switch (mobile mode) plugin for cpg1.6.x  (Read 5817 times)

0 Members and 1 Guest are viewing this topic.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Theme switch (mobile mode) plugin for cpg1.6.x
« on: January 12, 2019, 11:03:57 pm »

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

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.
Logged

byloom

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Theme switch (mobile mode) plugin for cpg1.6.x
« Reply #1 on: August 07, 2019, 08:14:38 am »

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
Logged

jimbo123

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Theme switch (mobile mode) plugin for cpg1.6.x
« Reply #2 on: January 08, 2020, 04:22:48 pm »

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.
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Theme switch (mobile mode) plugin for cpg1.6.x
« Reply #3 on: August 07, 2020, 12:38:41 pm »

Debug \plugins\theme_switch\codebase.php

Code: [Select]
    Warning line 43: strtolower() expects exactly 1 parameter, 2 given
    Warning line 43: strpos() expects at least 2 parameters, 1 given
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Theme switch (mobile mode) plugin for cpg1.6.x
« Reply #4 on: August 07, 2020, 01:09:53 pm »

with water drop theme +1 error

Code: [Select]
Notice line 99: Undefined variable: lang_plugin_theme_switch
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 19 queries.