Menu

How do you change the $ sign To

Help
2004-01-29
2013-04-17
  • Jason Sellstrom

    Jason Sellstrom - 2004-01-29

    Hi i don't have a tremendous amount of experience in php but i have managed to get the donate button to enable donations in s but how do i get the script to show  sign instead of $ signs on the modules output pages and in the block
        Thanks in advance for any help
             OZaKI

     
    • Dave Lawrence

      Dave Lawrence - 2004-01-29

      Boy it didn't take long for an international problem to pop up. :) 

      Ouch, I wish I thought of this ahead of time. the $ is peppered all over:

      admin/modules/treasury.php
      Line #133, 209, 212

      blocks/block-Donat_o_Meter.php
      Ln #86, 113, 116, 117, 118

      modules/donations/index.php
      Line # 58, 71, 158

      I think that'll do it.  Let me know if I missed any.  In the next revision I'll add a config option to change the monetary symbol.

       
      • MrGummage

        MrGummage - 2004-09-26

        modules/donations/dontations.html line 26
        :)

         
      • Alan

        Alan - 2004-09-27

        I couldn't see a reference to changing the currency which appears in the paypal script.  Apologies if it's already been posted.

        modules/Donations/Donations.html

        change line 41 from :

        <input type="hidden" name="currency_code" value="USD">

        to

        <input type="hidden" name="currency_code" value="GBP">

        Otherwise when your donators get referred to paypal the amount appears in dollars.

         
      • tallon

        tallon - 2004-10-07

        Ok, managed it all except when somone makes a donation, the block-Donat_o_Meter.php still shows the value in $ not . Everything else works except that and I can't find the code. It looks like this bigmofo $10 Oct-7 when it should say bigmofo 10 Oct-7. Can anyone help?

         
        • Dave Lawrence

          Dave Lawrence - 2004-10-08

          Forgot about this one.  This was when I thought I was being all crafty with SQL.  In blocks-Donat_o_Meter.php, around line 86, find this:

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

          You'll want to change it to:

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

          That should do it!

          Dave

           
          • tallon

            tallon - 2004-10-13

            I checked that and I had already changed it. It still shows the amount submitted by a user with a $ and not a  :-(

             
    • Dave Lawrence

      Dave Lawrence - 2004-01-29

      Please let me know what changes you made, if any, regarding the PayPal form used for the actual donation.

       
    • Jason Sellstrom

      Jason Sellstrom - 2004-01-29

      Hi Again,
      Thanks for your help i now have it working s for the button change use GBP instead of USD the module is working at www.clanprovide.co.uk if you want to take a look and it has been tested and everythibng was recieved fine. Many thanks once again :-)

       
    • iceviper

      iceviper - 2004-09-20

      Hi could you explain this for a total noob. I also need to change all dollar signs to pounds. I have added multiple currencies but the donate block still shows dollars

       
      • Dave Lawrence

        Dave Lawrence - 2004-09-20

        Not much else to explain.  The post below shows all the files and line numbers where the "$" appears.  Just replace the "$" with the currency symbol you want.

        https://sourceforge.net/forum/message.php?msg_id=2399485

         
        • Razorsidewalk

          Razorsidewalk - 2006-08-11

          I too wanted to change the $ to £ on my Donations block and also change the USD currency to GBP, but am having trouble finding the right files to edit. On the block i am having trouble changing the $ to £ in the part which says "other amount" when u have a choice of amounts to choose from. Also when u click on the paypal link it comes up in USD and $ currency and im unsure of what code to edit in wat files.

          Can anyone help me here. My site is http://www.tsc.simtu.com the block is on the right hand side half way down.

          Thnx

          Razor

           
    • TuFF Portal

      TuFF Portal - 2004-09-22

      If anyone is having diffulculty with changing this excellent module for UK GBP i have already done all the work to convert it to  if you would like a copy please let me know.

       
      • iceviper

        iceviper - 2004-09-22

        Thanks very much m8 but i got it sorted now.

        thanks again

         
    • aacws

      aacws - 2004-11-13

      Missing $ sign can be found on line 70 in block-Donat_o_Meter.php

       
    • centraexpert

      centraexpert - 2006-12-05

      Hi there i too would like to know how to change the units from $'s to £'s

      Regards Central

       

Log in to post a comment.