mpush - why is the photo ID not being passed to the jscript window ?

gregausit

Joined: 2006-05-21
Posts: 7
Posted: Sun, 2008-09-21 05:02

Hi all,

I have searched around to try and figure out why this is not working for me, but can't quite fine the anser, so I want to ask a few things to see if others know what I am looking for, first will be why my dirty hack on a template does not quite get the result I need, other will be more general questions to improve the hack or maybe fine out if there is a better solution :)

I have used both Gallery 1 and 2, I includes an "mpush" option out of the box, but G2 has some features I can put to use too, in a nutshell I want to use mpush to make my images available to mobiles in teh most effiecient manner.

I edited a template and included this (my account = mpush acc, mydomain = yep, the domain, my caption is the caption)

in the photo.tpl file I have..

{literal}<a href="#" onclick="javascript: window.open('http://mpush.txtnation.com/req.php?account=myaccount&image={/literal}http://mydomain.com/{g->url arg1="view=core.DownloadItem" arg2="itemId=`$theme.item.id`"}{literal}&caption=mycaption','_MPUSH'); return(false);">Send to my mobile</a>
{/literal}

What the above does though, it seems, is only provide the information to mpush to know the page the image is on, it is not sending the actual image URL, it is missing the serialNumber & I am not sure if I should pass that as another argument or if it should really be showing up ?

I did try this on albums that were open to the public and non public (and differing browsers) either way even if a login is required to see the image I guess it should really work, it would be nice to to have the caption dynamic too so it supplies the caption of the actual image to mpush instead of something static.

I also searched around to see if someone had maybe made a module, or ported across the one from G1 too G2, but after more than a day on this, I am about to give up and just use G1.

Thanks in advance for any help, pointers or solutions.