The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
I have been browsing the various hacks available for VB 2.x and I do not see one which would do the following:
In a seperate table (preferably next to how many posts are in a thread) would be a count for how many new posts are in the thread since it was last visited. This would require a thread to be marked as read after visiting it and not only after clicking the link that says "Mark all Forums Read". Is there a hack out there that already does this that I missed? If there isn't-- could we do it? Thanks! |
#2
|
|||
|
|||
~bump~
updated my profile with my customer id # maybe I'll get a response now. |
#3
|
||||
|
||||
Actually it'd be a lot easier and a lot more feasible than the way you suggested. Just count the number of posts in each thread that are new since the person's last visit in forumdisplay.php
|
#4
|
|||
|
|||
I hadn't thought about that and it seems like that would do the trick for a slower forum-- I'd like to see it.
The reason I descibed it the way I did is I'm looking at moving an extremely active (5,000+ new posts/replys every month) WebX community over to VB. They can see with each refresh of the thread-listing's page how many new posts are on each thread since they last openned them (even if it's only been 30 seconds). I'd like to not alienate anyone from the boards simply because they don't like the change. It'd be easier if people accepted change as easily as myself-- but most people don't and there-in lies my problem. What I'm looking at doing is creating a carbon copy of the current WebX layout (at least on the surface) with VB in order to allow the members to make a smooth transfer over to the new boards with a minimum amount of problems. Basically, if it looks the same, works the same, they'll think it is the same-- even though it isn't the same. Am I making sense? And if anyone wonders why I'm moving to VB over WebX-- it's because WebX is overpriced, underpowered, and is more of a bandwidth hog than UBB. |
#5
|
||||
|
||||
Either method would be OK for a smaller forum. However the method you suggest would be an absolute server-killer for a decent sized forum because of the amount of data involved in marking each thread read, as has been discussed here elsewhere before.
Anyway this sounded interesting so I whipped up something for my forums. Code changes are below - it's actually quite simple. In forumdisplay.php find PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Code:
($newposts new post(s)) Find Code:
<td bgcolor="{tableheadbgcolor}" nowrap><smallfont><a href="$sorturl&sortorder=desc&sortfield=replycount"><font color="{tableheadtextcolor}"><b>Replies</b></font></a> $sortarrow[replycount]</smallfont></td> Code:
<td bgcolor="{tableheadbgcolor}" nowrap><smallfont><font color="{tableheadtextcolor}"><b>New Posts</b></font></smallfont></td> Code:
<td bgcolor="{tableheadbgcolor}" width="100%" colspan="8" align="center"><smallfont color="{tableheadtextcolor}"> Then in the forumdisplaybit template find Code:
<td bgcolor="$fbackcolor"><normalfont>$thread[views]</normalfont></td> Code:
<td bgcolor="$fbackcolor"><normalfont>$numnew</normalfont></td> |
#6
|
|||
|
|||
Indeed.
The servers running WebX now are extremely over-taxed and we have to auto-prune old threads after only a few days of their becoming idle. I was hoping VB could prove more adept at helping the servers handle such stresses. I appreciate your work so far though! I'm adding your code modifications as we speak so I can test it out. Any other ideas that might accomplish the same thing? Or should it even be considered? :\ |
#7
|
||||
|
||||
Quote:
|
#8
|
|||
|
|||
Well currently the entire system has roughly 108,000 posts on it.
I'm looking at a single forum at the moment which is a mere 10-20% of that with VB if possible just to do stress tests. |
#9
|
|||
|
|||
i can't finmd teh final bit in my forumdisplay template
any ideas why???? |
#10
|
||||
|
||||
soceris,
I don't advise trying this hack. It was giving me errors both times I tried to install it. I haven't had time to try to debug it. Amy |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|