Jump to content


Wrapper problem!


  • You cannot reply to this topic
4 replies to this topic

#1 noobalyzed

    Etomite Forum Newbie

  • Member
  • 30 posts

Posted 19 January 2005 - 08:49 AM

hey all,

I used the wrapper snippet to include php sites into the etomite site, it worked perfectly, but now ive got a problem with a link, this is the link:

[[Wrapper?wurl=http://222.212.202.93/oudprins/gallery.php?album=fotos/prins1/]]

(its an internal site, so u probably cant see it)

Wrapper doesnt seem to see the "?" , cuz that is where it stops and it shows page not available, can some1 help me with this?

Greets,.

Sorry, had to post in other forum, please move my topic?

Edited by noobalyzed, 19 January 2005 - 09:23 AM.


#2 jaredc

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,193 posts

Posted 19 January 2005 - 03:37 PM

The evalSnippets function in the core of Etomite replaces all instances of the "?" with "" (an empty string). I'm not sure what the best solution for this would be but the options seem somewhat limited.

<think type="outloud">
It would appear that the core could be hacked to accomodate this (which I generally think is a bad idea), or, perhaps the wrapper snippet could be modified so that some other character or character set could be used in place of the ? - and then retranslated by the snippet itself...
</think>

#3 noobalyzed

    Etomite Forum Newbie

  • Member
  • 30 posts

Posted 19 January 2005 - 03:42 PM

I solved it ! I just put the link including the "?" as the $durl (the standard 1), after that, i made a new variable and put the rest of the link whats behind the "?" in there..

so u get : [[Wrapper?$var=fotos/prins1/]]

done ! :blink:

#4 jaredc

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,193 posts

Posted 19 January 2005 - 03:46 PM

Good thinking. Glad it works!

#5 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 19 January 2005 - 04:34 PM

One possible reason why your original code wasn't working might be due to how you formatted the snippet call [[Wrapper?wurl=http://222.212.202.93/oudprins/gallery.php?album=fotos/prins1/]] with more than one question mark... As a general rule the question mark signifies the beginning of variables being appended to the URL with ampersands (&) separating individual variable assignments... I haven't checked the parser but have found that you can substitute the initial question mark with an ampersand yet haven't tried using all questions marks... All that being said, you might want to try callling the snippet using
[[Wrapper?wurl=http://222.212.202.93/oudprins/gallery.php&album=fotos/prins1/]] to see if that works... That would give more versatility back to your Wrapper snippet... Just some food for thought... B)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users