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 13-12-2006, 07:13 PM
Paul's Avatar
Paul Paul is offline
Moderator
 
Join Date: May 2006
Location: UK
Posts: 568
Blog Entries: 3
5 URLs Plus Address

This mod is depreciated in favour of using the +5 URL mod along with the business address mod, both of which can be found in this forum.

The attached ZIP archive contains a patch to allow each listing to have an additional 5 URLs with titles, 2 address lines, county, country, postcode, contact name and phone number.

The extra information is shown on each listings detail page.

To use:
  • Backup any existing data you want to keep including the database.
  • Upload the 3 files from the archive, index.php, addext.php and wdadminext.php, to the folder holding the installed directory script.
  • Use your browser to access addext.php, e.g. yourdomain.com/addext.php
  • Delete addext.php from your server.
  • Edit wdcfg.php and change WDALLWODETAIL and WDALLOWDETAILSUBMIT to:
    define('WDALLOWDETAIL', 1);
    define('WDALLOWDETAILSUBMIT', 1);
  • Edit the template file t!wddetail.html to include the tags for the additional fields: {$extPages}, {$address1}, {$address2}, {$county}, {$country}, {$postcode}, {$contact}, {$postcode}
    {$extPages} is an unordered list of the additional links.
index.php a replacement for the default index file, this extends the base classes to allow for the submission, modification and display of the additional fields.

wdadminext.php a extension used by the admin interface to allow editing and review of listings with the additional fields.

addext.php a script to add a new table to the database and create rows for all existing listings.

This mod could be used as the basis for a business directory.

Additional fields can be added by editing the 3 files although care must be taken to keep the MySQL of all 3 in sync.
Attached Files
File Type: zip address.zip (6.4 KB, 86 views)

Last edited by Paul; 18-02-2008 at 10:58 AM.
Reply With Quote
Sponsored Links
  #2  
Old 10-02-2007, 07:04 AM
gadget gadget is offline
Junior Member
 
Join Date: Feb 2007
Posts: 16
Where do the extra fields show up in admin? I can't locate them. Also, which part of the two part form can you place the fields. I see where you call for the web url, but the other fields don't show up here, they are on second part of the form. Can this arrangement be modified?
Reply With Quote
  #3  
Old 10-02-2007, 11:14 AM
Paul's Avatar
Paul Paul is offline
Moderator
 
Join Date: May 2006
Location: UK
Posts: 568
Blog Entries: 3
When you review a submission, add a new listing or edit an existing submission from the admin interface you should see the additional fields. If this is not the case please try uploading wdadminext.php from the archive again and ensure that it is present in the same folder as wdcfg.php.

If this still doesn't work then check the values of WDALLOWDETAIL and WDALLOWDETAILSUBMIT in wdcfg.php

For a submission the script always asks for the URL first followed by all the other information, without rewriting the entire submission system you can't change this.
Reply With Quote
Reply

Bookmarks

Tags
address, urls

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.