Advertisement:

View the most recent posts on the forum.

Aloittaja Crip, marraskuu 30, 2011, 01:09:44 IP

« edellinen - seuraava »

Crip

hi,
..is there away to display only a certain amount of View the most recent posts on the forum. located at bottom of Stats Area?

Link takes you to: Pages: [1] 2 ... 10 , I'd like to display only [...]Pages: [1]

kind regards,
Crip~
-----------
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

Akyhne

For your own forum only? You could tweak RecentPosts() in Recent.php

For a theme, you could tweak SSI.php

Crip

Thanks ,
yes it's for my Forum .. i'll try the SSI.php
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

Crip

#3
No dice , there must be another way ?

p/s
I checked my 1.1 version and it displays => Pages: [10] as\well ..?
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

Ricky.

I did it  using SSI recently, saving it in array then output as required.

Crip

Lainaus käyttäjältä: Ricky. - joulukuu 02, 2011, 03:11:04 AP
I did it  using SSI recently, saving it in array then output as required.

Cool , please , tell me more?
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

Ricky.

Do following but don't forget to include SSI first...

$latest = ssi_recentTopics($num_recent = 10, $exclude_boards = 47.0, $include_boards = null, $output_method='array');

Now $latest will contain all your latest topic, you can see that array using print_r($latest) and format them as you need ! Here, have excluded board 47.0 , you can omit this part to include all board.


Crip

thanks Ricky. -- and this SSI code goes where?  ... via the =>  //Recent.template.php  ?
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

Ricky.

Depends where you need, since most of the time we modify index.template.php only, I had used this in index.template.php only!

Crip

I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

Crip

I really can't find a place to add your code or I'm doing it wrong ? ,, no errors though..

wrong??
<?php include("$latest = ssi_recentTopics($num_recent = 10, $exclude_boards = 47.0, $include_boards = null, $output_method='array');"); ?>
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

Ricky.

It will not output anything, you should do like this :

include 'Path/to/your/SSI.php';
$latest = ssi_recentTopics($num_recent = 10, $exclude_boards = 47.0, $include_boards = null, $output_method='array');

Above will not show anything,  rather everything will be in $latest. Now either using loop or directly, you output them as required.

Advertisement: