Upgrade Version 1.4 to Version 1.5
Read First
Steps
1. Download and unzip the upgrade files. Be sure to use the same version.
2. Upload the changed files replacing the old files. (Only changed or new
files are included in the download.)
-- All the
files in the functions folder (includes/functions/*) must be uploaded in
BINARY mode.
-- All the files in
the ioncube folder must be uploaded in BINARY mode.
(Ioncube Version Only)
3. CHMOD the files folder 777(make it writable) Uploaded files are stored in this folder.
4. Open config.php in a text editor and paste in the following code anywhere
above the closing ?> tag.
After pasting be sure to go
through and set them. See Config File for
descriptions.
---------------------- START CONFIG CODE ----------------------------
// 0 skips the are you sure screen when deleting a listing.
$del_confim =
1; // 0=No 1=Yes
// Google Maps Country:
$google_country = "US"; // US or UK.
// Added version 2.6 - FCKeditor for description field
$wysiwyg = 1; //
1=on 0=off
// Email Settings version 1.5
$html_email = 1; // 1=HTML 0=Plain
text
$wordwrap = 50; // Plain text Only. Line length. (0 = off)
$useSMTP =
1; // 1=Yes 0=No
$smtp_server = "mail.yourserver.com"; // mail
server
$smtp_port = 25; // Mail port number (Default =
25)
$smtp_username = ""; // Email username
$smtp_password = ""; //
Email password
// max length for Ask Question text box
$maxAskText = 150;
// max length for Send to Friend text box
$maxFriendText = 150;
// Send questions directly to the listers email or the default email
// if
user - make sure they have a valid email address in their
account.
$sendToUser = 1; // 0=User 0=default
// Send copy to sender?
$sendFriendCopy = 1; // 1=Yes 0=No
// Send copy to sender?
$sendAskCopy = 1; // 1=Yes 0=No
// Include thumbnail in emails
$include_thumb = 1; //1=Yes 0=No
// Category Menu Type
// Can be slider or folder.
$menuType =
"slider";
// Deatils Page Thumbnails
// Can be table or iframe
$thumbType =
"table";
// File Path with trailing slash /
$file_path =
"/home/user/public_html/files/";
// File URL with trailing slash
/
$file_url = http://yourdomain.com/files;
------------------
END CONFIG CODE ----------------------------
5. Open includes/languages/english.php and paste in the following anywhere above the closing ?> tag.
------------------ START ENGLISH.PHP CODE ---------------------
// Added version 1.5
$L_redirect_link = "Click here if
you are not redirected.";
$L_blank_cat = "Please enter a Category
Name.";
$L_closeButton = "Close Window";
$L_referFormHeader = "Send this
listing to a friend";
$L_questionFormHeader = "Ask a question about this
listing";
$L_clickThumb = "Click to Enlarge";
$L_mailToName = 'Friends
Name';
$L_mailsenderEmail = 'Your Email';
$L_pleaseEnter = "Please
enter";
$L_questionBlank = "a Question";
$L_friendEmailFormat = "Your
friends email is not formatted correctly.";
$L_yourEmailFormat = "Your email
is not formatted correctly.";
$L_mailFail = "Message was not
sent.";
$L_mailSent = "Message has been sent.";
$L_only =
"Only";
$L_and = "and";
$L_not = "Not";
$L_exclude =
"Exclude";
$L_hidden = "Hidden";
$L_file = "File";
$L_files =
"Files";
$L_images = "Images";
$L_optional = "Optional";
$L_linkText =
"Link Text";
$L_failed = "Failed";
$L_table = "Table";
$L_selectOne =
"-- Select One
--";
------------------ END ENGLISH.PHP CODE ---------------------------------
6. Open templates/*/header.php and paste in the
following code. Your current template
minimum but you should do them all in case you switch later.
------------------------ BEGIN HEADER.PHP --------------------------------
--------------- Find This: (Line 24)
---------------------------
<?php
// Include Google map functions only
if needed
if($google_maps == 1 && $google_maps_key != "" &&
$load_google_maps == 1){
include('includes/javascript/google/google_maps.js');
}
?>
----------------- Change to this -----------------------
<?php
// Include Google map functions only if
needed
if($google_maps == 1 && $google_maps_key != "" &&
$load_google_maps == 1){
if($google_country ==
"UK"){
include('includes/javascript/google/google_maps_uk.js');
}else{
include('includes/javascript/google/google_maps.js');
}
}
?>
------------------ SAME FILE HEADER.PHP ---------------------
<-------- Replace ---------->
<script
language="JavaScript">
<!--
function
showimage(theimage,hugeimage)
{
document.images.large.style.visibility =
"visible";
document.images.large.src =
theimage;
document.getElementById('biglink').href =
hugeimage;
//-->
}
</script>
<------- With This --------->
<?php require_once("includes/javascript/header_code.php");?>
<------ End -------->
--------------------- END HEADER.PHP CODE ---------------------------------
7. You can remove the includes/javascript/wysiwyg folder. It is no longer needed.
8. Open your browser to http://yourdomain.com/sql_update.php and click the button to update your database. Remove sql_update.php from the server once the update is complete.
Upgrade Complete.
If you need assistance please use our support desk at:
https://www.bicdevelopment.com/clients/