osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Customer Testimonials 3

This is a discussion on Customer Testimonials 3 within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; some folks have asked me why the urls were not working correctly on the testimonials page to click the offsite ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Closed Thread

 

LinkBack Thread Tools
  #1  
Old 06-06-2008, 09:22 PM
michael_s's Avatar
osCMax Developer


 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 15,760
Thanks: 139
Thanked 609 Times in 521 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Customer Testimonials 3

some folks have asked me why the urls were not working correctly on the testimonials page to click the offsite url entered by customers. i have added the code to pre-populate that filed with "http://" so that customer can see that it is needed to work properly. I know that the code "could" be edited in other ways to remedy this but it was a quick copy/edit from html_output.php for me.

near line 134 after this code:
$html_text = tep_db_prepare_input($HTTP_POST_VARS['html_text']);
}
break;
}
}
add:
// Output a form testimonials url input field
function tep_draw_testimonial_url_input_field($name, $value = '', $type = 'text', $reinsert_value = true) {
$field = '';
return $field;
}
// Output a testimonials url field
function tep_draw_testimonial_url_field($name, $value = '') {
return tep_draw_testimonial_url_input_field($name, $value);
}
and then simply change the call to that function on line (or near) 177 to:


now that field will show "http://" by default, solving this small issue :)

More...
__________________
Michael Sasek
osCMax Developer

*** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers ***

Stay Up To Date with everything osCMax:
Free osCMax Newsletters - Security notices, New Releases, osCMax News
osCMax on Twitter - Up to the minute info as it happens. Know it first.

osCMax User Manual - osCMax Templates - Advanced Template Tutorial

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Customer Testimonials 3 michael_s New osCommerce Contributions 0 03-18-2008 06:40 PM
Customer Testimonials v1.0 michael_s New osCommerce Contributions 0 02-17-2008 01:12 PM
Customer Testimonials 3 michael_s New osCommerce Contributions 0 01-12-2008 05:31 PM
Customer Testimonials v1.0 michael_s New osCommerce Contributions 0 05-14-2007 07:30 AM
Customer Testimonials v1.0 michael_s New osCommerce Contributions 0 04-27-2007 11:39 PM


All times are GMT -8. The time now is 04:27 PM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design