PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > ReviewPost Pro Support Forums > ReviewPost Installation & Upgrades

ReviewPost Installation & Upgrades If you're having problems getting ReviewPost Pro to work or receiving errors while running RP, seek help here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old July 2nd, 2004, 05:10 AM   #1 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
changing currency in RP 2.8d?

Hi

I just copied/ftp the few changed files of 2.8d over my 2.8c fresh installation, as instructed inthe update information in this forum.

No I try to change the currency from USD into Euro.

I achieved this for the avarage price, but not for the reviews itself.

in review.php I have now the following:

----------------

$username = addslashes( $User['username'] );
$review = addslashes( $review );
$pros = addslashes( $pros );
$cons = addslashes( $cons );
$price = str_replace( "€", "", $price );
$price = str_replace( "€", "", $price );
if ( !is_numeric($price) ) $price = 0;

-----------------------------

But it does not work. It still shows the USD sign in the reviews. How to fix this?
snoopy5 is offline   Reply With Quote
Old July 3rd, 2004, 07:05 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
I believe the price is handled in showproduct. There are two instances of the US format in that file.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 5th, 2004, 03:08 AM   #3 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
o.k., thanks, I found it. It was the line:

$price[$itemnum] = "\$" . number_format( $priceline, 2 );

I changed it to:

$price[$itemnum] = "€" . number_format( $priceline, 2 );


For the average price I changed earlier already in showproduct.php this line:

$avgprice = "$" . number_format( $avgprice, 2 );

to this line:

$avgprice = "€" . number_format( $avgprice, 2 );
snoopy5 is offline   Reply With Quote
Old May 9th, 2005, 08:09 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: Oct 2004
Location: Indonesia
Posts: 50
thanks, this thread is usefull to me. I have one more thing to ask about the currency. How to change the writing form. FYI: In our country, we use dot instead of comma, for example: 100.000 instead of 100,000 to write one hundred thousand. Currently, if user writes using dot then the number after dot will not appeared. Pls help.
etaslim is offline   Reply With Quote
Old May 10th, 2005, 06:14 AM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
You dont write the dot

if ( $askprice > 0 ) $askprice = "{$Globals['currency']}" . number_format( $askprice, 2 );


We use php's build in number formatting. You can change it by changing the arguement a bit. More info found here

http://us3.php.net/manual/en/function.number-format.php
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old September 29th, 2005, 05:01 PM   #6 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
Quote:
Originally Posted by omegatron
You dont write the dot

if ( $askprice > 0 ) $askprice = "{$Globals['currency']}" . number_format( $askprice, 2 );


We use php's build in number formatting. You can change it by changing the arguement a bit. More info found here

http://us3.php.net/manual/en/function.number-format.php
For the sake of others: I just made changes for this in showproduct.php for European appearing of numbers. I did it for my classifieds 2.4.2 installation, but I guess it is the same in Reviewpost.

In Euro you have the numbers appearing like this: 1.500,00 (in USD this would be 1,500.00)

Change this (US appearance):

number_format( $askprice, 2 );

to this (European appearance):

number_format( $askprice, 2, ',', '.');
snoopy5 is offline   Reply With Quote
Old September 29th, 2005, 05:26 PM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
yes correct the php number format
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old April 1st, 2006, 12:41 AM   #8 (permalink)
Member
 
Join Date: Mar 2006
Posts: 88
what would you do to give the option for cdn? we still use. Is it possible to give mutiple currency options. IE USD, CDN, EURO?
RCHobbies is offline   Reply With Quote
Old April 1st, 2006, 06:36 AM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
This is a way old thread. The program has us euro and british pounds by default basically to add canadian you would need to hack your showcat and showproduct files to give that option.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old April 1st, 2006, 11:25 AM   #10 (permalink)
Member
 
Join Date: Mar 2006
Posts: 88
Perhaps I was hasty in this purchase. I can't figure out where the reference is. I'll start another thread to discuss it then.
RCHobbies is offline   Reply With Quote
Old April 1st, 2006, 05:37 PM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
We have as stated Euro US and Pounds in the classifieds not canadian
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Country Currency molieman Classifieds Suggestions 5 April 1st, 2006 05:36 PM
changing layout iml How Do I? - vBulletin 3.0.X 4 February 1st, 2005 08:16 AM
Currency problem Chris2707 Classifieds Bug Reports 6 December 1st, 2004 11:11 AM
Resizing/Thumbs and Currency kommuni Classifieds Bug Reports 19 October 9th, 2004 02:30 PM
How can I change the currency snaketorque Classifieds Installation & Upgrades 16 July 23rd, 2004 12:28 PM


All times are GMT -5. The time now is 03:51 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0