Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need help with main page


ddtech

Recommended Posts

Posted

Hey guys, im just editing and tweaking everything on the site

 

Im not a programming expert but im trying to edit the code on the main page but I can't get rid of a certain part

 

Please visit the store here:

 

http://www.globalmods.com/catalog

 

Under "Thank you for visiting the site"

 

you'll see "osCommerce 2.2-MS2."

 

I can't get rid of this, I have no lcue how. I tried editing everything, there's nothing in my script that has those words in it. I actually remember deleting it but it still shows up on the site

 

BTW I was editing the catalog/includes/languages/english/index file.

 

If you click on the source you can do a search and find it. But in the actual script it's not there!

Anyone have any ideas on how to get rid of this?

 

Also does anyone know how I can restric users from viewing the source of the webpages?

 

Thanks

 

 

P.S Here is the script that I have left from everything else that I chopped off. The rest of the script is the product headers, etc etc

 

 

define('TEXT_MAIN', '<table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><br>

 

 

<td class="main" valign="top"><b>Welcome to GlobalMods!</b><br><br>Thank You for visiting the site!<br><br</td></tr></table><br>'.

Posted

Have you looked in the language file which contains "Thank You for visiting the site!"?

 

Looks like it is in that file.

Posted

yup it's not there! thats the file I was editing in the first place. When you first create the store it comes with all of the instructions in the middle of that page. This is really weird..

Posted

Also, another thing.

 

Do you see the last line that I pasted in the first post

 

If I add a <b> for bold, it bolds that word

 

</table><br><b>'.

 

If it's like this, it doesen't bold that word

 

</table><br>'.

 

 

Right now I left it bolded. Im lost..

 

 

The rest of the script continues like this:

 

PROJECT_VERSION . '</b></font>.');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

 

then the tables, etc etc, everything else is fine

Posted

If you have the site on your local machine, download a tool called Windows Grep here:

 

http://www.wingrep.com/

 

Install it, and you'll have to add .php files as the type you'd like to search into. Then put in the osCommerce 2.2-MS2. (WITH THE PERIOD at the end)

 

Otherwise it'll spit out every file that contains the string "osCommerce 2.2-MS2".

 

That should give you some clue. If that doesn't work, or if it finds too many files, then keep digging through the /catalog/includes/languages directory. Most of the original text is in there somewhere. I'd also look in /catalog/index.php.

 

When you first start with osCommerce, one of the hardest things is finding where everything is. You'll get the hang of it after a while and over time it'll become like a 6th sense.

 

Hope that helps.

Posted
The rest of the script continues like this:

 

PROJECT_VERSION . '</b></font>.');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

then the tables, etc etc, everything else is fine

 

It's the ' . PROJECT_VERSION . ' part that's the problem. That's pulling the PROJECT_VERSION variable (osCommerce 2.2-MS2) from somewhere and displaying it.

Archived

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

×
×
  • Create New...