July 18, 2012 at 8:43 pm #4634SchokokaeseGuest
I miss the function to change the parameter symbol. Because I want to use Shortcoder to embed tracks from soundcloud.com, but there are some „ % “ in the code from the html 5 player:Code:
For now it would be enough to change it hardcoded, e.g. to „
* “. Or perhaps another save symbol – or maybe more than one, for example „ ** “. Unfortunately, my PHP skills aren’t good enough to change it by myself.July 19, 2012 at 4:17 pm #5939Aakash ChakravarthyKeymaster
I too heard that the “%” symbol is clashing with the content of the shortcode. Ill soon change it in the next version.July 19, 2012 at 8:30 pm #5944AnonymousGuest
Can you say (circa), how long this could take?
Thank you 🙂July 19, 2012 at 8:52 pm #5943AnonymousGuest
Meanwhile, please see if doing an HTML entity works for you. “%” is “” and see if that works.
Thanks!July 20, 2012 at 6:54 pm #5942AnonymousGuest
Thank you very much for your suggestion. It works! With the correct entity
% 😉Code: But by checking this I found a bug:
When you click on the button from an existing shortcode to edit it, the plugin does not only load the existing code. Even in html view it decodes entities! This is not only relevant for users like me, who want to „trick“ the plugin to work with „%“ in the shortcode.
No, as you can see above in the code (in my first posting you can see the original code), also the „&“ in the url are encoded („&“), because the url is a parameter from „http://w.soundcloud.com/player/?“.
Therefore you cannot edit existing shortcodes easily. When you do not save the shortcode anywhere else, you have to search for it in the mysql database. Or even re-encode the shortcode.July 20, 2012 at 7:35 pm #5941AnonymousGuest
I see. Makes sense. Maybe you can try to place the URL on http://bit.ly/ and source it from there instead.August 8, 2012 at 5:57 pm #5940Aakash ChakravarthyKeymaster
This parameter symbol is now changed to %% instead of %.
I think this is the permanent solution for this problem. This will avoid clashes with the native HTML codes.
This is added in the Shortcoder v3.1 Just download/update to it.
- The topic ‘Change parameter symbol?’ is closed to new replies.