How to rectify Recent Forum Topics on Board Index without duplicates!?

Started by Butiks, March 20, 2023, 01:40:05 PM

Previous topic - Next topic

Butiks

Greeting!
How To set up the standard function "Recent Forum Topics on Board Index" (without any mods) of the SMF V2.1.3 forum to show without duplicates the names of forum topics, it is essential that the block displays a list of active links with the names of forum topics in which the last message was posted?

 Now, everything is functioning, I have set the number to 25, yet there are multiple repetitions in the block. One reference to the topic is being repeated multiple times - this is incorrect. One topic with a new message should be listed no more than once.
SMF: 2.1.3
Mods: Optimus, Hide Content, Quick Spoiler, Avatars Display Integration, Similar Topics, Simple Colorizer

Arantor

There is no way to configure it in the base software.

It's recent *posts*, not revent *topics*. There may be mods for this.
Holder of controversial views, all of which my own.


Butiks

Can you kindly inform me as to which segment of the ../Sources/Recent.php script requires amendment in order to prevent the duplication of topics in the most recent forum messages block?
SMF: 2.1.3
Mods: Optimus, Hide Content, Quick Spoiler, Avatars Display Integration, Similar Topics, Simple Colorizer

shawnb61

A question worth asking is born in experience & driven by necessity. - Fripp

Butiks

Quote from: shawnb61 on March 20, 2023, 03:02:52 PMThis might be of interest:
https://custom.simplemachines.org/index.php?mod=4356

I think that the standard features of the forum possess adequate capacity to be slightly altered to rectify the presentation of the most recent topics without repetition.

Thank you. I had previously observed this module.
SMF: 2.1.3
Mods: Optimus, Hide Content, Quick Spoiler, Avatars Display Integration, Similar Topics, Simple Colorizer

Butiks

I'm looking for a solution to display the newest topics in which they wrote the answer. In compact form as an example in the screenshot.




ps Ideally, it would be - a block of recent messages and a block with active users next to it.
SMF: 2.1.3
Mods: Optimus, Hide Content, Quick Spoiler, Avatars Display Integration, Similar Topics, Simple Colorizer

Kindred

You are not understanding...

The recent POSTS section shows the most recent POSTS.
If a topic has 5 new posts in it, and those five are the most recent,  then it shows those 5. They all have the same title, because they are all part of the same topic/thread.

There is no "small code tweak" which would change this behavior.

The linked mod will display the most recent updated THREADS, which essentially does what you asked for... and, as a packaged mod, is preferable to making a manual code change anyway .
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Butiks

One user of the SMF has already tried to convey the same problem to the professionals who are here. As you can see, he have already switched to another forum engine.  :D

https://www.simplemachines.org/community/index.php?topic=553706.0
SMF: 2.1.3
Mods: Optimus, Hide Content, Quick Spoiler, Avatars Display Integration, Similar Topics, Simple Colorizer

Butiks

SMF: 2.1.3
Mods: Optimus, Hide Content, Quick Spoiler, Avatars Display Integration, Similar Topics, Simple Colorizer

Diego Andrés

Quote from: Butiks on March 20, 2023, 04:25:39 PMOne user of the SMF has already tried to convey the same problem to the professionals who are here. As you can see, he have already switched to another forum engine.  :D

He didn't try, he succeed.
The user switching to a different software is entirely unrelated.

Quote from: Butiks on March 20, 2023, 04:30:38 PMhttps://www.simplemachines.org/community/ssi_examples.php - maybe is better)
Thanks all.

This will be fixed in the next patch.
Relevant PR: https://github.com/SimpleMachines/SMF/pull/7616

SMF Tricks - Free & Premium Responsive Themes for SMF.

Butiks

An interesting point  ::) , in rss it displays information exactly as it should)

Most likely I will make a parser (php) rss so that it displays a block of recent messages on the forum
SMF: 2.1.3
Mods: Optimus, Hide Content, Quick Spoiler, Avatars Display Integration, Similar Topics, Simple Colorizer

Kindred

#11
I think what we have here is a complete failure to communicate clearly,on YOUR part.

You say one thing,  then say the exact opposite.

You have not yet clearly indicated what you are trying to display.  Your screen shot was useless as an example,  since you didn't actually indicate what you wanted from that display.

