Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

need help on including a page with changing params
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=3907
Page 1 of 1

Author:  hirani89 [ 23. Jul 2015, 03:44 ]
Post subject:  need help on including a page with changing params

My supplier is sending out links to buyers upon purchasing an item from my site. Upon successful purchase, my suppliers provides a url custom to the customer to register their warranty.

I want them to view the warranty page on my site. The supplier doest support this.

so on my site i have page called https://mydomain.com/warranty

The supplier sends out emails to buyer with a link after purchase. the link is like this: https://mydomain.com/warranty?src=https://supplierdomain.com/warranty?login=true%26wid=qwerty%26doc=asdf%26token=zxcvb%26lang=en%26loginReq=true%23login

the following parameters have to be different for every user.
wid=qwerty
doc=asdf
token=zxcvb


i want to display this page on my warranty page. where do i put the parameters in the plugin config page?

Thanks for the help. Need this asap. the buyers need to register their products for warranty asap. please help

Author:  TinyWebGallery [ 23. Jul 2015, 09:26 ]
Post subject:  Re: need help on including a page with changing params

So you need to forward

wid=qwerty
doc=asdf
token=zxcvb

from the parent url to the iframe url?

https://mydomain.com/warranty?src=https://supplierdomain.com/warranty?login=true%26wid=qwerty%26doc=asdf%26token=zxcvb%26lang=en%26loginReq=true%23login

The problem is that the src seems to be the only parameter - right?
So parameters can be forwarded but in you case the src parameter would has to be parsed.

So if I understand this right you would need a custom version where the "sub" parameters of src need to be extracted.

Best, Michael

Author:  hirani89 [ 23. Jul 2015, 10:06 ]
Post subject:  Re: need help on including a page with changing params

I tried using ALL, and it passes all the parameters. what i put in that field if i want to pass all the other parameters except src?

Author:  TinyWebGallery [ 23. Jul 2015, 10:15 ]
Post subject:  Re: need help on including a page with changing params

If you use
src=https://supplierdomain.com/warranty?login=true%26wid=qwerty%26doc=asdf%26token=zxcvb%26lang=en%26loginReq=true%23login

than src is the only parameter with the value
https://supplierdomain.com/warranty?login=true%26wid=qwerty%26doc=asdf%26token=zxcvb%26lang=en%26loginReq=true%23login

You need a 2nd level of parsing here which you need to add (by yourself or as a custom extension from me)

best, Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/