• Welcome to Simple Machines Community Forum. Please login or sign up.
December 05, 2021, 08:31:50 AM

News:

Want to get involved in developing SMF, then why not lend a hand on our github!


Bookmarks

Started by Matthew K., July 16, 2007, 01:07:24 PM

Previous topic - Next topic

Matthew K.

The answer isn't simple. Is it possible? Yes. Is it a "simple" programming hack? Yeah. But it's still a hack, which means modifying files and how the modification works. Outside of general support for the modification. You can send me a PM if you'd like me to complete the hack, but it wouldn't be a free service, I'd need some payment for my time.

acsieben

Hi, should you consider it in the future as a new feature, it would be nice if one could also bookmark specific messages inside a topic. Probably was asked before, but this thread is quite long.

Thanks for this mod.

Matthew K.

That's definitely an interesting idea! :) I'll have to pull together the good ideas for when I update it.

acsieben

Quote from: Labradoodle-360 on December 23, 2013, 07:05:51 PM
That's definitely an interesting idea! :) I'll have to pull together the good ideas for when I update it.

Yeah, it's been pointed out in the forum where I've installed your mod, so I guess it may be quite useful.

Thanks again

Matthew K.


treehugger

Loving this mod - thank you.  :)

Am using it on a site for lost animals - we have a board where people can post their animals then after a month staff will move their topic to the 'long time lost'  board. If they bookmarked the topic when they first put it on the 'lost' board, I'm guessing the bookmark will no longer work after we move the topic. Is there a way around this please?

Kindred

of course the bookmark will continue to work...   (as long as you're not running something silly like pretty urls)

moving the topic does not change the topic ID.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.<br /><br />"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

treehugger

Wonderful - thank you Kindred.  :D

MarkoKg

Hey there,

Don't know if this bug is reported earlier, but it's possible to add one topic more times to bookmarks. Then when I tried to remove one of it (by checking only one topic in bookmarks listing) i got message that 3 bookmarks are removed successfully.
Screenshots attached!

----------------------
Apart from this, is it possible to check if user bookmarked topic he looks at?
For example i'd like to place something like "Bookmark this topic!" text at top of topic if user did not bookmarked it, and something like "Remove from bookmarks" if user bookmarked that topic? Is that possible? I haven't found any "if" statement in this mod so I'm not sure if that's even possible?

Thanks.

Athena137

Is it possible to make a version of this that will work with hxxp:createaforum.com [nonactive]? Or, how to install this with CreateAForum?

Kindred

to the best of my knowledge, createaforum does not allow the installation of any custom mods. The problem is not with this mod, but with the fact that you are running a free forum on a host who has limited your access to functions of the system (after all, you are using his resources). If you want to install ANY mods, you will have to either a) convince createaforum to install them for you or b) get a real host.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.<br /><br />"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

anpaza

Also came here in a search for a mod to bookmark individual messages :)
Unfortunately, this is not possible yet... sad. Will wait patiently :-X
The forum engine allows to store just the msgid, e.g. "http://.../index.php?msg=12345".
My users use the "thank you" mod to put "bookmarks" on individual messages... which is not quite what the mod was installed for ::)
An interesting side effect of this usage is the ability to see not just the subject of the messages, but the message body too...
would be cool to be able to see at least the first words of the bookmarked message too.

KillerKeox

Correct grammar for 2.0.X

Thanks Liam_michael
Quote from: Liam_michael on August 29, 2013, 02:26:30 PM
I'dd added the fix for correct grammar:
1) Open bookmarks.php in Source
Find:....




1) Open bookmarks.php in Source

Find:
// Delete a bookmark
case 'delete':
checkSession('post');
$num_deleted = !empty($_POST['remove_bookmarks']) ? deleteBookmarks($_POST['remove_bookmarks'], $user_info['id']) : 0;
if ($num_deleted !== false)
$context['success'] = sprintf($txt['bookmark_delete_success'], $num_deleted);
        else
$context['failure'] = $txt['bookmark_delete_failure'];
break;
}


Replace with:
// Delete a bookmark
case 'delete':
checkSession('post');
$num_deleted = !empty($_POST['remove_bookmarks']) ? deleteBookmarks($_POST['remove_bookmarks'], $user_info['id']) : 0;
if ($num_deleted == 1)
$context['success'] = sprintf($txt['bookmark_delete_success'], $num_deleted);
                elseif ($num_deleted > 1)
                $context['success'] = sprintf($txt['bookmark_delete_successes'], $num_deleted);   
            else
$context['failure'] = $txt['bookmark_delete_failure'];
break;
}


2) Open the language file for Modifications.

Find:
$txt['bookmark_delete_success'] = '%1$s bookmarks were deleted successfully!';

Replace with:
$txt['bookmark_delete_success'] = '%1$s favorite was deleted successfully!';
$txt['bookmark_delete_successes'] = '%1$s favorites were deleted successfully!;


If someone did not know how to fix it!

Remember, only for V 2.0. X

NekoJonez

Just to notify, you have a small flaw in the last code. Yet, here is a fix:

$txt['bookmark_delete_success'] = '%1$s favorite was deleted successfully!';
$txt['bookmark_delete_successes'] = '%1$s favorites were deleted successfully!';
Retro video game blogger, writer, actor, podcaster and general amazing dude.

Twitter
My Blog

Kalamadea

Quote from: Labradoodle-360 on September 22, 2013, 03:37:54 PM
So run install.php manually in your browser...just make sure to delete it when you're done.

I tried that, but I got this error.

Fatal error: Function name must be a string in /home/enterthe/public_html/test/install.php on line 4

sinnerman

June 21, 2014, 06:38:16 AM #875 Last Edit: June 21, 2014, 07:52:44 AM by sinnerman
I'm sorry this must look like a silly question but where can i find a link to "My Bookmarks"?

I'm using SMF 2.0.8 with TinyPortal.

EDIT: Nevermind found it../Themes/default/TPsubs.template.php

elosolipa

Hi all,... I found an issue installing this with SMF 2.0.7 and 8. An error with the ./Sources/Subs.php modification. I think it doesn't find the statement to place it before. But i do not know much about how it works. I love the mod and It would be great to keep on using it.

sinnerman

June 21, 2014, 01:42:55 PM #877 Last Edit: June 21, 2014, 05:11:49 PM by sinnerman
Hey elosolipa,

Got that too..
Just go ahead and install the mod and then open Subs.php, find:

'show' => $context['allow_calendar'],

and after it add:

'bookmarks' => array(
'title' => $txt['bookmarks'],
'href' => $scripturl . '?action=bookmarks',
'show' => allowedTo('make_bookmarks'),
'sub_buttons' => array(
),
),


that's it.

EDIT: As the guy below knows what he's talking the correct place is under this part (for my preference after the "Search" menu item):
'search' => array(
'title' => $txt['search'],
'href' => $scripturl . '?action=search',
'show' => $context['allow_search'],
'sub_buttons' => array(
),
),


I myself put it there to start with but it didn't screw anything up..but i have calendar disabled so maybe that's why..

Kindred

ummm..   NO NO NO NO NO

Putting it there will screw things up.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.<br /><br />"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

sinnerman


Advertisement: