vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Number of new replies per thread on forum display (https://vborg.vbsupport.ru/showthread.php?t=36385)

Admin 03-20-2002 10:00 PM

Number of new replies per thread on forum display
 
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/showthrea...302#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

Quote:

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/showthrea...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

PHP Code:

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

above it add

PHP Code:

if ($thread['unreadposts'] < ){ $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/showthrea...690#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

Quote:

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/showthrea...threadid=47686

ajk 11-20-2003 12:45 AM

Works great on 2.3.3


All times are GMT. The time now is 04:44 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01160 seconds
  • Memory Usage 1,779KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (37)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete