|
| |||||||
| Design Discuss ways to change the layout and CSS to fit your site. |
![]() |
| | topic widgets |
| | #1 |
| Supporter Join Date: Nov 2009 Posts: 25 | Hi, currently my phone number output look like that: Phone Number:1231231234 I would like to format it to look like that: Phone Number:123-123-1234 I know how to change this in the database with a small php script but should I? I was thinking that it may be better to format the output and only have number in the BD. Thank you |
| | |
| | #2 |
| :) phpLD Support phpLD Administrator Supporter Moderator Join Date: Aug 2006 Location: Nanaimo, BC , Canada Posts: 24,019 | __________________ Attention: For Support Please Read this thread. IF the domain is not listed in your PhpLD users area and it is 3.x You will have to list it before ANY questions are answered. My paypal is rentawebmaster @ gmail.com ^^ if I have helped you help me I need a new laptop PhpLD Recommended Hosting: Here They work with you not against you Live Directory |
| | |
| | #3 |
| Supporter Join Date: Nov 2009 Posts: 25 | Thank for the quick reply. Could you please tell me what pages I need to put that function fix on. Sorry but I have very little experience with PHPLD. Thanks |
| | |
| | #4 |
| :) phpLD Support phpLD Administrator Supporter Moderator Join Date: Aug 2006 Location: Nanaimo, BC , Canada Posts: 24,019 | make a new php file named modifier.format_phone.php in it place Code: Content visible to registered users only. then in the detail.php find {$PHONE_NUMBER|escape|trim} change it to {$PHONE_NUMBER|format_phone:'%s/%s.%s'} __________________ Attention: For Support Please Read this thread. IF the domain is not listed in your PhpLD users area and it is 3.x You will have to list it before ANY questions are answered. My paypal is rentawebmaster @ gmail.com ^^ if I have helped you help me I need a new laptop PhpLD Recommended Hosting: Here They work with you not against you Live Directory |
| | |
| | #5 |
| Supporter Join Date: Nov 2009 Posts: 25 | Thank you so much. I will try it ASAP. |
| | |
| | #6 |
| Supporter Join Date: Nov 2009 Posts: 25 | This {$PHONE_NUMBER|escape|trim} doesn't exist on details.php I replaced it in detail.tpl and the result was a phone number like this 239/643.5544 |
| | |
| | #7 |
| :) phpLD Support phpLD Administrator Supporter Moderator Join Date: Aug 2006 Location: Nanaimo, BC , Canada Posts: 24,019 | change %s/%s.%s to %s-%s-%s __________________ Attention: For Support Please Read this thread. IF the domain is not listed in your PhpLD users area and it is 3.x You will have to list it before ANY questions are answered. My paypal is rentawebmaster @ gmail.com ^^ if I have helped you help me I need a new laptop PhpLD Recommended Hosting: Here They work with you not against you Live Directory |
| | |
| | #8 |
| Supporter Join Date: Nov 2009 Posts: 25 | It's working, thank you! |
| | |