Advanced search  

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

Pages: 1 [2]   Go Down

Author Topic: HTML Embedding Plugin  (Read 74830 times)

0 Members and 2 Guests are viewing this topic.

bl4kdev1l

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: HTML Embedding Plugin
« Reply #20 on: February 08, 2008, 06:23:22 pm »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: HTML Embedding Plugin
« Reply #21 on: February 08, 2008, 08:23:36 pm »

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

nazcarpine

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 12
    • Nazcar Multimedia Productions
Re: HTML Embedding Plugin
« Reply #22 on: July 27, 2008, 08:05:55 am »

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

nazcarpine

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 12
    • Nazcar Multimedia Productions
Re: HTML Embedding Plugin
« Reply #23 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.
Logged
nazcarpine.com

Scott O

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: HTML Embedding Plugin
« Reply #24 on: September 08, 2008, 10:33:08 pm »

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.
Logged

brandon0007

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: HTML Embedding Plugin
« Reply #25 on: January 08, 2009, 01:01:29 pm »

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
Logged

Deus

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 153
    • DJ-Daz
Re: HTML Embedding Plugin
« Reply #26 on: January 08, 2009, 06:15:54 pm »

Code: [Select]
$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.
Code: [Select]
<img src=http://localhost/gallery/albums/wpw-20081231/ps3_screenshot14.jpg height=360 width=640>Thanks,
Darron
Logged
https://daz-stuff.uk
DJ tutorials, E-Bikes, Movies and videogames.
(https://daz-stuff.uk/daz/signature.png)

Cmaniac

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 40
Re: HTML Embedding Plugin
« Reply #27 on: July 05, 2009, 01:51:14 pm »

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..

Code: [Select]
$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 ;)
Logged

wutacrock

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 37
Re: HTML Embedding Plugin
« Reply #28 on: January 21, 2011, 03:52:07 am »

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.
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: HTML Embedding Plugin
« Reply #29 on: January 21, 2011, 04:56:22 am »

If you want a version for 1.5.x then you will need to search the boards or code it.
Logged
It is a mistake to think you can solve any major problems just with potatoes.
Pages: 1 [2]   Go Up
 

Page created in 0.026 seconds with 20 queries.