Posts: 3 |
---|
Post: 7194 Topic: Undefined index: menu_indentation in gpeasy 4.3.4 |
8 years ago |
Post: 7120 Topic: search hook for special link |
This procedure works fine if in plugin code is no class defined. But if there are classes the content value becomes empty. I've tested with Plugins_Examples: ;Map Example ;Ajax Example [Search]
<?php defined('is_running') or die('Not an entry point...'); class Example_Search { function PluginSearchContent($File){ if( file_exists($File) ){ function Example_Search($args){ global $addonPathCode; $Label = "Example_Map"; $Label = "Example_Ajax";
8 years ago |
Post: 7115 Topic: search hook for special link |
I want to the search into special link html output. Out of the box plugin output was not include into the gpeasy search function. I've play arround with the search hook: ;Addon_Name ;Addon_Unique_ID ;Addon_Version ;min_gpeasy_version ;A description about your addon, [Special_Link:ELMA diag system] [Special_Link:ELMA diag rsyslog] [Search] My tries with search.php: <?php defined('is_running') or die('Not an entry point...'); class DiagSearch{ $search_obj = $args[0]; $PluginFile = '/srv/www/htdocs/elma/addons/ELMA Diagnostics/system.php'; $diagtitle = "Diagnostics"; $diaglabel = common::GetLabel($diagtitle); $search_obj->FindString($diagcontent, $diaglabel, $diaglink); } This finds the search pattern, but in case of not matching search pattern it is also in hit list. Is there a more dynamic way to address all defined special link inside a plugin? Any help would be fine. Joerg 8 years ago |
A new release for Typesetter is in the works with a lot of improvements including the ... Read More
Typesetter 5.1Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More
More NewsFind out more about our Provider Spotlight
What CMS: Find out what CMS a site is using.
Who Hosts This: Find out who is hosting any web site
WordPress Theme Detect: Find out which theme a WordPress site is using