| « The ultimate visiglyphs plugin | b2evo blogs for phpbb forum members » |
EDIT: wiped out due to a better version available. Please see the latest version instead.
Yesterday I only got a 404 lady. Let's see what you have brewed today
bugger, I didn't get a visiglyph when I previewed my message .... now I have to post to see if I'm still goatsie
@A: 404 from the link I sent to the evoteam? I didn't test the link so I reckon I just screwed up typing ... yeah that was it. File name is "visiglyph_plugin" but I typed "visiglyphs_plugin". My bad.
Ed,
Okay cool. I think. So what you're saying, if I understand correctly, is this: If your blog is in a folder AND your $baseurl (set in conf/_basic_config.php) has something like "domain.com/folder" then you don't need to edit a file OR make a plugin setting.
On the other hand, if the path to the installation is NOT the same as your $baseurl then you probably will need to edit a file AND set the appropriate plugin setting.
I changed the base URL to mysite.com/blog/ That way I was not thrown back etc.
I just found out the visiglyph preview does *not* work in the new setup.
Yeah it'll make the same glyph no matter the path if IP and randomizer (b2evo in your case) stay the same. I've picked name and email, so if you comment here with a change in either of those you'll get a new glyph. If I don't change 'em and comment from a different IP (at work or something).If you have a folder path in your $baseurl then you need to hack a file and set a setting.
Why can't you make the plugin find the files? I did it with $plugins_path in the chessboard render plugin.If you have a folder path in your $baseurl (yoursite.com/blog/) then you need to hack a file and set a setting.
Warning: imagepng() [function.imagepng]: Unable to open '/home/hemmi3/public_html/plugins/visiglyph_plugin/visiglyphs/7774d07bcf86c2353d7b9a7611a93c4e.png' for writing: No such file or directory in /home/hemmi3/public_html/blog/plugins/visiglyph_plugin/_visiglyph.class.php on line 159
I thought previews were officially out by code because I simply didn't want to mess with them. I figured I could deal with previewing the visglyph later is the thing. I'm not seeing an error when previewing this. Will have to try it on my test installation...
function GetDefaultSettings()
{
global $plugins_path;
return array(
'image_path' => array(
'label' => T_('Path to images'),
'type' => 'text',
'size' => 50,
'defaultvalue' => $plugins_path.'chessboard_render_plugin/images/',
'note' => T_('Change this path if you have another set of images or have them stored in a different location. Don\'t forget the trailing slash (/).'),
),
);
} function RenderItemAsHtml( & $params )
{
/*
* Get user input for image path (or default = /plugins/chessboard_render_plugin/images/)
* Next, set Global variable $chessboard_image_path
*
*/
$tempImagePath = $this->Settings->get( 'image_path' );
$chessboard_image_path = chessboard_image_path( $tempImagePath );
Testing a comment from a visitor. I should have preview and it should not remember me or do the message form thing.Fatal error: Call to a member function get() on a non-object in /path/to/plugins/visiglyph_plugin/_visiglyph.plugin.php on line 61
I like the chessboard plugin. Great work!
I see the problem with trying to guess any extra path info: it is simply not part of any "$foo_path" variable. It would be found in $baseurl (as either folder.domain.com or domain.com/folder), and is therefore part of all "$foo_path" and "$foo_url", but it is not available as a unique value to a variable. I would have to take $baseurl and try to figure out if it has a / other than the // bit AND if it has an extra dot that makes it a folder path. The first I think I can do. The second is probably almost impossible.
You should use relative paths to make things easier
Just posting a comment to see what my visiglyph will look like; and one more thing - is this plugin going to work with 1.10.x or the new 2.x versions?
I don't know if it will work with 1.10.* or not, but my gut tells me it will. It worked nicely with 2.1.0 but now there is a 2.2.0 out, so I focused upgrades on that version. When I publish that new version the same thing will be true: it will probably work in 1.10.* but I can't say for sure because I didn't test it in that environment.
The plugin works correctly with 1.10.2, I can see a visiglyph in new comments. The only thing that goes different from what I expected is the visiglyph itself.
Interesting. So after you make a change to the settings and make a new comment (from out in public) you get the visiglyph that the tools tab says is for a different configuration?
Thanks Alex. I duplicated the problem, and it's fixed. My testing amounted to making sure I got a different visiglyph with each combination of settings. I never really checked "is it the right glyph on the tools tab" and it wasn't. So I fixed it and updated the version number. Also changed the file name to reflect the version I tested it on: v1.10.3 because I don't want to install 2.1.0 and I already have a cooler version almost ready to publish for 2.2.0.
I second that it works in 1.10.3, and that the issue has been resolved. Thanks for the swift reaction!Comments are closed for this post.