Kwikcontent Support Forum

Full Version: How to Pharse?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Jeff,

Hope you can help, is there anyway to display the yahoo answers with some separation paragraphs. The content displayed is quite difficult to read which makes it look a bit spammy. Is there anyway we can modify the code, maybe add in a line or two to allow the answers to be displayed properly?

Also it would be nice if you could add another module for us to add our own articles to the sub keyword. This will really solve the "long tail" problem associated with longer keywords with no results found. Smile Btw is there a way to do it which I'm not aware of?

regards,
Jeremy
Jeremy, you can edit the display of the answers by altering the HTML template for that page. The one you refer to is yahoo_answer.htm and it can be found in the folder - templates/yahoo_grids_1/yahoo_answer.htm. There is a CSS style associated with those, so you may be able to achieve your desired look by simply altering the _style.css file in the same directory.

There is no way to currently add articles to subkeys. Building a module for this is possible, but would require an additional release of the software. This would be a feature I would suggest as a custom modification, because a new release of Kwikcontent will not be coming out any time soon. I will, however, make a note of this suggestion on my end and will consider it for a future release. I'd really like to hear others' opinions on the subject.
Hi Jeff,

Is this the line that we change?

{$answer.qa_info.Content|regex_replace:"/[\r\t\n]/":" "}

What do we change to separate the answer into paragraphs like what the person input? I don't really understand the code.

Thanks
Sorry, I didn't understand your original question, but now I do. Yes, that is the line you want to edit.

Before:
<li>{$ans.Content|regex_replace:"/[\r\t\n]/":" "}</li>

After:
<li>{$ans.Content|regex_replace:"/[\r\t\n]/":"<p>"}</li>

You can also add some space between the different answers:

Before:
<li>{$ans.Content|regex_replace:"/[\r\t\n]/":" "}</li>

After:
<li>{$ans.Content|regex_replace:"/[\r\t\n]/":" "}</li><br /><br />