Advertisement:

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

Offline MULITRI

  • Semi-Newbie
  • *
  • Posts: 74
Re: Topics Created And Participated In
« Reply #20 on: March 01, 2017, 01:33:06 PM »
Sorry to bump but i cannot modify my last reply.

doogiefresh... you did it again!! the error is fixed with your last update, so now your Mod is perfect!!

Thanks to you for your excellent job... Regards.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Topics Created And Participated In
« Reply #21 on: March 01, 2017, 08:08:15 PM »
You're welcome!

Offline BellGab.com

  • Jr. Member
  • **
  • Posts: 187
    • BellGab.com
Re: Topics Created And Participated In
« Reply #22 on: April 09, 2017, 11:26:30 PM »
Hi.  This mod appears to be generating the following error:

8: Undefined index: TUPC_user_participatedApply Filter: Only show the errors from this file File: /home/michaelv/public_html/bellgab.com/Sources/Subs-Participation.php

Code: [Select]
22: 'label' => $txt['TUPC_topics'],
23: 'file' => 'Profile-Participation.php',
24: 'function' => 'TUPC_showTopics',
25: 'subsections' => array(
26: 'created' => array($txt['TUPC_user_created'], array('profile_view_own', 'profile_view_any')),
==>27: 'participated' => array($txt['TUPC_user_participated'], array('profile_view_own', 'profile_view_any')),
28: ),
29: 'permission' => array(
30: 'own' => array('profile_view_own'),
31: 'any' => array('profile_view_any'),
32: ),
33: );
34: }
35: }

Any thoughts?

And, btw, you've built a lot of great mods.  I use several.  Thanks.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Topics Created And Participated In
« Reply #23 on: July 11, 2017, 11:49:26 AM »
Uploaded v2.5 - July 11th, 2017
o Replaced IFNULL with COALESCE in database queries for better Postgres support.



@BellGab.com:  Whoops!  I missed this bug report.  I'll look into it!

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Topics Created And Participated In
« Reply #24 on: July 18, 2017, 12:11:39 AM »
Uploaded v2.6 - July 17th, 2017
o Language settings moved from Profile.english.php to TUPC.english.php.



@BellGab.com:  Thank you for the bug report!  This issue has been resolved with the version 2.6 update.

