Advertisement:

Author Topic: Ignore Topics/Mark as Read all the time/Unsubscribe topic  (Read 69854 times)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,041
    • Arantor on GitHub
Re: Ignore Topics/Mark as Read all the time/Unsubscribe topic
« Reply #40 on: April 11, 2010, 05:11:49 AM »
* Arantor reads that last post from him, thinks he got the negatives messed up. But yeah, if it's 'thanks' it can go.

Might have to look through that myself actually.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,020
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: Ignore Topics/Mark as Read all the time/Unsubscribe topic
« Reply #41 on: April 11, 2010, 12:58:07 PM »
Just had to get this in:

I suppose the advertisements it shows is coded for its own special needs. Its not a mod that is made public.

It's not even a mod. The advertising back end is OpenX and the invocation code that it generates is added right into the template file. I believe the most complicated thing is there is a variable a site page can set to change the zone that ads are counted against.
Motoko-chan
Director, Simple Machines

Just because it's pouring down doesn't mean we're gonna drown. There's a time when all you can say is let it rain - Mat Kearney (Let It Rain)

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


Offline Adish - (F.L.A.M.E.R)

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,614
  • Gender: Male
  • I am a ninja!
    • adishpatel on Facebook
    • https://www.linkedin.com/in/adishpatel on LinkedIn
Re: Ignore Topics/Mark as Read all the time/Unsubscribe topic
« Reply #42 on: April 17, 2010, 07:40:33 AM »
Just had to get this in:

I suppose the advertisements it shows is coded for its own special needs. Its not a mod that is made public.

It's not even a mod. The advertising back end is OpenX and the invocation code that it generates is added right into the template file. I believe the most complicated thing is there is a variable a site page can set to change the zone that ads are counted against.

Never knew about it. Although I think they have the adverts switching from the personal adverts to the public adverts by OpenX. That is what is custom coded I suppose ?

- Can someone implement some feature like this please. I have my view unread replies flooded literally every day which I currently don't want to view. :(

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,020
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: Ignore Topics/Mark as Read all the time/Unsubscribe topic
« Reply #43 on: April 17, 2010, 12:09:14 PM »
Never knew about it. Although I think they have the adverts switching from the personal adverts to the public adverts by OpenX. That is what is custom coded I suppose ?

It's the install of OpenX, not the market. No custom code, even AdSense is delivered through OpenX. The banner on the bottom of each page is hardcoded AdSense code.

* Motoko-chan used to manage all the advertisements.
Motoko-chan
Director, Simple Machines

Just because it's pouring down doesn't mean we're gonna drown. There's a time when all you can say is let it rain - Mat Kearney (Let It Rain)

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


Offline Adish - (F.L.A.M.E.R)

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,614
  • Gender: Male
  • I am a ninja!
    • adishpatel on Facebook
    • https://www.linkedin.com/in/adishpatel on LinkedIn
Re: Ignore Topics/Mark as Read all the time/Unsubscribe topic
« Reply #44 on: April 17, 2010, 01:52:15 PM »
ooohh!!!
I get it now...:)

Thanks for expanding my knowledge over this. Was it fun managing the advertising bit :P ?

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,020
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: Ignore Topics/Mark as Read all the time/Unsubscribe topic
« Reply #45 on: April 17, 2010, 11:32:49 PM »
Thanks for expanding my knowledge over this. Was it fun managing the advertising bit :P ?

It was interesting at times.
Motoko-chan
Director, Simple Machines

Just because it's pouring down doesn't mean we're gonna drown. There's a time when all you can say is let it rain - Mat Kearney (Let It Rain)

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


Offline Adish - (F.L.A.M.E.R)

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,614
  • Gender: Male
  • I am a ninja!
    • adishpatel on Facebook
    • https://www.linkedin.com/in/adishpatel on LinkedIn
Re: Ignore Topics/Mark as Read all the time/Unsubscribe topic
« Reply #46 on: April 18, 2010, 12:26:47 PM »
Maybe Liroy does it now... seems simple when it is once setup'ed

Offline Norv

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 18,313
  • Blue Wolf
