Open Side Menu Go to the Top
Register
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread)

12-04-2007 , 09:49 AM
You should also add

"http://forums.twoplustwo.com/subscription.php"

to the list for the "always link to first unread post" script.
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) Quote
12-04-2007 , 06:10 PM
Quote:
Originally Posted by poincaraux
You should also add

"http://forums.twoplustwo.com/subscription.php"

to the list for the "always link to first unread post" script.
Also

"http://forums.twoplustwo.com/usercp.php"

would it be a problem to just add "http://forums.twoplustwo.com/*"?
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) Quote
12-04-2007 , 06:16 PM
Hi,

Quote:
"http://forums.twoplustwo.com/subscription.php"
"http://forums.twoplustwo.com/usercp.php"
I listed usercp.php* somewhere near the start of this thread, I didn't bother listing subscriptions.php* since usercp is the same list, but with only unread posts in it I think.
Quote:
would it be a problem to just add "http://forums.twoplustwo.com/*"?
I don't think so, but I figure it will cause extra load on your CPU with it trying to scan all pages which may of may not contain indexes (threads, for example).
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) Quote
12-04-2007 , 06:22 PM
Quote:
Originally Posted by Mat Sklansky
Please wait for answer from ryan. Pm him if you get no response.
Hi Mat,

Firstly thank you for this excellent upgrade

Yes I exchanged PMs with Ryan wherein he suggested I don't post for now until normal performance has been thoroughly tested at various options, which was my concern.

So sorry all, I keep the "secret" for a little longer.

This way, the effect of varying index length by user can be accurately identified once the trick is widespread.

FWIW, there seems a fixed limit in vbullitin of 200 threads per index - so at least a few ignorant fools couldn't DOS the server too easily
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) Quote
12-05-2007 , 01:12 AM
One thing I've noticed that I liked more about UBBThreads than vB was the visibility of the name of an OP in the forum listing.

I've created a greasemonkey script to resolve this.

Before:


After:


vB OP Column

I've written prettier code in my day, but it gets the job done.

If there are any bugs found, feel free to PM me.

Last edited by Big_Jim; 12-05-2007 at 01:17 AM. Reason: Bug warning
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) Quote
12-05-2007 , 01:33 AM
Big_Jim,

Fantastic!
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) Quote
12-05-2007 , 03:36 AM
super thread
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) Quote
12-05-2007 , 03:54 AM
Big_Jim for mod imo.
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) Quote
12-05-2007 , 03:56 AM
Quote:
Originally Posted by goofyballer
Big_Jim for mod imo.
Indeed.

Also TY TY for subscribed threads so this was brought to my attention as soon as it was posted - VB forum = teh awesome
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) Quote
12-05-2007 , 04:19 AM
Ryan officially made it ok to talk about how to show more threads here

As such, I'll post my other two scripts:
a) 100 Threads When View Forum
b) Added "Show All" Button to the Endless Pages Script

The "Show All" button is actually a "Show the Rest" button, but whatever.
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) Quote
12-05-2007 , 04:30 AM
Oh, and alternatively, you can use the showall button without the endless pages auto-pulling when you scroll to the bottom with this script.

Show All Button
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) Quote
12-05-2007 , 04:52 AM
Quote:
Ryan officially made it ok to talk about how to show more threads
Awesome

I hope ppl understand why I wouldn't want to post such as soon as I discovered it.

Added to that Big_Jim has made a better job than I ever could have done with these GreaseMonkey scripts for sure

TY TY Big_Jim
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) Quote
12-05-2007 , 04:53 AM
Quote:
Originally Posted by Big_Jim
One thing I've noticed that I liked more about UBBThreads than vB was the visibility of the name of an OP in the forum listing.I've created a greasemonkey script to resolve this.
BJ,

how big of a security issue is using greasemonkey scripts in general - is there any danger despite using No-Script ?
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) Quote
12-05-2007 , 04:55 AM
Brilliant, thanks Jim and dave. Is it technically much harder to create an unread post count in the thread listing?
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) Quote
12-05-2007 , 05:01 AM
Quote:
Is it technically much harder to create an unread post count in the thread listing?
I can't think of a sensible method to do so

The info is there - but without DB access I can't think how to get it.

Never mind tho.. we are now 1* (one!!!) feature away from UBB, with all the benefits of VB! - This is awesome!

*Unless you count the flashing "New PM" envelope - please bring this back
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) Quote
12-05-2007 , 05:12 AM
Quote:
Originally Posted by DHV Champ
BJ,

how big of a security issue is using greasemonkey scripts in general - is there any danger despite using No-Script ?
The security issue is fairly large. As with all software, you should really only install it if you trust where it comes from.

