Advertisement:

Author Topic: Bookmarks  (Read 317683 times)

Offline skb

  • Jr. Member
  • **
  • Posts: 280
    • Metabolically Challenged
Re: Bookmarks
« Reply #900 on: April 01, 2016, 03:22:07 AM »
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 ?
Learning, every day.
Forum - The Diabetic Pub
Because every diabetic needs help
SMF 2.0.15 (default theme) / TP 1.42

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 57,368
  • Gender: Male
    • Kindred-999 on GitHub
Re: Bookmarks
« Reply #901 on: April 01, 2016, 07:36:51 AM »
permissions
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline skb

  • Jr. Member
  • **
  • Posts: 280
    • Metabolically Challenged
Re: Bookmarks
« Reply #902 on: April 01, 2016, 11:35:33 AM »
Thanks Stan.
Learning, every day.
Forum - The Diabetic Pub
Because every diabetic needs help
SMF 2.0.15 (default theme) / TP 1.42

Offline richardwbb

  • Jr. Member
  • **
  • Posts: 310
  • currently reading; '$smcFunc'
Re: Bookmarks
« Reply #903 on: June 05, 2017, 10:56:13 AM »
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.

Offline Sh@mbles

  • SMF Hero
  • ******
  • Posts: 4,967
  • Gender: Male
    • i30 Owners Club
Re: Bookmarks
« Reply #904 on: June 05, 2017, 11:09:54 AM »
Well, the description kind of answers that.

Quote from: Mod Description
A 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.

Offline richardwbb

  • Jr. Member
  • **
  • Posts: 310
  • currently reading; '$smcFunc'
Re: Bookmarks
« Reply #905 on: June 06, 2017, 07:48:09 PM »
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.

Offline richardwbb

  • Jr. Member
  • **
  • Posts: 310
  • currently reading; '$smcFunc'
Re: Bookmarks
« Reply #906 on: June 13, 2017, 02:58:59 PM »
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.

Offline Goten22

  • Semi-Newbie
  • *
  • Posts: 42
Re: Bookmarks
« Reply #907 on: August 02, 2018, 07:01:34 AM »
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"?

Offline Goten22

  • Semi-Newbie
  • *
  • Posts: 42
Re: Bookmarks
« Reply #908 on: August 04, 2018, 04:38:48 PM »
I found a solution, in MessageIndex.template.php you have to find "foreach ($context['topics'] as $topic)" and after it add:

Code: [Select]
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.