Advertisement:

Author Topic: Recent Forum Topics on Boardindex  (Read 61646 times)

Offline DreadPirateRoberts

  • Semi-Newbie
  • *
  • Posts: 36
    • Agora Road's Macintosh Caf
Re: Recent Forum Topics on Boardindex
« Reply #220 on: May 09, 2020, 04:29:10 AM »
I just saw the above post. Is there a way to have the recent topics to be only from one specific board?
Welcome to Agora Road's Macintosh Cafe || A retro design vaporwave community forum! Enjoy your stay!

Offline Pipke

  • Full Member
  • ***
  • Posts: 524
    • #31970508 on GitHub
Re: Recent Forum Topics on Boardindex
« Reply #221 on: May 10, 2020, 02:39:31 PM »
I just saw the above post. Is there a way to have the recent topics to be only from one specific board?

This mod was not built for that, but it can be done with some tweaks, maybe some one can help you, i dont have time for that atm.

“If something is wrong, fix it if you can. But train yourself not to worry. Worry never fixes anything.”

My Mods for SMF:
Avatars Display Integration
Avatars on Board and/or MessageIndex
Recent Forum Topics on Boardindex
Relative Time Formats

Offline DreadPirateRoberts

  • Semi-Newbie
  • *
  • Posts: 36
    • Agora Road's Macintosh Caf
Re: Recent Forum Topics on Boardindex
« Reply #222 on: May 12, 2020, 01:33:59 AM »
See I think it has to do something with this piece of code but whertime I put in my board ID nothing changes. Can anyone please help me
RecentForumTopics.php
Code: [Select]
),
        'board' => array(
            'id' => $row['id_board'],
            'name' => $row['bname'],
            'href' => $scripturl . '?board=' . $row['id_board'] . '.0',
            'link' => '<a href="' . $scripturl . '?board=' . $row['id_board'] . '.0">' . $row['bname'] . '</a>'
        ),
Welcome to Agora Road's Macintosh Cafe || A retro design vaporwave community forum! Enjoy your stay!

Offline Pipke

  • Full Member
  • ***
  • Posts: 524
    • #31970508 on GitHub
Re: Recent Forum Topics on Boardindex
« Reply #223 on: May 12, 2020, 06:34:36 AM »
See I think it has to do something with this piece of code but whertime I put in my board ID nothing changes. Can anyone please help me
RecentForumTopics.php
Code: [Select]
),
        'board' => array(
            'id' => $row['id_board'],
            'name' => $row['bname'],
            'href' => $scripturl . '?board=' . $row['id_board'] . '.0',
            'link' => '<a href="' . $scripturl . '?board=' . $row['id_board'] . '.0">' . $row['bname'] . '</a>'
        ),


ohh i just remind me i made this some time ago, its a not finished updated version of this mod, but should work for you, take a look here for download -> https://www.smfhacks.com/index.php?topic=9199.0
“If something is wrong, fix it if you can. But train yourself not to worry. Worry never fixes anything.”

My Mods for SMF:
Avatars Display Integration
Avatars on Board and/or MessageIndex
Recent Forum Topics on Boardindex
Relative Time Formats

Offline DreadPirateRoberts

  • Semi-Newbie
  • *
  • Posts: 36
    • Agora Road's Macintosh Caf
Re: Recent Forum Topics on Boardindex
« Reply #224 on: May 12, 2020, 12:43:04 PM »
Would I need to uninstall the current mod and install this one?
Welcome to Agora Road's Macintosh Cafe || A retro design vaporwave community forum! Enjoy your stay!

Offline Pipke

  • Full Member
  • ***
  • Posts: 524
    • #31970508 on GitHub
Re: Recent Forum Topics on Boardindex
« Reply #225 on: May 12, 2020, 01:41:43 PM »
ohh i just remind me i made this some time ago, its a not finished updated version of this mod, but should work for you, take a look here for download -> https://www.smfhacks.com/index.php?topic=9199.0

Would I need to uninstall the current mod and install this one?

yep, even better is to install the updated extended version in (see) the attachment of this post wich i found on my old usb stick ;)

note: be aware of bugs that you may encounter!
« Last Edit: May 12, 2020, 01:52:26 PM by Pipke »
“If something is wrong, fix it if you can. But train yourself not to worry. Worry never fixes anything.”

My Mods for SMF:
Avatars Display Integration
Avatars on Board and/or MessageIndex
Recent Forum Topics on Boardindex
Relative Time Formats

Offline DreadPirateRoberts

  • Semi-Newbie
  • *
  • Posts: 36
    • Agora Road's Macintosh Caf
Re: Recent Forum Topics on Boardindex
« Reply #226 on: May 12, 2020, 03:39:40 PM »
Hey thanks @Pipke I'll try the new mod!
Welcome to Agora Road's Macintosh Cafe || A retro design vaporwave community forum! Enjoy your stay!

Offline Diego Andrés

  • Customizer
  • SMF Hero
  • *
  • Posts: 3,565
  • Gender: Male
    • DiegoAndresCortes on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: Recent Forum Topics on Boardindex