Specifically, it would be fairly trivial to write scripts that steal your cookies and send them to somebody, as well as a host of other potential problems.

Some more info


Quote:
Originally Posted by bozzer
Brilliant, thanks Jim and dave.
Don't mention it.

Quote:
Is it technically much harder to create an unread post count in the thread listing?
Yes, it is technically much harder.

The main problem is that you have to keep a list of all of the threads you've seen, and how many posts were in those threads when you saw them. Not to mention the weird edge cases where you only saw a few posts in a thread.

I don't think you could write a greasemonkey script to do it, but I'm sure one with some time on their hands could make a firefox add on to do it.
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) Quote
12-05-2007 , 05:13 AM
Quote:
Originally Posted by _dave_
Unless you count the flashing "New PM" envelope
This, on the other hand, should actually be really easy. It's just a question of where you want it to go.
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) Quote
12-05-2007 , 05:14 AM
The deal with the flashing envelope...

We can modify the software to do this. However, the current modification used for PM alerts gives you more info and only displays once. That mostly comes down to personal preference. The envelope that flashes all the time would also probably require that we code in another global query.

So it's not unreasonable to do, but I'd like to give this one a shot for a while first.

What I know of this came from posts on vbulletin.org. This one in particular made me think twice about adding the envelope:

http://www.vbulletin.org/forum/showpost.php?p=1269221

Last edited by Cola; 12-05-2007 at 05:21 AM. Reason: to add
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) Quote
12-05-2007 , 06:56 AM
fwiw Ryan, I don't get a popup when I get a PM even though I have that option enabled. I don't run a popup blocker other than what's in Firefox and that usually asks me if I want to open a popup on any given site.
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) Quote
12-05-2007 , 07:08 AM
Not sure if this is the case with you, but it won't show if you try to test it by sending yourself a PM. I'll double check the modification after I get some other work done this morning, though, and I believe there's a new version out that clears up a different issue with it anyway.
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) Quote
12-05-2007 , 07:12 AM
Ryan,

Do you ever sleep? I picture you as a dude with bloodshot eyes sitting knee deep in Red Bull cans.
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) Quote
12-05-2007 , 10:19 AM
About the PM thing, I just happened to notice I had a PM waiting for me just now. Don't know how long it had been there, but it wasn't exactly easy to notice. Flashing envelope = very yes please. Or get that popup (which I have enabled) working.
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) Quote
12-05-2007 , 10:20 AM
Quote:
Originally Posted by Golden_Rhino
Ryan,

Do you ever sleep? I picture you as a dude with bloodshot eyes sitting knee deep in Red Bull cans.
Great visual. Throw in a few empty pizza boxes- for nourishment.
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) Quote
12-05-2007 , 11:16 AM
Quote:
Originally Posted by Big_Jim
Yes, it is technically much harder.

The main problem is that you have to keep a list of all of the threads you've seen, and how many posts were in those threads when you saw them. Not to mention the weird edge cases where you only saw a few posts in a thread.

I don't think you could write a greasemonkey script to do it, but I'm sure one with some time on their hands could make a firefox add on to do it.
Very nice work, Big_Jim. I took a stab at the unread post count script and I think it's doable. If using GM_xmlhttpRequest it's possible to make arbitrary HTTP requests behind the scenes in order to count unread posts. So, for example this is what needs to happen:
  1. For URL forumdisplay.php document.evaluate and find all href's with newpost reference in them.
  2. For each newpost URL do GM_xmlhttpRequest.
  3. countNewPosts() for each response we receive from GM_xmlhttpRequest by searching for a 'post_new.gif', i.e. //a[contains(@alt,'post_new.gif')]
  4. Inject the new post count for URL with newpost reference we discovered in step 1.
So far I found out that there may be a problem with this approach because once we issue GM_xmlhttpRequest for a thread with new posts it's marked as visited and we won't know which new post to jump to once we click on the thread. Additionally, it doesn't take into account a thread with multiple pages (more work but can be accomplished).
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) Quote
12-05-2007 , 12:39 PM
Quote:
Originally Posted by Ryan Beal
The deal with the flashing envelope...

We can modify the software to do this. However, the current modification used for PM alerts gives you more info and only displays once. That mostly comes down to personal preference. The envelope that flashes all the time would also probably require that we code in another global query.

So it's not unreasonable to do, but I'd like to give this one a shot for a while first.

What I know of this came from posts on vbulletin.org. This one in particular made me think twice about adding the envelope:

http://www.vbulletin.org/forum/showpost.php?p=1269221
I'm pretty sure you can add an IMG tag right into the template in the admin area.
GUIDE: make 2p2 feel like UBB (Show All & Jump to 1st Unread) Quote

      
m