asceta
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Fatal error: Cannot redeclare class Custom_Image_Headerhello,
I’ve found another solution.
I wanted to stay with Back My Book theme, so, I’ve checked what had happened.
In file “../wp-content/themes/back-my-book/admin/custom-header.php” there’s a declaration of a class Custom_Image_Header. It overlaps class that already exists in WordPress Engine – that’s the reason of fatal error.
So, I’ve replaced name of this class to Custom_Image_Header_BMB (and other occurences – 3 occurrences all together in custom-header.php file), then I’ve renamed call to this class in “../wp-content/themes/back-my-book/functions.php” file.
Line number 98:
original:
————-
$GLOBALS['custom_image_header'] =& new Custom_Image_Header($admin_header_callback, $admin_image_div_callback);
changed to:
————-
$GLOBALS['custom_image_header'] =& new Custom_Image_Header_BMB($admin_header_callback, $admin_image_div_callback);
It worked for me. You can check it at https://henrykbaranowski.pl/
I’m not a programmer, only ‘home-made screwdriver’ ;-), so, if someone can check if that’s all – I’d be very glad for feedback.
Cheers,
ascetaForum: Plugins
In reply to: [Advanced RSS] [Plugin: Advanced RSS] Editing New Template ErrorHello,
As for ‘custom element tags’ – I’m not sure what do you mean.
I’ve managed to add additional parameters that could be set up via widget – in my case I wanted to add parameters ‘width’ and ‘height’, that could be used in templates to define size of objects (YouTube videos) displayed in widget.
It’s not an easy way to describe ‘how to do this’ – in short, I had to add several lines in php5.php file of Advanced RSS plugin.
I’m sure that in the same way one could pass some CSS variables, CSS file, or other parameters usable in XLST template.
Another thing: I’ve noticed that adding just another XLST template (adding file in plugin directory) is not enough – I had to add information about it in two places in php5.php file, to get it loaded. One is a list of templates loaded via plugin, second is a list of template description that are shown in Advanced RSS configuration page.
And yet another thing – I had to deactivate/activate plugin to ‘refresh’ template list.
Maybe there’s a simpler way to do this.
I have the same problem. I’m using TinyMCE Advanced on many of my sities, and see additional <p> tags on top and bottom of the pages/posts after every update. I’d be very happy having some solution…
I’m using FF3.6.x and IE8.