X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Escaping { in custom module code (https://forum.x-cart.com/showthread.php?t=70200)

haleystudio 10-15-2014 07:36 AM

Re: Escaping { in custom module code
 
Okay, getting really close! New output:

(snip) publisher:& # 039; (snip)
How do I make flexy not encode my quotes into & # 039; ? (spaces added so it won't encode here)

tony_sologubov 10-15-2014 08:16 AM

Re: Escaping { in custom module code
 
Aw, you should call your getShareCode() method in template like this {getShareCode():h} as Flexy encodes special chars by default. :h modifier disables such encoding.

haleystudio 10-15-2014 09:05 AM

Re: Escaping { in custom module code
 
Aha! That worked great. The code for the Newsletter (MailChimp) section looks like it's working like it should.

One last tiny thing. I have the code looking great in the source view. But the icons are not displaying on the site (they are drawn by the script).
EDIT: they are showing up in Safari, not Firefox or IE (all on PC). But the links don't seem to work well on Safari. /EDIT

Site: https://7sorrowsrosaries.com/ -- section is "Share this page" on the bottom of the left column.

I put the exact same code on a test page, here: (no compiler, this is straight html) http://haleystudio.com/script-test.html and it works fine (links work too).

AND -- get this -- when I saved the page from 7sorrowsrosaries.com as "save as full web page" and then previewed it, without changes, in the same browser, NO PROBLEM. Can't tell if the links are working from there... but at least the icons are displaying. Here's the screenshot.

http://haleystudio.com/images/clients/share-gif.gif

totaltec 10-15-2014 11:55 AM

Re: Escaping { in custom module code
 
I think the buttons do not display, because you have included an http: reference to the script, and the link to the page above is https.

haleystudio 10-16-2014 05:13 AM

Re: Escaping { in custom module code
 
Okay! Thank you all SO MUCH.

It's still not working great -- but from here on I think it's a Javascript thing vs. an X-Cart thing, so I'll take those troubles elsewhere!


All times are GMT -8. The time now is 04:01 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.