Offline landyvlad

  • Full Member
  • ***
  • Posts: 640
  • Gender: Male
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: Topics Created And Participated In
« Reply #25 on: December 18, 2017, 07:29:45 AM »
What is the update process please?  Is it just upload and install the new one, or do I uninstall./delete the old one first?
(It'd be cool if this info was included in the description of the mod, for easy reference)

Thanks
Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

To paraphrase Kindred: "There are no technical solutions to social problems."

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Topics Created And Participated In
« Reply #26 on: December 18, 2017, 09:16:11 AM »
What is the update process please?  Is it just upload and install the new one, or do I uninstall./delete the old one first?
(It'd be cool if this info was included in the description of the mod, for easy reference)
First, Package Manager won't allow you to install a newer version of a mod while an older version is installed.  If the package supports upgrading, Package Manager will give you the option to upgrade to the new version.  Most of my mods do not support upgrades in that fashion, mostly because some servers have issues with multiple install XML files and aren't smart enough to make it work....

The proper way to upgrade any mod that doesn't give the option through Package Manager is to uninstall the current version of the mod, then install  the new version.  Immediately deleting the old version is not mandatory at any stage of the upgrade process, although if you are happy with the new version, deletion of the old version is recommended.

Offline digger

  • Sr. Member
  • ****
  • Posts: 741
  • Gender: Male
    • realdigger on GitHub
    • SMF Russian Community
Re: Topics Created And Participated In
« Reply #27 on: January 15, 2018, 02:43:06 PM »
I think wil be better to skip recycled topics.
Russian lang in attachment.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Topics Created And Participated In
« Reply #28 on: January 15, 2018, 11:58:15 PM »
Uploaded v2.7 - January 15th, 2018
o Added Russian translation, courtsey of digger!
o Fixed queries so that recycle boards are omitted from database queries.



@digger:  You're right, recycle boards should definitely be omitted from the queries!  I've also included your Russian translation in this version.  Thank you very much for it!

Offline landyvlad

  • Full Member
  • ***
  • Posts: 640
  • Gender: Male
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: Topics Created And Participated In
« Reply #29 on: January 16, 2018, 10:11:51 PM »
Thanks Dougie that's a good explanation - much appreciated.
Perhaps that could be included in the SMF documentation? (I couldn't find it there).
Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

To paraphrase Kindred: "There are no technical solutions to social problems."

Offline digger

  • Sr. Member
  • ****
  • Posts: 741
  • Gender: Male
    • realdigger on GitHub
    • SMF Russian Community
Re: Topics Created And Participated In
« Reply #30 on: January 17, 2018, 07:09:05 AM »
o Fixed queries so that recycle boards are omitted from database queries.
This doesn't work because you forgot to add $modSettings to the global scope. Below is a patch with a few minor fixes

Code: [Select]
===================================================================
--- forum/Sources/Profile-Participation.php (date 1516189488867)
+++ forum/Sources/Profile-Participation.php (date 1516189488867)
@@ -14,7 +14,7 @@
 ********************************************************************************/
 function TUPC_showTopics()
 {
- global $context, $txt, $scripturl, $modSettings, $smcFunc, $sourcedir, $user_info;
+ global $context, $txt, $scripturl, $modSettings, $sourcedir, $user_info;
 
  // Set up for listing the "important" topics:
  loadTemplate('ManageAttachments');
@@ -65,7 +65,7 @@
  $user = \'<a href="\' . $scripturl . \'?action=profile;user=\' . $rowData["first_member"] . \'">\' . $rowData[\'first_poster\'] . \'</a>\';
  else
  $user = $rowData["first_member"];
- return $board . " \\\\ " . $topic . \'<div class="smalltext">\' . $txt["started_by"] . " <strong>" . $user . \'</strong></div>\';
+ return $board . " &#187; " . $topic . \'<div class="smalltext">\' . $txt["started_by"] . " <strong>" . $user . \'</strong></div>\';
  '),
  ),
  'sort' => array(
@@ -136,7 +136,8 @@
 ********************************************************************************/
 function TUPC_Created_Count()
 {
- global $smcFunc;
+ global $smcFunc, $modSettings;
+
  $request = $smcFunc['db_query']('', '
  SELECT COUNT(*) AS count
  FROM {db_prefix}topics AS t
@@ -156,7 +157,7 @@
 
 function TUPC_Created($start, $items_per_page, $sort)
 {
- global $smcFunc;
+ global $smcFunc, $modSettings;
 
  $request = $smcFunc['db_query']('', '
  SELECT
@@ -196,7 +197,7 @@
 ********************************************************************************/
 function TUPC_Participated_Count()
 {
- global $smcFunc, $user_info, $context;
+ global $smcFunc, $context, $modSettings;
 
  $request = $smcFunc['db_query']('', '
  SELECT DISTINCT id_topic AS id_topic
@@ -220,7 +221,7 @@
 
 function TUPC_Participated($start, $items_per_page, $sort)
 {
- global $smcFunc, $user_info, $context;
+ global $smcFunc, $context, $modSettings;
 
  // Is the topic list defined?  If not, then do so before continuing:
  if (empty($context['TUPC_topics']))

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,370
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
    • Study Force
Re: Topics Created And Participated In
« Reply #31 on: January 17, 2018, 09:46:36 PM »
Thanks for the excellent mod!

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Topics Created And Participated In
« Reply #32 on: January 19, 2018, 08:53:29 PM »
Uploaded v2.8 - January 19th, 2018
o Integrated digger's patch, which adds $modSettings as global variable.



@digger:  Thank you for the patch!  It's been integrated into this mod....

Offline shnazzle

  • Newbie
  • *
  • Posts: 5
Re: Topics Created And Participated In
« Reply #33 on: February 01, 2018, 07:42:41 PM »
Very nice mod! Thanks heaps

Offline nofapturkiye

  • Semi-Newbie
  • *
  • Posts: 44
Re: Topics Created And Participated In
« Reply #34 on: February 11, 2018, 05:30:16 PM »
you are smf hero indeed ,  was looking for something like this

Offline Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 2,033
  • Gender: Male
  • I also speak english :D
    • BomberCode.Oficial on Facebook
    • RockLee-BC on GitHub
    • @Bomber_Code on Twitter
    • Bomber Code ~ La nueva era del conocimiento
Re: Topics Created And Participated In
« Reply #35 on: February 11, 2018, 06:45:09 PM »
I leave another translation more, anything you tell me :) @dougiefresh


Regards!
¡Regresando como cual Fenix! ~ Bomber Code © 2018
Ayudas - Aportes - Tutoriales - Y mucho mas!!!


Ayudame via PayPal

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Topics Created And Participated In
« Reply #36 on: February 12, 2018, 10:51:20 AM »
Uploaded v2.9 - February 12th, 2018
o Added translators section to the readme.txt file.
o Added Spanish Latin translation, courtsey of Rock Lee.
o Added LICENSE file to the mod, to clarify licensing terms.



@Rock Lee:  Thank you for the translation!  It's been included in this version!

Offline digger

  • Sr. Member
  • ****
  • Posts: 741
  • Gender: Male
    • realdigger on GitHub
    • SMF Russian Community
Re: Topics Created And Participated In
« Reply #37 on: October 16, 2018, 05:27:59 AM »
@dougiefresh
Mod doesn't track member id when topics list have more then one page. Urls looks like index.php?action=profile;area=threads;sa=created;sort=lastpost;desc;start=20 without member id in this query. When i go to next page in any profile it redirect to my own profile topics page.

Offline ORIONzitos

  • Newbie
  • *
  • Posts: 6
Re: Topics Created And Participated In
« Reply #38 on: October 17, 2018, 07:25:01 AM »
PT-BR Translation here! 8) anything you tell me :) @dougiefresh

Offline ORIONzitos

  • Newbie
  • *
  • Posts: 6
Re: Topics Created And Participated In
« Reply #39 on: October 17, 2018, 08:40:33 AM »
PT-BR Translation here! 8) anything you tell me :) @dougiefresh

Oops! Correction