MyBB Threadcache
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #4
RE: MyBB Threadcache
forumdisplay_thread will give you access to the $thread variable, which basically is the whole thread it self.

I would rather investigate the possibility of hooking at forumdisplay_get_threads to hijack or modify the query to join the favorites table. If that works (it should one way or another, even if dirty) then just hook at forumdisplay_thread with something like:

PHP Code:
1
2
3
4
5
6
7
8
9
function favorites_added()
{
	global $thread;

	if(isset($thread['favorite']))
	{
		$thread['favorite'] = 'HELLO';
	}
}


If you are unable to hijack/modify the query you can simple run your own in there appending its value to $threadcache. You already have this query in your original code.


Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
(This post was last modified: 02-27-2015 04:10 PM by Sama34.)
02-27-2015 04:08 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
MyBB Threadcache - leefish - 02-22-2015, 11:54 AM
RE: MyBB Threadcache - ZiNgA BuRgA - 02-23-2015, 04:44 PM
RE: MyBB Threadcache - leefish - 02-25-2015, 02:22 PM
RE: MyBB Threadcache - Sama34 - 02-27-2015 04:08 PM
RE: MyBB Threadcache - leefish - 02-27-2015, 08:20 PM
RE: MyBB Threadcache - ZiNgA BuRgA - 02-27-2015, 08:37 PM
RE: MyBB Threadcache - Sama34 - 02-28-2015, 04:48 PM
RE: MyBB Threadcache - leefish - 03-01-2015, 02:20 PM
RE: MyBB Threadcache - ZiNgA BuRgA - 03-01-2015, 05:23 PM
RE: MyBB Threadcache - Sama34 - 03-02-2015, 06:52 AM

 Standard Tools
Forum Jump: