Zen Cart(tm) Wiki talk:Site support

From Zen Cart(tm) Wiki

Jump to: navigation, search

Might want to consider adding direct links from this page instead of just linking to http://www.zen-cart.com/modules/freecontent/index.php?id=24

Certain predesigned forms can be added to the wiki with the use of a mediawiki addon, as is currently done on my site. Here's how I did it:

  1. Download the file inputbox.php (http://cvs.sourceforge.net/viewcvs.py/wikipedia/extensions/inputbox/) to the 'extensions' directory of your MediaWiki installation.
  2. Look at the Inputbox class in that file and copy one of the "get*Form" methods into a new one and replace the html.
  3. Look at the method render() of the class Inputbox and add another elseif and link it to the new method you copied.
  4. Add the line
    	require_once("extensions/inputbox.php");
    to LocalSettings.php.
  5. Add the following where you'd like to display the form, and replace 'donate' with whatever you called the newly created type;
    <inputbox>
    
type=donate </inputbox>

This only allows the use of whatever predesigned forms created in inputbox.php

--Dwno 12:27, 8 January 2006 (MST)

Personal tools