Advertisement:

Author Topic: Show User Posts By Certain Boards - 1.1.2  (Read 11113 times)

Offline live627

  • Developer
  • SMF Hero
  • *
  • Posts: 4,004
  • Gender: Male
  • Cat: Destroy!
    • live627 on Facebook
    • @live627 on Twitter
    • livemods
Show User Posts By Certain Boards - 1.1.2
« on: November 07, 2011, 04:18:00 AM »
Show User Posts By Certain Boards



Yet another simple modification which allows users to filter results as shown by show posts/topics/attachments in the profile section of a user to specific board id(s). For example, if a user decides to filter results to board ids: 3, 4, 5, only results from those boards will be shown.

Now released under the GNU/GPL (as of version 1.1.2).

Created by Anthony Calandra/Project Evolution - 2011.
« Last Edit: July 28, 2012, 02:40:23 PM by Project Evolution »
I'm a morning person. I stay up until the morning.

Offline 4Kstore

  • SMF Hero
  • ******
  • Posts: 4,158
  • Gender: Male
    • agustintari on Facebook
    • @agustintarifa on Twitter
    • SSIMPLE TEAM PAGE
Re: Show User Posts By Certain Boards
« Reply #1 on: November 07, 2011, 01:16:53 PM »
Nice mod!
Thanks for share!
NUEVOS MODS!!!

Offline MiY4Gi

  • Full Member
  • ***
  • Posts: 515
  • Gender: Male
  • Mm...
    • MyAnimeClub.net
Re: Show User Posts By Certain Boards
« Reply #2 on: November 10, 2011, 11:07:50 AM »
Would it be possible to use board titles instead of board id's, even if I have to hard-code it into my forum?
Check out my new website, MyAnimeClub.net. I plan to create the largest anime community, and most fun and user-friendly anime forum in the world. It's still in the development stage though.

Offline Anthony`

  • Sophist Member
  • *****
  • Posts: 1,347
  • Gender: Male
  • Formerly Project Evolution
Re: Show User Posts By Certain Boards
« Reply #3 on: November 10, 2011, 04:33:14 PM »
Would it be possible to use board titles instead of board id's, even if I have to hard-code it into my forum?

Im actually going to be doing that with the built-in SMF dropdown feature. Should be up this weekend if I can get my customization site up!

Offline digger

  • Full Member
  • ***
  • Posts: 518
  • Gender: Male
    • SMF® Unofficial Russian Community
Re: Show User Posts By Certain Boards
« Reply #4 on: November 10, 2011, 05:24:56 PM »
What about specific topic id(s)?

Offline Anthony`

  • Sophist Member
  • *****
  • Posts: 1,347
  • Gender: Male
  • Formerly Project Evolution
Re: Show User Posts By Certain Boards
« Reply #5 on: November 10, 2011, 05:37:45 PM »
What about specific topic id(s)?

I COULD, but im thinking thats more along the lines of a different sort of modification.

Offline danielwmoore

  • Jr. Member
  • **
  • Posts: 110
  • Gender: Male
Re: Show User Posts By Certain Boards
« Reply #6 on: November 12, 2011, 08:47:17 PM »
Would it be possible to use board titles instead of board id's, even if I have to hard-code it into my forum?

Im actually going to be doing that with the built-in SMF dropdown feature. Should be up this weekend if I can get my customization site up!

That's the one I want.  I've had moderators at my site requesting this ability.

Offline Anthony`

  • Sophist Member
  • *****
  • Posts: 1,347
  • Gender: Male
  • Formerly Project Evolution
Re: Show User Posts By Certain Boards - 1.1
« Reply #7 on: November 12, 2011, 11:17:36 PM »
Version 1.1 is now up and features the awaited dropdown suggestion menu! Please report any issues you have with it.

Offline oove

  • Semi-Newbie
  • *
  • Posts: 11
Re: Show User Posts By Certain Boards - 1.1
« Reply #8 on: November 14, 2011, 02:33:35 AM »
The new version works a bit weird. Firstly, it needs first 3 characters for droplist even to show, which doesn't work with some of my 2 char. boards (for example, IT, PE, etc.). Secondly, I can't just type "board_title", I have to select it from the list, and when I do that - it transforms to integer (board id), which is a bit confusing.

It would be much better just to type in board title, press filter, and get the results, IMO.

Offline Anthony`

  • Sophist Member
  • *****
  • Posts: 1,347
  • Gender: Male
  • Formerly Project Evolution
Re: Show User Posts By Certain Boards - 1.1
« Reply #9 on: November 14, 2011, 08:11:46 AM »
The dropdown only works after you type 3 characters for each board, it doesnt make much sense to query the entire database just to get an extra character in the text field. As for the integer, this is to avoid having to match entire strings in the database, which is more efficient especially if you have a lot of boards and big names (not to mention avoiding special characters).

Offline hcfwesker

  • SMF Hero
  • ******
  • Posts: 2,154
  • Gender: Male
  • SMF 2.0.4
