Hi,
I have two working functions;
Function 1:
http://pastebin.com/m460e6aa
Gets the topics from a forum and displays them on a page (in this case view.php)
Function 2:
http://pastebin.com/d464fb7df
Counts the words in every post. When reached 20 words, all following words in that post are filtered out.
The problem:
Function 2 filters EVERY post in the whole forum. I just want it to only filter the posts gotten (and displayed) by function 1.
To achieve this, I believe I have to combine these 2 functions into 1 big function. So I need to put the word-filter into the get-topic-filter so it will only filter the posts function 1 gets. But how to do that? Any attempt by me resulted into an empty page...
I am kinda stuck
Thanks