HTML Embedding Plugin - Page 2 HTML Embedding Plugin - Page 2
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

HTML Embedding Plugin

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

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bl4kdev1l

this plugin doesnt work for me i dont know why :S

Joachim Müller

Meaning what? Not a valid report nor is your reply a valid support request. ::)

nazcarpine

Thanks.. this is great plugin. I am using it right now to my site. :)

nazcarpine

I have been thinking of, how can I edit the generated HTML/BB code? I want to add extra code on it like a simple text link, which link back to my site.

Scott O

Quote from: nazcarpine on July 27, 2008, 08:34:07 AM
I have been thinking of, how can I edit the generated HTML/BB code? I want to add extra code on it like a simple text link, which link back to my site.

I would like to do this as well.

brandon0007

I wasn't a fan of the thumbnails and your url code, so I changed it.

Here is an example.

http://i304.photobucket.com/albums/nn183/rememberthesedaysforever/ExampleBBcode.jpg

I just wanted the basic url and full image BBCode.

Thanks for the plugin, though. Works great with the changes I made.  ;D

Deus


$info['Embed URL'] = '<table cellpadding="0" cellspacing="1" border="0">';
$info['Embed URL'] .= '<tr><td>HTML:</td><td><textarea name="htmlcode" class="textinput" rows="3" cols="60" wrap="on"

style="overflow:hidden;height:65px;" onfocus="this.select();" onclick="this.select();"><a href="' . $CONFIG["ecards_more_pic_target"] .

get_pic_url($CURRENT_PIC_DATA, 'fullsize') . '" target="_blank"><img src="' . $CONFIG["ecards_more_pic_target"] . get_pic_url($CURRENT_PIC_DATA, 'fullsize') .

'" border="0"></a></textarea></td></tr>';


I've made a cosmetic change to increase the text inputbox so the whole code is visible.
But I also have a slight problem with the intermediates, I dont use them. So the html out put does'nt show and image, but does link to the correct image when you click the link.

Is there a way of getting the full size image dimensions and adding height= and width= to the final html to around half the size of the original?
I just want to save time typing and calculating the image everytime.
<img src=http://localhost/gallery/albums/wpw-20081231/ps3_screenshot14.jpg height=360 width=640>
Thanks,
Darron
https://daz-stuff.uk
DJ tutorials, E-Bikes, Movies and videogames.
(https://daz-stuff.uk/daz/signature.png)

Cmaniac

Well, I Did a change, too, at the code of this plugin. Sorry for bumping, but I wanted to contribute on that.

Here is the $info section I've implemented on my cpg running this plugin..

$info['Embed URL'] = '<table cellpadding="0" cellspacing="1" border="0">';
$info['Embed URL'] .= '<tr><td>BBCode Normal</td></tr><tr><td><textarea name="bbcode" class="textinput" rows="1" cols="80%" wrap="off" style="overflow:hidden;height:15px;" onfocus="this.select();" onclick="this.select();">[url=' . $CONFIG["ecards_more_pic_target"] . 'displayimage.php?pos=-'.$CURRENT_PIC_DATA['pid'].'][img]' . $CONFIG["ecards_more_pic_target"].get_pic_url($CURRENT_PIC_DATA, 'normal').'[/img][/url]</textarea></td></tr>';
$info['Embed URL'] .= '<tr><td>BBCode thumb:</td></tr><tr><td><textarea name="bbcode" class="textinput" rows="1" cols="80%" wrap="off" style="overflow:hidden;height:15px;" onfocus="this.select();" onclick="this.select();">[url=' . $CONFIG["ecards_more_pic_target"] . 'displayimage.php?pos=-'.$CURRENT_PIC_DATA['pid'].'][img]' . $CONFIG["ecards_more_pic_target"].get_pic_url($CURRENT_PIC_DATA, 'thumb').'[/img][/url]</textarea></td></tr>';
$info['Embed URL'] .= '</table>';


It makes a bbcode link to the actual Picture ID and it has two choices: thumbnail and normal picture.

Also there is a cosmetic change, based on relative size.

Might be a bad coding (I was never a coding expert) but it does the work for me ;)

wutacrock

Anyone know if this will work for 1.5x? I didn't one for 1.5x so thought I would ask if anyone use it for 1.5x.

phill104

If you want a version for 1.5.x then you will need to search the boards or code it.
It is a mistake to think you can solve any major problems just with potatoes.