News:

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

Main Menu

Topics Created And Participated In

Started by dougiefresh, October 28, 2016, 11:27:37 AM

Previous topic - Next topic

dougiefresh

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.

dougiefresh

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

akbora

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
---------------

dougiefresh

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!

Steve

Pretty slick and works like a charm as far as I can tell. ;D
DO NOT pm me for support unless asked to!

akbora

#5
Quote from: dougiefresh 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!
Thank you very much everything is fine.

Now Turkish version:

$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.';
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

akbora

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
---------------

dougiefresh

Uploaded v2.2 - December 20th, 2016
o Fixed bug where user can see topics made in boards that they don't have access to.



Quote from: akbora on December 20, 2016, 03:14:55 AM
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!

aegersz

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 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Colin

"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin


Ian Mc

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!

airmon

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.





dougiefresh

#13
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!

Moonwink

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.

dougiefresh

Quote from: Moonwink 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.
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....

profzelonka

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.

MULITRI

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:


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.

dougiefresh

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!

MULITRI

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!

Advertisement: