ChrisHoward Posted September 6, 2003 Posted September 6, 2003 Hi, I would like to change the text, "Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?" to some of my own. Can someone please tell me how to do this, as It is urgently required for a major project. If this is possible please post your replies, many thanks Chris
Guest Posted September 6, 2003 Posted September 6, 2003 Q: How do you change the index.php introduction and welcome text? A: catalog/includes/languages/english/index.php You will need to change index.php in all of the language folders You can also change the heading title names in here. taken fromhttp://wiki.oscommerce.com/TextSearch?phra...owtoTextGeneral
jwsfun Posted September 6, 2003 Posted September 6, 2003 You can change the welcome text in the following .php file (mine is named "default.php" whereas yours might be "index.php"---either way works): Find your "www" or "public_html" folder and navigate to the following file... (I'll use English as an example) shop/includes/languages/english/default.php Once you open your default.php or index .php, scroll to Line 13 (approx.) and you'll see the welcome message text (it will probably be 4 lines in depth). Edit it to your liking but remember to keep the tags INTACT (just be careful while you're editing so you don't delete any tags and you'll be fine). That's it...All there is to it. I'm new to .php/.css and just made this exact change last night, so I thought I'd provide an in-depth approach [for you] to making the change. Personally, I can't stand being "shown" the "wiki" link time and time again (it's lacking in several ways, but useful for the most part :wink: ). Good luck! :D
Guest Posted September 8, 2003 Posted September 8, 2003 Help Please! :( This is what I have, Can anyone tell me what I've done wrong? define('TEXT_MAIN', 'Step back in time....to a time when beauty was legend, Back to the time of Cleopatra....Helen of Troy and the Queen of Sheba.'<b>'Because of our extensive research, precious oils and herbs revered for thousands of years, are now available to you'</b>. 'These are the natural beauty secrets you will find here.'<br><br>'Come in to Lady Shivas and discover your Diva<b>. '); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || ($HTTP_GET_VARS['manufacturers_id']) ) { define('HEADING_TITLE','Welcome to Lady Shiva's Aroma Garden'); This is what I get: HEADING_TITLE Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account? TEXT_MAIN
Guest Posted September 8, 2003 Posted September 8, 2003 Try changing to this: define('TEXT_MAIN', 'Step back in time....to a time when beauty was legend, Back to the time of Cleopatra....Helen of Troy and the Queen of Sheba.<b> Because of our extensive research, precious oils and herbs revered for thousands of years, are now available to you. </b> These are the natural beauty secrets you will find here.<br><br>Come in to Lady Shivas and discover your Diva<b>. '); All your formating can be included in the ' ', i.e. <b>,<br>, etc.
Guest Posted September 8, 2003 Posted September 8, 2003 Thank you so much. I will definitely try that as soon as I get home tonight. I'll let you know how it goes. Thanks again! :lol:
Guest Posted September 8, 2003 Posted September 8, 2003 Heeelllppp!!, It didn't work. I don't understand it looks as though it should work.
Guest Posted September 8, 2003 Posted September 8, 2003 Try replacing your text with something simple, say 'text'. That way you can see if its something to do with the text you're trying to add (although I can't see anything) or if the problem is somewhere else.
Guest Posted September 9, 2003 Posted September 9, 2003 define('TEXT_MAIN'= <b>'Step back in time<b>. '); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || ($HTTP_GET_VARS['manufacturers_id']) ) { define('HEADING_TITLE','Welcome to Lady Shiva's Aroma Garden'); This is what I tried and it still doesn't show up, thanks for trying to help me. :roll:
amoun Posted September 9, 2003 Posted September 9, 2003 Backup. Start with a new english/index.php roger facts invariably distort the truth
Guest Posted September 9, 2003 Posted September 9, 2003 That didn't work because you've got the first =<b> before the '. Try define('TEXT_MAIN', 'Step back in time');
Guest Posted September 10, 2003 Posted September 10, 2003 Thanks but if I knew how I would have already started over. Sorry but I'm a newby following the instructions I have and unfortuneately it's not working for me. :cry:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.