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: #22
RE: Is this possible? Displaying threads on index with x criteria
Similar to this (?):
http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=1347&pid=1137

If you don't mind some editing to the file, you can try it.

Open up the file:

Change the settings:

PHP Code:
112
113
$fids = array('2','3');// Forum IDs
$xtimgdim = array('w'=>75,'h'=>75);// XThreads image thumbnail dimension


Find this code:

PHP Code:
116
$xttimg_index_latest_threads = xttimg_threads_run($fids,5,'dateline','xttimg_index_latest_threads_thread','xttimg_index_latest_threads','timg',$xtimgdim,$avdim);


Replace the timg with your XThreads image key, example for the main image in the Brand Directory example application: mimg

Remove this line:

PHP Code:
117
$xttimg_index_most_viewed_threads = xttimg_threads_run($fids,5,'views','xttimg_index_most_viewed_threads_thread','xttimg_index_most_viewed_threads','timg',$xtimgdim,$avdim);

You can use the line above if you want to add another blocks.
If you don't want it, you can remove xttimg_index_most_viewed_threads and xttimg_index_most_viewed_threads_thread templates.

Put {$xttimg_index_latest_threads} variable manually in your index template.

If it is not what you want, maybe we can modify it.


06-16-2012 07:30 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 - 06-16-2012 07:30 AM

 Standard Tools
Forum Jump: