Welcome to Geeklog, Anonymous Friday, April 11 2025 @ 10:49 am EDT
Geeklog Forums
FAQ Manager: Calling Function
Allison
Anonymous

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
* *
*/
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
* *
*/
11
12
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/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
See the FAQ: What are the different block types for?
bye, Dirk
14
10
Quote
All times are EDT. The time is now 10:49 am.
- 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