Re: Ignore Topics/Mark as Read all the time/Unsubscribe topic
« Reply #47 on: April 19, 2010, 05:43:16 PM »
Back to the OP: good idea, methinks.
I didn't see anything from previous implementations/discussions, yet. But it sounds like a very good idea and it'd be worth taking a look at what could be done, as soon as I have some time for this. (which cannot really be soon, I'm afraid)

* Norv marks the topic with this reply... to be forever in my list, heh.
(start za wars now, so I can hate it! ;D )
To-do lists are for deferral. The more things you write down the later they're done… until you have 100s of lists of things you don't do.
File a security report | Developers' Blog | Bug Tracker

Also known as Norv on D* | Norv N. on G+ | Norv on Github

Offline Adish - (F.L.A.M.E.R)

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,614
  • Gender: Male
  • I am a ninja!
    • adishpatel on Facebook
    • https://www.linkedin.com/in/adishpatel on LinkedIn
Re: Ignore Topics/Mark as Read all the time/Unsubscribe topic
« Reply #48 on: April 19, 2010, 06:28:20 PM »
How about running Cron while every user logs in? Would that overload the server and burn it into ashes ? ;D

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,041
    • Arantor on GitHub
Re: Ignore Topics/Mark as Read all the time/Unsubscribe topic
« Reply #49 on: April 19, 2010, 06:53:12 PM »
How does running cron when a user logs in come into it?
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Norv

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 18,313
  • Blue Wolf
Re: Ignore Topics/Mark as Read all the time/Unsubscribe topic
« Reply #50 on: April 19, 2010, 07:12:41 PM »
By making SMF write into its schedule files that it needs to run in the next minute. *sagenods*
(what I just said is a horrible idea for more reasons including security, btw, I am joking)

And the task to run will be to write into the database the former post as last read, hah. So no matter which is last, it will always magically become unread.
To-do lists are for deferral. The more things you write down the later they're done… until you have 100s of lists of things you don't do.
File a security report | Developers' Blog | Bug Tracker

Also known as Norv on D* | Norv N. on G+ | Norv on Github

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,041
    • Arantor on GitHub
Re: Ignore Topics/Mark as Read all the time/Unsubscribe topic
« Reply #51 on: April 19, 2010, 07:14:50 PM »
I don't get why you need to invoke cron whatsoever. Y'all building a castle to put a coat hanger on.

In vbgamer/Karl's mod's thread I posted a hack that did the same thing with minimal performance pain by making sure the value injected into the last-read was 2147000000 or so ;)
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Adish - (F.L.A.M.E.R)

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,614
  • Gender: Male
  • I am a ninja!
    • adishpatel on Facebook
    • https://www.linkedin.com/in/adishpatel on LinkedIn
Re: Ignore Topics/Mark as Read all the time/Unsubscribe topic
« Reply #52 on: April 19, 2010, 07:15:17 PM »
ehh, i thought over about it, it doesn't really work the way I thought.

Below is the idea:

Well, if we are implementing something like, 'Mark specific topics as read', users can put in topic ID in a field and every time the user logs in, a cron job is ran which would mark the topic as read if they are updated. But the bad thing is, if the topic gets updated after we login, it will then show up. There could be a way to mark it as read until they logout. (Maybe constant queries being ran in the background, but this will really burn the MySQL server into ashes) After they logout, the cron job will no longer run and the queries being ran in the background will stop.

The next time they login, the same cycle continues.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,041
    • Arantor on GitHub
Re: Ignore Topics/Mark as Read all the time/Unsubscribe topic
« Reply #53 on: April 19, 2010, 07:18:23 PM »
Let me explain how SMF tracks new replies.

When you read a topic the id of the last message you read (or the highest msg id on the forum if it's the last page) is inserted into the log of read topics.

If you fudge that figure, it will remain set if you do it right (like I did in the hack I was kind enough to actually publish)
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Norv

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 18,313
  • Blue Wolf
Re: Ignore Topics/Mark as Read all the time/Unsubscribe topic
« Reply #54 on: April 19, 2010, 07:24:19 PM »
I don't get why you need to invoke cron whatsoever. Y'all building a castle to put a coat hanger on.
Arantor, I was joking.

Below is the idea:

Well, if we are implementing something like, 'Mark specific topics as read', users can put in topic ID in a field and every time the user logs in, a cron job is ran which would mark the topic as read if they are updated. But the bad thing is, if the topic gets updated after we login, it will then show up. There could be a way to mark it as read until they logout. (Maybe constant queries being ran in the background, but this will really burn the MySQL server into ashes) After they logout, the cron job will no longer run and the queries being ran in the background will stop.
Hmm. It could be done so that every time a post is made, the "ignoring ones" (members who unsubscribed) would be checked, and if you find people ignoring this, you  add this post as being the last read by them.  Just like it's currently checked who should be notified, and they are notified.
Just throwing out an idea, no more.
To-do lists are for deferral. The more things you write down the later they're done… until you have 100s of lists of things you don't do.
File a security report | Developers' Blog | Bug Tracker

Also known as Norv on D* | Norv N. on G+ | Norv on Github

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,041
    • Arantor on GitHub
Re: Ignore Topics/Mark as Read all the time/Unsubscribe topic
« Reply #55 on: April 19, 2010, 07:25:41 PM »
*headdesk*

You're discussing how to reimplement what has already been done, proven to work and works quite successfully, without any of the extra overheads you're talking about.

When you get five minutes, check out http://www.simplemachines.org/community/index.php?topic=240146.msg2578173#msg2578173
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Norv

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 18,313
  • Blue Wolf
Re: Ignore Topics/Mark as Read all the time/Unsubscribe topic
« Reply #56 on: April 19, 2010, 07:28:11 PM »
Leave the desk and the head apart, please. :)
They don't get along together, really.

Taking a look in a minute, then, thank you for the link.
To-do lists are for deferral. The more things you write down the later they're done… until you have 100s of lists of things you don't do.
File a security report | Developers' Blog | Bug Tracker

Also known as Norv on D* | Norv N. on G+ | Norv on Github

Offline Norv

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 18,313
  • Blue Wolf
Re: Ignore Topics/Mark as Read all the time/Unsubscribe topic
« Reply #57 on: April 19, 2010, 07:39:57 PM »
Ah. Hah.
I can see why you say it's hackish (it's not orthodox IMO as well, to forcefully set the maximum possible value - that messages don't get to, as the last read of that user in the respective topic), but clearly the minimum performance penalty. Might even help overall, with its notifications clearing. (it also clears email notifications for that topic)
... On second thought, this may or not be wanted, tbh. There are cases when I prefer to read news on topics by email, but I might put them on ignore to not interfere with forum experience as they currently do.

Anyway, it seems a good solution to me. Thank you for sharing.
To-do lists are for deferral. The more things you write down the later they're done… until you have 100s of lists of things you don't do.
File a security report | Developers' Blog | Bug Tracker

Also known as Norv on D* | Norv N. on G+ | Norv on Github

Offline wynnyelle

  • SMF Hero
  • ******
  • Posts: 2,569
    • Warrior Cats RPG
Re: Ignore Topics/Mark as Read all the time/Unsubscribe topic
« Reply #58 on: May 04, 2010, 01:26:22 PM »
My members complain about this problem all the time. We have bookmarks, some just choose not to use them. We also have a few hundred topics and a couple thousand posts getting created daily. It doesn't make sorting through all the newly replied to stuff easy at all, the new replies thing has become virtually unusable. Considering that SMF is designed for small AND large boards I'm surprised there isn't a built in function for this already, or at least a mod.

I second the creation of this :)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,041
    • Arantor on GitHub
Re: Ignore Topics/Mark as Read all the time/Unsubscribe topic
« Reply #59 on: May 04, 2010, 01:31:18 PM »
I'm really impressed at how much work this thread has caused.

I am only going to say this one more time.

There are already two mods for this, one is on the mod site, currently maintained by vbgamer45, called Ignore Topics. In the "Support and comments for this mod", I propose a second method, it's unorthodox as mentioned above, but it does the job in an interesting and reasonably efficient way.

I even linked to my version, what... 4 posts up, and it's in the right thread right there...
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.