|
Joined: May 2006
Posts: 243 Likes: 1
Enthusiast
|
Enthusiast
Joined: May 2006
Posts: 243 Likes: 1 |
Apologies if this has been posted already. I have a user with a shutterfly photo album. It seems that I can include an image from that album if I use html "<img src=..." tags, but using the [img]...[/img] tags do not work, because the url does not contain a .jpg extension. Here's an example from that album: [img] http://im1.shutterfly.com/procsrser...0108JYt2Ldy4I/cwvDm9asA3Lw9atmAbl5etGTDg[/img] If you click on it, you get a page with the image. I cannot use HTML here, so cannot show the picture in-line. Is there a workaround for the problem?
|
|
|
|
Joined: Jun 2006
Posts: 16,367 Likes: 126
|
Joined: Jun 2006
Posts: 16,367 Likes: 126 |
You could make a custom tag and just use [shutterfly][/shutterfly] (or whatever you wanted)
|
|
|
|
Joined: Jun 2006
Posts: 16,367 Likes: 126
|
Joined: Jun 2006
Posts: 16,367 Likes: 126 |
I didn't use the custom tag editor to build this, but this should work... <?php
$export_tags = array (
0 =>
array (
'tag' => 'shutterfly',
'descrip' => 'Shutterfly Image URL',
'prompt' => 'Please enter the URL of the image you wish to embed.',
'regex' => '([a-zA-Z0-9-_]+)',
'markup' => '<img src=\\"\\\\\\\\1\\" alt=\\"-\\" />',
),
);
?>
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
your picture below: just add ?ilovesd.jpg at the end of the shutterfly link.. that will 'fool' the bbcode parser j/k about 'ilovesd' choose what you want there
|
|
|
|
Joined: May 2006
Posts: 243 Likes: 1
Enthusiast
|
Enthusiast
Joined: May 2006
Posts: 243 Likes: 1 |
The "sd" had me scratching for a second. Thanks much, I like it. I just added ?.jpg to the end...
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
cool.. glad it works for you
|
|
|
2 members (Ruben, SenecaFlyer),
929
guests, and
67
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|