Not display "$" of the index
- GK User
- Thu Dec 02, 2010 3:58 pm
Hi,
My FC said that the index not price, no need to show "$" in front of the index.
How to solve it.
Thanks!
Linda
My FC said that the index not price, no need to show "$" in front of the index.
How to solve it.
Thanks!
Linda
-
- Fresh Boarder
- teitbite
- Sun Dec 05, 2010 3:49 am
Hi
Can I please see it on the site ?
Can I please see it on the site ?
-
- Moderator
- GK User
- Mon Dec 06, 2010 12:30 pm
my website is http://www.skytrend-immigration.hk/
not display "$","¥","JP¥","NT$","UK£"
恒生指数 $23,237.69 ▼82.83 (-0.36%)
恒生国企 $12,804.77 ▼132.33 (-1.02%)
上证综指 ¥2,857.18 ▲14.75 (0.52%)
深证成指 ¥12,422.78 ▼20.21 (-0.16%)
标准普尔500指数 1,224.71 ▲3.18 (0.26%)
日经225指数 JP¥10,167.23 ▼11.09 (-0.11%)
台湾加权指数 NT$8,702.23 ▲78.22 (0.91%)
富时100指数 UK£57.64 ▲19.14 (0.33%)
not display "$","¥","JP¥","NT$","UK£"
恒生指数 $23,237.69 ▼82.83 (-0.36%)
恒生国企 $12,804.77 ▼132.33 (-1.02%)
上证综指 ¥2,857.18 ▲14.75 (0.52%)
深证成指 ¥12,422.78 ▼20.21 (-0.16%)
标准普尔500指数 1,224.71 ▲3.18 (0.26%)
日经225指数 JP¥10,167.23 ▼11.09 (-0.11%)
台湾加权指数 NT$8,702.23 ▲78.22 (0.91%)
富时100指数 UK£57.64 ▲19.14 (0.33%)
-
- Fresh Boarder
- GK User
- Mon Dec 06, 2010 1:25 pm
I think the only way is modify file tmpldefault.php before line 81:
You need to add some php code to replace the unwanted chars. Replace line 81 with something like this :
<span class="gks_value"><?php $tmp = parsedData[$i][3]; $tmp=str_replace("£","", $tmp); echo tmp; ?></span>
Probably istead of '£' char you need to use ascii code or html number (look here: http://www.ascii.cl/htmlcodes.htm)
- Code: Select all
<span class="gks_value"><?php echo $this->parsedData[$i][3]; ?></span>
You need to add some php code to replace the unwanted chars. Replace line 81 with something like this :
<span class="gks_value"><?php $tmp = parsedData[$i][3]; $tmp=str_replace("£","", $tmp); echo tmp; ?></span>
Probably istead of '£' char you need to use ascii code or html number (look here: http://www.ascii.cl/htmlcodes.htm)
-
- Platinum Boarder
- GK User
- Tue Mar 08, 2011 4:21 pm
Thanks!
But it doesn't work!
But it doesn't work!
-
- Fresh Boarder
- GK User
- Thu Aug 04, 2011 1:43 pm
I have the same problem. I don`t need $ or € etc. index are points. I want nothing before the points...
Someone can help?
Someone can help?
-
- Expert Boarder
- GK User
- Wed Aug 10, 2011 12:04 pm
I have update the module. In the new August Template there is no $ character in the stock modul. But at my modul is it. Why?
Link
Link
-
- Expert Boarder
- GK User
- Fri Dec 09, 2011 4:16 pm
No one have a reason?
-
- Expert Boarder
- teitbite
- Sat Dec 10, 2011 1:48 am
Hi
Can You please send me FTP access to Your site ? I'll rempve it from module code directly.
Can You please send me FTP access to Your site ? I'll rempve it from module code directly.
-
- Moderator
9 posts
• Page 1 of 1