Welcome to Geeklog Thursday, June 04 2020 @ 09:18 pm EDT

Geeklog Forums

FAQ Manager: Calling Function


Allison

Anonymous
confused
I have installed the FAQ Manager. Because I want the FAQ on the main page, I made a php block - however what do I do to call the function. YES I have read the documentation. YES I have looked on the internet for an answer elsewhere.

The block wants something sort (this whole thing doesn't fit??) and it has to start with phpblock_. I am confused.



/**
* Returns the items for this plugin that should appear on the main menu
*/
function plugin_getmenuitems_faqman() {
global $_CONF,$LANG_FAQ;

$menuitems[$LANG_FAQ['headerlabel']] ="{$_CONF['site_url']}/faqman/index.php";
return $menuitems;
}

/**
* returns the administrative option for this plugin
* *
*/

 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/02
Posts: 13073
Location:Stuttgart, Germany
You'll have to implement your own function for a PHP block.

See the FAQ: What are the different block types for?

bye, Dirk
 Quote

All times are EDT. The time is now 09:18 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content