HTML Embedding Plugin HTML Embedding Plugin
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

HTML Embedding Plugin

Started by wperry1, August 15, 2007, 09:13:35 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

wperry1

I couldn't find a quick and easy way to stick images from Coppermine into my Blogger blog so I wrote a plug-in that will generate HTML to embed an image from your Coppermine gallery into any other HTML page.

You can see it in use in my gallery here: http://photos.harrisonperry.net

WP

Edit: Updated to add a BBCode textbox.
Edit: The attachment below should work but I am making some changes on my site so it is not currently visible there.

cyberboy

Hi ... can it be generate to bbcode as well? thanks...

Joachim Müller

There already are plugins/mods that can accomplish this. Use them instead of asking your question here.

wperry1

Quote from: GauGau on August 16, 2007, 07:40:46 AM
There already are plugins/mods that can accomplish this. Use them instead of asking your question here.

If there is something that has already been done it was probably done better than this since this is my first foray into php scripting but I couldn't find it.  Could you post a link to the thread or the name of the plugin or mod?

WP

Joachim Müller


Davide Renda

Seems quite interesting and I'm currently using in one of my galleries. The embed code is somewhere hidden on the picture information, but imho, less intrusive then "copy/past bbcode" plugin.

lifter

Mod looks great - 20x better than the link to another mod GauGau posted, so thanks for adding BBC support.  Unless I'm missing something though, after making some selections to how I would like the embed code to parse, nothing appears in the link box (on your site anyway).  I'm going to try and test it on mine but I'm not sure what's wrong that way.

I'm wondering if you could program another similar type of mod that would allow you to copy and paste a batch code for thumbnails/links of an entire album, and/or also for you to open up some sort of album browser (could look similar to the browser that you can use when using the 'batch add files' (searchnew.php / minibrowser.php) to grab the code for multiple pics at once!  That would be amazing!  :o

lifter

Tried to install this on my site and it doesn't work....  :'(

I installed the plugin, went to a gallery page, scrolled down past the image and there is no change... no selection for embed codes/etc... do I need to enable it somewhere?

wperry1

Quote from: lifter on September 02, 2007, 08:15:41 PM
Mod looks great - 20x better than the link to another mod GauGau posted, so thanks for adding BBC support.  Unless I'm missing something though, after making some selections to how I would like the embed code to parse, nothing appears in the link box (on your site anyway).  I'm going to try and test it on mine but I'm not sure what's wrong that way.

The one on my site should be working now.  I was working on adding some options (Size, link target, etc...) but time has been sparse so I never finished.  I put the one on my site back to the original (HTML/BBC) version and it is working again.

Quote from: lifter on September 02, 2007, 08:15:41 PM
I'm wondering if you could program another similar type of mod that would allow you to copy and paste a batch code for thumbnails/links of an entire album, and/or also for you to open up some sort of album browser (could look similar to the browser that you can use when using the 'batch add files' (searchnew.php / minibrowser.php) to grab the code for multiple pics at once!  That would be amazing!  :o

When I have some time I will look into this.  It may be beyond my PHP coding ability though.  This little mod is my first bit of PHP beyond "Hello World" so far.

Quote from: lifter on September 02, 2007, 08:42:09 PM
Tried to install this on my site and it doesn't work....  :'(

I installed the plugin, went to a gallery page, scrolled down past the image and there is no change... no selection for embed codes/etc... do I need to enable it somewhere?

It should install like any other plugin...
1. Unzip to your plugins/html_embed
2. Go to Config -> General Settings -> Manage Plugins and click the (i) next to it in the list

The links will show up at the bottom of the file information when you are viewing an image.

WP

lifter

I've installed about 15 other plugins... this one didn't work though  :'(

I see you're no longer trying to have it able to link to the page instead of the picture now though, I'm going to have to look into getting someone to customize it!  :-\

angsikod

This plugin is great!! I have installed the plugin. But I could not see the file information. How to you show the file information?

My coppermine link http://photo.sikod.com

wperry1

Quote from: angsikod on September 13, 2007, 07:28:43 PM
This plugin is great!! I have installed the plugin. But I could not see the file information. How to you show the file information?

Look on the CPG Config page under Image View.  Make sure that "File information is visible by default" is set to yes.

WP

lifter

Quote from: wperry1 on September 13, 2007, 09:51:26 PM
Look on the CPG Config page under Image View.  Make sure that "File information is visible by default" is set to yes.

WP

This was the mistake I made... I didn't realize it would be listed under file information

angsikod

Thanks it shows up now. :)

I have another question. How do you resize the embedded image on the blog?

Joachim Müller


angsikod

Well, anyway to resize the image?

Joachim Müller

Using another mod/plugin: maybe. Unrelated questions should not be asked here. Only question related to this lpugin are allowed here.

wperry1

Quote from: angsikod on September 14, 2007, 04:08:31 AM
Thanks it shows up now. :)

I have another question. How do you resize the embedded image on the blog?

I wrote this to be pretty simple.  It uses the intermediate picture in the embed so the only way to resize the embedded images would be to change the size of your intermediate pictures in CPG.

WP

Basetballjones

Fine job!  This is a wonderful plugin.  I had actually uninstalled coppermine 1.3 something because I could not make it easy enough for my members to embed their media into our own forum-  This plgin makes it as easy as youtube, putfile, etc.

And now that I've seen how you did it, I don't know why I didn't think of it before, brilliant!

Once again, good work, and this should be added or appended to the plugin pack in the future.

jaks

#19
I'm new to Coppermine but I think you saved the zip file wrong. Inside the zip is a folder called plugins then the actual html_embed folder is inside it. It doesn't seem to do anything once installed even on the default theme. Does it work with 1.4.x?