Page 1 of 1

Linking inside a WrapURL

Posted: Sun Mar 25, 2007 5:13 am
by Icenor
I was woundering if its possible to link to a page inside a WrapURL (the plugin) page. I have my blog as my primary page. And I'w wrapped mye gallery inside the blog using the WrapURL. But what do I do if I want to direct link to a page in the gallery while still keeping the Wrap function (so my blog surrounds the gallery if someone enters the link).

You can see for yourself here:
You can see the frontpage of my gallery here:
http://gopilot.org/index.php?serendipit ... galleryurl

But what do I need to write as the link if I want to directlink to the (lets say) F16 video. If I just use the regular link to the video, I lose the Wrap function and all I see is the gallery, like here:
http://www.gopilot.org/gallery3/display ... =0&pos=-23

Hope someone can help.

Re: Linking inside a WrapURL

Posted: Sun Mar 25, 2007 2:26 pm
by garvinhicking
Hi!

Phew, that's not an easy thing to do. You would have to edit the wrapurl plugin'S PHP code and create a function that passes extra URL parameters to the wrapurl page like:

Code: Select all

http://gopilot.org/index.php?serendipity[subpage]=galleryurl&serendipity[wrapurlvars]=gallery3/displayimage.php%3Falbum=random%26t=0%26pos=-23[/code

Then in the plugin you need to check that extra wrapurlvars variable, and then the hardest part: You need to make sure that people are not allowed to bypass your URL call to inject their own urls, or you might have security breachs with foreign pages running in your context.

So, did I already mention that this is not an easy thing to do? :)

You might need to create an extra wrapurl page for every special page call you want to do, if you don't want to recode the plugin.

Best regards,
Garvin