You are not logged in! If you have not registered yet then click here to join the community!

TOLRA Community Forums


Go Back   TOLRA Community Forums > TOLRA Products (PHP Scripts) > Web Directory Script > Directory Script Mods

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 19-05-2007, 09:18 PM
Paul's Avatar
Paul Paul is offline
Moderator
 
Join Date: May 2006
Location: UK
Posts: 568
Blog Entries: 3
Phone & Fax Mod

The attached mod accepts a phone and fax number for each listing:

It requires V4 of the directory script.

To install:
  • Create a folder called extensions if it doesn't already exist.
  • Unpack the attached zip file
  • Upload the phonefax folder from the archive to the extensions folder on the server.
  • Create a file called extensioninfo.php with the following:
    <?php
    $extBasePath = dirname(__FILE__) . '/';
    include($extBasePath . 'phonefax/init_phonefax.php');
    ?>
  • Upload extensioninfo.php to the extensions folder on the server.
  • In your browser access extensions/phonefax/phonefaxinst.php
  • Add {$phonefax} to the t!wddetail.html template where the phone and fax numbers should be shown.
Note: If the file extensioninfo.php already exists on the server then edit it and add the following line just above ?>:

include($extBasePath . 'phonefax/init_phonefax.php');
Attached Files
File Type: zip phonefax.zip (3.1 KB, 58 views)

Last edited by Paul; 07-04-2008 at 11:31 AM.
Reply With Quote
Sponsored Links
  #2  
Old 06-04-2008, 02:35 PM
John John is offline
Senior Member
 
Join Date: Jul 2006
Location: Brisbane, Australia
Posts: 125
Is it possible to only show "Phone" and "Fax" on the detail page when it the data is actually present?
Just like only the address fields show when there is data present?
Reply With Quote
  #3  
Old 06-04-2008, 02:40 PM
Paul's Avatar
Paul Paul is offline
Moderator
 
Join Date: May 2006
Location: UK
Posts: 568
Blog Entries: 3
You should be able to do <!--@phonefax-->{$phonefax}<!--/phonefax-->
Reply With Quote
  #4  
Old 07-04-2008, 12:07 PM
John John is offline
Senior Member
 
Join Date: Jul 2006
Location: Brisbane, Australia
Posts: 125
Thanks, Paul
Works a treat!
Reply With Quote
  #5  
Old 22-08-2009, 10:35 AM
Pnop Pnop is offline
Junior Member
 
Join Date: Aug 2009
Posts: 13
Two Numbers and or mobile

Is it possible to enhance this and include a second landline number and mobile number option?
Reply With Quote
Reply

Bookmarks

Tags
fax, mod, phone

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:23 AM.