Quick response on homepage

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
dmpp
Posts: 12
Joined: Tue Mar 16, 2010 8:24 pm

Quick response on homepage

Post by dmpp »

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?
weltling
Posts: 13
Joined: Tue Jul 28, 2009 5:46 pm

Re: Quick response on homepage

Post by weltling »

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
dmpp
Posts: 12
Joined: Tue Mar 16, 2010 8:24 pm

Re: Quick response on homepage

Post by dmpp »

do you have any details about what I need to do for the hack?
UTAKA
Posts: 37
Joined: Sun Jan 24, 2010 8:01 am
Location: phpmyfaq-jp.org
Contact:

Re: Quick response on homepage

Post by UTAKA »

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
---------------------------------------
Thorsten
Posts: 15562
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Quick response on homepage

Post by Thorsten »

Hi,

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
Post Reply