1 c_r_t_ Sep 01, 2006 14:58
3 topanga Nov 11, 2006 14:40
Another nice feature : make it possible to 'overwrite' blog choices with a new default one.
Especially if the former 'blog' specific choices where the old default onces...
I now have the trouble that if I want to change the default, the 'old default' is there in every blog...
4 c_r_t_ Nov 11, 2006 17:03
Hi Topanga, if you leave the field value as blank, the plugin will automatically use the current default value when displaying it in the skin.
I made the plugin to fill in the blanks in the user setting page with the blog default values automatically. Perhaps I should not have done that. Let me think about it...
5 topanga Nov 11, 2006 17:11
I know, and that was very ok.
I just noticed that I made and error (wrong link) and that I needed to replace all the default values..
Once that you create a field, put in a default, that info is 'per default' on every blog. 100% ok ! (don't change that)
But when I change the default in the plugin, because there was an error in it, I need to change that in every blog...
So i the blog specific field is blank (it only contains the default value) make the new default value be there...
6 fralenuvol Dec 01, 2006 18:09
If have also a little request, in function SkinTag( $params ):
Would it be possible to add a $params[ 'display' ] which decides if value must be echoed (like now) or just only returned?
With this $params[ 'display' ] set eventually to TRUE as default, your current code would keep the actual behaviour, and if somebody adds $params[ 'display' ] =FALSE, it would just return its value without echoing.
if ( $params[ 'display' ] === FALSE) return $val;
I ask this because I am using your plugin for some custom code, and I need the function to return its value without echoing and I already did the changes for myself.
But if my code works and is useful, maybe I will post it for all, so I would need that feature in the plugin.
7 c_r_t_ Dec 11, 2006 18:23
Hi fralenuvol, if you have got that part of the code working already, could you kindly send it to me? I will incorporate it into my plugin and make a new release, which will also include Topanga's request.
Thanks.
8 topanga Dec 11, 2006 20:29
And can you test your plugin one last time that you can also empty your fields again ?
My installation is refusing that... (since the serverhack)
9 fralenuvol Dec 11, 2006 20:49
In the meanwhile I send you my code (I also added "isset" in conditions as I got errors in mine).
Have a look if it is fine for you.
10 mojman Jan 15, 2007 12:35
When I try to install the plugin I get the following error:
MySQL error!
Too big column length for column 'skin_area_value' (max = 255). Use BLOB instead(Errno=1074)
Your query:
CREATE TABLE evo_plugin_skin_area_86_data (
skin_area_blog_ID INT UNSIGNED NOT NULL,
skin_area_name VARCHAR( 50 ) NOT NULL,
skin_area_value VARCHAR( 1024 ) NOT NULL
)
I use b2evo 1.91. Maybe someone have a clue about what the problem are.
11 c_r_t_ Feb 10, 2007 15:54
Hi fralenuvol,
Unfortunately I couldn't find time to work on the script. I see that you have made some pretty good improvements on the script, would you like to adopt this plugin and take over its development from now on? I think you can do much more than me to better benefit the users.
12 nureac Apr 01, 2007 19:34
I get the same error as mojman. Can anyone help please?
Thanks!
nureac
13 senkusha Apr 19, 2007 16:25
Would it be possible for somebody who has already done the modifications to say...the Custom Blog to upload it for anybody else? I think this would provide a perfect example of how to use this plug in, and you can also try it "right out of the box".
What do you guys think?
14 c_r_t_ Apr 20, 2007 19:51
Hi mojman and nureac,
You should be able to fix this problem by modifying these lines in the _skin_area.plugin.php file:
CREATE TABLE evo_plugin_skin_area_86_data (
skin_area_blog_ID INT UNSIGNED NOT NULL,
skin_area_name VARCHAR( 50 ) NOT NULL,
skin_area_value VARCHAR( 1024 ) NOT NULL
)
to:
CREATE TABLE evo_plugin_skin_area_86_data (
skin_area_blog_ID INT UNSIGNED NOT NULL,
skin_area_name VARCHAR( 50 ) NOT NULL,
skin_area_value TEXT NOT NULL
)
After that, reinstall the plugin.
Hi senkusha,
When I first started to write this plugin I wanted to add some custom fields as default, so people can have an example of how to use it right out of the box. Unfortunately I couldn't find the way to specify a default array of fields and values with b2evo's plugin codes. But if you play around with it a bit you should get the general idea on how to use it.
Topanga, sorry, I don't think I can work on the plugin anytime soon. I am afraid your requested modifications would have to wait... unless someone else is willing to adopt this plugin and take over its development...
15 tassie Apr 21, 2007 21:08
I've got this installed, but I'm still getting an error.
In the backoffice section under Tools/Skin area I get the following error and no idea what it is!
Undefined property: text_from_AdminTabAction in ..../public_html/test/plugins/_skin_area.plugin.php on line 228
Any help offered to this b2evolution newbie really appreciated! B)
16 hiscores Jun 12, 2007 22:23
Tassie wrote:
I've got this installed, but I'm still getting an error.
In the backoffice section under Tools/Skin area I get the following error and no idea what it is!
Undefined property: text_from_AdminTabAction in ..../public_html/test/plugins/_skin_area.plugin.php on line 228
Any help offered to this b2evolution newbie really appreciated! B)
i'm also getting the same error (Undefined property: text_from_AdminTabAction) as explained above :(
any ideas? this looks to be a very useful plugin :)
17 hiscores Jun 12, 2007 22:29
oh maybe i should add that i'm using the b2evo 1.10.2 "Florida" release ;)
18 flipflip Jun 14, 2007 21:21
Hello, when i defined value EnTete in admin page and add :
<?php
$Plugins->call_by_code( 'evo_SkinArea', array(
'area_name'=>'EnTete'
) );
?>
I've this errors :
Notice: Undefined index: blog in /www/plugins/_skin_area.plugin.php on line 67
Notice: Undefined index: length in /www/plugins/_skin_area.plugin.php on line 87
And the value for this field :
<img src="front.jpg" title="Nom de votre blog" alt="Nom de votre blog" />
The picture is display.
I'm use b2evolution 1.9.2
Have you got a idea ?
Thanks.
19 brin Jul 04, 2007 16:30
Can someone please repost the plugin? Those links in the thread dont seem to be working for me. I end up with a html file with the error message
Could not connect to FTP Server: '70.85.122.223'. Please check your FTP-Settings
20 hiscores Jul 05, 2007 23:10
flipflip wrote:
Hello, when i defined value EnTete in admin page and add :
<?php $Plugins->call_by_code( 'evo_SkinArea', array( 'area_name'=>'EnTete' ) ); ?>
I've this errors :
Notice: Undefined index: blog in /www/plugins/_skin_area.plugin.php on line 67 Notice: Undefined index: length in /www/plugins/_skin_area.plugin.php on line 87
And the value for this field :
<img src="front.jpg" title="Nom de votre blog" alt="Nom de votre blog" />
The picture is display.
I'm use b2evolution 1.9.2Have you got a idea ?
Thanks.
try changing the following on line 67 of the _skin_area.plugin.php code
from
if ( $params[ 'blog' ] )
to
if ( isset( $params[ 'blog' ] ) )
plus perhaps also the same/similar on line 87 although just the above did the trick for me ;)
21 hiscores Jul 05, 2007 23:28
Tassie wrote:
I've got this installed, but I'm still getting an error.
In the backoffice section under Tools/Skin area I get the following error and no idea what it is!
Undefined property: text_from_AdminTabAction in ..../public_html/test/plugins/_skin_area.plugin.php on line 228
Any help offered to this b2evolution newbie really appreciated! B)
i seem to be on top form tonight... :) here's another suggested fix for the above (seemingly cosmetic) error message
in line 221 of the _skin_area.plugin.php code change the following:
from
echo $this->text_from_AdminTabAction;
to
echo $this->text_from_AdminTabAction = '';
B)
22 tassie Jul 06, 2007 01:12
Hi hiscores. Thanks for the info. As I'm now running 1.10.2 I'll need to reinstall this plugin. Will then try your fix and see how it goes.
UPDATE: Seems fine now. :p Thanks again.
23 brin Jul 11, 2007 17:04
I have just installed this plugin and found it to be very useful. Since CRT is unable to continue maintaining it, I would like to put my hand up to take over the plugin.
The problems encountered by Tassie and Hiscores also seem to have been fixed by fralenuvol.
If you cant find the newer version you can get it here http://blogs.unbolt.net/index.php/brinley/2007/07/11/b2evolution_skin_area_plugin
24 c_r_t_ Jul 13, 2007 08:10
Thanks brin! Very glad that finally someone takes over. Have been feeling bad all this while for not answering the questions from the users.
25 karen Sep 02, 2007 16:22
Hi guys! I was able to use this plugin for a while but something's wrong. Skin areas that were supposed to be on the right side and the bottom are missing. Here's the error message.
An unexpected error has occured!
If this error persits, please report it to the administrator.
Go back to home page
Additional information about this error:
MySQL error!
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4(Errno=1064)
Your query:
SELECT skin_area_value
FROM evo_plugin_skin_area_21_data
WHERE skin_area_name = "adzens_bottom"
AND skin_area_blog_ID =
26 karen Sep 03, 2007 07:24
Problem solved.
Since I used 2 skins, I didnt use customizable skin areas on the main page. No error anymore.
Thanks
27 sammymaudlin Apr 30, 2008 22:27
Does it work for 2.x? And where is the download link?
Excellent!
This plugin is ideal to ship together with my [url=http://forums.b2evolution.net/viewtopic.php?t=8146]Autoblog Plugin[/url].
I tested it and it works really nice to define main skin colors, sidebar images, etc... for unexperienced bloggers.
I was going to develope something like that when I saw you did it.
I will recommend it. :-)