Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Nuke Treasury
Author Message
gandlers
New Member
New Member



Joined: Jan 07, 2007
Posts: 22

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

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! ]
 
View user's profile Send private message
Gremmie
Former Moderator in Good Standing



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

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

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?

_________________
GCalendar - An Event Calendar for PHP-Nuke
Member_Map - A Google Maps Nuke Module 
View user's profile Send private message
gandlers







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

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
 
Gremmie







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

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 £ ?
 
gandlers







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

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

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
 
Gremmie







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

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.
 
gandlers







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

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
 
Gremmie







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

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! ]

I suspect your pound symbol isn't allowed in the character set in your DOCTYPE or something, so you should use an entity instead.
 
Gremmie







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

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 ';
 
gandlers







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

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
 
Gremmie







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

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
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Nuke Treasury

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©