Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Is this possible? Displaying threads on index with x criteria
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #29
RE: Is this possible? Displaying threads on index with x criteria
(02-04-2013 07:56 AM)brad-t Wrote:  I was wondering if it would be possible to embed these templates within the forumbit_depth2_forum template instead of just the index?
Maybe you need to change the hook.
Try this way:
Open the file, find:

PHP Code:
109
110
$plugins->add_hook('index_start','xttimg_index_index');
function xttimg_index_index(){

Replace it with:

PHP Code:
109
110
111
$plugins->add_hook('build_forumbits_forum','xttimg_index_index');
function xttimg_index_index(&$f){
	if(THIS_SCRIPT != 'index.php' || $f['fid'] != 21) return;

Change the 21 with your forum id.
Put your variable, for example: {$GOBALS['xttimg_index_latest_threads']} in your forumbit_depth2_forum template.
   

(02-05-2013 04:46 AM)brad-t Wrote:  customize the display of each forumbit using template conditionals,
If it is a custom complex forumbit_depth2_forum template, personally, I prefer to use the XThreads's Template Prefix feature for creating the custom template.

02-06-2013 01:57 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Is this possible? Displaying threads on index with x criteria - RateU - 02-06-2013 01:57 AM

 Standard Tools
Forum Jump: