Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I was tryign to install this module with no knowledge of wat I was doing...I got to the part where I have to change the code in the admin\includes\functions\general.php

 

I did wat the instructions said i.e. add the following code into my general.php file

 

// Sets the status of a testimonial

function tep_set_testimonials_status($testimonials_id, $status) {

if ($status == '1') {

return tep_db_query("update " . TABLE_TESTIMONIALS . " set status = '1' where testimonials_id = '" . $testimonials_id . "'");

} elseif ($status == '0') {

return tep_db_query("update " . TABLE_TESTIMONIALS . " set status = '0' where testimonials_id = '" . $testimonials_id . "'");

} else {

return -1;

}

}

 

I did that and now the result is this

 

Parse error: parse error, unexpected T_VARIABLE in /home/httpd/html/zoombiefone/cgi-bin/oscommerce/admin/includes/functions/general.php on line 403

 

I cant access my admin area :(

Posted

Thats not wat i'm interested in...i'm interested in wat went wrong ??? Sure i can start again but until I know wat went wrong there is no pt.

Wat is a T_string ??

I got this error when I try to access my homepage

 

Parse error: parse error, unexpected T_STRING in /home/httpd/html/zoombiefone/cgi-bin/oscommerce/includes/languages/english.php on line 80

 

Similar error...so wat is a t_string ???

Posted

I just read the instructions...correct me if i'm wrong but the only way to add a testimonial is to do it through the Admin area ??? If thats the case then its not a very good module, wouldnt it be better to allow the customer add their testiminoal themselves ???

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...