TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,985
  • Total Topics: 21,321
  • Online today: 379
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 328
  • Total: 328

recent topic list, exclude certain boards?

Started by HappyFace, November 26, 2006, 10:48:21 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

HappyFace

is it possible to exclude certain boards in the "recent" block when someone post there?

Techdomain

#1
yes - you need to use a php block, and ssi to do it though - eg put this in a php block:


ssi_recentTopics('10', array('1','2') , 'array')

Where "10" is the amount of recent topics, and "1","2" are the boards to include...

of course, I might be wrong!

edit: thats not exactly right... hang on while i find it!



Techdomain

No problems. If you search around for SSI and Recent you will find more info - surely out of all that you will find some useful stuff - though some of it is confusing :)

knat

#5
is it possible to tell the built-in TPBlock "Recent topics" to not include post from one or two certain boards ?

Without adding your own block.. im talkin about modifiyng TPortalblocks somehow ?

Edit: Just like the recycleboard is somehow excluded from that list with this code

// leave out the recycle board, if any
if(isset($modSettings['recycle_board']))
$bb=array($modSettings['recycle_board']);
else
$bb=array();



could i do the same for the board i use for "repported topics" ?

Edit: I found out myself.. just added the number of my board to this line  :D

$bb=array($modSettings['recycle_board'],93);

iowamf

#6
The default method is to exclude boards - which means everytime you add or change the boards, you'll have to go back and add that board in your list to be excluded into your recent topics block.

The XYZ thread shows how to create a new method to only include the boards you want to see in the recent topics.

Its a trade-off of upfront work vs maintenance.

knat

Quote from: iowamf on February 02, 2007, 11:16:13 AM
The default method is to exclude boards - which means everytime you add or change the boards, you'll have to go back and add that board in your list to be excluded into your recent topics block.

The XYZ thread shows how to create a new method to only include the boards you want to see in the recent topics.

Its a trade-off of upfront work vs maintenance.

But i like my scrolling tp recent topics block.. so this way i can keep that and still exclude boards.. and you have to admit that it is easyer to exclude than it is to include when you have a big board ;-)

iowamf


It is easier to exclude boards than include boards in recent topics if your boards don't change frequently.

In my case, I wanted a custom "Recent Topics" to come from a few specific boards only - and I let other people manage adding/deleting boards ... so the only way to maintain integrity of the custom Recent Topics was to include (because new boards kept popping up).

Its all a matter of up-front work vs maintenance.

Quote from: knat on February 02, 2007, 11:24:17 AM
Quote from: iowamf on February 02, 2007, 11:16:13 AM
The default method is to exclude boards - which means everytime you add or change the boards, you'll have to go back and add that board in your list to be excluded into your recent topics block.

The XYZ thread shows how to create a new method to only include the boards you want to see in the recent topics.

Its a trade-off of upfront work vs maintenance.

But i like my scrolling tp recent topics block.. so this way i can keep that and still exclude boards.. and you have to admit that it is easyer to exclude than it is to include when you have a big board ;-)

catahoulabulldog

Ok, is there a way to definitely remove 1 board from the "recent" block?  WITHOUT creating a new block? Ive already seen and done this http://www.tinyportal.net/smf/index.php?topic=1234.0 but its way too crowded, and my members are comfortable with he look of the built in one. I have tried to edit as was mentioned in this reply.
Quote from: Tank on February 02, 2007, 11:08:09 AM
is it possible to tell the built-in TPBlock "Recent topics" to not include post from one or two certain boards ?

Without adding your own block.. im talkin about modifiyng TPortalblocks somehow ?

Edit: Just like the recycleboard is somehow excluded from that list with this code

// leave out the recycle board, if any
if(isset($modSettings['recycle_board']))
$bb=array($modSettings['recycle_board']);
else
$bb=array();



could i do the same for the board i use for "repported topics" ?

Edit: I found out myself.. just added the number of my board to this line  :D

$bb=array($modSettings['recycle_board'],93);

with no luck your help is appreciated..

This website is proudly hosted on Crocweb Cloud Website Hosting.