Jump to content

Weexe

Approved members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Weexe

  1. Hello, i try to create a new Banner Type with 2 Images. I've found some other topics an tried to work with their code because there is no documentation about it. File i've created: plugins/etc/customBanner/customBanner.xml <?xml version="1.0" encoding="ISO-8859-1" ?> <?xml-stylesheet type="text/xsl" href=""?> <plugin> <name>customBanner</name> <displayName>My Custom Banner</displayName> <creationDate>2015-01-02</creationDate> <author>Lars</author> <authorEmail>test</authorEmail> <authorUrl>htest</authorUrl> <license>GNU Gneral Public License v2</license> <description>my banner</description> <version>1.0.0</version> <oxversion>3.1.0</oxversion> <extends>bannerTypeHtml</extends> <install> <files> <file path="{PLUGINPATH}">myBanner.readme.txt</file> <file path="{PLUGINPATH}">myBanner.uninstall.txt</file> <file path="{MODULEPATH}newBanner/customBanner/">bannerComponent.class.php</file> </files> </install> </plugin> plugins/etc/myBanner.xml <?xml version="1.0" encoding="ISO-8859-1" ?> <?xml-stylesheet type="text/xsl" href=""?> <plugin> <name>myBanner</name> <displayName>My Custom Banner</displayName> <creationDate>2017-07-13</creationDate> <author>Lars</author> <authorEmail>test</authorEmail> <authorUrl>test</authorUrl> <license>GNU Gneral Public License v2</license> <description>Custom Banner</description> <version>1.0.0</version> <type>package</type> <install> <contents> <group name="customBanner">0</group> </contents> </install> </plugin> plugins/newBanner/customBanner/bannerComponent.class.php <?php require_once MAX_PATH . '/lib/OA.php'; require_once MAX_PATH . '/lib/max/Plugin/Common.php'; require_once LIB_PATH . '/Extension/bannerTypeText/bannerTypeHtml.php'; require_once MAX_PATH . '/lib/max/Plugin/Translation.php'; class Plugins_BannerTypeHTML_domHtml_domHtmlComponent extends Plugins_BannerTypeHtml { /** * Return type of plugin * * @return string A string describing the type of plugin. */ function getOptionDescription() { return $this->translate("My HTML Banner"); } function buildForm(&$form, &$row) { parent::buildForm($form, $row); $form->addElement('text', 'text1', "Text Title"); addUploadGroup($form, $aBanner, array( 'uploadName' => 'upload', 'radioName' => 'replaceimage', 'imageName' => '$imageName', 'newLabel' => $GLOBALS['strNewBannerFile'], 'updateLabel' => $GLOBALS['strUploadOrKeep'], 'handleSWF' => true )); } } My Question now ist , what else i have to change to get a new Banner Type ? Where can i manipulate the html code which is delivered to the client ? (Placing the second image upload)
×
×
  • Create New...