Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Topic started by: rty42 on May 24, 2025, 08:04:56 AM

Title: Bookmarks mod for 2.1
Post by: rty42 on May 24, 2025, 08:04:56 AM
I am looking for the functionality Bookmarks mod (https://custom.simplemachines.org/index.php?mod=864) provides (users can select their favourite topick and seem them in a list)

The MOD is not compatible with 2.1, however I have seen a mention of a "modified version Bookmarks Mod  for smf 2.1" here (https://www.simplemachines.org/community/index.php?topic=575388.0)

Can someone help me out whether this updated MOD really is accessible somewhere?
Maybe any other ideas how to achive this goal in 2.1?
Title: Re: Bookmarks mod for 2.1
Post by: GL700Wing on May 24, 2025, 09:26:25 AM
@rty42 The Message Bookmarks (https://custom.simplemachines.org/index.php?mod=4312) mod looks like it has the functionality you need.
Title: Re: Bookmarks mod for 2.1
Post by: shawnb61 on May 24, 2025, 11:49:17 AM
We use Message Bookmarks now.  Even migrated bookmarks over from the old mod - details in the mod support thread.
Title: Re: Bookmarks mod for 2.1
Post by: rty42 on May 24, 2025, 02:24:51 PM
It really seems to be a useful MOD and can actually also replace the old one up to some extent, but what I really miss in Message Bookmarks is this kind of topic list showing my favourite topics in order of latest activity...
Title: Re: Bookmarks mod for 2.1
Post by: GL700Wing on May 25, 2025, 01:05:04 AM
Quote from: rty42 on May 24, 2025, 02:24:51 PMIt really seems to be a useful MOD and can actually also replace the old one up to some extent, but what I really miss in Message Bookmarks is this kind of topic list showing my favourite topics in order of latest activity...

The bookmarks list (which can be sorted) can be accessed via your profile:
MyBookmarks-1.jpg


However, if you also want the 'My Bookmarks' button to be displayed on the main menu you can make the following change to ./Sources/Subs.php
Find:
// Allow editing menu buttons easily.
Add Before:
// Add the 'My Bookmarks' button to the main menu bar.
if (file_exists($sourcedir . '/Class-MessageBookmarks.php'))
{
$counter = 0;
foreach ($buttons as $area => $dummy)
if (++$counter && $area == 'mlist')
break;

loadLanguage('MessageBookmarks/');
$buttons = array_merge(
array_slice($buttons, 0, $counter),
array(
'bookmarks' => array(
'title' => $txt['mb_popup_bookmarks'],
'href' => $scripturl . '?action=profile;area=bookmarks;u=' . $context['user']['id'],
'show' => allowedTo('use_message_bookmarks'),
'icon' => 'sticky',
'sub_buttons' => array(
),
),
),
array_slice($buttons, $counter)
);
}


MyBookmarks-2.jpg
Title: Re: Bookmarks mod for 2.1
Post by: rty42 on May 25, 2025, 04:14:10 AM
Yes, I have found it, but it is a post list, it doesn't show activity in my favourite topics to check on, which used to be the whole point of the old Bookmarks MOD...
Title: Re: Bookmarks mod for 2.1
Post by: GL700Wing on May 25, 2025, 06:11:41 AM
Quote from: rty42 on May 25, 2025, 04:14:10 AMYes, I have found it, but it is a post list, it doesn't show activity in my favourite topics to check on, which used to be the whole point of the old Bookmarks MOD...
With SMF 2.1 you can 'watch' topics (and optionally receive alerts/emails when replies are added) and you can see a list of the topics you are currently watching via your member profile (ie, Profile > Notifications > Watched Topics).

If you want to add the 'Watched Topics' button to the main menu bar make the following change to ./Sources/Subs.php:
Find:
// Allow editing menu buttons easily.
Add Before:
// Add the 'Watched Topics' button to the main menu bar.
$counter = 0;
foreach ($buttons as $area => $dummy)
if (++$counter && $area == 'mlist')
break;

loadLanguage('Profile');
$buttons = array_merge(
array_slice($buttons, 0, $counter),
array(
'watchedTopics' => array(
'title' => $txt['watched_topics'],
'href' => $scripturl . '?action=profile;area=notification;sa=topics;u=' . $context['user']['id'],
'show' => !$user_info['is_guest'],
'icon' => 'watch',
'sub_buttons' => array(
),
),
),
array_slice($buttons, $counter)
);


Title: Re: Bookmarks mod for 2.1
Post by: rty42 on May 25, 2025, 03:10:06 PM
Now this looks promising :)

I have never found the wached topics list until now, but if I put it on the main menu it should do the trick.

I think I will also install Message Bookmarks, these two together should make most of my users happy :)

Thank you all!