Advertisement:

Author Topic: Topics Created And Participated In  (Read 7709 times)

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Topics Created And Participated In
« on: October 28, 2016, 11:27:37 AM »
Link to Mod


TOPICS CREATED AND PARTICIPATED IN v2.10
By Dougiefresh -> Link to Mod


Introduction
This mod adds a new section under Profile called Show User Topics, which shows all the threads that the user has participated in and created.

Admin Settings
There are no admin settings for this mod.  To disable this mod, you must uninstall it.

Compatibility Notes
This mod was tested on SMF 2.0.12, but should work on SMF 2.0 and up.  SMF 1.x is not and will not be supported. 

Translators
o Russian: digger
o Spanish Latin: Rock Lee

Changelog
The changelog can be viewed at Xptsp.com.

License
Copyright (c) 2016 - 2018, Douglas Orend
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Topics Created And Participated In
« Reply #1 on: December 17, 2016, 09:44:35 AM »
Uploaded v2.0 - December 17th, 2016
o Complete overhaul to improve functionality and viewing experience.



@Everybody: You're probably asking "Why the Overhaul?".  Well, I figured out the mod didn't do what it stated in the mod description.  It would have been better described as "Threads Created By User" instead of "Threads Participated In".  So, I combined the two ideas, along with an extreme viewing experience upgrade, in order to get what this mod now is with version 2.0.

I apologize to anybody who didn't feel that the version 1.0 mod lived up to expectations.   Hopefully, you'll give this mod another chance....

Offline akbora

  • Sr. Member
  • ****
  • Posts: 960
    • Anında Tepki
Re: Topics Created And Participated In
« Reply #2 on: December 18, 2016, 02:57:19 PM »
This mod is good.

Notice: Undefined index: description in

When click Show User Topics as a member or visitor, there are upper errors
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Topics Created And Participated In
« Reply #3 on: December 19, 2016, 10:32:30 AM »
Uploaded v2.1 - December 19th, 2016
o Modified code so that topic list can be pulled for any user, by any user.
o Removed erroneous permission check.
o Removed template in exchange for using template inside Attachment template file.



@Everybody:  This update should solve the bug reports found by akbora.   Thank you, akbora!

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,421
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Topics Created And Participated In
« Reply #4 on: December 19, 2016, 12:25:19 PM »
Pretty slick and works like a charm as far as I can tell. ;D
Online Manual

Please do not PM me for support.

Offline akbora

  • Sr. Member
  • ****
  • Posts: 960
    • Anında Tepki
Re: Topics Created And Participated In
« Reply #5 on: December 20, 2016, 02:56:32 AM »
Uploaded v2.1 - December 19th, 2016
o Modified code so that topic list can be pulled for any user, by any user.
o Removed erroneous permission check.
o Removed template in exchange for using template inside Attachment template file.



@Everybody:  This update should solve the bug reports found by akbora.   Thank you, akbora!
Thank you very much everything is fine.

Now Turkish version:

Code: [Select]
$txt['TUPC_topics'] = 'Üyeye ait konuları göster';
$txt['TUPC_topics_desc'] = 'Bu bölüm size bu üyenin açtığı konuları ve hangi konulara katılım yaptığını gösterir.';
$txt['TUPC_user_created'] = 'Üyenin Açtığı Konular';
$txt['TUPC_user_participated'] = 'Üyenin Katıldığı Konular';
$txt['TUPC_no_topics_created'] = 'Üye henüz bir konu açmamıştır';
$txt['TUPC_no_topics_participated'] = 'Üye henüz herhangi bir konuya katılmamıştır.';


utf8 Turkish

Quote
$txt['TUPC_topics'] = 'Üyeye ait konuları göster';
$txt['TUPC_topics_desc'] = 'Bu bölüm size bu üyenin açtığı konuları ve hangi konulara katılım yaptığını gösterir.';
$txt['TUPC_user_created'] = 'Ãœyenin Açtığı Konular';
$txt['TUPC_user_participated'] = 'Üyenin Katıldığı Konular';
$txt['TUPC_no_topics_created'] = 'Üye henüz bir konu açmamıştır';
$txt['TUPC_no_topics_participated'] = 'Üye henüz herhangi bir konuya katılmamıştır.';
« Last Edit: December 20, 2016, 03:08:13 AM by akbora »
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Offline akbora

  • Sr. Member
  • ****
  • Posts: 960
    • Anında Tepki
Re: Topics Created And Participated In
« Reply #6 on: December 20, 2016, 03:14:55 AM »
Sorrry I see a problem another:

Users or visitors can see forbıdden board or topics. This is serious problem. Thanks
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Topics Created And Participated In
« Reply #7 on: December 20, 2016, 09:42:10 AM »
Uploaded v2.2 - December 20th, 2016
o Fixed bug where user can see topics made in boards that they don't have access to.


Users or visitors can see forbıdden board or topics. This is serious problem. Thanks
This update should resolve this bug report.  Thank you, akbora!

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,462
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: Topics Created And Participated In
« Reply #8 on: December 22, 2016, 01:35:42 PM »
another c00l feature by the sensational dougiefresh.

always well behaved mods that play nicely ... thanks, sir !
The configuration of my Linux VPS (SMF 2.0 with 140+ mods) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum)

Offline Colin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 7,859
  • Gender: Male
  • SMF Developer
    • colinschoen on GitHub
Re: Topics Created And Participated In
« Reply #9 on: December 22, 2016, 03:04:45 PM »
Excellent mod, thanks Dougie.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Topics Created And Participated In
« Reply #10 on: December 22, 2016, 09:29:39 PM »
Thanks, y'all!

Offline Ian Mc

  • Semi-Newbie
  • *
  • Posts: 33
  • Gender: Male
Re: Topics Created And Participated In
« Reply #11 on: December 29, 2016, 06:09:29 PM »
Really useful mod.

Just one issue I'm having. When I select a users threads or participated in, the order is ascending (which is fine), but when I click on the top of the date row for example, which I assume should change the order to decending, it links back to my own activity rather than reordering the users. Hope that makes sense!

Offline airmon

  • Semi-Newbie
  • *
  • Posts: 14
Re: Topics Created And Participated In
« Reply #12 on: February 08, 2017, 04:28:38 PM »
Thanks for the mod, I keep seeing your name show up on useful stuff.

I'm using this mod on 2.0.13 and it does something odd. Only the "user created" link really worked for me. The "user participated" link took me to page 1 of the correct results, but if I clicked on page 2, or tried to sort so that newer posts came up first, the screen refreshed and went back to the "user created" results.





Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Topics Created And Participated In
« Reply #13 on: February 10, 2017, 11:51:59 AM »
Uploaded v2.3 - February 10th, 2017
o Changed default sort direction to descending.
o Fixed issue where clicking on pages in "Participated In" goes back to "Topics Created" page.



@airmon:  This update should fix the bug report that you submitted!  Thank you!
« Last Edit: February 10, 2017, 12:27:45 PM by dougiefresh »

Offline Moonwink

  • Newbie
  • *
  • Posts: 1
Re: Topics Created And Participated In
« Reply #14 on: February 10, 2017, 12:02:37 PM »
Thanks for the MOD! 

I'm also having trouble seeing recent "Participated In" topics.   By default is sorts to show the oldest topics I replied to and I can't reverse the sort to show the newest topics.  Any attempt to change the sort order of the "Participated In" screen results in seeing the "Created" page again sorted by oldest first. 

As an request for a change, would it be possible to change the default to show the newest topics instead of the oldest topics at the top of the list?  There's a lot of water under the bridge since this oldest topics were current and 99.9% of the time I believe everyone will be interested in seeing and working with the topics they've recently been involved with.

Dougiefresh,
Thanks for the fix!  You posted it just as I clicked to post the message above.  I thought I'd go ahead and post this to ask for the sort order change.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Topics Created And Participated In
« Reply #15 on: February 10, 2017, 12:27:21 PM »
Thanks for the MOD! 

I'm also having trouble seeing recent "Participated In" topics.   By default is sorts to show the oldest topics I replied to and I can't reverse the sort to show the newest topics.  Any attempt to change the sort order of the "Participated In" screen results in seeing the "Created" page again sorted by oldest first. 

As an request for a change, would it be possible to change the default to show the newest topics instead of the oldest topics at the top of the list?  There's a lot of water under the bridge since this oldest topics were current and 99.9% of the time I believe everyone will be interested in seeing and working with the topics they've recently been involved with.

Dougiefresh,
Thanks for the fix!  You posted it just as I clicked to post the message above.  I thought I'd go ahead and post this to ask for the sort order change.
Since nobody downloaded version 2.3 yet, I updated version 2.3 to include the request to change sort direction by default to descending.  Also updated version 2.3's changelog 2 posts back....

Offline profzelonka

  • Semi-Newbie
  • *
  • Posts: 40
Re: Topics Created And Participated In
« Reply #16 on: February 26, 2017, 02:10:35 AM »
Awesome mod, thank you. !

Wanted to let you know that for some reason 2.3 is showing up as "old version" on the Package Manager page. No issues tho.

Offline MULITRI

  • Semi-Newbie
  • *
  • Posts: 74
Re: Topics Created And Participated In
« Reply #17 on: February 26, 2017, 02:18:02 PM »
Thnaks for this great and neat Mod, excellent job.

I have just installed it in a fresh v2.0.13 version, and it looks great... but i have found an error....hey!! only one :)

With an User with no posts, clicking "Participated in" reports this error:

Code: [Select]
Database error, given array of integer values is empty. (topics)

The other option works fine, it shows the "No topics started" message... and when the User has messages and topics, both options works fine.

I hope you can solve this small issue, it's a great Mod for Users can find overall Topics started by any User, always useful.

Thank you.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Topics Created And Participated In
« Reply #18 on: February 26, 2017, 08:12:40 PM »
Uploaded v2.4 - February 26th, 2017
o Fixed database error that occurs when user has participated in no topics.



@MULITRI:  Hopefully this update fixes the bug report that you made.  Thank you!

Offline MULITRI

  • Semi-Newbie
  • *
  • Posts: 74
Re: Topics Created And Participated In
« Reply #19 on: February 28, 2017, 02:16:06 PM »
Sure i'm going to try it, just after i can restore my forum for all the errors all around due to an old Mod i tried to add without luck hehe.

I'll let you know, Thanks a lot to be watching at your Mods to get'em up-to-date... Great Job!