Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

What does ADD before: ?>


peterclementi

Recommended Posts

Posted

You need to supply more information when asking for help. I am guessing that you want to know what it means to do. I would sugest you try to learn alittle about php before you did to much more. ?> is the closing php tag. what ever code there having you add needs to be above that tag. It will be the last line in the file. I am not saying you need to learn how to write php but learn what some of the tags are. Some of the contribs only say place before closing tag. You may find these helpful.

http://us2.php.net/

http://www.phpsimple.net/php_tags.php

Posted
Please could someone help. Cheers

I fully admit to being an amateur at php but i've got no other option but to give it a try. I will provide a bit more info as i can see this will help. I am trying to install a birthday contribution and it requires me to insert new code in 3 different files. I am lost on the " ADD before: ?> " part below:

 

admin/includes/filenames.php 

ADD before: ?>  
define('FILENAME_BIRTHDAY', 'birthday.php'); 

================================================================================
====================== 
admin/includes/languages/english.php 

ADD before: ?> 

// Text in birthday.php 
define('HEADING_BIRTHDAYS', 'Birthdays'); 
define('TEXT_BIRTHDAYS', 'Customer Birthdays'); 
define('BOX_CUSTOMERS_BIRTHDAY', 'Birthdays');
define('TEXT_BIRTHDAYS_NOWMONTH', ' This Month');
define('TEXT_BIRTHDAYS_NEXTMONTH', ' Next Month');
define('TEXT_BIRTHDAYS_NAME', ' Customers Name');
define('TEXT_BIRTHDAYS_EMAIL', ' Customers Email');
define('TEXT_BIRTHDAYS_DATE', ' Customers Birthday');
define('ICON_ORDERS', 'View All Orders');
// End Text for birthday.php

 

 

Thanks for the links will have a look now.

Posted
I fully admit to being an amateur at php but i've got no other option but to give it a try. I will provide a bit more info as i can see this will help. I am trying to install a birthday contribution and it requires me to insert new code in 3 different files. I am lost on the " ADD before: ?> " part below:

 

admin/includes/filenames.php 

ADD before: ?>  
define('FILENAME_BIRTHDAY', 'birthday.php'); 

================================================================================
====================== 
admin/includes/languages/english.php 

ADD before: ?> 

// Text in birthday.php 
define('HEADING_BIRTHDAYS', 'Birthdays'); 
define('TEXT_BIRTHDAYS', 'Customer Birthdays'); 
define('BOX_CUSTOMERS_BIRTHDAY', 'Birthdays');
define('TEXT_BIRTHDAYS_NOWMONTH', ' This Month');
define('TEXT_BIRTHDAYS_NEXTMONTH', ' Next Month');
define('TEXT_BIRTHDAYS_NAME', ' Customers Name');
define('TEXT_BIRTHDAYS_EMAIL', ' Customers Email');
define('TEXT_BIRTHDAYS_DATE', ' Customers Birthday');
define('ICON_ORDERS', 'View All Orders');
// End Text for birthday.php

 

 

Thanks for the links will have a look now.

Just add the new text just before the final ?> in the language file.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...