This topic is locked
[SOLVED]

 Vacation Project

3/17/2011 2:32:50 PM
PHPRunner General questions
M
mattg author

Hi,
Just got hold of this fantastic product.

I am creating a project based on the Vacation template. After I login in the browser the next page dispalyed lists the property for rent.

On the left hand side there is an option to 'Search By Price' with a list underneath.

This is dispalyed in $ (dollars) and I would like it to display in € (euros).
Any advice would be most welcome.
Thanks in advance
MattG

Sergey Kornilov admin 3/17/2011

MattG,
currency symbol needs to be changed manually in two places:

  • vacproperties table list page (in Visual Editor)
  • in Description field of the same table. This change needs to be made right in the database.

M
mattg author 3/21/2011

Thanks for reply and sorry for delay in getting back.
I am quite new to this so may need a bit more help.

  • vacproperties table list page (in Visual Editor) - Whereas on most other items i can double click and adjust accordingly on this one i cant. The box appears to be the one with 'row00strMenuvalue' in and does nothing when i double click it. How do change this?
  • in Description field of the same table. This change needs to be made right in the database. - Am i supposed to use something like phpMyAdmin to make changes in database? or something else
    Sorry for ignorence but I am still learning.
    Thanks again, in advance
    Mattg


    MattG,
    currency symbol needs to be changed manually in two places:
  • vacproperties table list page (in Visual Editor)
  • in Description field of the same table. This change needs to be made right in the database.

Sergey Kornilov admin 3/21/2011

To modify the menu on the left side of vacproperties List page ('row00strMenuvalue' box) proceed to Events Editor and modify BeforeDisplay event. Here is the code snippet in question:

$strMenu.="<table width=150 border=0><tr><td align=left height=20 class=blackshade><Font face=Tahoma><b>&nbsp;Search By Price</b></Font></td></tr>";

$strMenu.="<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<Font face=Tahoma><a href=vacproperties_list.php?ctlSearchFor=&srchOptShowStatus=0&ctrlTypeComboStatus=0&srchWinShowStatus=0&a=integrated&id=1&criteria=and&value11=500&field1=FromPrice&option1=Less+than>$500 or Less</a></font></td></tr>";

$strMenu.="<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<Font face=Tahoma><a href=vacproperties_list.php?ctlSearchFor=&srchOptShowStatus=0&ctrlTypeComboStatus=0&srchWinShowStatus=0&a=integrated&id=1&criteria=and&value11=1000&field1=FromPrice&option1=Less+than>$1,000 or Less</a></font></td></tr>";

$strMenu.="<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<Font face=Tahoma><a href=vacproperties_list.php?ctlSearchFor=&srchOptShowStatus=0&ctrlTypeComboStatus=0&srchWinShowStatus=0&a=integrated&id=1&criteria=and&value11=1500&field1=FromPrice&option1=Less+than>$1,500 or Less</a></font></td></tr>";

$strMenu.="<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<Font face=Tahoma><a href=vacproperties_list.php?ctlSearchFor=&srchOptShowStatus=0&ctrlTypeComboStatus=0&srchWinShowStatus=0&a=integrated&id=1&criteria=and&value11=2000&field1=FromPrice&option1=Less+than>$2,000 or Less</a></font></td></tr>";

$strMenu.="<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<Font face=Tahoma><a href=vacproperties_list.php?ctlSearchFor=&srchOptShowStatus=0&ctrlTypeComboStatus=0&srchWinShowStatus=0&a=integrated&id=1&criteria=and&value11=2500&field1=FromPrice&option1=Less+than>$2,500 or Less</a></font></td></tr>";

$strMenu.="<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<Font face=Tahoma><a href=vacproperties_list.php?ctlSearchFor=&srchOptShowStatus=0&ctrlTypeComboStatus=0&srchWinShowStatus=0&a=integrated&id=1&criteria=and&value11=3000&field1=FromPrice&option1=Less+than>$3,000 or Less</a></font></td></tr>";

$strMenu.="<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<Font face=Tahoma><a href=vacproperties_list.php?ctlSearchFor=&srchOptShowStatus=0&ctrlTypeComboStatus=0&srchWinShowStatus=0&a=integrated&id=1&criteria=and&value11=3500&field1=FromPrice&option1=Less+than>$3,500 or Less</a></font></td></tr>";

$strMenu.="<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<Font face=Tahoma><a href=vacproperties_list.php?ctlSearchFor=&srchOptShowStatus=0&ctrlTypeComboStatus=0&srchWinShowStatus=0&a=integrated&id=1&criteria=and&value11=4000&field1=FromPrice&option1=Less+than>$4,000 or Less</a></font></td></tr>";

$strMenu.="<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<Font face=Tahoma><a href=vacproperties_list.php?ctlSearchFor=&srchOptShowStatus=0&ctrlTypeComboStatus=0&srchWinShowStatus=0&a=integrated&id=1&criteria=and&value11=45000&field1=FromPrice&option1=Less+than>$4,500 or Less</a></font></td></tr>";

$strMenu.="<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<Font face=Tahoma><a href=vacproperties_list.php?ctlSearchFor=&srchOptShowStatus=0&ctrlTypeComboStatus=0&srchWinShowStatus=0&a=integrated&id=1&criteria=and&value11=5000&field1=FromPrice&option1=Less+than>$5,000 or Less</a></font></td></tr>";

$strMenu.="<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<Font face=Tahoma><a href=vacproperties_list.php?ctlSearchFor=&srchOptShowStatus=0&ctrlTypeComboStatus=0&srchWinShowStatus=0&a=integrated&id=1&criteria=and&value11=5000&field1=FromPrice&option1=More+than>$5,000 or More</a></font></td></tr></table>";


To modify description logon as an admin, proceed to vacproperties table, pick the record and click 'Edit' link. Then edit 'Description' field.

M
mattg author 3/24/2011

Thank you for all your help.
Now working thanks to you.
MattG



To modify the menu on the left side of vacproperties List page ('row00strMenuvalue' box) proceed to Events Editor and modify BeforeDisplay event. Here is the code snippet in question:

$strMenu.="<table width=150 border=0><tr><td align=left height=20 class=blackshade><Font face=Tahoma><b>&nbsp;Search By Price</b></Font></td></tr>";

$strMenu.="<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<Font face=Tahoma><a href=vacproperties_list.php?ctlSearchFor=&srchOptShowStatus=0&ctrlTypeComboStatus=0&srchWinShowStatus=0&a=integrated&id=1&criteria=and&value11=500&field1=FromPrice&option1=Less+than>$500 or Less</a></font></td></tr>";

$strMenu.="<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<Font face=Tahoma><a href=vacproperties_list.php?ctlSearchFor=&srchOptShowStatus=0&ctrlTypeComboStatus=0&srchWinShowStatus=0&a=integrated&id=1&criteria=and&value11=1000&field1=FromPrice&option1=Less+than>$1,000 or Less</a></font></td></tr>";

$strMenu.="<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<Font face=Tahoma><a href=vacproperties_list.php?ctlSearchFor=&srchOptShowStatus=0&ctrlTypeComboStatus=0&srchWinShowStatus=0&a=integrated&id=1&criteria=and&value11=1500&field1=FromPrice&option1=Less+than>$1,500 or Less</a></font></td></tr>";

$strMenu.="<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<Font face=Tahoma><a href=vacproperties_list.php?ctlSearchFor=&srchOptShowStatus=0&ctrlTypeComboStatus=0&srchWinShowStatus=0&a=integrated&id=1&criteria=and&value11=2000&field1=FromPrice&option1=Less+than>$2,000 or Less</a></font></td></tr>";

$strMenu.="<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<Font face=Tahoma><a href=vacproperties_list.php?ctlSearchFor=&srchOptShowStatus=0&ctrlTypeComboStatus=0&srchWinShowStatus=0&a=integrated&id=1&criteria=and&value11=2500&field1=FromPrice&option1=Less+than>$2,500 or Less</a></font></td></tr>";

$strMenu.="<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<Font face=Tahoma><a href=vacproperties_list.php?ctlSearchFor=&srchOptShowStatus=0&ctrlTypeComboStatus=0&srchWinShowStatus=0&a=integrated&id=1&criteria=and&value11=3000&field1=FromPrice&option1=Less+than>$3,000 or Less</a></font></td></tr>";

$strMenu.="<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<Font face=Tahoma><a href=vacproperties_list.php?ctlSearchFor=&srchOptShowStatus=0&ctrlTypeComboStatus=0&srchWinShowStatus=0&a=integrated&id=1&criteria=and&value11=3500&field1=FromPrice&option1=Less+than>$3,500 or Less</a></font></td></tr>";

$strMenu.="<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<Font face=Tahoma><a href=vacproperties_list.php?ctlSearchFor=&srchOptShowStatus=0&ctrlTypeComboStatus=0&srchWinShowStatus=0&a=integrated&id=1&criteria=and&value11=4000&field1=FromPrice&option1=Less+than>$4,000 or Less</a></font></td></tr>";

$strMenu.="<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<Font face=Tahoma><a href=vacproperties_list.php?ctlSearchFor=&srchOptShowStatus=0&ctrlTypeComboStatus=0&srchWinShowStatus=0&a=integrated&id=1&criteria=and&value11=45000&field1=FromPrice&option1=Less+than>$4,500 or Less</a></font></td></tr>";

$strMenu.="<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<Font face=Tahoma><a href=vacproperties_list.php?ctlSearchFor=&srchOptShowStatus=0&ctrlTypeComboStatus=0&srchWinShowStatus=0&a=integrated&id=1&criteria=and&value11=5000&field1=FromPrice&option1=Less+than>$5,000 or Less</a></font></td></tr>";

$strMenu.="<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<Font face=Tahoma><a href=vacproperties_list.php?ctlSearchFor=&srchOptShowStatus=0&ctrlTypeComboStatus=0&srchWinShowStatus=0&a=integrated&id=1&criteria=and&value11=5000&field1=FromPrice&option1=More+than>$5,000 or More</a></font></td></tr></table>";


To modify description logon as an admin, proceed to vacproperties table, pick the record and click 'Edit' link. Then edit 'Description' field.