News:

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

Main Menu

Bookmarks

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

Previous topic - Next topic

skb

Installed / Uninstalled / Reinstalled with/without PrettyURLs. I get the Bookmarks options working only for the admin, not for the other users including Global Moderators. Any suggestions ?

SMF 2.1.4 / TP 2.2.2

Kindred

Сл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."

skb


SMF 2.1.4 / TP 2.2.2

richardwbb

Hello there,

Matthew K., or someone else possibly;

Is is just me or is this mod not able to bookmark a specfic 'page' within a [long] topic within an smf forum. Or is it maybe I just don't get. Just wondering, I wasn't able to implement what  I sense, my users need; bookmarking a specific page within a topic, for example, not page one, but, two, or three, etc.
If my post in this topic looks ambiguous to you, then I'm with Murphy's law and General Stupidity. In other words, trial and error.

Shambles

Well, the description kind of answers that.

Quote from: Mod DescriptionA simple mod that allows users to easily keep track of their favourite topics.

Sounds like your users need to use their browser bookmark/favourite system, for the use case you outlined.

richardwbb

Oo.

Well, I missed that, does anyone read everything, I just glance, forget, and dare to ask. Will try to learn how to better myself.

But, do you or anyone else know about; https://github.com/Yoshi2889/ModManager

It seemed outdated, but is it useful, also, github isn't accessing from here, I can't even get there, so this is out of my head, what I wrote in this sentence.

I've read from the author from IMIYF, that he possibly want to give the 'project' to someone else, I'm not 'up' with the smf packaging system, just learned to read the xml, and doing it forward and backwards, tedious, but my way of 'reading', things.

And for IMIYF I believe I am able to suport the mod-topic, and make it a little better [the mod, however, going to 2.0.13 up to 2.1, isn't running here], also the javascript is doable, I'm no programmer, however I want 'my cookie', and just because that 'x' does it make go away, I would like to make the user feel it is away. For an hour or so. Not on every page.

I 'borrowed' it's code [I believe this is open source so I may on my website], nissan100nxclub.nl/index.html

It should show, but if you get php inside html, well, my isp borked with something else I 'tracked and traced, haha', and that dudes I gave four messages, three, where so, so, and the fourth I let them know, that my other domain, and possibly another one, also borked. And I and they can tell I didn't change a thing. Apache htaccess is a big animal, DirectAdmin if you know, is a larger animal. I tell them with screenshots from first line up to root [seems 4th line], they made an error somewhere, and this with I say many successes, and little losses [that is was my fault].. However, there version could be a little different, haha.

Seriously; I just missed that, and of course, lazy as I can be as Site Admin which means doing lot's of things to make my users more lazy, haha, they should learn by theirselves and that was a good tip. But there are people with the same car, not understanding a PM, post a new topic, which is a mandatory. I'm trying to 'fix' that and our forum has some 'very useful pages' and I just don't want to go bookmark them and post them, I'm too lazy for that, my users should see a bookmarks knob and experience it from there I believe. However, I'm not after hijacking or overtaking someone's modifications.

Looking here for a great idea and this was close, I want a cookie, and it's a matter of time, I have so many Firefox windows opened, if it borks it takes a while to restore them. While I know Chrome is faster, I find features closer to the admin/ developers, and Chrome a very good browser for public-people or how you say, the Windows, internet, photo's, facebook user and a bit up. And here and there a Mac and another one's linux, and a couple of droids, and that I'm not lazy, I just can't get it out of my system, but am able to create short but effective code, and while I hijacked my own topic, just posted here, hoping someone will point me in the right direction, I'm alsmost daily busy with websites in general, it just isn't smf all the time.  A 'hello world' package howto, not the package, for smf would be great.
If my post in this topic looks ambiguous to you, then I'm with Murphy's law and General Stupidity. In other words, trial and error.

richardwbb

I'm still working with this, there is an example, but for me, have to 'fetch' some 'smf-context-something/ dunno-yet'.

But, this thing seems already good I say.

Just curious what it will accept from me, well, that is what I go seeking/ lookout for. Thanks.
If my post in this topic looks ambiguous to you, then I'm with Murphy's law and General Stupidity. In other words, trial and error.

Goten22

Even if topic is marked as bookmarked then it still displays "add bookmark". Can you somehow check if the topic is already bookmarked and then display "delete bookmark"?

Goten22

I found a solution, in MessageIndex.template.php you have to find "foreach ($context['topics'] as $topic)" and after it add:


if ($context['user']['is_logged']) echo'
<a href="'. $scripturl . '?action=bookmarks;sa=add;topic=' . $topic['id'] . ';' . $context['session_var'] . '=' . $context['session_id'].'" class="btn"><i class="fa fa-heart"';

include_once ("Sources/Bookmarks.php");

$foo=getBookmarks($context['user']['id']);
foreach ($foo as $book) {
if ($book['id'] == $topic['id']){
echo'style="color:#e64"';}}

echo'></i></a>';


it checks if bookmark id = topic id and if yes changes font colour to #e64.

SeaChaser

Has Bookmark been updated for SMF 2.1.3? I am getting this error message:


Kindred

If you look at the mod download page, you will note that the last compatibility check was for 2.0.2

-- so, no. this is not updated for 2.1.3

And the author has not been online in 3 months.
Сл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."

SeaChaser

Quote from: Kindred on February 27, 2023, 01:39:38 PMIf you look at the mod download page, you will note that the last compatibility check was for 2.0.2

-- so, no. this is not updated for 2.1.3

And the author has not been online in 3 months.

Thank you! I had looked there but hoped my post would prompt him to update it.

Speed King

Maybe this mod "Message Bookmarks" is similar and 2.1.3 compatible, you can test it:

https://custom.simplemachines.org/index.php?mod=4312

SeaChaser

Quote from: Speed King on February 27, 2023, 02:14:44 PMMaybe this mod "Message Bookmarks" is similar and 2.1.3 compatible, you can test it:

https://custom.simplemachines.org/index.php?mod=4312

Thank you but I suspect my members would lose all of their previous bookmarks otherwise I'd make the change.

Doug Heffernan

Quote from: SeaChaser on February 27, 2023, 02:01:33 PMbut hoped my post would prompt him to update it.

Just out of curiosity, how/in what way would your post prompt him to update the mod?


szinski

Quote from: SeaChaser on May 17, 2023, 02:17:45 PM
Quote from: Speed King on February 27, 2023, 02:14:44 PMMaybe this mod "Message Bookmarks" is similar and 2.1.3 compatible, you can test it:

https://custom.simplemachines.org/index.php?mod=4312

Thank you but I suspect my members would lose all of their previous bookmarks otherwise I'd make the change.
I'm in the same situation. Just upgraded to v2.1 and some of my users are complaining that they've lost access to their bookmarks. Hope the author updates it to work with v2.1.

shawnb61

Quote from: szinski on July 03, 2024, 10:08:40 AM
Quote from: SeaChaser on May 17, 2023, 02:17:45 PM
Quote from: Speed King on February 27, 2023, 02:14:44 PMMaybe this mod "Message Bookmarks" is similar and 2.1.3 compatible, you can test it:

https://custom.simplemachines.org/index.php?mod=4312

Thank you but I suspect my members would lose all of their previous bookmarks otherwise I'd make the change.
I'm in the same situation. Just upgraded to v2.1 and some of my users are complaining that they've lost access to their bookmarks. Hope the author updates it to work with v2.1.

I used this sql, shared on the newer mod's support topic, to migrate bookmarks over to 2.1:

Quote from: shawnb61 on May 16, 2022, 04:26:18 PMI am upgrading 2.0 bookmarks from the old mod into this mod within 2.1.  The following sql seems to work, so I'm sharing it in case others find it helpful.  Since the old mod bookmarked topics, where this mod bookmarks messages, I use the first message within each topic:
INSERT INTO smf_message_bookmarks (msg_id, topic_id, bookmark_title, user_id, created_at)
    SELECT t.id_first_msg, b.id_topic, m.subject, b.id_member, m.poster_time
    FROM smf_bookmarks b
      INNER JOIN smf_topics t
      ON b.id_topic = t.id_topic
      INNER JOIN smf_messages m
      ON m.id_msg = t.id_first_msg
    ORDER BY t.id_first_msg

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

szinski

Quote from: shawnb61 on July 03, 2024, 10:47:04 AMI used this sql, shared on the newer mod's support topic, to migrate bookmarks over to 2.1:

Thanks, that SQL did the trick, made a lot of my users happy!  :)

Advertisement: