Bitcoin Forum
November 07, 2024, 06:05:22 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 [3]  All
  Print  
Author Topic: Identifying the linked-to post in a topic (SMF patch)  (Read 908 times)
ibminer
Legendary
*
Offline Offline

Activity: 1895
Merit: 2935


Goonies never say die.


View Profile WWW
May 15, 2024, 03:58:41 PM
Merited by PowerGlove (1)
 #41

~
What about community-updated factoid? I think that they were nice. It might surprise you but I love the idea of ads on this forum, it gives you a little break between original post and replies and also it's nice when you see something new displayed.
I've been happy about less banner ads, but I'm not sure it was necessary to remove every factoid just because some were outdated. *shrug*


Added, thanks! What looked best IMO was to do the arrow and black color, but without the text-decoration:none or cursor: default.
+1

~while maybe the factoids were providing some value, many of them were outdated.
-2

 Grin


Good job again PowerGlove! Wink

joker_josue
Legendary
*
Offline Offline

Activity: 1834
Merit: 5011


**In BTC since 2013**


View Profile WWW
May 15, 2024, 06:24:04 PM
 #42

There is nothing wrong
Compare the msgID in both URLs from my code-tags. Then open both URLs. I don't get where the "new" msgID comes from.

According to the PowerGlove code, it is a php tag, which creates this change.

Check the OP in style B: https://bitcointalk.org/index.php?topic=5491546.msg63898641#msg63898641

███████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████

███████████████████████
.
BC.GAME
▄▄▀▀▀▀▀▀▀▄▄
▄▀▀░▄██▀░▀██▄░▀▀▄
▄▀░▐▀▄░▀░░▀░░▀░▄▀▌░▀▄
▄▀▄█▐░▀▄▀▀▀▀▀▄▀░▌█▄▀▄
▄▀░▀░░█░▄███████▄░█░░▀░▀▄
█░█░▀░█████████████░▀░█░█
█░██░▀█▀▀█▄▄█▀▀█▀░██░█
█░█▀██░█▀▀██▀▀█░██▀█░█
▀▄▀██░░░▀▀▄▌▐▄▀▀░░░██▀▄▀
▀▄▀██░░▄░▀▄█▄▀░▄░░██▀▄▀
▀▄░▀█░▄▄▄░▀░▄▄▄░█▀░▄▀
▀▄▄▀▀███▄███▀▀▄▄▀
██████▄▄▄▄▄▄▄██████
.
..CASINO....SPORTS....RACING..


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
PowerGlove (OP)
Hero Member
*****
hacker
Offline Offline

Activity: 612
Merit: 5262



View Profile
May 16, 2024, 03:11:17 AM
Merited by LoyceV (4), nutildah (1)
 #43

Added, thanks!


(A bit over-the-top for such a dinky little patch, but, I can hear Ace Ventura in my head, saying: "Yes. Yes. Oh, yeah. Can ya feel that, buddy? Huh? Huh? Huh?") Grin

What looked best IMO was to do the arrow and black color, but without the text-decoration:none or cursor: default.
So, style B + (unrevised) style C. Nice!

Also, while I was messing around with the topic HTML anyway, I decided to just completely remove the ad area. I don't foresee selling ads again anytime soon, and while maybe the factoids were providing some value, many of them were outdated.
I wonder if some users would appreciate the factoids (especially the older ones) being preserved/accessible for nostalgia's sake? Maybe a new endpoint (like /factoid.php or /index.php?action=factoid) that displays a random one each time? (I mean, I count 30 Wayback Machine snapshots of /adrotate.php?adinfo from 2013 to 2023, so it's not strictly necessary, I suppose, but, yeah, something first-party might be nice...)



Something's wrong Sad
Yep, I noticed that, too. It's a long-standing SMF issue/quirk/design-decision, and wasn't caused by this patch (it's just easier to notice now).

It's quite complicated to explain, and most people would find the details boring AF, so, suffice it to say: it's okay if the message ID doesn't actually belong to the topic, as long as that message ID can be used to calculate the correct offset into that topic (that is, as long as it lands you on the right topic-page, the #new fragment takes care of putting you on the right message). A different way to think about it, is to consider what happens when you have a link to a deleted post: the message ID in the link is no longer part of that topic, but navigating to it will still land you in roughly the right place (topic-page-wise).

In the context of this particular patch, it might have worked out nicer if SMF was more precise about message IDs in a few places, but it actually works out pretty neatly as-is, I think (that is, links with a #new fragment don't really correspond to one message, they correspond to potentially multiple new messages since the last one you read, so there's an argument to be made that it actually makes sense not to graphically single-out the first one).
AB de Royse777
Legendary
*
Offline Offline

Activity: 2660
Merit: 4124


Campaign Manager. My Telegram @Royse777


View Profile WWW
May 16, 2024, 07:52:26 AM
 #44

Basically, the idea is to make it easier to identify the target post after clicking an ordinary post link
Nice work and good to see the quick implementation. It took me a few minutes to understand the idea and how it's changing :-D

About the deleted posts do you think anything can be done like clicking on the deleted post will give a notification that it was deleted instead of taking us to the same page of the topic where it was posted? It will help the users not to look for the linked-to posts when there are no posts at all.

..Stake.com..   ▄████████████████████████████████████▄
   ██ ▄▄▄▄▄▄▄▄▄▄            ▄▄▄▄▄▄▄▄▄▄ ██  ▄████▄
   ██ ▀▀▀▀▀▀▀▀▀▀ ██████████ ▀▀▀▀▀▀▀▀▀▀ ██  ██████
   ██ ██████████ ██      ██ ██████████ ██   ▀██▀
   ██ ██      ██ ██████  ██ ██      ██ ██    ██
   ██ ██████  ██ █████  ███ ██████  ██ ████▄ ██
   ██ █████  ███ ████  ████ █████  ███ ████████
   ██ ████  ████ ██████████ ████  ████ ████▀
   ██ ██████████ ▄▄▄▄▄▄▄▄▄▄ ██████████ ██
   ██            ▀▀▀▀▀▀▀▀▀▀            ██ 
   ▀█████████▀ ▄████████████▄ ▀█████████▀
  ▄▄▄▄▄▄▄▄▄▄▄▄███  ██  ██  ███▄▄▄▄▄▄▄▄▄▄▄▄
 ██████████████████████████████████████████
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
█  ▄▀▄             █▀▀█▀▄▄
█  █▀█             █  ▐  ▐▌
█       ▄██▄       █  ▌  █
█     ▄██████▄     █  ▌ ▐▌
█    ██████████    █ ▐  █
█   ▐██████████▌   █ ▐ ▐▌
█    ▀▀██████▀▀    █ ▌ █
█     ▄▄▄██▄▄▄     █ ▌▐▌
█                  █▐ █
█                  █▐▐▌
█                  █▐█
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀█
▄▄█████████▄▄
▄██▀▀▀▀█████▀▀▀▀██▄
▄█▀       ▐█▌       ▀█▄
██         ▐█▌         ██
████▄     ▄█████▄     ▄████
████████▄███████████▄████████
███▀    █████████████    ▀███
██       ███████████       ██
▀█▄       █████████       ▄█▀
▀█▄    ▄██▀▀▀▀▀▀▀██▄  ▄▄▄█▀
▀███████         ███████▀
▀█████▄       ▄█████▀
▀▀▀███▄▄▄███▀▀▀
..PLAY NOW..
Pages: « 1 2 [3]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!