Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Hj Ahmad Rasyid Hj Ismail on May 19, 2011, 10:10:24 PM

Title: Hiding posts from recent posts
Post by: Hj Ahmad Rasyid Hj Ismail on May 19, 2011, 10:10:24 PM
Hiding posts from recent posts - Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2975)

Taken over by: BurkeKnight (http://www.simplemachines.org/community/index.php?action=profile;u=150637) - BurkeKnight Enterprises (http://www.burkeknight.com/) from: Joker™ (http://www.simplemachines.org/community/index.php?action=profile;u=226111)

For Support: The mod's Support topic at SMF, or at BurkeKnight Enterprises (http://www.burkeknight.com/).

This modification allows the categories, boards and topics of your choices to be removed from the recent post lists.

Just go to
Administration Center > Modification Settings > Recent Posts Setting
and put the ids of categories, boards and topics you want to remove from recent posts list.

For example if you want to remove category 1 and 2 from the list, just put the category ids like

1,2 (just have a comma in between and don't leave any space).

Same goes for boards and topics also.


Update -
1. You can also hide the topics by clicking "Hide" button within the topics. One can unhide/undo the topic using the same button.
2. You can set permission for each member group who can access the hide button in topics. To adjust the permission go to permission section in admin panel and set the permission for each group separately.


- Note: This mod only hides the items in the recent post listing that is shown on the board index.


Change Log

Version 1.3
- Implemented permission on hide button as per suggestion over here (http://www.simplemachines.org/community/index.php?topic=434749.msg3443590#msg3443590).


Version 1.2
- Minor fixes
- Added a feature described here (http://www.simplemachines.org/community/index.php?topic=434749.msg3422492#msg3422492)
- Change in license of mod


Version 1.1
- Mod updated for SMF 2.0 final
- License added to the mod


License
* This SMF Modification is subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this SMF modification except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/License
Title: Re: Hiding posts from recent posts
Post by: kichu on December 15, 2011, 08:15:45 AM
Nice Mod, i want this for 1.1.15 :) Thank you
Title: Re: Hiding posts from recent posts
Post by: Joker™ on December 15, 2011, 08:17:49 AM
Quote from: kichu on December 15, 2011, 08:15:45 AM
Nice Mod, i want this for 1.1.15 :) Thank you
Sorry, I'm not back-porting any of my mods to SMF 1.x as a stable version of SMF 2.0 is already released :).
Title: Re: Hiding posts from recent posts
Post by: lttung on April 08, 2012, 03:00:42 PM
Pls help, i can't install in SMF 2.0.2 :(
Title: Re: Hiding posts from recent posts
Post by: Joker™ on April 09, 2012, 10:54:40 PM
Quote from: lttung on April 08, 2012, 03:00:42 PM
Pls help, i can't install in SMF 2.0.2 :(
And the issue is?
Title: Re: Hiding posts from recent posts
Post by: lttung on April 10, 2012, 04:02:54 AM
Can't find and replace in Subs-Recent.php:

AND b.id_board != {int:recycle_board}' : '') . '

and  can't find and insert:

'recycle_board' => $modSettings['recycle_board'],

Title: Re: Hiding posts from recent posts
Post by: Joker™ on April 10, 2012, 10:30:58 PM
Can you attach the file here

Source/Subs-Recent.php
Title: Re: Hiding posts from recent posts
Post by: lttung on April 11, 2012, 10:14:17 AM
Quote from: Joker™ on April 10, 2012, 10:30:58 PM
Can you attach the file here

Source/Subs-Recent.php

Yes, pls see attach file
Title: Re: Hiding posts from recent posts
Post by: OCJ on April 11, 2012, 10:23:11 AM
Problem is the SSI script bypasses many of these mods for hiding posts - including this one I think...(?) when I tested it.

site.com/SSI.php?ssi_function=boardNews reveals all unless access to it is denied.


QuoteBut this mod only hide posts from a very specific area. Mod description never said that posts are going to be hidden from everywhere.
... yes ok, fair enough.
Title: Re: Hiding posts from recent posts
Post by: Joker™ on April 11, 2012, 10:51:11 PM
Quote from: lttung on April 11, 2012, 10:14:17 AM
Quote from: Joker™ on April 10, 2012, 10:30:58 PM
Can you attach the file here

Source/Subs-Recent.php

Yes, pls see attach file
File looks strange to me. What mods you have installed on the forum?


Quote from: igirisjin on April 11, 2012, 10:23:11 AM
Problem is the SSI script bypasses many of these mods for hiding posts - including this one I think...(?) when I tested it.

site.com/SSI.php?ssi_function=boardNews reveals all unless access to it is denied.
But this mod only hide posts from a very specific area. Mod description never said that posts are going to be hidden from everywhere.
Title: Re: Hiding posts from recent posts
Post by: lttung on April 11, 2012, 11:08:21 PM
QuoteFile looks strange to me. What mods you have installed on the forum?


So many mod, but have two mod related:

30.   Recent Topics On Board Index   1.03   
31.   Move recent to the top   2.7
Title: Re: Hiding posts from recent posts
Post by: Joker™ on April 12, 2012, 01:37:18 PM
Quote from: lttung on April 11, 2012, 11:08:21 PM
Recent Topics On Board Index
This mod got into conflict with above quoted mod. Umm, I'll be working on this by weekend only.
Title: Re: Hiding posts from recent posts
Post by: lttung on April 13, 2012, 05:24:15 AM
Thanks and waiting...
Title: Re: Hiding posts from recent posts
Post by: Joker™ on April 15, 2012, 09:55:39 AM
Quote from: lttung on April 13, 2012, 05:24:15 AM
Thanks and waiting...
Please use the attached package.

Note - This package is only for those users who want to use this mod with  Recent Topics On Board Index 1.03 (http://custom.simplemachines.org/mods/index.php?mod=1314). Install "Recent Topics On Board Index 1.03" first and then "Hiding posts from recent posts"
Title: Re: Hiding posts from recent posts
Post by: lttung on April 15, 2012, 02:15:03 PM
Quote from: Joker™ on April 15, 2012, 09:55:39 AM


Note - This package is only for those users who want to use this mod with  Recent Topics On Board Index 1.03 (http://custom.simplemachines.org/mods/index.php?mod=1314). Install "Recent Topics On Board Index 1.03" first and then "Hiding posts from recent posts"

Thank so much. Work great for me.
Title: Re: Hiding posts from recent posts
Post by: lttung on April 17, 2012, 12:02:55 AM
Other question: How to know topic ID after install Pretty URLs mod ?
Title: Re: Hiding posts from recent posts
Post by: Joker™ on April 18, 2012, 12:57:32 PM
Quote from: lttung on April 17, 2012, 12:02:55 AM
Other question: How to know topic ID after install Pretty URLs mod ?
Its a long time since I even looked at that mod. Have you faced any issue while using this mod with pretty url?
Title: Re: Hiding posts from recent posts
Post by: Joker™ on October 17, 2012, 09:15:55 AM
Quote from: lttung on April 17, 2012, 12:02:55 AM
Other question: How to know topic ID after install Pretty URLs mod ?
Wow your post gave me some nice idea.

Working on next upgrade of mod which is going to have a hide button with every post and board, so that you dont have to fill in the id's manually.

Stay tuned and happy coding :D.
Title: Re: Hiding posts from recent posts
Post by: lttung on November 22, 2012, 07:07:50 AM
Ver 1.2 not work in my forum

Error: can't find

Quote'recycle_board' => $modSettings['recycle_board'],
         AND b.id_board != {int:recycle_board}' : '') . '

to insert and replace in Sub-recent.php

P/s: I found nd replace in Recent.php, but not work

Title: Re: Hiding posts from recent posts
Post by: Joker™ on November 22, 2012, 07:27:29 AM
Quote from: lttung on November 22, 2012, 07:07:50 AM
Ver 1.2 not work in my forum

Error: can't find

Quote'recycle_board' => $modSettings['recycle_board'],
         AND b.id_board != {int:recycle_board}' : '') . '

to insert and replace in Sub-recent.php

P/s: I found nd replace in Recent.php, but not work


Hi,

A little more information would be much helpful.

- Version of SMF you are using
- Error came while inserting the id manually or while clicking the 'Hide topic' button within the topics?
- What other mods do you have installed
- Do you have a recycle bin board?
Title: Re: Hiding posts from recent posts
Post by: lttung on November 22, 2012, 12:52:46 PM

- Version of SMF you are using: 2.0.2
- Error came while inserting the id manually or while clicking the 'Hide topic' button within the topics?: I can insert manualy and click button, but topic not HIDE in recent
- What other mods do you have installed: Yes, i think conflict with Recent Topics On Board Index 1.03
- Do you have a recycle bin board? : Yes

I attachments Sub-recent.php
Title: Re: Hiding posts from recent posts
Post by: Joker™ on November 22, 2012, 01:40:15 PM
Quote from: lttung on November 22, 2012, 12:52:46 PM

- Version of SMF you are using: 2.0.2
- Error came while inserting the id manually or while clicking the 'Hide topic' button within the topics?: I can insert manualy and click button, but topic not HIDE in recent
- What other mods do you have installed: Yes, i think conflict with Recent Topics On Board Index 1.03
- Do you have a recycle bin board? : Yes

I attachments Sub-recent.php
The file you have doesn't event contain any reference of 'recycle_board'. Can you post the complete error over here
Title: Re: Hiding posts from recent posts
Post by: lttung on November 22, 2012, 01:53:38 PM
When setup ver 1.2:

Can't find in Subs-recent.php:
         AND b.id_board != {int:recycle_board}' : '') . '
and
'recycle_board' => $modSettings['recycle_board'],


(But i can found in Recent.php)

after setup, i set board or topic hide, but not hide

Title: Re: Hiding posts from recent posts
Post by: lttung on November 22, 2012, 01:54:53 PM
Quote from: Joker™ on April 15, 2012, 09:55:39 AM
Quote from: lttung on April 13, 2012, 05:24:15 AM
Thanks and waiting...
Please use the attached package.

Note - This package is only for those users who want to use this mod with  Recent Topics On Board Index 1.03 (http://custom.simplemachines.org/mods/index.php?mod=1314). Install "Recent Topics On Board Index 1.03" first and then "Hiding posts from recent posts"

I back this version, board hide, but topic not hide
Title: Re: Hiding posts from recent posts
Post by: Joker™ on November 23, 2012, 02:09:51 PM
Try the attached mod.

Note - This package is only for those users who want to use this mod with Recent Topics On Board Index 1.03 (http://custom.simplemachines.org/mods/index.php?mod=1314). Install "Recent Topics On Board Index 1.03" first and then "Hiding posts from recent posts"
Title: Re: Hiding posts from recent posts
Post by: lttung on November 26, 2012, 02:00:55 AM
Thanks, worked with my forum. But any body can hide any topic.
I only want Admin can hide topic in recent, how to ?
Title: Re: Hiding posts from recent posts
Post by: Joker™ on November 26, 2012, 02:29:06 PM
Quote from: lttung on November 26, 2012, 02:00:55 AM
Thanks, worked with my forum. But any body can hide any topic.
I only want Admin can hide topic in recent, how to ?
I'll try to roll out a new version asap covering the issue.
Title: Re: Hiding posts from recent posts
Post by: spiros on December 10, 2012, 03:50:38 PM
Just an idea for you, perhaps you could have an option, maybe with a tabbed view in Info Center (so as to save space), of assigning boards to different groups of recent posts/topics. For example, one group could be about serious issues the forum deals with, and the other about off-topic discussion, so that people can easily focus on the most important stuff.

I would say that this should be an admin option.
Title: Re: Hiding posts from recent posts
Post by: Joker™ on December 11, 2012, 01:37:55 AM
Quote from: spiros on December 10, 2012, 03:50:38 PM
Just an idea for you, perhaps you could have an option, maybe with a tabbed view in Info Center (so as to save space), of assigning boards to different groups of recent posts/topics. For example, one group could be about serious issues the forum deals with, and the other about off-topic discussion, so that people can easily focus on the most important stuff.

I would say that this should be an admin option.
Umm I understood a partial bit of your idea, i.e tabbed view in info center. After that it went a bit above my head. Can you explain it in a bit more detailed manner :P.
Title: Re: Hiding posts from recent posts
Post by: spiros on December 11, 2012, 03:36:07 AM
Just imagine there are two info centers. 1st one showing topics/posts from x categories/boards and 2nd one topics/posts from y categories/boards.

Now, instead of having two boxes one below each other, you could have 2 (or more) tabs, so when clicking one sees the posts of the different set of categories/boards.

Is this clear enough?

For a tabbed implementation, see for example:

http://www.dpgr.gr/forum/index.php (Info center on top)
Title: Re: Hiding posts from recent posts
Post by: Joker™ on December 11, 2012, 07:08:25 AM
Quote from: spiros on December 11, 2012, 03:36:07 AM
Just imagine there are two info centers. 1st one showing topics/posts from x categories/boards and 2nd one topics/posts from y categories/boards.

Now, instead of having two boxes one below each other, you could have 2 (or more) tabs, so when clicking one sees the posts of the different set of categories/boards.

Is this clear enough?

For a tabbed implementation, see for example:

http://www.dpgr.gr/forum/index.php (Info center on top)
What if a user have 20 odd categories. Take SMF for example.
Title: Re: Hiding posts from recent posts
Post by: spiros on December 11, 2012, 07:10:45 AM
Each group (tab) can/should be assignable to multiple categories. This is standard functionality in SSI for example.
Title: Re: Hiding posts from recent posts
Post by: Joker™ on December 12, 2012, 01:44:58 PM
Quote from: spiros on December 11, 2012, 07:10:45 AM
Each group (tab) can/should be assignable to multiple categories. This is standard functionality in SSI for example.
Well, if thats the case, then one should worry about the query rate.
Title: Re: Hiding posts from recent posts
Post by: spiros on December 12, 2012, 01:48:22 PM
Well, you will not have 10 groups. Anyway, that is the way it is done in the link I gave you.
Title: Re: Hiding posts from recent posts
Post by: Joker™ on December 12, 2012, 11:39:45 PM
Quote from: spiros on December 12, 2012, 01:48:22 PM
Well, you will not have 10 groups. Anyway, that is the way it is done in the link I gave you.
Ok. I'll try to see what I can do. TBH, it seems more like a separate mod to me.
Title: Re: Hiding posts from recent posts
Post by: spiros on December 13, 2012, 07:52:33 AM
Yes, it is an idea for a different mod.
Title: Re: Hiding posts from recent posts
Post by: lttung on January 20, 2013, 02:16:36 PM
I have so many error in error log

http://xxxxxxx.com/yyyyy&action=hidetopic;hide_topic

"can't read main interface"

May be because this mod ?
Title: Re: Hiding posts from recent posts
Post by: Joker™ on January 20, 2013, 10:50:48 PM
Quote from: lttung on January 20, 2013, 02:16:36 PM
I have so many error in error log

http://xxxxxxx.com/yyyyy&action=hidetopic;hide_topic

"can't read main interface"

May be because this mod ?
Please post the complete error from error log.
Title: Re: Hiding posts from recent posts
Post by: lttung on January 20, 2013, 10:56:10 PM
Quote from: Joker™ on January 20, 2013, 10:50:48 PM
Quote from: lttung on January 20, 2013, 02:16:36 PM
I have so many error in error log

http://xxxxxxx.com/yyyyy&action=hidetopic;hide_topic

"can't read main interface"

May be because this mod ?
Please post the complete error from error log.

pls see capture screen
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg41.imageshack.us%2Fimg41%2F5605%2Ffullscreencapture121201.jpg&hash=7b81a743ca73c0e31d3d43a9c693d14548594d32)
Title: Re: Hiding posts from recent posts
Post by: Joker™ on January 22, 2013, 10:35:02 AM
Please share the pretty URL settings you are using, i.e the settings you have made in admin about what sort of url should be re-written by pretty url.
Title: Re: Hiding posts from recent posts
Post by: swordsman1 on May 11, 2013, 03:03:29 PM
Quote from: Joker™ on November 26, 2012, 02:29:06 PM
Quote from: lttung on November 26, 2012, 02:00:55 AM
Thanks, worked with my forum. But any body can hide any topic.
I only want Admin can hide topic in recent, how to ?
I'll try to roll out a new version asap covering the issue.

Any update on this? At the moment even guests can hide topics!!
Title: Re: Hiding posts from recent posts
Post by: Joker™ on May 13, 2013, 11:41:30 AM
Quote from: swordsman1 on May 11, 2013, 03:03:29 PM
Quote from: Joker™ on November 26, 2012, 02:29:06 PM
Quote from: lttung on November 26, 2012, 02:00:55 AM
Thanks, worked with my forum. But any body can hide any topic.
I only want Admin can hide topic in recent, how to ?
I'll try to roll out a new version asap covering the issue.

Any update on this? At the moment even guests can hide topics!!
Not sure how I missed this major update. Working on this right away, will be updated in a day or two :).
Title: Re: Hiding posts from recent posts
Post by: Joker™ on May 13, 2013, 02:30:22 PM
Mod updated. Please try out the new version.
Title: Re: Hiding posts from recent posts
Post by: swordsman1 on May 14, 2013, 07:34:22 AM
Thanks. Any chance of a version compatible with the "Recent Topics On Board Index 1.03" mod as before?
Title: Re: Hiding posts from recent posts
Post by: Joker™ on May 14, 2013, 10:47:02 AM
Quote from: swordsman1 on May 14, 2013, 07:34:22 AM
Thanks. Any chance of a version compatible with the "Recent Topics On Board Index 1.03" mod as before?

Please use the attached package.

Note - This package is only for those users who want to use this mod with  Recent Topics On Board Index 1.03 (http://custom.simplemachines.org/mods/index.php?mod=1314). Install "Recent Topics On Board Index 1.03" first and then "Hiding posts from recent posts"
Title: Re: Hiding posts from recent posts
Post by: akbora on May 14, 2013, 01:13:00 PM
Very very thanks Joker for the last file in your message. I want to use thiş mod but I coudn't install perfect because by Recent Topics On Board Index
Title: Re: Hiding posts from recent posts
Post by: swordsman1 on May 14, 2013, 02:16:41 PM
Nice one Joker. Works great. 
Title: Re: Hiding posts from recent posts
Post by: Mr. Pedram on May 26, 2013, 12:29:19 PM
Hi Joker,
Any chance to do this on SMF 1?
I need this mod on SMF 1.1.18
Title: Re: Hiding posts from recent posts
Post by: Joker™ on May 27, 2013, 09:16:25 AM
Hi Pedram,

Sorry, I'm not back porting any of my mods to SMF 1.x branch, as SMF has already released a stable version of SMF 2x.
Title: Re: Hiding posts from recent posts
Post by: Mr. Pedram on May 27, 2013, 11:10:28 AM
Ok right, no problem , thanks Joker.
Title: Re: Hiding posts from recent posts
Post by: cortez on August 03, 2014, 05:53:28 PM
Apparently it doesn't work properly anymore with 2.0.8

1) If I choose to hide one board specifically - it only hides its content from "recent posts" list on forum home, it doesn't hide it when clicked on "view the most recent posts on the forum".

2) If I choose to hide one topic - it hides it. But if I choose more of them - it hides nothing.

Title: Re: Hiding posts from recent posts
Post by: Oscworth on August 29, 2014, 01:23:16 PM
I'm trying to hide just 1 category and it isn't doing anything.....using smf2.0.8 with dream portal 1.1
Title: Re: Hiding posts from recent posts
Post by: Joker™ on September 06, 2014, 05:58:30 AM
Quote from: cortez on August 03, 2014, 05:53:28 PM
Apparently it doesn't work properly anymore with 2.0.8

1) If I choose to hide one board specifically - it only hides its content from "recent posts" list on forum home, it doesn't hide it when clicked on "view the most recent posts on the forum".

2) If I choose to hide one topic - it hides it. But if I choose more of them - it hides nothing.



Quote from: Oscworth on August 29, 2014, 01:23:16 PM
I'm trying to hide just 1 category and it isn't doing anything.....using smf2.0.8 with dream portal 1.1
- Note: This mod only hides the items in the recent post listing that is shown on the board index.
Title: Re: Hiding posts from recent posts
Post by: Hj Ahmad Rasyid Hj Ismail on October 08, 2014, 06:06:53 AM
Hiya all.

I am entrusted with this mod now but I haven't have time to look into it deeply yet. I also believe that my brother Joker is a better coder than I am. I will try to do my best in handling this mod.

This is one is a very nice mod.

Thank you for supporting this mod and do feel free to ask for support.
Title: Re: Hiding posts from recent posts
Post by: DreadPirateRoberts on May 12, 2020, 01:36:11 AM
Hello any idea how to make this mod with with this other recent post mod?
Title: Re: Hiding posts from recent posts
Post by: wylekk on May 12, 2020, 04:36:58 PM
This mod works fine for me on SMF 2.1 RC2 :)