osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

FAQDesk, Change date format??

This is a discussion on FAQDesk, Change date format?? within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; I am trying to figure out how to change the date format in the faq listings in the FAQDesk 1.01.1 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 09-28-2005, 03:50 PM
New Member
 
Join Date: Sep 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
HollyRidge
Default FAQDesk, Change date format??

I am trying to figure out how to change the date format in the faq listings in the FAQDesk 1.01.1 contrib (http://www.oscommerce.com/community/contributions,1106). I found the line but for the life of me I can not figure our how to change the way the date & time are formated. I want it to show the date using the same format as the rest of my cart which is determined in the top of english.php in the languages directory. Here is the section of code it is in (includes/modules/faqdesk/faqdesk_listing.php)...

Code:
if ( ($number_of_products/2) == floor($number_of_products/2) ) {
//		if ( ($number_of_faqs/2) == floor($number_of_faqs/2) ) {
			$list_box_contents[] = array('params' => 'class="productListing-even"');
		} else {
			$list_box_contents[] = array('params' => 'class="productListing-odd"');
		}

		$cur_row = sizeof($list_box_contents) - 1;
		$cl_size = sizeof($column_list);
		for ($col=0; $col<$cl_size; $col++) {
			$lc_align = '';
			switch ($column_list[$col]) {
		case 'FAQDESK_DATE_AVAILABLE':
			$lc_text = ' <a href="' . tep_href_link(FILENAME_FAQDESK_INFO, ($faqPath ? 'faqPath=' . $faqPath . '&' : '') 
			. 'faqdesk_id=' . $listing_values['faqdesk_id']) . '">' . $listing_values['faqdesk_date_added'] . '</a> ';
			break;
		case 'FAQDESK_ANSWER_LONG':
			$lc_text = ' <a href="' . tep_href_link(FILENAME_FAQDESK_INFO, ($faqPath ? 'faqPath=' . $faqPath . '&' : '') 
			. 'faqdesk_id=' . $listing_values['faqdesk_id']) . '">' . $listing_values['faqdesk_answer_long'] . '</a> ';
			break;
		case 'FAQDESK_ANSWER_SHORT':
			$lc_text = ' <a href="' . tep_href_link(FILENAME_FAQDESK_INFO, ($faqPath ? 'faqPath=' . $faqPath . '&' : '') 
			. 'faqdesk_id=' . $listing_values['faqdesk_id']) . '">' . $listing_values['faqdesk_answer_short'] . '</a> ';
			break;
		case 'FAQDESK_QUESTION':
			$lc_text = ' <a href="' . tep_href_link(FILENAME_FAQDESK_INFO, ($faqPath ? 'faqPath=' . $faqPath . '&' : '') 
			. 'faqdesk_id=' . $listing_values['faqdesk_id']) . '">' . $listing_values['faqdesk_question'] . '</a> ';
			break;
		}

			$list_box_contents[$cur_row][] = array(
				'align' => $lc_align,
				'params' => 'class="productListing-data"',
				'text'  => $lc_text
				);

		}
	}
This is the line (109) that controls that...
Code:
			. 'faqdesk_id=' . $listing_values['faqdesk_id']) . '">' . $listing_values['faqdesk_date_added'] . '</a> ';
This is the part of that code that controls it...
Code:
$listing_values['faqdesk_date_added']
I am trying to get it to use the same as the faqpages themselves (faqdesk_info.php) like is controlled by this line...
Code:
                        <?php echo sprintf(TEXT_FAQDESK_DATE, tep_date_long($product_info_values['faqdesk_date_added']));; ?>
I know this is way different than it but that is the type of format I need. Anyone have any ideas of how to change that line of code to make it work to use the standard format?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
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
Quick about date format damnedpig osCMax v1.7 Discussion 2 07-02-2004 08:27 AM
How to set date in footer to another format stando osCMax v1.7 Discussion 7 01-23-2004 06:50 AM
Date format question Dr_Evil osCommerce 2.2 Modification Help 3 10-23-2003 07:23 AM
Change date format don osCommerce 2.2 Installation Help 1 01-31-2003 07:03 PM
Date format killermonkey osCommerce 2.2 Modification Help 3 01-24-2003 02:07 AM


All times are GMT -8. The time now is 02:41 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax