Recent Forum Topics on Boardindex For 2.0.x

Started by Pipke, May 05, 2014, 09:37:08 AM

Previous topic - Next topic

DreadPirateRoberts

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!

Pipke

Quote from: DreadPirateRoberts 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?

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

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

DreadPirateRoberts

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
),
        '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!

Pipke

Quote from: DreadPirateRoberts 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
),
        '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."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

DreadPirateRoberts

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!

Pipke

#225
Quote from: Pipke on May 12, 2020, 06:34:36 AM
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

Quote from: DreadPirateRoberts on May 12, 2020, 12:43:04 PM
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!
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

DreadPirateRoberts

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!

Diego Andrés

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.

Pipke

Quote from: Diego Andrés 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?

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

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

FishingManMatt

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

Pipke

Quote from: FishingManMatt on July 20, 2020, 07:10:41 AM
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.
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'], '


Quote from: FishingManMatt on July 20, 2020, 07:10:41 AM
2.
My TapaTalk plugin stopped working. Users of the TT plugin report the following error:
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)

Quote from: Illori on December 31, 2019, 01:35:41 PM
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."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

FishingManMatt

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.

document type does not allow element "div" here
<div class="pagesection">


end tag for element "li" which is not open
<ul class="reset"></li>

Pipke

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

document type does not allow element "div" here
<div class="pagesection">


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

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

FishingManMatt


EthanR

Hi, I uninstalled an old version of this mod and installed the one from the main mod page (1.2).  Everything reported that it installed OK but now there is no settings page under "Modification Settings". So no way to enable it ? Forum is a stock curve theme with almost no mods (only resize pics mod).

Any suggestions?

EthanR

EDIT: I have abandoned the 1.2 version and installed the Extended version linked earlier. It seems to be a lot nicer but it's a little broken on mobile. This is on a standard install, curve theme with responsive mod.

Any tweaks I can do to make it look better on mobile?

Pipke

Quote from: EthanR on March 17, 2021, 08:25:19 PM
EDIT: I have abandoned the 1.2 version and installed the Extended version linked earlier. It seems to be a lot nicer but it's a little broken on mobile. This is on a standard install, curve theme with responsive mod.

Any tweaks I can do to make it look better on mobile?

do you use the default forum theme? if not then tell me wich theme you use and where i can download it or you can tell me your forum url and ill take a peak to see whats going on wich goes faster ;)
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

EthanR

#237
Hi Pipke, yes the default forum theme them (Curve) with no mods. On mobile the recent topics looks odd, not all the space is used. I have PM'ed you my forum URL, thanks!

Edit: Also, is it possible to remove the 2 icons to the left of each topic in the list? See screenshot:

Pipke

Quote from: EthanR on March 18, 2021, 05:02:27 PM
Hi Pipke, yes the default forum theme them (Curve) with no mods. On mobile the it looks odd, not all the space is used. I have PM'ed you my forum URL, thanks!

ok i think you mean that the lastpost titlebar is still visible on mobile this can be changed(also a bug on smf default theme), anyway....


!!! NOTE THESE EDITS ONLY APPLY FOR  RecentForumTopics.v2.0.2.zip FILE THE EXTENDED VERSION !!!


in file: .../Themes/default/RecentForumTopics.template.php

Code (find) Select

<th scope="col" class="lefttext last_th" width="24%">', $txt['last_post'], '</th>';


Code (replace by) Select

<th scope="col" class="lefttext lastpost last_th" width="24%">', $txt['last_post'], '</th>';


Quote from: EthanR on March 18, 2021, 05:02:27 PM
Edit: Also, is it possible to remove the 2 icons to the left of each topic in the list? See screenshot:

yes...

in file: .../Themes/default/RecentForumTopics.template.php
Code (find) Select

echo'<th scope="col" class="first_th hidden" width="8%" colspan="2">&nbsp;</th>
<th scope="col" class="lefttext windowbg" >', $txt['subject'], ' / ', $txt['started_by'], ' / ', $txt['rft_in_Board'], '</th>


Code (replace by) Select

echo'
<th scope="col" class="first_th lefttext windowbg" >', $txt['subject'], ' / ', $txt['started_by'], ' / ', $txt['rft_in_Board'], '</th>

and
Code (find and then remove it!) Select

<td class="icon1 ', $color_class, '">
<img src="', $settings['images_url'], '/topic/' . $icon_post3 . '.gif" alt="" />
</td>
<td class="icon2 ', $color_class, '">
<img src="', $settings['images_url'], '/post/', $post['icon'], '.gif" alt="" />
</td>


good luck with the edits.
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

EthanR

#239
 8) Very impressed with your skills, it looks very nice now  ;D

It look much better on mobile now -  just one thing, once you're logged in the burger menu to the right of the subject squeezes everything. Can that menu be removed or pushed all they way right? I attached a screenshot:

Advertisement: