« The ultimate visiglyphs pluginb2evo blogs for phpbb forum members »

21 comments

Comment from: Afwas [Visitor] Email · http://blog.hemminga.net
***--
Yesterday I only got a 404 lady. Let's see what you have brewed today ;)
12/01/07 @ 15:16
bugger, I didn't get a visiglyph when I previewed my message .... now I have to post to see if I'm still goatsie :((

¥

ohhh yeah, and yer form still defaults to "yeah gimme another mail form that spammers can fill my inbox via" .... mind you, some of the porn links are cool :roll:
12/01/07 @ 15:17
Comment from: EdB [Member]
@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.

@Y: My form?!?!?! You mean THE form still defaults to "embrace spam". Maybe someone on the developers team oughta do something about that ... ?

Yeah I gotta get back to all sorts of little details like that. Another one that I've already started on is fixing gross flaws when you "view source". Do a raw installation with sample posts and you'll see that the entire sidebar is located on ONE line in the source code. um ... got "\n"?
12/01/07 @ 15:32
Comment from: Afwas [Visitor] Email · http://blog.hemminga.net
*****
Ed,

Exellent job. Works even at my blog.

I have one point. Help.
Dunno.
You state "Your blog is in a folder ..." etc. Panic. My blog *is* in a folder /blog/ and I need that for my subdomain blog.website.com. The latter is the base domain for my blog. Through testing I found out that I did *not* need to set the path variable. So I think you want to adjust the help file a little.

I have little purple and green thingsies in my other visiglyph.
12/01/07 @ 16:06
Comment from: EdB [Member]
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.


Actually that ain't right either. My test installation is in a folder, and for that installation my $baseurl knows about the folder, but the plugin didn't work if I didn't hard-code the folder name into the class file.

Hmmm... Aha? sub.domain.com versus domain.com/sub could be part of it. Another aspect I was just thinking of is when you use one host for multiple domains. TECHNICALLY the add-on domain is in a folder for the "primary" domain name, but as far as the URL is concerned it is in the root folder.

So I wonder if you'll do a test for me. Instead of visiting your sub.domain.com could you go to domain.com/sub/ and see how it works? If you go to your admin area that way you'll probably have to log in again. Oh and b2evo will probably keep throwing you back to $baseurl. Anyway if you try it via the back office you'll have to have a new randomizer and not visit the tools tab until you have the full url showing .com/sub/ to see if it's working that way.

I think you'll find it won't work that way, which means my readme needs to point out that there are conditions under which you will need to set the back office setting AND edit the file. I'm also thinking of getting rid of the back office setting. If you have to edit one file then it's no biggie to have to edit another eh?
12/01/07 @ 16:21
Comment from: Afwas [Visitor] Email · http://blog.hemminga.net
*****
I changed the base URL to mysite.com/blog/ That way I was not thrown back etc.

Visiglyph:
No such file or directory ...
Failed opening ...
Class 'visiglyph' not found in ...

I changed visiglyph path to /blog and visiglyph settings to /blog
Visiglyp:
produced the same visiglyph as before (based on IP and b2evo). At lest it worked. Would it have helped if I deleted some cache? Why does it turn up with the same visiglyph?

Now I've got to change all back to normal ...
12/01/07 @ 16:43
Comment from: Afwas [Visitor] Email · http://blog.hemminga.net
I just found out the visiglyph preview does *not* work in the new setup.
12/01/07 @ 16:52
Comment from: EdB [Member]
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).

At least I think those are my settings.

Bottom line on the "hack the file" thing seems to be
If you have a folder path in your $baseurl then you need to hack a file and set a setting.


Which I should change to "... need to hack 2 files."
12/01/07 @ 16:54
Comment from: Afwas [Visitor] Email · http://blog.hemminga.net
Why can't you make the plugin find the files? I did it with $plugins_path in the chessboard render plugin.

Your last suggestion for the help file is ok. I'd give an example like:
If you have a folder path in your $baseurl (yoursite.com/blog/) then you need to hack a file and set a setting.


Did O mention the preview doesn't work in the new setup? Errors all over, like:
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


Keep up the good work.
12/01/07 @ 17:02
Comment from: EdB [Member]
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...

The damned thing doesn't find files because that's the way it was back in 1.8.something. At the time I figured it was because whatever $_SERVER['DOCUMENT_ROOT'] really means, it's something that doesn't work well with $baseurl (or is it $base_url?). Anyway back then I figured 'this works' so published it as a hack, and now I just picked up that hack and tried to make it a plugin.

I gotta go to my stupid job soon, but I will look into $plugins_path at the earliest opportunity.
12/01/07 @ 17:09
Comment from: Afwas [Visitor] Email · http://blog.hemminga.net
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 (/).'),
),
);
}

and
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 );

In the Chessboard render plugin the path is meant to be editable for some stupid reason like the coder (that's me) liked to have a setting for his plugin. But the idea is there.
12/01/07 @ 17:37
Comment from: EdB [Visitor] · http://anonymous.com
Testing a comment from a visitor. I should have preview and it should not remember me or do the message form thing.

Okay visitors can't preview. In IE I get this:
Fatal error: Call to a member function get() on a non-object in /path/to/plugins/visiglyph_plugin/_visiglyph.plugin.php on line 61

Maybe it won't remember me or put up the email icon?
12/01/07 @ 20:18
Comment from: EdB [Member]
I like the chessboard plugin. Great work!

Okay so previews work for logged in people only (but not in the zip file), and both "cookie me" and "spam me" are off by default.

I'm late for work :)

12/01/07 @ 20:20
Comment from: EdB [Member]
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.

Plus there is no way to tell the .class.php file "hey use this info when you define VISIUPLOAD", so it has to be a hacked file - for some users.
12/02/07 @ 15:14
You should use relative paths to make things easier ;)

'label' => T_('Relative path to images'),
'type' => 'text',
'size' => 50,
'defaultvalue' => 'images/',

.....

$image_folder_path = dirname(__FILE__).'/'.trim( $this->Settings->get( 'image_path' ), '/' ).'/';
$image_folder_url = $this->get_plugin_url().trim( $this->Settings->get( 'image_path' ), '/' ).'/';

¥

ps - yer blog doesn't want to remember me .... and no more porn spam :(
12/03/07 @ 11:24
Comment from: Alex [Visitor] · http://railean.net/
*****
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?
12/07/07 @ 07:00
Comment from: EdB [Member]
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.

If you have a 1.10.* installation and try this plugin please let me and the rest of the world know if it works or not for you.

(Note to self: since 1.10.3 is the latest stable release shouldn't you be looking at plugins that work in that version?)
12/07/07 @ 07:10
Comment from: Alex [Visitor] · http://railean.net/
*****
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.

In the backend I chose "Use IP + random word", in practice the plugin used the visiglyph that corresponds to "Use email + random word".
12/07/07 @ 14:55
Comment from: EdB [Member]
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?

It won't re-do a glyph, so existing comments won't update, but new comments should get the new visiglyph. I've already upgraded my own installation, but I'll grab my own zip file and email you with some code to add to your plugin so we can test what's going wrong.

(Note to self: change the visiglyph size here to one size smaller...)
12/08/07 @ 00:09
Comment from: EdB [Member]
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.
12/08/07 @ 10:55
Comment from: Alex [Visitor] · http://railean.net/
*****
I second that it works in 1.10.3, and that the issue has been resolved. Thanks for the swift reaction!
12/09/07 @ 08:11

Comments are closed for this post.


[Contact] Powered by b2evolution v2.4.2