« Reply #227 on: June 04, 2020, 05:22:20 PM »
Quick question.
Selecting to use the first post (topic) will still sort the list depending on most recent activity, right?

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline Pipke

  • Full Member
  • ***
  • Posts: 524
    • #31970508 on GitHub
Re: Recent Forum Topics on Boardindex
« Reply #228 on: June 04, 2020, 06:16:24 PM »
Quick question.
Selecting to use the first post (topic) will still sort the list depending on most recent activity, right?

I dont understand what youre trying to ask
“If something is wrong, fix it if you can. But train yourself not to worry. Worry never fixes anything.”

My Mods for SMF:
Avatars Display Integration
Avatars on Board and/or MessageIndex
Recent Forum Topics on Boardindex
Relative Time Formats

Offline FishingManMatt

  • Semi-Newbie
  • *
  • Posts: 67
  • Gender: Male
Re: Recent Forum Topics on Boardindex
« Reply #229 on: July 20, 2020, 07:10:41 AM »
As always, thank you very much for the mod, Pipke!

Let me report two issues I noticed after installing the latest version.

1.
The W3C validator shows errors related to the last column of the table. The number of errors matches the number of last topics in the table.
Code: [Select]
end tag for element "span" which is not open
…u=3556">Shreku82</a> <br /> on <strong>Today</strong> at 06:54</span>

2.
My TapaTalk plugin stopped working. Users of the TT plugin report the following error:
Code: [Select]
Server error occurred: Cannot redeclare rft_mainbasic() (previously declared in /home/admin/domains/splawikigrunt.pl/public_html/forum/mobiquo/env_setting.php(55) : eval()d code:1) (RecentForumTopics.php:26)
Thank you for your support!

Offline Pipke

  • Full Member
  • ***
  • Posts: 524
    • #31970508 on GitHub
Re: Recent Forum Topics on Boardindex
« Reply #230 on: July 20, 2020, 03:06:44 PM »
1.
The W3C validator shows errors related to the last column of the table. The number of errors matches the number of last topics in the table.
Code: [Select]
end tag for element "span" which is not open
…u=3556">Shreku82</a> <br /> on <strong>Today</strong> at 06:54</span>

thx for finding that...
in RecentForumTopics.template.php
Code: (find) [Select]
echo'', $txt['by'], ' ', $post['poster']['link'], ' <br /> ', $txt['on'], ' ', $post['timefirst'], '</span>

and remove the closing </span> tag, so it becomes:

Code: ( replace by) [Select]
echo'', $txt['by'], ' ', $post['poster']['link'], ' <br /> ', $txt['on'], ' ', $post['timefirst'], '

2.
My TapaTalk plugin stopped working. Users of the TT plugin report the following error:
Code: [Select]
Server error occurred: Cannot redeclare rft_mainbasic() (previously declared in /home/admin/domains/splawikigrunt.pl/public_html/forum/mobiquo/env_setting.php(55) : eval()d code:1) (RecentForumTopics.php:26)

we have many issues with tapatalk and don't recommend anyone using it.

first off i dont use tapatalk nor have it installed to debug it, so sorry i will not help you with that, you could try to ask support on the tapatalk website.
“If something is wrong, fix it if you can. But train yourself not to worry. Worry never fixes anything.”

My Mods for SMF:
Avatars Display Integration
Avatars on Board and/or MessageIndex
Recent Forum Topics on Boardindex
Relative Time Formats

Offline FishingManMatt

  • Semi-Newbie
  • *
  • Posts: 67
  • Gender: Male
Re: Recent Forum Topics on Boardindex
« Reply #231 on: July 21, 2020, 12:41:30 PM »
Thanks a lot, Pipke!

Frankly, I hate TT. This plugin always caused some problems. I only kept it installed because of my users' requests.

As for the HTML errors, I found two more which may also be related to the RFT mod.

Code: [Select]
document type does not allow element "div" here
<div class="pagesection">

Code: [Select]
end tag for element "li" which is not open
<ul class="reset"></li>

Offline Pipke

  • Full Member
  • ***
  • Posts: 524
    • #31970508 on GitHub
Re: Recent Forum Topics on Boardindex
« Reply #232 on: July 21, 2020, 04:56:32 PM »
Thanks a lot, Pipke!

Frankly, I hate TT. This plugin always caused some problems. I only kept it installed because of my users' requests.

As for the HTML errors, I found two more which may also be related to the RFT mod.

Code: [Select]
document type does not allow element "div" here
<div class="pagesection">

Code: [Select]
end tag for element "li" which is not open
<ul class="reset"></li>

this mod was made by me when i just started php lol, the whole template file needs a rewrite.. ill get back to that later.
“If something is wrong, fix it if you can. But train yourself not to worry. Worry never fixes anything.”

My Mods for SMF:
Avatars Display Integration
Avatars on Board and/or MessageIndex
Recent Forum Topics on Boardindex
Relative Time Formats

Offline FishingManMatt

  • Semi-Newbie
  • *
  • Posts: 67
  • Gender: Male
Re: Recent Forum Topics on Boardindex
« Reply #233 on: July 22, 2020, 12:53:52 PM »
I see  :) No problem. No rush  :)