quick [IMG] tags - G2

whodah
whodah's picture

Joined: 2003-05-17
Posts: 96
Posted: Sat, 2005-06-11 22:48

hello!

i'd like to build something that users can copy/paste really easily rendered bbcode so they can post their gallery pictures on most forum software.

i had it working on G1:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=20099&highlight=

and i am now attempting to do this for G2! :)

my first question - has it been done? i've searched the forums and havn't seen it, but i'd hate for me to have just used bad search terms...

if i'm not reinventing the wheel - on to my variable questions! :)

i see that if i call:
{g->image item=$child image=$child.thumbnail class="giThumbnail"}

that i will be returned a rendered thumbnail of that image. i'm after just the location of the image itself in http form, not a full rendered < i m g > tag.

what can i call to get:

  1. the address of the thumbnail
  2. the address of the resized picture (if it exists of course)
  3. the address of the full picture

thanks a ton! :)[/]

 
whodah
whodah's picture

Joined: 2003-05-17
Posts: 96
Posted: Sun, 2005-06-12 02:22

found #3:
{g->url arg1="view=core.DownloadItem" arg2="itemId=`$child.id`"}

 
whodah
whodah's picture

Joined: 2003-05-17
Posts: 96
Posted: Sun, 2005-06-12 02:35

#1:
{g->url arg1="view=core.DownloadItem" arg2="itemId=`$child.thumbnail.id`"}

 
whodah
whodah's picture

Joined: 2003-05-17
Posts: 96
Posted: Sun, 2005-06-12 09:07

ok, i'm officially stuck...

i cannot figure out how to get the url to the resized image from main.php...

:(

any help would be appreciated!

:)

 
turnbulm

Joined: 2004-10-03
Posts: 431
Posted: Sun, 2005-06-12 11:26

Have you seen the URL generator module from the contributions page? Have a look here - it seems to do what you're after.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-06-12 11:36

yeah, the module is neat. don't know if it's up to date though.

 
whodah
whodah's picture

Joined: 2003-05-17
Posts: 96
Posted: Sun, 2005-06-12 15:36

very cool - that sooooooooooo get's me going! i'll continue the conversation over there after i modify a few things in it! :)

thx! :D