Closed soft4tec closed 9 years ago
@soft4tec sorry but it doesn't work for me. I get: "Fatal error: Call to a member function sql_build_array() on a non-object in /home/sarr/public_html/forum.swordcoast.pl/ext/tas2580/seourls/event/listener.php on line 184"
There are 2 occurance of '$url = $this->generate_topic_link($event['row']['forum_id'], $event['row']['forum_name'], $event['row']['topic_id'], $event['row']['topic_title']);'
First is in "public function search_modify_tpl_ary($event)" I changed only the second one, as you wrote. (under display_forums_modify_template_vars)
Oh sorry, I forget the
global $db;
to access the Database-Object in the function. Then it should be work.
Thanks for reporting, but your solution has the problem that it will make a lot of SQL queries. I have found a better way without additional SQL queries. I hope it will work.
If you have subforums in your forum there is an in the link for the last post. For Example
I found an quick&dirty solution in the listener.php for the function:
public function display_forums_modify_template_vars($event)
Replace the line:
with:
Maybe there is a better way to get the title and ids, but this works for the first.