Re: Show User Posts By Certain Boards - 1.1
« Reply #10 on: November 15, 2011, 03:35:45 PM »
Just want to tell you this MOD is awesome, and very much appreciated.   I had a member request a feature like this months ago and could finally get this added.  thank you very much. :)

And, I would also like the suggestion to search topics, as well, even if you do make a separate MOD, that would be greatly appreciated.

The only thing I would like added to this MOD, is if boards are Ignored by members, they don't show in the search, even for admins.

Offline Anthony`

  • Sophist Member
  • *****
  • Posts: 1,347
  • Gender: Male
  • Formerly Project Evolution
Re: Show User Posts By Certain Boards - 1.1
« Reply #11 on: November 15, 2011, 04:37:21 PM »
Just want to tell you this MOD is awesome, and very much appreciated.   I had a member request a feature like this months ago and could finally get this added.  thank you very much. :)

And, I would also like the suggestion to search topics, as well, even if you do make a separate MOD, that would be greatly appreciated.

The only thing I would like added to this MOD, is if boards are Ignored by members, they don't show in the search, even for admins.

Thanks! Definitely going to be reworking the query this weekend.

Offline Anthony`

  • Sophist Member
  • *****
  • Posts: 1,347
  • Gender: Male
  • Formerly Project Evolution
Re: Show User Posts By Certain Boards - 1.1.1
« Reply #12 on: November 18, 2011, 05:10:09 PM »
I have just updated the mod with a little bug fix, it would show board names that are supposed to be set for them not to see. This has been fixed.

Offline hcfwesker

  • SMF Hero
  • ******
  • Posts: 2,154
  • Gender: Male
  • SMF 2.0.4
Re: Show User Posts By Certain Boards - 1.1.1
« Reply #13 on: November 18, 2011, 07:33:04 PM »
I have just updated the mod with a little bug fix, it would show board names that are supposed to be set for them not to see. This has been fixed.

I didn't even think to test that ... Very nice update!  Any chance you can show the edit that needs to be done manually.  I get 2 uninstall errors, but when I click to see what they are, it shows two blanks in the box.

Offline Anthony`

  • Sophist Member
  • *****
  • Posts: 1,347
  • Gender: Male
  • Formerly Project Evolution
Re: Show User Posts By Certain Boards - 1.1.1
« Reply #14 on: November 18, 2011, 09:27:47 PM »
In Subs-Editor.php I changed the query,
Code: (From) [Select]
// Find the board(s).
$request = $smcFunc['db_query']('', '
SELECT id_board, name
  FROM {db_prefix}boards
WHERE name LIKE {string:search}
LIMIT ' . ($smcFunc['strlen']($_REQUEST['search']) <= 2 ? '100' : '800'),
array(
'search' => $_REQUEST['search'],
)
);

Code: (To) [Select]
// Find the board(s).
$request = $smcFunc['db_query']('', '
SELECT id_board, name
  FROM {db_prefix}boards AS b
WHERE {query_see_board} AND name LIKE {string:search}
LIMIT ' . ($smcFunc['strlen']($_REQUEST['search']) <= 2 ? '100' : '800'),
array(
'search' => $_REQUEST['search'],
)
);

Offline hcfwesker

  • SMF Hero
  • ******
  • Posts: 2,154
  • Gender: Male
  • SMF 2.0.4
Re: Show User Posts By Certain Boards - 1.1.1
« Reply #15 on: November 18, 2011, 11:49:41 PM »
Thank you so much!  Look forward to future updates :)

Offline samurai-lupin

  • Full Member
  • ***
  • Posts: 514
Re: Show User Posts By Certain Boards - 1.1.1
« Reply #16 on: December 27, 2011, 11:09:45 PM »
Hello, this looks like a great mod! Could you please also do a version for SMF 1.1 ? Thank you

Offline Anthony`

  • Sophist Member
  • *****
  • Posts: 1,347
  • Gender: Male
  • Formerly Project Evolution
Re: Show User Posts By Certain Boards - 1.1.1
« Reply #17 on: December 28, 2011, 02:19:47 PM »
Hello, this looks like a great mod! Could you please also do a version for SMF 1.1 ? Thank you

To be honest im not very fond of updating mods for legacy versions of SMF. :-\

Offline Jeff B

  • Jr. Member
  • **
  • Posts: 294
Re: Show User Posts By Certain Boards - 1.1.1
« Reply #18 on: January 02, 2012, 10:42:44 PM »
Everything looks good on my board, it installed without flaw, but it doesn't do anything when you click filter, no matter what board you choose, the results remain the same. Something I may be missing?

Offline Anthony`

  • Sophist Member
  • *****
  • Posts: 1,347
  • Gender: Male
  • Formerly Project Evolution
Re: Show User Posts By Certain Boards - 1.1.1
« Reply #19 on: January 02, 2012, 10:44:32 PM »
Everything looks good on my board, it installed without flaw, but it doesn't do anything when you click filter, no matter what board you choose, the results remain the same. Something I may be missing?

Odd... Did it install properly? Were there any errors during installation? Anything in error log?