Results 1 to 3 of 3

Thread: Change Countries

  1. #1
    Join Date
    Dec 2002
    Posts
    1,883

    Default

    Hi,
    I need to change the countries listed in the drop down boxe on SUBMIT.
    How do I do this.

    Also, NO pictures (even the menu items) are not diplaying although have CHMOD image folders to 777

    tks

  2. #2
    Join Date
    Jun 2004
    Posts
    1,067

    Default

    If images are ot displaying your baseurl and/or basepath is wrong in your common.php file.

  3. #3
    Join Date
    Dec 2002
    Posts
    1,883

    Default

    Hey man ..sorry about all this but still cannot get it right. Home page is http://leisureafrica.co.za/prop/ new error is

    Fatal error: Call to undefined function: renderfeaturedlistingsvertical() in /usr/www/users/leisur/leisureafrica.co.za/prop/index.php on line 8

    Also pics still not displaying and have doen CHMOD to 777 and checked basepath url as per our previous postings. fyi common.php copied hereunder

    <?php
    ///////////////////////////////////////////////////
    // common include file
    // you will have to set your preferences below...
    // please be careful with this file -- make a backup if you're at all worried
    // about screwing stuff up.

    $config = array();
    global $config;


    ///////////////////////////////////////////////////
    // SITE INFORMATION
    // make sure this info is accurate
    $config['version'] = '1.0.7'; //Do Not Modify
    // Your site's web address (don't forget the http://) - leave off the trailing slash
    $config['baseurl'] = 'http://www.leisureafrica.co.za';
    // The actual location of openlistings on the machine -- leave off the trailing slash
    // Windows users need to use double slashes eg. c:\\www\\open-realty
    $config['basepath'] = '/usr/www/users/leisur/leisureafrica.co.za/prop';
    $config['admin_name'] = 'Gary Wilson'; // Your name -- all email will come from this name
    $config['admin_email'] = 'webmasterr@leisureafrica.co.za'; // all email which is sent from the site will come from this address
    $config['site_title'] = 'Leisure Africa'.$config['version']; // Site title
    $config['company_name'] = 'Leisure Africa'; // Company Name used on Legal Page.
    $config['company_location'] = 'Southern Africa Tourism Real Estate Listings'; // Company Location for header. E.g. "of Susquehanna County, Pennsylvania"
    $config['company_logo'] = '/images/title.jpg'; //Location of company logo.

    ///////////////////////////////////////////////////
    // DATABASE TYPE
    // default is mysql -- make sure you edit this file
    // to make sure DB settings are correct!
    global $db_type;
    $db_type = 'mysql';
    // possible choices are: access, ado, db2, ado_access, vfp, fbsql, ibase
    // firebird, borland_ibase, informix, mssql, mysql, mysqlt, maxsql, oci8
    // oci8po, odbc, oracle, postgres, postgres7, sqlanywhere, sybase

    $db_user = xxx; //database user
    $db_password = 'xxx'; //database password
    $db_database = 'xxx'; //database definition file
    $db_server = xxx'; //database server -- usually localhost, but one never knows

    ///////////////////////////////////////////////////
    // TEMPLATE DATA
    //$config[template_path] = $config[basepath].'/template/generic'; // leave off the trailing slashes
    //$config[template_url] = $config[baseurl].'/template/generic'; // leave off the trailing slashes
    $config['template_path'] = $config[basepath].'/template/vertical-menu'; // leave off the trailing slashes
    $config['template_url'] = $config[baseurl].'/template/vertical-menu'; // leave off the trailing slashes




    ///////////////////////////////////////////////////
    //LANGUAGE FILE PATH -- USED FOR MULTI-LANGUAGE SUPPORT
    include($config['basepath'].'/include/language/english.php');


    ///////////////////////////////////////////////////
    // DISPLAY SETTINGS
    $config['listings_per_page'] = 10; //number of listings to show on one page:
    $config['add_linefeeds'] = 'yes'; // convert returns to line feeds? yes or no
    $config['strip_html'] = 'yes'; // Should HTML be stripped out of listings? yes or no
    $config['allowed_html_tags'] ='<a><b><i><u><br>'; // which html tags can a person input?
    $config['money_sign'] = 'R'; // default is dollars, but it could be "&#163;" for pounds or "€" for euros
    $config['show_no_photo'] = 'yes'; // if a listing doesn't have a photo, should it use the /images/nophoto.gif instead?
    $config['number_format_style'] = '1'; // support for international numbering format. See the documentation for details

    function money_formats ($number)
    {
    global $config;
    // formats prices correctly
    // defaults to $123, but other folks in other lands do it differently
    // uncomment the correct one
    $output = $config['money_sign'].$number; // usa, uk - $123,345
    // $output = "$number $config['money_sign']"; // germany, spain -- 123.456,78 €
    // $output = "$config['money_sign'] $number"; // honduras -- € 123,456.78
    return $output;
    }

    ///////////////////////////////////////////////////
    // UPLOAD SETTINGS
    $config['max_listings_uploads'] = 7; // max # of pics for a given listing
    $config['max_listings_upload_size'] = '100000'; // (in bytes)
    $config['max_listings_upload_width'] = 700; // max width (in pixels)
    $config['listings_upload_path'] = $config['basepath'].'/images/listing_photos'; // leave off the trailing slash
    $config['listings_view_images_path'] = $config['baseurl'].'/images/listing_photos';

    $config['max_user_uploads'] = 5; // max # of pics for a given user
    $config['max_user_upload_size'] = '100000';
    $config['max_user_upload_width'] = 700; // max width (in pixels)
    $config['user_upload_path'] = $config['basepath'].'/images/user_photos'; // leave off the trailing slash
    $config['user_view_images_path'] = $config['baseurl'].'/images/user_photos';

    $config['allowed_upload_types'] = array('image/pjpeg','image/jpeg','image/gif', 'image/x-png'); // allowed file types
    $config['allowed_upload_extensions'] = array('jpg','gif','png'); //possible allowed file extensions
    $config['make_thumbnail'] = 'yes'; // use an external thumbnailing tool to resize images
    $config['thumbnail_width'] = '100'; // max width (in pixels) of thumbnails
    // This line is for GD Lib Image Support
    $config['path_to_thumbnailer'] = $config['basepath'].'/include/thumbnail_gd.php'; // path to the thumnailing tool

    // These two lines are for ImageMagick Support
    $config['path_to_thumbnailer'] = $config['basepath'].'/include/thumbnail_imagemagick.php'; // path to the thumnailing tool
    $config['path_to_imagemagick'] = '/usr/bin/convert'; // path to the convert tool, OPTIONAL! (Fill this only if you use ImageMagick)

    //'/usr/X11R6/bin/convert'

    ///////////////////////////////////////////////////
    // LISTING EXPIRATION SETTINGS
    $config['use_expiration'] = 'no'; // should the system use expiration? yes or no
    $config['days_until_listings_expire'] = '365'; // listings should be active for this number of days


    ///////////////////////////////////////////////////
    // USER SETTINGS
    $config['allow_user_signup'] = 'yes'; // can users sign up through the web site? yes or no
    $config['user_default_admin'] = 'no'; // are new users admins by default? yes or no
    // I recommend that you leave the following entries marked "no"... unless there's a particular
    // reason you want new users to be able to do administrative tasks by default...
    $config['user_default_feature'] = 'no'; // can new users feature listings by default? yes or no
    $config['user_default_moderate'] = 'no'; // can new users moderate listings by default? yes or no
    $config['user_default_logview'] = 'no'; // can new users view logs by default? yes or no
    $config['user_default_editForms'] = 'no'; // can new users edit forms by default? yes or no
    $config['user_default_canChangeExpirations'] = 'yes'; // can users change the expiration dates of their listings? yes or no

    ///////////////////////////////////////////////////
    // RENTAL SEARCH SETTINGS
    $config['rental_step'] = '20';
    $config['max_rental_price'] = '100';
    $config['min_rental_price'] = '800';

    ///////////////////////////////////////////////////
    // MODERATION SETTINGS
    $config['moderate_listings'] = 'yes'; // should listings require moderator approval to be "live?" yes or no
    $config['email_notification_of_new_listings'] = 'yes'; // should the site admin receive an email notification if someone adds a listing? yes or no

    ///////////////////////////////////////////////////
    // MISCELLENEOUS SETTINGS
    // you shouldn't have to mess with these things unless you rename a folder, etc...

    // main file location
    include($config['basepath'].'/include/main.php');

    // this is the setup for the ADODB library
    include($config['basepath'].'/include/adodb/adodb.inc.php');
    $conn = &ADONewConnection($db_type);
    $conn->PConnect($db_server, $db_user, $db_password, $db_database);

Similar Threads

  1. change "no active" ->"active" in one
    By lachaca in forum HELP (CLOSED)
    Replies: 1
    Last Post: 03-02-2004, 05:41 PM
  2. Change Price Per Week To Per Month Search Rentals Listings
    By miltboogie in forum HELP (CLOSED)
    Replies: 0
    Last Post: 12-01-2003, 09:02 PM
  3. for translations: how to change "price from to"
    By Anonymous in forum HELP (CLOSED)
    Replies: 5
    Last Post: 09-28-2003, 01:20 AM
  4. Change Featured Listings to Latest Listings Etc
    By NYColt in forum HELP (CLOSED)
    Replies: 1
    Last Post: 05-06-2003, 05:23 PM
  5. font color change
    By Anonymous in forum HELP (CLOSED)
    Replies: 0
    Last Post: 04-25-2003, 06:47 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts