The following warnings occurred: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
|
Where in to place the php code of a plugin? - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Installation & Setup (http://get-simple.info/forums/forumdisplay.php?fid=5) +--- Thread: Where in to place the php code of a plugin? (/showthread.php?tid=4960) |
Where in to place the php code of a plugin? - theet - 2013-07-18 I'm new to use GetSimple and it looks good! I have tried to use for example the I18N search plugin and when I place te (% search %) code on a page, that will be no problem. But: where, in what file I have to place te php code? For example the one which shows on the explanation: PHP Code: <?php get_search_form(array('slug'=>'search', 'showTags'=>0)); ?> RE: Where in to place the php code of a plugin? - shawn_a - 2013-07-18 You can put it directly in a template in your theme. Or a component and call it via the theme, or use the dynpages plugin to insert a component on a page. RE: Where in to place the php code of a plugin? - theet - 2013-07-18 I have tried to place the php code, but it won't work. Is ther something going wrong? (sidebar.inc.php) PHP Code: <?php if(!defined('IN_GS')){ die('you cannot load this page directly.'); } RE: Where in to place the php code of a plugin? - shawn_a - 2013-07-19 hmm, is the plugin enabled ? Looks ok to me. You might have to ask in the i18n search thread. RE: Where in to place the php code of a plugin? - theet - 2013-07-19 (2013-07-19, 01:03:26)shawn_a Wrote: hmm, is the plugin enabled ? The plugin is enabled. I will ask in i18n tread. Thanks! |