mrsmill
Forum Replies Created
-
Forum: Plugins
In reply to: Fatal error: Call to undefined function register_setting()<?php if(!defined('WPINC')) { exit; } // This class handles all available options class EL_Options { private static $instance; public $options; public static function &get_instance() { // Create class instance if required if(!isset(self::$instance)) { self::$instance = new self(); } // Return class instance return self::$instance; } private function __construct() { add_action('init', array(&$this, 'init_options'), 1); add_action('admin_init', array(&$this, 'register_options')); } public function init_options() { $this->options = array( 'el_db_version' => array('section' => 'system', 'std_val' => ''), 'el_categories' => array('section' => 'categories', 'std_val' => null), 'el_sync_cats' => array('section' => 'categories', 'std_val' => ''), 'el_import_file' => array('section' => 'import', 'std_val' => ''), 'el_import_date_format' => array('section' => 'import', 'std_val' => 'Y-m-d'), 'el_no_event_text' => array('section' => 'general', 'std_val' => 'no event'), 'el_multiday_filterrange' => array('section' => 'general', 'std_val' => '1'), 'el_date_once_per_day' => array('section' => 'general', 'std_val' => ''), 'el_html_tags_in_time' => array('section' => 'general', 'std_val' => ''), 'el_html_tags_in_loc' => array('section' => 'general', 'std_val' => ''), 'el_show_details_text' => array('section' => 'frontend', 'std_val' => __('Show details','event-list')), 'el_hide_details_text' => array('section' => 'frontend', 'std_val' => __('Hide details','event-list')), 'el_disable_css_file' => array('section' => 'frontend', 'std_val' => ''), 'el_edit_dateformat' => array('section' => 'admin', 'std_val' => ''), 'el_enable_feed' => array('section' => 'feed', 'std_val' => ''), 'el_feed_name' => array('section' => 'feed', 'std_val' => 'event-list'), 'el_feed_description' => array('section' => 'feed', 'std_val' => 'Eventlist Feed'), 'el_feed_upcoming_only' => array('section' => 'feed', 'std_val' => ''), 'el_head_feed_link' => array('section' => 'feed', 'std_val' => '1'), 'el_feed_link_pos' => array('section' => 'feed', 'std_val' => 'bottom'), 'el_feed_link_align' => array('section' => 'feed', 'std_val' => 'left'), 'el_feed_link_text' => array('section' => 'feed', 'std_val' => 'RSS Feed'), 'el_feed_link_img' => array('section' => 'feed', 'std_val' => '1'), ); } public function load_options_helptexts() { require_once(EL_PATH.'includes/options_helptexts.php'); foreach($options_helptexts as $name => $values) { $this->options[$name] += $values; } unset($options_helptexts); } public function register_options() { foreach($this->options as $oname => $o) { register_setting('el_'.$o['section'], $oname); } } public function set($name, $value) { if(isset($this->options[$name])) { return update_option($name, $value); } else { return false; } } public function get($name) { if(isset($this->options[$name])) { return get_option($name, $this->options[$name]['std_val']); } else { return null; } } } ?>
Forum: Plugins
In reply to: Fatal error: Call to undefined function register_setting()UPDATE: Realised I have switched the website to 123reg hosting and now I am unsure how to access backroom via ftp. (Previously hosted via a friend and I had all ftp login details).
Forum: Fixing WordPress
In reply to: Login Fail Terroror… now I’ve sussed my username, I’m sure I can recall the original password too, is there a way I can get in?
Forum: Fixing WordPress
In reply to: Login Fail Terrormmm, yes.
The mystery of the missing emails from wordpress to me still lingers, what can it be???
I’ll also ask my server admin for some help.Forum: Fixing WordPress
In reply to: Login Fail TerrorThe ‘reset password’ emails look as though they are being sent from wordpress login, but not arriving in my inbox (or other parts of email).
Plugins? Shucks, I wish I knew. I’ve not updated the site for years (2011?) – I wanted to grab all the content from it before I upsticks and move to a new domain/look.
I reckon all themes/plugins are way out of date on site.
I’ve searched my email for any record of passwords for ftp /host (filezilla etc) just in case I can grab content that way.
Forum: Fixing WordPress
In reply to: Login Fail Terrorstill locked out / not resolved ??
Forum: Fixing WordPress
In reply to: Login Fail TerrorI’ve worked out my username now, but I’ve requested 6 email new passwords, so probaly locked myself out now.
Forum: Themes and Templates
In reply to: [generatorpress] change font type/size in menusWow…
so if the php code goes in an order 1 header widget, 2 site logo,3 site title tagline – it will place itself in that order?
and 3,2,1 will reverse the presentation?That is uber logical!
Forum: Themes and Templates
In reply to: [generatorpress] change font type/size in menusyes, they are hidden. I’m just about to work on this!
I found https://gist.github.com/generatepress/d58dd082dbd741943aee
to input in child functions.php, which then enables you to switch the order, so I can go in this order:
Site Title (hidden)
Header image (with site name in file name)
Tag line (visible)Does site logo refer to header image?
Forum: Themes and Templates
In reply to: [generatorpress] change font type/size in menusThat’s great @bojan. Although, I should have asked..
..how to control site title/tagline, font, size, placement.
I’d like the tagline beneath the header in a particular font.Forum: Themes and Templates
In reply to: [Twenty Sixteen] Anyone got version prior to 1st OctoberThank you @nadiadsz and @markarambula.
This may help others, but the small time lag between asking and the replies was enough for me to ditch twentysixteen and opt for another theme.Forum: Themes and Templates
In reply to: [Twenty Sixteen] Twenty sixteen customization bug?Would it possible to find the last version of twentysixteen that can be customised? Can someone put online somewhere (pretty please with bells on).
Forum: Fixing WordPress
In reply to: iTunes – I'd like a widgetIt was an error on Apple site. Sussed it now…but…
Can it be changed to £s not $s??Forum: Themes and Templates
In reply to: [Twenty Sixteen] Did the last update kill my WordPress?Looking forward to the delivery day. I uploaded without realising it was still gestating. Really wanted a solid WP theme, and I really wanted the header (sorry twentyfifteen, I’m not an iPad user). So happily be part of this cranky, twitchy, breaky phase.
Forum: Themes and Templates
In reply to: [Twenty Sixteen] can I have two types of sidebar?I’ve resolved this with one of many plugins available. I chose ‘simple sidebars’.