Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.

Create A new InfoBox

Using a PayPal Accepted box as an example.

Create a new file, based on an existing InfoBox, in catalog/include/boxes. Note: In this example, you would need to supply the image file to display in the box.

catalog/includes/payment_methods.php

Press the var icon to view the source, to copy and paste

<?php
/*
$Id: information.php 3 2006-05-27 04:59:07Z user $

  osCMax Power E-Commerce
  http://oscdox.com

  Copyright 2006 osCMax

  Released under the GNU General Public License
*/

// Most of this file is changed or moved to BTS - Basic Template System - format.

  $boxHeading = BOX_HEADING_PAYMENT_METHODS;
  $corner_left = 'square';
  $corner_right = 'square';
  $box_base_name = 'payment_methods'; // for easy unique box template setup (added BTSv1.2)

  $box_id = $box_base_name . 'Box';  // for CSS styling paulm (editted BTSv1.2)
?>
<!-- information bof //-->
<?php

  $boxContent = '<img src="images/payments.gif" width="128" /><br />';


include (bts_select('boxes', $box_base_name)); // BTS 1.5

?>
<!-- information eof //-->

Login to Admin.; InfoBox Admin; New Infobox

  • Filename: payment_methods - same file as above but without .php extension. Also see line 13 in the file.
  • InfoBox Heading: Payments Accepted - or whatever you like
  • Define Key: BOX_HEADING_PAYMENT_METHODS - matches the one in the file above (line 10)
  • Which column?: (pretty obvious) Left/Right
  • What position: 20 (or as required)
  • Set as Active
  • Bookmark at
  • Bookmark "Create A new InfoBox" at Digg
  • Bookmark "Create A new InfoBox" at Furl
  • Bookmark "Create A new InfoBox" at Reddit
  • Bookmark "Create A new InfoBox" at Google
  • Bookmark "Create A new InfoBox" at StumbleUpon
  • Bookmark "Create A new InfoBox" at Technorati
  • Bookmark "Create A new InfoBox" at Facebook
  • Bookmark "Create A new InfoBox" at Twitter
  • Bookmark "Create A new InfoBox" at Slashdot
adding_a_new_infobox_-_version_2.0.2_onwards.txt ยท Last modified: 2010/08/04 12:44 by ejsolutions
You are here: startadding_a_new_infobox_-_version_2.0.2_onwards
Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0