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 » Tue Mar 16, 2010 8:30 pm

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 » Wed Mar 17, 2010 10:40 am

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 » Wed Mar 17, 2010 12:30 pm

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 » Mon Mar 22, 2010 3:58 am

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

Re: Quick response on homepage

Post by Thorsten » Sat Apr 03, 2010 6:43 am

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