Because ssi just outputs either the recent posts (like the basic homepage) or recent topics (like the mod)  but you keep insisting that you need to recode something
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Butiks

Dear,

It is not advisable for you to attempt to portray me as intellectually deficient in order to present yourself as a learned and insightful individual. Your actions have led to a misrepresentation of the facts and have resulted in you taking certain words out of context. Please refrain from engaging in such behavior in the future.

Initially, I had inquired about the feasibility of displaying the latest forum posts in a standard manner without any duplicate topics. The responses I received indicated that this was not a far-fetched idea, as it had been previously conceptualized to display the latest posts with repetitions, resulting in a list of links to a topic being repeatedly displayed on the main forum.

Since this idea was not approved, I proposed an alternative solution. However, I did not claim that it was the best solution nor did I force you to implement it on your forums, as that may have been the impression created.

Given that editing ../Sources/Recent.php is not recommended, and since it was designed to function in its current state, it was decided that the implementation be carried out through SSI.php. This method allowed for the recentopics feature to be displayed without any duplicates. Additionally, a simplified version was made available by parsing the RSS feed and outputting it on the main page through JavaScript.

I understand that my English proficiency may not be at a professional level, as is the case for many on foreign forums.
SMF: 2.1.3
Mods: Optimus, Hide Content, Quick Spoiler, Avatars Display Integration, Similar Topics, Simple Colorizer

DeadMan...

Quote from: Butiks on March 21, 2023, 05:11:11 AMIt is not advisable for you to attempt to portray me as intellectually deficient in order to present yourself as a learned and insightful individual. Your actions have led to a misrepresentation of the facts and have resulted in you taking certain words out of context. Please refrain from engaging in such behavior in the future.

No one is saying this. YOU are saying this.
What is being said is that you are saying one thing, then changing it.
You need to be consistent and tell what you want to accomplish.
Otherwise, we can't help you.
I tell it how I see it... Don't like it? Hit Alt+F4!

webtiryaki

answer to your first question

find in subs-recent.php
INNER JOIN {db_prefix}topics AS t ON (t.id_topic = m.id_topic)
change

INNER JOIN {db_prefix}topics AS t ON (m.id_msg = t.id_last_msg)

Butiks

Quote from: DeadMan... on March 21, 2023, 05:34:03 AM
Quote from: Butiks on March 21, 2023, 05:11:11 AMIt is not advisable for you to attempt to portray me as intellectually deficient in order to present yourself as a learned and insightful individual. Your actions have led to a misrepresentation of the facts and have resulted in you taking certain words out of context. Please refrain from engaging in such behavior in the future.

No one is saying this. YOU are saying this.
What is being said is that you are saying one thing, then changing it.
You need to be consistent and tell what you want to accomplish.
Otherwise, we can't help you.
Write, please, in what place it is not clear what was written by me in the first post?)
SMF: 2.1.3
Mods: Optimus, Hide Content, Quick Spoiler, Avatars Display Integration, Similar Topics, Simple Colorizer

Butiks

Quote from: webtiryaki on March 21, 2023, 06:17:37 AManswer to your first question

find in subs-recent.php
INNER JOIN {db_prefix}topics AS t ON (t.id_topic = m.id_topic)
change

INNER JOIN {db_prefix}topics AS t ON (m.id_msg = t.id_last_msg)

Thank you. Just what was needed!)   :)
Shows now without duplicates.
SMF: 2.1.3
Mods: Optimus, Hide Content, Quick Spoiler, Avatars Display Integration, Similar Topics, Simple Colorizer

Kindred

1- I never said that you were "intellectually deficient" - I said that your request was poorly written and that you kept changing the description of what you wanted to do. Nothing has been misrepresented or taken out of context.

2- Your continued use of "flowery" language continues to obscure your actual request.  In the future - write concisely and clearly without flourish.

3- You keep referring to things as "how you want it" either without clearly stating what it is that you want OR reversing your request to be the opposite of what you originally asked for. BE CONSISTENT!

4- As I have stated already - manual modification to code is generally no the best option, because that code may be the target of future updates or the modification could be removed by a future update.  This is why we recommend using a MOD package. With a mod, the change can be simply reverted and/or reapplied in the case it is needed. (this actually includes manual modifications to SSI)

5- As I have stated already the linked mod LITERALLY does what you asked for without using SSI and is a mod package, which means that the changes are clearly documented.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: