rejetto forum

RAWR-Player and special characters

ladiko · 29 · 17160

0 Members and 1 Guest are viewing this topic.

Offline ladiko

  • Occasional poster
  • *
    • Posts: 75
    • View Profile
@dayletter: why do you change the template-file to submit the whole path to the rawr-previewbox.js as variable +content+ instead of only the filename as before? what is the effort?

so in rawr-previewbox you also changed this to get it working:
data=\"http://"+infoHost+infoFolder+escape(content)+"\" to data=\""+content+"\" and
value=\"http://"+infoHost+infoFolder+escape(content)+"\" to value=\""+content+"\" and
src=\"http://"+infoHost+infoFolder+escape(content)+"\" to src=\""+content+"\" in line 57 and 68. one effort is a little bit more code in the template, but 3times less code in js-file, but that couldnt be all?
« Last Edit: December 02, 2007, 01:30:59 PM by ladiko »


Offline day

  • Occasional poster
  • *
    • Posts: 65
    • View Profile
@dayletter: why do you change the template-file to submit the whole path to the rawr-previewbox.js as variable +content+ instead of only the filename as before? what is the effort?

so in rawr-previewbox you also changed this to get it working:
data=\"http://"+infoHost+infoFolder+escape(content)+"\" to data=\""+content+"\" and
value=\"http://"+infoHost+infoFolder+escape(content)+"\" to value=\""+content+"\" and
src=\"http://"+infoHost+infoFolder+escape(content)+"\" to src=\""+content+"\" in line 57 and 68. one effort is a little bit more code in the template, but 3times less code in js-file, but that couldnt be all?

As you know, in the unmodified template,
the [file.mp3] section had already used the "whole path" form, while the other 3 sections had not.
Therefore, this is to make things a little clearer.

Besides, since infoFolder == %folder%, which can be "unencoded" (eg. having some chinese characters in it),
may cause the player to be not working.


Offline ladiko

  • Occasional poster
  • *
    • Posts: 75
    • View Profile
ok i didnt know that this was the only exception, cause i only checked which part you changed. not that you change all urls linking to a chinese trojan :P your template is working for me, but i think if chinese is working, european special letters should too - so your language seems to be "the hardest" crunchpoint


Offline day

  • Occasional poster
  • *
    • Posts: 65
    • View Profile
wow i didn't know there was a %item-full-url% symbol before the new build came out.
now we can use %item-full-url% to replace http://%host%%encoded-folder%%item-url%.


Offline Giant Eagle

  • Moderator
  • Tireless poster
  • *****
    • Posts: 535
  • >=3 RAWR!
    • View Profile
    • RAWR-Designs.com
Quote from: dayletter
As you know, in the unmodified template,
the [file.mp3] section had already used the "whole path" form, while the other 3 sections had not.
Therefore, this is to make things a little clearer.

The main reason why the full item url is fed to the rawr player, is to correctly enable the direct link creation and to fix some bugs with the search results.


Offline ladiko

  • Occasional poster
  • *
    • Posts: 75
    • View Profile
is somebody able to play a song in flash player that has a & in it's file name? if yes, please tell me with which settings oO


Offline TSG

  • Moderator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
If you do not url encode that might happen... cause & is a separator in flash vars. Same as url variables. ?var&var&var


Offline ladiko

  • Occasional poster
  • *
    • Posts: 75
    • View Profile
"Encode non-ASCII characters" is enabled, but & is an ascii character
hmm ... so i need escape() or what?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
well, you are right, & should be escaped only if it's after "?"
also other characters should not be encoded before "?", i will fix this in next beta


Offline felldownawell

  • Occasional poster
  • *
    • Posts: 1
    • View Profile
is somebody able to play a song in flash player that has a & in it's file name? if yes, please tell me with which settings oO

has this been resolved?  what adjustments do i need to make?  thanks.


Offline parade

  • Tireless poster
  • ****
    • Posts: 138
    • View Profile
Could anybody please explain to me the changes to make in the TOG? (Rawr-Player and TPL)
As I have made some changes in the ToG for myself it would be better for to know the changes to make than get a complete new TPL.

Thank you very much.
parade


Offline TSG

  • Moderator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
Can you test the Beta of our new template for me? That has a redone preview box method.



This is the code i intend to use in the next ToG and Terayon.
« Last Edit: February 29, 2008, 02:49:31 PM by Giant Eagle »


Offline parade

  • Tireless poster
  • ****
    • Posts: 138
    • View Profile
Can you test the Beta of our new template for me? That has a redone preview box method.

[This is the code i intend to use in the next ToG and Terayon.
As you know I tested it and it works with german characters but not with & and +.

But as I will still use my modified ToG for some time, I am interested to know, where I have to make in changes in ToG, to make it work there too.


Offline TSG

  • Moderator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
It's complicated. I really can't explain it. Wait for the next release of the ToG. It will take me some time to overhaul it anyway.

Read my reply in the rawr-template thread.