PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
gandlers
New Member
New Member


Joined: Jan 07, 2007
Posts: 19

PostPosted: Sun Sep 30, 2007 6:40 am Reply with quote Back to top

Hey guys,

Probably being retard, but the currency symbol on our Donation block is showing as a '?' in a diamond rather than '£'. I downloaded the nuketreasury2006 block from here and uploaded the UK version.

I thought it may be a theme related issue as we are using a custom theme from uberthemes, but it also occurs on the standard themes too.

Anyone have any ideas.

Gandlers
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Sun Sep 30, 2007 11:09 am Reply with quote Back to top

I did a "view source" on your page and there is indeed a ? coming out. Is it possible you have to go into the nuke treasury configuration and choose what currency symbol you want first?
View user's profile Send private message
gandlers
New Member
New Member


Joined: Jan 07, 2007
Posts: 19

PostPosted: Sun Sep 30, 2007 1:33 pm Reply with quote Back to top

there isnt an option for the currency symbol.

There were two folders in the downlaod, UK and US. I have uploaded the UK files and checked the PHP and there are £ symbols where they should be, but the d*** ? appears instead. Not being a web guru im a little out of my depth....

G
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Sun Sep 30, 2007 1:42 pm Reply with quote Back to top

Where did you download this? I found only NukeTreasury1.1 here in the downloads and it doesn't have a UK block.

If I could see the block code I might be able to help. If the pound symbol is just sitting in some string in the block, have you tried replacing it with the entity £ ?
View user's profile Send private message
gandlers
New Member
New Member


Joined: Jan 07, 2007
Posts: 19

PostPosted: Sun Sep 30, 2007 2:44 pm Reply with quote Back to top

I downloaded it from this very site....
Only registered users can see links on this board!
Get registered or login to the forums!


there are 2 folders, UK and US with blocks, admin, modules folders. So I used the UK, there are a few places where there is reference to the £ symbol in the donatometer block and in the donations module. They appear to be exactly the same in the US version but with the $ sign instead like below:

Code:

$DM_GOAL = sprintf('£%.02f', $row_Recordset2['value']);


Not sure what you mean about the &pound entity; it's all dutch to me....lol.
Thanks for all your help gremmie.

G
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Sun Sep 30, 2007 3:09 pm Reply with quote Back to top

Thanks for the link.

I dunno, try this. In the block-Donat_o_Meter.php file, everywhere you see a £, replace it with £

If you don't want to attempt this, PM me your email and I'll send you a file with the changes to try.
View user's profile Send private message
gandlers
New Member
New Member


Joined: Jan 07, 2007
Posts: 19

PostPosted: Sun Sep 30, 2007 3:27 pm Reply with quote Back to top

OHHHHHHHHHHHHHHHHHHHHHHHHHHH

well, it changed the output, but this is a cut and paste of what happened

Code:

September“s Goal:     &pound100.00
Due Date:    Sep 30
Amount in:    &pound80.00
Balance:    &pound76.88
Left to go:    &pound23.12


so it kind of worked, it got rid of the ? in the diamond anyway....lol

So i returned it to how it was and this is what we get:
Code:

September“s Goal:     �100.00
Due Date:    Sep 30
Amount in:    �80.00
Balance:    �76.88
Left to go:    �23.12


there is use of the £ symbol elsewhere but it is used with the concat command and has a \ after it, not sure what this means, but might it be that the £ and dollar are getting confused and needs some sort of delimiting character???

Code:

$query_Recordset3 .= 'CONCAT(\'£\',SUM(mc_gross)) AS amt ';


cheers

G
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Sun Sep 30, 2007 3:37 pm Reply with quote Back to top

You have to replace it with £

Notice the trailing semicolon. Try that.

As an aside, here is a list of HTML entities:
Only registered users can see links on this board!
Get registered or login to the forums!


I suspect your pound symbol isn't allowed in the character set in your DOCTYPE or something, so you should use an entity instead.
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Sun Sep 30, 2007 3:40 pm Reply with quote Back to top

And replace it everywhere, even in the CONCAT SQL statement (there are 2 such statements I think).

Here is an example of how to do one of them:

Code:

$query_Recordset3 .= 'CONCAT(\'£\',SUM(mc_gross)) AS amt ';
View user's profile Send private message
gandlers
New Member
New Member


Joined: Jan 07, 2007
Posts: 19

PostPosted: Mon Oct 01, 2007 12:41 am Reply with quote Back to top

Gremmie...

you sir are a genius!!!

Thank you so much, I was a little out of my depth to say the least, fumbling round in the dark on my own would have yielded negative results.
Now if only I actually understood the change I had make and what this DOCTYPE wizardry you speak of is all about.

Still, they say ignorance is bliss!!!

Thanks once again

G
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Mon Oct 01, 2007 6:59 am Reply with quote Back to top

Well I'm not sure I understand it either, LOL. Something to do with RavenNuke switching to XHTML probably, and the character set we picked for the document. I think XHMTL is more strict about these things. I'll research it a bit more "in my spare time". Smile
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum