GetSimple Support Forum

Full Version: specify album id in embed code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm posting gallery slideshows on my website using 23hq.com (basicly an alternative to Flickr ) They have a nice looking slideshow option, with embed code. Embed code looks like this:

Code:
<iframe src="http://www.23hq.com/23/slideshow-inline?album_id=12004949" frameborder="0" style="border:0;" height="550" width="700"></iframe>

The code seems to be mostly the same for all albums, apart from the album_id.
So I made two components, one with:
Code:
<iframe frameborder="0" height="800" src="http://www.23hq.com/23/slideshow-inline?album_id=

And the other one with
Code:
" style="border:0;" width="800"></iframe>

Then I use the dynpages plugin to post these two codes in a page. Now I only need the the album_id between these two components. It looks like this:
Code:
{% 23hq-1 %}12004949{% 23hq-2 %}

Is there an easier/faster way?
Component 23hq:
Code:
<iframe frameborder="0" height="800" src="http://www.23hq.com/23/slideshow-inline?album_id=<?php
  global $args;  
  echo $args[0];
?>" style="border:0;" width="800"></iframe>

using it:
Code:
{% 23hq 12004949 %}

(Not tested.)

Info here:
http://mvlcek.bplaced.net/get-simple/dynpages
(2013-07-02, 00:31:10)Carlos Wrote: [ -> ]Component 23hq:
Code:
<iframe frameborder="0" height="800" src="http://www.23hq.com/23/slideshow-inline?album_id=<?php
  global $args;  
  echo $args[0];
?>" style="border:0;" width="800"></iframe>

using it:
Code:
{% 23hq 12004949 %}

(Not tested.)

Info here:
http://mvlcek.bplaced.net/get-simple/dynpages

Thanks! It works.
This also seems to work with Vimeo:

Component vimeo:
Code:
<iframe src="http://player.vimeo.com/video/<?php
  global $args;  
  echo $args[0];
?>?portrait=0&amp;badge=0&amp;color=ffffff" width="800" height="600" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>

Using it:
Code:
{% vimeo 68037726 %}