Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Define mainpage: all seem fine but admin>TEXT_FILE_DOES_NOT_EXIST


artichoke

Recommended Posts

Hi,

 

I have "installed" the contribution "define mainpage", everything seem to be fine the standard text shows up on shop main oage, BUT in admin section the only thing that comes up is the title define mainpage and "TEXT_FILE_DOES_NOT_EXIST".

 

Anyone knows what's wrong???

 

I appreciate all help.

 

Thanks.

 

BB

Link to comment
Share on other sites

Anyone knows what's wrong???

you skipped one of the installation steps, you need to define the "TEXT_FILE_DOES_NOT_EXIST" in the language file.

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

Hi,

 

I have "installed" the contribution "define mainpage", everything seem to be fine the standard text shows up on shop main oage, BUT in admin section the only thing that comes up is the title define mainpage and "TEXT_FILE_DOES_NOT_EXIST".

 

Anyone knows what's wrong???

 

I appreciate all help.

 

Thanks.

 

BB

In admin/define_mainpage.php

 

Look for this

 

// This will cause it to look for 'catalog/language/(L)/define_mainpage.php'

 

$HTTP_GET_VARS['filename'] = FILENAME_DEFINE_MAINPAGE;

 

 

Change to this

 

// This will cause it to look for 'catalog/language/(L)/define_mainpage.php'

 

// $HTTP_GET_VARS['filename'] = FILENAME_DEFINE_MAINPAGE;

 

$HTTP_GET_VARS['filename'] = 'define_mainpage.php';

Link to comment
Share on other sites

Hi,

 

Hi Thanks for your replies.

I have chnaged the lines in the admin/define mainpage.php

 

Before the above, I re-installed the back-up of the admin section and got the html text editor to work.

I can see the text and html formatting which is a big step forward.

Last night I lost the connection to the admin section and had to install it all over again (ok... copying it from a back-up then and kaking the other changes I have done all over again).

 

I have taken the tiny mce (from the 3-2_0_1 installation pack) in the jscripts folder and dragged it into admin/includes/javascript folder.

 

No change, still only html text formatting.

 

What step have I overlooked???

 

Thanks for your help.

 

BB

Link to comment
Share on other sites

Hi,

 

when updating the text, I get the following message, or a similar for line 29 instead;

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /hsphere/local/home/"user"/e-shop.domain.com/folder/catalog/includes/languages/danish/define_mainpage.php on line 28

 

This is what it look like in the texteditor:

 

/*

mainpage.php ENGLISH by Matthijs - [email protected]

 

This page will be shown on the first page of the catalog

(default.php) instead of the standard message.

 

You can write your php/html straight into this.

This means you can drop in another table on the main

page where you could create (manually) a featured product

or just drop in some nice graphics. I've included a small sample

below using existing box-code/stylesheets so you get the idea.

 

BE AWARE that changes (and possible errors/typo's) are

directly used by the catalog. There is no preview option,

changes are directly 'live'. So be carefull.

 

 

All changed and all fixes have been fixed for current snap shot...

Edited by Steven Pignataro ([email protected])

*/

?><!-- MAIN PAGE EXAMPLE START //-->

<table align=center width="100%" cellpadding="5" cellspacing="0" border=0>

<tr>

<td class="main" width=50% valign="top" align="right">

<?php

$mainpage_title = "Klinik Berg slår dørerne den 1. November!";

$mainpage_info = ""

"Define Mainpage" module v1.3 by Matthijs ([email protected])

<p>

This module demonstrates how easy it can be to adapt existing code in OSC.<br>

All I had to do was add one single line to define_languages.php (admin) to make

sure it always looks for the mainpage.php file. Obviously I had to then implement it

in the Admin & Catalog side, but that's not a big deal as you've just found out.<p>

You can edit the contents of this file from within the Admin ( -> CATALOG -> DEFINE MAINPAGE)<br>

For other, less advanced layouts choose either German or Spanish from the language menu. (Provided you've installed

those languages)<p>If you can't open/edit the /[language]/mainpage.php file you should probably set the right permissions. You'll get a warning anyway.

<p>Todo? Future plans? World peace through superior fire power... ehmm.. <br>no I mean a preview option ;)<br>

And perhaps make a few templates for the layout...<p>

I'd appreciate an e-mail if you use this, I'm curious...<br>

Later,<br>

Mattice

";

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => $mainpage_title );

new infoBoxHeading($info_box_contents, true, true);

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => $mainpage_info);

new infoBox($info_box_contents);

?>

</td>

<td width=30% valign="top" align="center">

<?

$somebox_title = "Ratings...";

$somebox_info = tep_image(DIR_WS_IMAGES . 'stars_1.gif') . ' Sucks!<br>' . tep_image(DIR_WS_IMAGES . 'stars_2.gif') . ' Mwoah<br>' . tep_image(DIR_WS_IMAGES . 'stars_3.gif') . ' Okay<br>' . tep_image(DIR_WS_IMAGES . 'stars_4.gif') . ' Cool!';

 

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => $somebox_title );

new infoBoxHeading($info_box_contents, true, true);

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => $somebox_info);

new infoBox($info_box_contents);

?>

<p>

<?

$somebox_title = "Anouncement:";

$somebox_info = "<align=left>This website is powered by the best OpenSource e-commerce solution available on the market today:<p>" . tep_image(DIR_WS_IMAGES . 'oscommerce.gif') . '<p>Please contribute to this fantastic project!<br>Visit http://www.oscommerce.com for more details.</center>';

 

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => $somebox_title );

new infoBoxHeading($info_box_contents, true, true);

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => $somebox_info);

new infoBox($info_box_contents);

?>

 

</td>

</table>

<!-- MAIN PAGE EXAMPLE END //-->

Edited by artichoke
Link to comment
Share on other sites

  • 2 years later...

In admin/define_mainpage.php

 

Look for this

 

// This will cause it to look for 'catalog/language/(L)/define_mainpage.php'

 

$HTTP_GET_VARS['filename'] = FILENAME_DEFINE_MAINPAGE;

 

 

Change to this

 

// This will cause it to look for 'catalog/language/(L)/define_mainpage.php'

 

// $HTTP_GET_VARS['filename'] = FILENAME_DEFINE_MAINPAGE;

 

$HTTP_GET_VARS['filename'] = 'define_mainpage.php';

 

Worked like a charm for me!!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...