PDA

View Full Version : Number of new replies per thread on forum display


Admin
03-20-2002, 10:00 PM
This is a nice little hack that was requested a couple of days ago. Basically, it shows your users the number of new replies every thread had since their last visit (on forumdisplay.php).
You can find a demo of this in the next post, if you don't understand. :)

To install the hack you must have vbHacker, you can get that from this post:
https://vborg.vbsupport.ru/showthread.php?s=&postid=231302#post231302
Then upload the numnewreplies.hack.php file (attached to this post) to your /admin folder and go to vbhacker.php in your browser.
Don't forget to chmod forumdisplay.php 0777 if you want vbHacker to hack it automatically!

Have fun. :D

Admin
03-21-2002, 02:29 PM
Demo.

ExcErr
03-21-2002, 03:17 PM
GREAT HACK FIREFLY! sorry but i don't want to install vbhacker, i have many reasons for it!
if it's possbile, can you send me with pm or post here the installiation without VBHACKER!
thank you in advance!

Admin
03-21-2002, 03:52 PM
Use vbHacker and choose the option to generate a text file with instructions.

Recluse
03-21-2002, 04:00 PM
i used it, for some reason it dident do the first step to the forumdisplay. it made the second change and the templates just fine. when i went to then next step and it told me to make the manual changes all the code it listed to fine was in place in the exact order the installer was looking for. dunno might be cause the board is hack to high heck.still sweet work tho. make it to easy :)

ExcErr
03-21-2002, 04:37 PM
Originally posted by FireFly
Use vbHacker and choose the option to generate a text file with instructions.
yeah, know it...
BUT, I don't want install VBHACKER!!!! sorry Chen....can you generate this instructions for me? :(

wooolF[RM]
03-21-2002, 04:39 PM
]vbhacker... vbhacker?.. txt is for professionals :)

wooolF[RM]
03-21-2002, 04:53 PM
just looked at source code of the attachment. Not so big... Why make more problems and make it specially for vbhacker tool?

It's like type some text, then scan it and use FineReader to convert image into readable text again...

Admin
03-21-2002, 05:00 PM
You don't have to use it.

wooolF[RM]
03-21-2002, 05:04 PM
]good excuse... :) sorry if I'm annoying you... didn't wanted to...

ExcErr
03-21-2002, 05:04 PM
works perfectly! thx Chen!

snyx
03-21-2002, 05:06 PM
wooolf, I pulled up a search on vbhacker, very cool stuff! check it out https://vborg.vbsupport.ru/showthread.php?threadid=36378 Firefly, you are a one man code machine bro, you never cease to surprise me. Cheers to you mate!

wooolF[RM]
03-21-2002, 05:10 PM
]do u think I haven't readed allready what vbhacker is? :D :D :D

alanvo
03-21-2002, 05:39 PM
This is a good way to start. Lets start using VBHacker, so in the future when we update our forums to a newer version. Just run the hack in VBHackers and it's done!

AndyTSJ
03-21-2002, 05:55 PM
I personally love this idea of vbhacker.php - like alanvo said when a forum update occurs it would make reinstalling the majority of hacks an easy process :) Nice work FireFly.

snyx
03-22-2002, 05:44 AM
im still on 2.2.1 so I can't use it... and I don't wanna lose all my hacks!!! I donno how many I added, I have lost track! so no upgradeing for me... :(

squawell
03-22-2002, 07:10 AM
nice hack FireFly:D:D:D

shadow_old
03-27-2002, 08:57 AM
What's all his whining about not wanting to use vbhacker
just use vbhacker and let it generate a txt file

same thing as not using it at all you end up with a txt file with everything you gotta do

andrew67
04-09-2002, 02:36 PM
I installed this with vbhacker and for some reason it shows as:
/ 0 <== notice the first digit is missing... what have I done wrong?

Edit: I just noticed it works on new threads, but not on old, any ideas on how to resolve this please?

andrew67
04-18-2002, 03:43 AM
Nobody has a soloution as to why 0 dosent show when there is no new replies?

Birdie501
04-23-2002, 11:32 AM
Hey, would be nice if someone can help andrew67 and me. I have the same problem!

Thanks!!!!!

Birdie501
04-23-2002, 11:59 AM
OK guys,

i found a solution for this problem!

in forumdisplay.php find

eval("\$forumdisplaybits .= \"".gettemplate('forumdisplaybit')."\";");

above it add

if ($thread['unreadposts'] < 1 ){ $thread['unreadposts'] = "0"; }

thats all!

filth
04-24-2002, 07:08 PM
anyone know if that fix can be incorporated into the original file as i will end up forgetting about it and next time i update I will have the same problem

Cheers in advance

Peter

andrew67
04-25-2002, 10:39 PM
Thanks, but it did sweet F all on my forum, everything is the same as before... :(

Birdie501
04-26-2002, 05:07 AM
@andrew67

if you use this code and did the installation correct it have to work! I guess you made something wrong. Try to install again!

FleaBag
05-21-2002, 04:54 PM
Thanks for this hack FireFly, and thanks for the fix Birdie501. Running smoothly on 2.2.5! :D

BlyGilmore
06-16-2002, 09:01 PM
great hack. however is there anyway to make a 0 show up if there are no new replies instead of having the forums just leave that spot blank?

Birdie501
06-17-2002, 06:02 AM
@BlyGilmore

Please read the thread! -> https://vborg.vbsupport.ru/showthread.php?postid=243690#post243690

FleaBag
06-19-2002, 06:39 PM
Upgraded to 2.2.6 and working great, though I had to do the first forumdisplay.php edit manually.

Boofo
06-24-2002, 07:49 AM
Great hack, Chen (as usual) and thanks for the fix Birdie501. :)

JaZz0r
06-24-2002, 09:06 AM
Wonderful hack, FireFly. Keep up the fantastic work! :)

Bison
09-04-2002, 07:59 AM
I personally love this idea of vbhacker.php - like alanvo said when a forum update occurs it would make reinstalling the majority of hacks an easy process Nice work FireFly ;) .

Not when you already have hacks in the php code ... that where the installer breaks down ... it can't find the code it needs to update and goes into manual mode. This is where you're better off running the text file. I haven't had ONE hack install, run all the way through the install process yet! :eek:

FleaBag
09-04-2002, 10:05 AM
Well I have, and I have over 40 installed.

Exo
10-20-2002, 08:40 PM
Hey it does not works it shows me all the time the totals posts at new?

and i do what Birdie501 says! Need help plz!

MetroSports82
01-07-2003, 02:54 AM
Hey FireFly as always, great hack! :) Its working great on 2.2.9.

Here is how I have set up the new replies system, because alot of my members were complaining that the numbering are to close together, and that it was making it very confusing. So, what I've done, is made a totally new field, called "New Replies", and have the number showing there, next to the original "Replies" field. :D

Kiel McLeod
01-13-2003, 06:30 PM
MetroSports82 very nice addition

i have a little issue with this hack did any of you get this problem?

https://vborg.vbsupport.ru/showthread.php?s=&threadid=47686

ajk
11-20-2003, 12:45 AM
Works great on 2.3.3