![]() |
|
generate BBCode - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html) +--- Thread: generate BBCode (/thread-5517.html) |
generate BBCode - Citron - 23-07-2009 Hi, For an example of what I mean, check here (personal gallery) : 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 ...) generate BBCode - acrylian - 23-07-2009 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. generate BBCode - Citron - 23-07-2009 You're right, here is a working link http://blog.pcitron.fr/wp-content/uploads/2009/07/share.0.1.zip generate BBCode - acrylian - 23-07-2009 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.) generate BBCode - Citron - 23-07-2009 Oh. I don't really have a static webpage for this plugin ... just a blog entry in french ... generate BBCode - acrylian - 23-07-2009 Ok, anyway, I have linked to that post. generate BBCode - Citron - 23-07-2009 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/ Edit: when looking how to add an admin panel, I noticed that the documentation is a little outdated. generate BBCode - acrylian - 23-07-2009 Thanks, and it's even in English..:-) Thanks for the doc note, I have corrected it. generate BBCode - Citron - 28-07-2009 Updated the plugin to v0.3. Quick changes from preview version :
Complete history and download can be found here : http://blog.pcitron.fr/zenphoto-to-bbcode/ generate BBCode - gsvalentine - 01-02-2010 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). generate BBCode - acrylian - 01-02-2010 You have of course to replace generate BBCode - gsvalentine - 01-02-2010 That's fixed half of the problem, now anything under the line of code does not work. So the comment, photo rating etc as gone. http://www.gordon-valentine.com/images/zenphoto.jpg to see what it does. generate BBCode - kagutsuchi - 01-02-2010 My guess:
To check the error log, you can either log into the admin back-end and check from there (under the It's a bit hard to tell what the problem is if we can't see the page or the underlying code. A link or an excerpt of the offending code could help us see what the problem is. Or an error if you do happen to find one. generate BBCode - gsvalentine - 01-02-2010 I got it working with zenphoto 1.2.6, still not working with zenphoto 1.2.8. I have just looked at the logs and it's not showing any errors at all. generate BBCode - Citron - 19-03-2010 Aaah, sorry I completely forgot this thread ! And I also should note that the plugin is now version 0.8, with many bugs fixed, and functionalities slightly modified (and also compatible with ZP 1.2.9 and colorBox) All infos can be found here : http://blog.pcitron.fr/zenphoto-to-bbcode/ generate BBCode - wongm - 25-03-2010 Looks like I was working on a similar plugin but never realised it! However I put the markup into a textbox instead of a popup, and have a few more config options. generate BBCode - Citron - 26-03-2010 Hi, |