lcapronnier
Forum Replies Created
-
Forum: Plugins
In reply to: [LeagueManager] WordPress 4.8It works for me with WordPress 4.8.2. For the error in teamp.php, you have two solutions :
– upgrade to php version 5.5 or later
– edit the team.php file, line 16 and replace if(!empty($league->getGroup())) by if($league->getGroup() <> ”)Setting back the version number in the database enable the migration of the gallery a second time, and it works in all my instances.
1) Disable the plugin
2) With a sql querySELECT * FROM <name of option table> WHERE
option_name='gllr_options'
take the value and the ID of the option (you will need it for the update query)
3) In the value field look for plugin_option_version (at the beginning of the field) and change “plugin_option_version”;s:5:”4.3.8″ to “plugin_option_version”;s:5:”4.3.5″ save the field with all others values.
4) For me, the update query is below but DO NOT COPY IT right away or all your settings will be change :
UPDATE <name of option table> SET
option_value= 'a:26:{s:21:"plugin_option_version";s:5:"4.3.5";s:21:"gllr_custom_size_name";a:2:{i:0;s:11:"album-thumb";i:1;s:11:"photo-thumb";}s:19:"gllr_custom_size_px";a:2:{i:0;a:2:{i:0;i:120;i:1;i:80;}i:1;a:2:{i:0;i:160;i:1;i:120;}}s:13:"border_images";i:1;s:19:"border_images_width";i:10;s:19:"border_images_color";s:7:"#F1F1F1";s:22:"custom_image_row_count";i:3;s:15:"start_slideshow";i:0;s:18:"slideshow_interval";i:2000;s:38:"single_lightbox_for_multiple_galleries";i:0;s:8:"order_by";s:14:"meta_value_num";s:5:"order";s:3:"ASC";s:14:"album_order_by";s:4:"date";s:11:"album_order";s:4:"DESC";s:19:"read_more_link_text";s:23:"Voir les images ?";s:10:"image_text";i:0;s:11:"return_link";i:0;s:16:"return_link_text";s:20:"Return to all albums";s:16:"return_link_page";s:20:"gallery_template_url";s:15:"return_link_url";s:0:"";s:21:"return_link_shortcode";i:0;s:16:"rewrite_template";i:1;s:19:"display_demo_notice";i:1;s:23:"display_settings_notice";i:0;s:13:"first_install";i:1449045216;s:15:"template_update";s:0:"";}' WHERE
option_id= <strong><id of your option in the table></strong>;
5) Enable the pluginForum: Plugins
In reply to: [Captcha] Save additional options in admin panelHi
Just add this code to your functions.php
function cptch_custom_listaddcustomform($var) { global $cptch_options; $form = '<label><input type="checkbox" name="cptch_custom_listaddcustomform" value="cptch_custom_listaddcustomform"'; if ( 1 == $cptch_options[ "cptch_custom_listaddcustomform" ]) { $form .= '"checked=\"checked\""'; } $form .= " />Custom Form Captcha</label><br />"; return $form; } add_filter('cptch_forms_list', 'cptch_custom_listaddcustomform',10,1);
And a new option will appear in the admin panel of the captcha plugin, bellow the ‘ Contact form (powered by bestwebsoft.com) Download contact form’ option.
This works perfectly. But now how to save the value of this option in the database, either in captcha options or in my personal set of options ?
Regards