brenwa Posted August 12, 2008 Posted August 12, 2008 Ok.. Ive read all the posts till Im blue in the face... all I want to do is make the front page of my shop...maybe look like I actually own it and its getting really stupid.... I have changed the english\index.php file define('TEXT_MAIN', OVER and OVER and OVER... and it NEVER changes it just continues to say "Index page for English pages...This text can be changed from the admin section..." <-----OH REALLY! I dont think so!!!!! This is way more difficult than it needs to be.... I have set this cart up....modified it.... changed lots of fun stuff...made it work like I need it to YET I CANT UPDATE THE FU%*ING MAIN PAGE....... can you tell im just a bit fed up with this crap....! like I said this is stupid.... and please dont tell me to install --- Define Mainpage... <---the mod that hasnt had an update since 2003 I think Ill pass on that...... and I dont want to install another mod...just update some damn text...... If you cant tell I would be VERY grateful for some assistance because the amount of time I have dicked around with this is totally STUPID Bren PS: if it turns out Im the STUPID one..... no issues there..at least Ill be able to finally make some PROGRESS! so please point out where Im being stupid if thats the case!
FIMBLE Posted August 12, 2008 Posted August 12, 2008 catalog / includes / languages / english / index.php NOT catalog /index.php Is the one you need Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
brenwa Posted August 12, 2008 Author Posted August 12, 2008 That IS what Im updating Like I said I have read thru this board ...I have read all the this is how I can find maybe I wasnt clear enough in my frustration with the path to the file i have edited OVER and OVER it is catalog/includes /languages/english/index.php catalog / includes / languages / english / index.phpNOT catalog /index.php Is the one you need Nic
brenwa Posted August 12, 2008 Author Posted August 12, 2008 well apparently Im not the only one that has the problem I did a google for "Index page for English pages...This text can be changed from the admin section" gets a number of websites with exactly the same problem and apparently they couldnt figure it out either... because they are actually running thier sites with that dumb text on it... and not a SINGLE solution to be found...just lots of sites with that message on thier main page That IS what Im updating Like I said I have read thru this board ...I have read all the this is how I can find maybe I wasnt clear enough in my frustration with the path to the file i have edited OVER and OVER it is catalog/includes /languages/english/index.php
FIMBLE Posted August 12, 2008 Posted August 12, 2008 OK, save this code as your index.php in the english folder and overwrite the old one. What is your URL there? <?php /* $Id: index.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2007 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', ''); 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') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Let\'s See What We Have Here'); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', '<b>Show:</b>'); define('TEXT_BUY', 'Buy 1 \''); define('TEXT_NOW', '\' now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What\'s New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
Guest Posted August 12, 2008 Posted August 12, 2008 I did a google for "Index page for English pages...This text can be changed from the admin section" I would not suggest using the admin to edit your files. Download them to your computer, edit them then upload them back to your site. Leaving the admin open to edit your files is security risk. Try editing your catalog/includes/languages/english/index.php on your computer, save it and upload it. Thats all it really takes.
brenwa Posted August 12, 2008 Author Posted August 12, 2008 I gave it a shot and nothing changed...... this text "Index page for English pages...This text can be changed from the admin section..." can not be coming from the english index.php file..... because its simply NOT THERE it hasnt been there.... I have even replaced the page with the original default page that came with the install.... yet NOTHING changes... so that is making it pretty obvious to me that the text displaying there is not the text from "define('TEXT_MAIN', '');" so does ANYONE have any idea where it could be coming from????? Ive run search all I can and cant find it anyplace The url would be pretty useless ... im working from a modified hosts file while finishing the cart.... the old (x-cart) is still running on a different host and dns cant be updated till this is done...and this is one of the last things. ant its starting to look pretty attractive at the moment... im beginning to think i should of just paid for an upgrade and a server move...lol OK, save this code as your index.php in the english folder and overwrite the old one. What is your URL there? <?php /* $Id: index.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2007 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', ''); 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') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Let\'s See What We Have Here'); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', '<b>Show:</b>'); define('TEXT_BUY', 'Buy 1 \''); define('TEXT_NOW', '\' now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What\'s New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?>
♥FWR Media Posted August 12, 2008 Posted August 12, 2008 I gave it a shot and nothing changed...... this text "Index page for English pages...This text can be changed from the admin section..." can not be coming from the english index.php file..... because its simply NOT THERE it hasnt been there.... I have even replaced the page with the original default page that came with the install.... yet NOTHING changes... so that is making it pretty obvious to me that the text displaying there is not the text from "define('TEXT_MAIN', '');" so does ANYONE have any idea where it could be coming from????? Ive run search all I can and cant find it anyplace The url would be pretty useless ... im working from a modified hosts file while finishing the cart.... the old (x-cart) is still running on a different host and dns cant be updated till this is done...and this is one of the last things. ant its starting to look pretty attractive at the moment... im beginning to think i should of just paid for an upgrade and a server move...lol catalog/includes/languages/<my language>/index.php IS the file that controls the center content (TEXT_MAIN). You are doing a lot of shouting but you have to realise that it is nothing to do with osCommerce, which works perfectly, it is YOU or what YOU have done. Now back to your problem, IF TEXT_MAIN is having no effect then there are two possibilities to my mind: - 1) You have changed the define for the main text in which case you'll just have to keep looking until you find your mistake. 2) You may have installed the "page cache" contribution which will serve the old page until the cache is reset. Other than that I haven't the foggiest idea. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
spooks Posted August 12, 2008 Posted August 12, 2008 Maybe the footnote applies? Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
brenwa Posted August 12, 2008 Author Posted August 12, 2008 Bud...if its me....SWEET... I dont care... Ill have an answer .... Blame is not really relevant at the moment..... I just need to make some progress... page cache mod is not installed...and any other change happens instantly.... checking to see if some sort of cache issue was going on.... was one of the first things I did .... this is not the problem that leaves "You have changed the define for the main text" and that sounds like a reasonable answer have any suggestions as to what to look for? or where to start? or maybe do you know what the verbiage would be for that definition so I can start searching for that text? anything that would be helpful as a starting point? catalog/includes/languages/<my language>/index.php IS the file that controls the center content (TEXT_MAIN). You are doing a lot of shouting but you have to realise that it is nothing to do with osCommerce, which works perfectly, it is YOU or what YOU have done. Now back to your problem, IF TEXT_MAIN is having no effect then there are two possibilities to my mind: - 1) You have changed the define for the main text in which case you'll just have to keep looking until you find your mistake. 2) You may have installed the "page cache" contribution which will serve the old page until the cache is reset. Other than that I haven't the foggiest idea.
FIMBLE Posted August 12, 2008 Posted August 12, 2008 Are you using the oscommerce define language ? If so do you have the permissions set correctly, if not you can do it all day long! You should get an error message at the top of the page. Why not do if from your desk top and then upload via FTP to your server? Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
brenwa Posted August 12, 2008 Author Posted August 12, 2008 SOLVED..... thanks to FWR Media you gave me just enough info to find it.... Im posting the solution below... because Im not the only one thats had this issue.... and Im putting the solution in a more search friendly format for those that will be having this issue, so it may sound a bit redundant the problem: Index page for English pages...This text can be changed from the admin section... displaying on the main page of my site and I can not change it??? it CANNOT be changed form the "Index page for English pages" also the text: "Index page for English pages...This text can be changed from the admin section..." does not exist in the english index.php page The Solution is here: The problem is coming form the installation of: Extra pages-info box w-admin 4.6.1 (and possibly other versions of the mod.. I cant call that since this is the one I installed) in the install instructions at approx line 125 it says in catalog/index.php AFTER require('includes/application_top.php'); ADD ################# $page_query = tep_db_query("select p.pages_id, p.sort_order, p.status, s.pages_title, s.pages_html_text from " . TABLE_PAGES . " p LEFT JOIN " .TABLE_PAGES_DESCRIPTION . " s on p.pages_id = s.pages_id where p.status = 1 and s.language_id = '" . (int)$languages_id . "' and p.page_type = 1"); $page_check = tep_db_fetch_array($page_query); $pagetext=stripslashes($page_check[pages_html_text]); ##################### same file REPLACE <?php echo TEXT_MAIN; ?> WITH <?php echo $pagetext; ?> the problem is specifically with the lines same file *******source of the problem******** REPLACE <?php echo TEXT_MAIN; ?> WITH <?php echo $pagetext; ?>[ *******source of the problem******** I have undone this edit and everything started working normally again This mod also seems to be working fine without that specific line edit.... but Im going to be uninstalling it.
brenwa Posted August 12, 2008 Author Posted August 12, 2008 thanks...but solved.....has nothing to do with the upload method, if there had been error messages I would of noticed them :) Are you using the oscommerce define language ?If so do you have the permissions set correctly, if not you can do it all day long! You should get an error message at the top of the page. Why not do if from your desk top and then upload via FTP to your server?
spooks Posted August 12, 2008 Posted August 12, 2008 but you never thought to mention you had modified your install at the start, had everyone assuming a vanilla instal!! if you don't give the whole story your always going to strungle to get answers that work. :rolleyes: :rolleyes: :rolleyes: Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
brenwa Posted August 12, 2008 Author Posted August 12, 2008 I have set this cart up....modified it.... changed lots of fun stuff...made it work like I need it to <----- third sentence but you never thought to mention you had modified your install at the start, had everyone assuming a vanilla instal!! if you don't give the whole story your always going to strungle to get answers that work. :rolleyes: :rolleyes: :rolleyes:
spooks Posted August 12, 2008 Posted August 12, 2008 I have set this cart up....modified it.... changed lots of fun stuff...made it work like I need it to <----- third sentence Perhaps thats what you thought you wrote!! But what you actually put in that line was: OVER and OVER and OVER... and it NEVER changes it just continues to say "Index page for English pages...This text can be changed from the admin section..." <-----OH REALLY! I dont think so!!!!! Did you forget already? lol Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
♥GLWalker Posted August 18, 2008 Posted August 18, 2008 the problem is specifically with the lines same file *******source of the problem******** REPLACE <?php echo TEXT_MAIN; ?> WITH <?php echo $pagetext; ?>[ *******source of the problem******** I have undone this edit and everything started working normally again This mod also seems to be working fine without that specific line edit.... but Im going to be uninstalling it. This is not the problem with that contribution. The bugfix you posted to that contribution was bogus as well. You must asign an ID number in admin that matches the p.page_type = in your code. I use this contribution on several sites to post text on about 20 different pages via the admin interface. Follow the community build: BS3 to osCommerce Responsive from the Get Go! Check out the new construction: Admin Gone to Total BS!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.