News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Hiding posts from recent posts

Started by Hj Ahmad Rasyid Hj Ismail, May 19, 2011, 10:10:24 PM

Previous topic - Next topic

Hj Ahmad Rasyid Hj Ismail

Hiding posts from recent posts - Link to Mod

Taken over by: BurkeKnight - BurkeKnight Enterprises from: Joker™

For Support: The mod's Support topic at SMF, or at BurkeKnight Enterprises.

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.


Version 1.2
- Minor fixes
- Added a feature described here
- 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

kichu

Nice Mod, i want this for 1.1.15 :) Thank you

Joker™

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 :).
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

lttung

Pls help, i can't install in SMF 2.0.2 :(

Joker™

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

lttung

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'],


Joker™

Can you attach the file here

Source/Subs-Recent.php
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

lttung

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

OCJ

#8
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.

Joker™

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.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

lttung

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

Joker™

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.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

lttung


Joker™

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. Install "Recent Topics On Board Index 1.03" first and then "Hiding posts from recent posts"
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

lttung

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. Install "Recent Topics On Board Index 1.03" first and then "Hiding posts from recent posts"

Thank so much. Work great for me.

lttung

Other question: How to know topic ID after install Pretty URLs mod ?

Joker™

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?
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Joker™

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.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

lttung

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


Joker™

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?
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Advertisement: