Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Editing? what to edit!


rce

Recommended Posts

Posted

Hi,

I need to help.

 

How, do I remove some unwanted side blocks?

And how can I add a block with some simple HTML in it???

 

Also, in index.php, (first page of the website) I get:

 

'What's New Here?

 

 

Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?

 

Welcome to Thorjet online. Here you can find videos, pictures and information about Thorjet and what they do. There is also a shop online facility with support forums if you get stuck building.

 

'

 

How can I remove this? Underneath it I have text which I have deifned in index.php in the languages file.

 

 

Also, has anybody got a simple HTML wrap page??? So I can use a html page, with the sideblocks etc.

 

Here is an expample I use for PostNuke:

 

<?php
include 'includes/pnAPI.php';
pnInit();
include 'includes/legacy.php';
// eugenio themeover 20020413
// pnThemeLoad();
define("LOADED_AS_MODULE","1");
# includes the mainfile functions and the header junk
if (!isset($mainfile)) { include("mainfile.php"); }
include("header.php");
?>


HTML-wrapped pages go here



<?php
// include footer junk
include("footer.php");
?>

 

Please Help.

 

Volkan

Posted

Hi,

Im trying to create simple pages, galleries etc.

 

Ok

but first I need to make a menu block.

 

Im using information.php.

 

The script is:

 

<?php
/*
 $Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/
?>
<!-- information //-->
         <tr>
           <td>
<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);

 new infoBoxHeading($info_box_contents, false, false);

 $info_box_contents = array();
 $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .
                                        '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .
                                        '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .
                                        '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>');

 new infoBox($info_box_contents);
?>
           </td>
         </tr>
<!-- information_eof //-->

 

 

Can anybody tell me how to edit it to give = A Name + Link.

 

Please help.

 

VOlkan

Posted

If you want to add a link in this box. Just edit $info_box_contents array from

 

<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);

new infoBoxHeading($info_box_contents, false, false);

$info_box_contents = array();
$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .
                                       '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .
                                       '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .
                                       '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>');

new infoBox($info_box_contents);
?>

to

 

<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);

new infoBoxHeading($info_box_contents, false, false);

$info_box_contents = array();
$info_box_contents[] = array('text' => '<a href="My_absolute_or_relative_address">My Title Text</a><br>' .
                                       '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .
                                       '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .
                                       '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .
                                       '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>');

new infoBox($info_box_contents);
?>

 

There are other ways to do it. But this is the easiest/quickest one.

 

Good luck!

Posted
If you want to add a link in this box.  Just edit $info_box_contents array from

 

<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);

new infoBoxHeading($info_box_contents, false, false);

$info_box_contents = array();
$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?'<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>');

new infoBox($info_box_contents);
?>

to

 

<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);

new infoBoxHeading($info_box_contents, false, false);

$info_box_contents = array();
$info_box_contents[] = array('text' => '<a href="My_absolute_or_relative_address">My Title Text</a><br>' .
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?'<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?'<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>');

new infoBox($info_box_contents);
?>

 

There are other ways to do it.  But this is the easiest/quickest one.

 

Good luck!

 

 

Hi

Arnt they the same lol?

I dont understand how I change the name and link url?

Posted

LOL. They look very similar. But the modified line is this one.

 

$info_box_contents[] = array('text' => '<a href="My_absolute_or_relative_address">My Title Text</a><br>'

Posted

You can also open catalog/includes/languages/english.php and edit the following lines

 

// information box text in includes/boxes/information.php
define('BOX_HEADING_INFORMATION', 'Information');
define('BOX_INFORMATION_PRIVACY', 'Privacy Notice');
define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');
define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');
define('BOX_INFORMATION_CONTACT', 'Contact Us');

 

This will change the Titles in the boxes.

 

Optionally you can also change the contents of the pages or even create new pages along with new titles. That will take quite a bit more work. ;)

Posted
You can also open catalog/includes/languages/english.php and edit the following lines

 

// information box text in includes/boxes/information.php
define('BOX_HEADING_INFORMATION', 'Information');
define('BOX_INFORMATION_PRIVACY', 'Privacy Notice');
define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');
define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');
define('BOX_INFORMATION_CONTACT', 'Contact Us');

 

This will change the Titles in the boxes.

 

Optionally you can also change the contents of the pages or even create new pages along with new titles.  That will take quite a bit more work. ;)

 

 

Thank you alot, I have done it. :) :)

:thumbsup:

 

How do I noe make simple pages with text + images, maybe tables etc>??

 

Something like that wrap in my prevoius post??

Archived

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

×
×
  • Create New...