Pages (2): 1 2   
Member
Member
Citron   23-07-2009, 12:07
#1

Hi,
I just wrote a little plugin to print a link wich, when clicked, display a thickbox containing code to display the current image in a forum supporting bbcode.

For an example of what I mean, check here (personal gallery) :
http://gallery.pcitron.fr/2009.05.16.Zillertal/IMG_3455HDR.jpg

At the bottom of the image, there is a little "show BBCode" link. When clicked, it displays a piece of code that can be pasted into any phpBB like forums. It will display a preview of 800px (larger side) and link to the full image.

The plugin is here : http://blog.pcitron.fr/wp-content/uploads/2009/07/share.php

After activating, just use the "print_bbcode($link_text);" function in your template to display a link activating the thickbox.

Nothing really fancy, but I thought maybe someone else might find it useful (I tried to find an existing plugin doing this, but didn't find any ...)

Administrator
Administrator
acrylian   23-07-2009, 13:09
#2

Thanks, any new plugin is welcome.

The direct link does not work. You might want to zip the file for download. Safari for example is not able to download it (gets an empty text file). Also an english readme would be nice (if not in the file comment) ..:-)

After I was able to take a quick look I will gladly add it to the plugins page.

Member
Member
Citron   23-07-2009, 13:53
#3

You're right, here is a working link

http://blog.pcitron.fr/wp-content/uploads/2009/07/share.0.1.zip

Administrator
Administrator
acrylian   23-07-2009, 14:09
#4

All right..:-) I have added an entry on our plugins page. (It might be useful if you add a plugin url to the plugin that links to your page.)

Member
Member
Citron   23-07-2009, 14:28
#5

Oh. I don't really have a static webpage for this plugin ... just a blog entry in french ...
I might add a proper page when I have some time, and update the plugin.

Administrator
Administrator
acrylian   23-07-2009, 15:03
#6

Ok, anyway, I have linked to that post.

Member
Member
Citron   23-07-2009, 16:13
#7

Ok, just created a static page for the plugin, and also updated the plugin to add a few options and an admin panel to manage them.

The page (added it in the plugin) : http://blog.pcitron.fr/zenphoto-to-bbcode/
Plugin v0.2 : http://blog.pcitron.fr/wp-content/uploads/2009/07/share.0.2.zip

Edit: when looking how to add an admin panel, I noticed that the documentation is a little outdated.
In the page http://www.zenphoto.org/2008/04/zenphoto-plugin-architecture/
in the section about the getOptionsSupported() function, for options of type 5 (selects) it's written that 'selector' is the value used to specify the select items, whereas in fact, it's 'selections'

Administrator
Administrator
acrylian   23-07-2009, 16:35
#8

Thanks, and it's even in English..:-)

Thanks for the doc note, I have corrected it.

Member
Member
Citron   28-07-2009, 13:01
#9

Updated the plugin to v0.3.

Quick changes from preview version :

  • Added: second textarea containing the same sharing code, but with exif data under the preview image.
  • Added: option in the admin panel to show or not the sharing code with exifs.
  • Added: option in the admin panel to generate BBCode or standard HTML.
  • Fixed: I hard-coded link to my gallery. Replaced with correct path to current gallery.

Complete history and download can be found here : http://blog.pcitron.fr/zenphoto-to-bbcode/

Member
Member
gsvalentine   01-02-2010, 02:55
#10

I can't get this plugin to work. I have uploaded the share.php, to the /plugins/ folder. I can login to the admin area, and change the plugin settings. When I add to add the "print_share_link($link_text)" code, to the image.php file, it does not work.

I am running Zenphoto version 1.2.8 [4881] (Official Build).

Pages (2): 1 2   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.