Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Any interest?
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #18
RE: Any interest?
You mean the <!--Forum Stickies List--> in the header?

Yes, I tried that but could not get it to work without the global start. I replaced global start with forumdisplay_start (and put <!--Forum Stickies List--> in the head section of the forum display) but then I had no Stickies showing in the threadlist.
It does seem overkill to have that run globally, but I cannot work out how to fix it.

I thought it was this piece I needed to edit

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$plugins->add_hook('global_start', 'xtdispforum_tcache');
function xtdispforum_tcache()
{
	global $mybb, $templatelist, $plugins;

	if($mybb->settings['xtdispforum_fid'] != 0)
	{
		if(THIS_SCRIPT == 'forumdisplay.php' || THIS_SCRIPT == 'showthread.php')
		{
			if(isset($templatelist))
			{
				$templatelist .= ',xtstickies_list,xtstickies_list_list';
			}
		}
		$plugins->add_hook('global_end', 'xtdispforum_run');
		$plugins->add_hook('forumdisplay_start', 'xtdispforum_run');
		$plugins->add_hook('showthread_start', 'xtdispforum_run');
	}
}



[Image: leelink.gif]
MYBB1.6 & XThreads
01-07-2011 08:36 AM
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
Any interest? - leefish - 01-06-2011, 06:17 AM
RE: Any interest? - Vapor - 01-06-2011, 07:12 AM
RE: Any interest? - leefish - 01-06-2011, 07:17 AM
RE: Any interest? - Vapor - 01-06-2011, 08:13 AM
RE: Any interest? - leefish - 01-06-2011, 08:14 AM
RE: Any interest? - RocketFoot - 01-06-2011, 08:44 AM
RE: Any interest? - leefish - 01-06-2011, 08:49 AM
RE: Any interest? - 1master1 - 01-06-2011, 10:15 AM
RE: Any interest? - leefish - 01-06-2011, 10:20 AM
RE: Any interest? - 1master1 - 01-06-2011, 02:15 PM
RE: Any interest? - leefish - 01-06-2011, 02:38 PM
RE: Any interest? - Vapor - 01-06-2011, 04:02 PM
RE: Any interest? - leefish - 01-06-2011, 04:59 PM
RE: Any interest? - Vapor - 01-06-2011, 05:15 PM
RE: Any interest? - RateU - 01-07-2011, 06:32 AM
RE: Any interest? - leefish - 01-07-2011, 06:38 AM
RE: Any interest? - RateU - 01-07-2011, 08:20 AM
RE: Any interest? - leefish - 01-07-2011 08:36 AM
RE: Any interest? - RateU - 01-07-2011, 08:46 AM
RE: Any interest? - leefish - 01-07-2011, 10:07 AM
RE: Any interest? - RateU - 01-08-2011, 03:53 AM
RE: Any interest? - leefish - 01-08-2011, 04:59 AM
RE: Any interest? - RateU - 01-08-2011, 05:32 AM
RE: Any interest? - leefish - 01-08-2011, 05:39 AM
RE: Any interest? - RateU - 01-08-2011, 05:50 AM
RE: Any interest? - leefish - 01-08-2011, 06:51 AM
RE: Any interest? - RateU - 01-08-2011, 07:09 AM
RE: Any interest? - leefish - 01-08-2011, 07:14 AM

 Standard Tools
Forum Jump: