News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Message Bookmarks

Started by Bugo, March 11, 2022, 09:06:32 PM

Previous topic - Next topic

Julius_2000

Hi,

what a wonderful addition this mod is to the forum, great idea, thank you!

Now I'm wondering how I could put the button somewhere other than the quickmoderation buttons. Where would I have to look for the code so I can push it around?

Strannik64

and where the statistics are displayed, I have enabled the settings, but I can't figure out where to look?

Speed King

Quote from: Strannik64 on October 08, 2022, 08:04:43 AMand where the statistics are displayed, I have enabled the settings, but I can't figure out where to look?

See at the {yourforumURL}/index.php?action=stats

Strannik64

Quote from: Speed King on October 08, 2022, 08:42:20 AM
Quote from: Strannik64 on October 08, 2022, 08:04:43 AMand where the statistics are displayed, I have enabled the settings, but I can't figure out where to look?

See at the {yourforumURL}/index.php?action=stats

ok, it's a pity you can't limit the number of bookmarks for everyone

Steve

Quote from: Strannik64 on October 08, 2022, 08:53:12 AMok, it's a pity you can't limit the number of bookmarks for everyone
Instead of being critical because the mod doesn't have a function you'd like it to have, why not just ask the mod author in this topic if he could add that?
DO NOT pm me for support!

Strannik64

Quote from: Steve on October 08, 2022, 11:46:43 AM
Quote from: Strannik64 on October 08, 2022, 08:53:12 AMok, it's a pity you can't limit the number of bookmarks for everyone
Instead of being critical because the mod doesn't have a function you'd like it to have, why not just ask the mod author in this topic if he could add that?

I'm not criticizing the mod, I'm just saying that it's a pity there is no such function, otherwise the mod is excellent, I think the author will see the message and give an answer himself. ;)

shawnb61

Quote from: JessyKa on July 30, 2022, 12:02:53 PMHello,
I had the mod installed and it worked fine for several months.
Yesterday there was an error with the forum layout, an expert from here had a look at it and there were several files corrupted, maybe there had been maintenance works going on at the server. No such info of the provider though.
After repairing anything works but reinstalling this mod.
The pre-check for installation is without any warning, in installing it says:
QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ',,,,,,)
SELECT ,,,,,,
FROM smf2_message_bookmarks_old' at line 1
Datei: /var/www/vhosts/web68.chalmers.kundenserver42.de/httpdocs/smf/Packages/temp/database.php
Zeile: 83


Any idea what to do?

Note:  I have started seeing this error as well.  Haven't looked too closely yet.
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

shawnb61

Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

fave

Any idea how to add a text behind the icon?

You cannot view this attachment.

You cannot view this attachment.

and here missing a icon, any idea where to add/modify?

Diego Andrés

Need to add the icon to the icons.css file.
If that's namex theme try the support topic and I'll have a look.

SMF Tricks - Free & Premium Responsive Themes for SMF.

fave

It's the NameX template, will request it in the corresponding topic.
thanks

zushiba

So, I had to make a small edit to Class-MessageBookmarks.php because some themes hide the label of the buttons in the quickbutton menu. As a result, it hides the icons as well.

The change was to the following portion of prepareDisplayContext()
$buttons = array(
'mb_add' => array(
'icon' => $modSettings['mb_add_icon'],
'label' => $add_label,
'javascript' => ' title="' . $txt['mb_add_bookmark'] . '"',
'href' => $scripturl . '?action=mb;sa=add;topic=' . $context['current_topic'] . ';msg=' . $output['id'],
'show' => empty($message['bookmark_id'])
),
'mb_remove' => array(
'icon' => $modSettings['mb_del_icon'],
'label' => $del_label,
'javascript' => ' title="' . $txt['mb_remove_bookmark'] . '"',
'href' => $scripturl . '?action=mb;sa=del;item=' . $message['bookmark_id'] . ';' . $context['session_var'] . '=' . $context['session_id'],
'show' => !empty($message['bookmark_id'])
)
);

I added 'icon' => $modSettings['mb_add_icon'], and 'icon' => $modSettings['mb_del_icon'], to the $buttons array. This change fixes the icons on themes like Potato (haven't tested with other themes) but I figured I would throw this out there. If the label is set to display:none; in css, the icons will not show up.

Panoulis64

Let me also leave you the Greek translation

Bugo

I have added Greek on the project's page, come in.

Advertisement: