Welcome to Geeklog, Anonymous Friday, January 03 2025 @ 12:40 am EST
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
* *
*/
9
9
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
12
7
Quote
All times are EST. The time is now 12:40 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