Hi there,
I do not want to put the news section on the index page of my phpmyfaq installation. Instead, what I want to do is use the quick response function.
I'm able to remove the news section without a problem. The issue, is trying to get the quick response to work in that area instead.
I've copied the code from the instantresponse.tpl template and put it in to the main.tpl template, but all the headings and labels are showing up as:
{msgInstantResponse}
{msgDescriptionInstantResponse}
{msgSearchWord}
How can I get it to display the proper titles and labels?
Quick response on homepage
Moderator: Thorsten
Re: Quick response on homepage
that template vars do not exist at that place, you need a small hack which would create that vars in php land and pass them to the template
Re: Quick response on homepage
do you have any details about what I need to do for the hack?
Re: Quick response on homepage
Code: Select all
#
### --- OPEN ---------------
#
main.php
#
## ----- Find -------------
# About Line50
$tpl->processTemplate('writeContent', array(
#
# ----- After Add ---------
#
'msgInstantResponse' => $PMF_LANG['msgInstantResponse'],
'msgDescriptionInstantResponse' => $PMF_LANG['msgDescriptionInstantResponse'],
'msgSearchWord' => $PMF_LANG['msgSearchWord'],
---------------------------------------
Sorry...I am not good at English.
http://www.phpmyfaq-jp.org
---------------------------------------
Sorry...I am not good at English.
http://www.phpmyfaq-jp.org
---------------------------------------
Re: Quick response on homepage
Hi,
this is already possible with phpMyFAQ 2.6 and is handled by an optional configuration selection.
bye
Thorsten
this is already possible with phpMyFAQ 2.6 and is handled by an optional configuration selection.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist