Bookmarks mod for 2.1

Started by rty42, May 24, 2025, 08:04:56 AM

Previous topic - Next topic

rty42

I am looking for the functionality Bookmarks mod 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

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?

GL700Wing

@rty42 The Message Bookmarks mod looks like it has the functionality you need.
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

shawnb61

We use Message Bookmarks now.  Even migrated bookmarks over from the old mod - details in the mod support thread.
A question worth asking is born in experience & driven by necessity. - Fripp

rty42

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

GL700Wing

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:
You cannot view this attachment.


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)
);
}


You cannot view this attachment.
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

rty42

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

GL700Wing

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)
);


Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

rty42

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!

Advertisement: