rce Posted January 15, 2005 Posted January 15, 2005 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
Guest Posted January 15, 2005 Posted January 15, 2005 Here is an example of removing boxes http://www.oscommerce.com/forums/index.php?sho...ndpost&p=522300
rce Posted January 16, 2005 Author Posted January 16, 2005 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
Guest Posted January 16, 2005 Posted January 16, 2005 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!
rce Posted January 16, 2005 Author Posted January 16, 2005 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! <{POST_SNAPBACK}> Hi Arnt they the same lol? I dont understand how I change the name and link url?
Guest Posted January 16, 2005 Posted January 16, 2005 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>'
Guest Posted January 16, 2005 Posted January 16, 2005 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. ;)
rce Posted January 16, 2005 Author Posted January 16, 2005 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. ;) <{POST_SNAPBACK}> 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??
Recommended Posts
Archived
This topic is now archived and is closed to further replies.