vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - New posts and reputation comments. (https://vborg.vbsupport.ru/showthread.php?t=123931)

wii 10-09-2006 11:39 AM

Can this be modified to show in the header between calendar and seach, like this:

Calendar - New Posts (45) - Search

45 is just an example, this would be post count.

Thanks

texasf1racer 10-27-2006 03:17 AM

Thx very much, works nicely! :)

abramelin 10-28-2006 12:04 PM

installed! this is a lovely mod. thanks Paul but there is only one thing unnecessary. If the user have no comments then it always shows the "you have no reput comments" how can we disable it. I think if the system only warns the user when a new comment come is much better. because navbar is a limited area and its not good to list unnecessary phrased there.

Paul M 10-28-2006 02:35 PM

I'm happy with it as it is. :cool:

If you want to change it then you will need to edit the plugin "New Posts and Reputation (1)"

Change
PHP Code:

$vbulletin->userinfo['rcount'] = construct_phrase($vbphrase['no_new_reputation'],$repcount['rcount']); 

to
PHP Code:

$show['rcount'] = false


abramelin 10-28-2006 02:51 PM

ohh sorry i looked it now and it was working just likely what i want. thanks paul :)

Paul M 10-28-2006 03:23 PM

I don't understand the question. The count is already reset when you visit the usercp to read them.

imranbaig 10-29-2006 04:54 AM

Hey Paul, nice hack, Is there a way to Deduct one from some one who is giving negative reputation so that it regulates unnecessary reps?

TheBlackPoet 10-31-2006 03:20 AM

works great.. fills out that empty space with meaningful information...

thank you

Canis Firebrand 10-31-2006 11:07 AM

Nice modification.

I already had in place your unread posts one. But I wanted a notification for new reputation comments. So, I installed this one, and just made the template edit for the rep comments part.

Works like a charm.

Thanks again!

MillerLight 11-05-2006 03:13 AM

Paul,

Works great, thanks for your continued dedication.

iran.gs 11-06-2006 12:41 PM

Installed Gr8 Work

Milez 11-13-2006 01:21 AM

Hmm this adds 2 queries - so not really a good idea for big boards. Too bad great idea.

Paul M 11-13-2006 02:11 AM

I always find the obsession some people have with the number of queries amusing. The number of queries is not really significant, it's what they do that matters.

hendri 12-03-2006 01:02 AM

i try in 3.6.4 and cannot work ??

why on navbar template step 2 :

Code:

find :
<if condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if>

Add below ;

                        <if condition="$show[rcount]"><br />$bbuserinfo[rcount]</if>

i cannot find it????

before i use for version 3.5 and it is ok

hendri 12-03-2006 01:12 AM

and nothing show up after i try to upgrade.

www.indodragon.com

login : test
passw : 1234

Paul M 12-03-2006 01:51 AM

If you haven't made the template changes then obviously it's not going to work.

The code searched for in both changes is present in the default vb navbar template. I can't take into account any changes you may already have made, or non standard navbar templates.

hendri 12-03-2006 10:09 AM

yes. i try update the templates... and it works again.

LJR 12-04-2006 08:48 AM

Thanks (already marked as installed on a previous version and now here too).

flynnibus 12-04-2006 03:56 PM

I've noticed some differences between this and your 3.5 version

the 3.5 version says 'no unread posts' this one shows '0 unread posts'

the 3.6 version hyperlink does not include the number only the 'unread posts' text is the hyperlink.

Intentional? I kinda like the 3.5 styles a bit better.

Paul M 12-04-2006 05:08 PM

Are you sure you have the right modification ? This does not display unread posts at all.

Red Matrix 12-05-2006 10:13 AM

This file has a hidden but empty folder in it, called CVS. (or was it just me?)
It works fine, though. INSTALLED

Paul M 12-05-2006 06:10 PM

Just delete the CVS folder.

flynnibus 12-05-2006 08:35 PM

Quote:

Originally Posted by Paul M (Post 1131733)
Are you sure you have the right modification ? This does not display unread posts at all.

Sorry, that was intended for this mod

https://vborg.vbsupport.ru/showthread.php?t=123886

Hard sometimes to find the correct thread. All I do now is search by author and try to sort out which is which

ogameclub 12-05-2006 08:43 PM

Works great.

Paul M 12-05-2006 09:17 PM

Quote:

Originally Posted by flynnibus (Post 1132726)
Hard sometimes to find the correct thread. All I do now is search by author and try to sort out which is which

Just click on the product name in the ACP Product Manager.

flynnibus 12-05-2006 10:50 PM

Quote:

Originally Posted by Paul M (Post 1132770)
Just click on the product name in the ACP Product Manager.

Thanks for the tip. Ironically I found that by accident today when trying to find your other thread :)

Thanks for the great mods!

lazytown 12-06-2006 07:35 AM

Quote:

Originally Posted by Paul M (Post 1115965)
I always find the obsession some people have with the number of queries amusing. The number of queries is not really significant, it's what they do that matters.

You're 100% right there. 10 queries aren't necessarily worse than 1 single huge query.

Installed and working great.

By the way, how does it keep track of new posts? I'm assuming it isn't doing a large query every time but you made a table that remembers from each visit?

thanks
-vissa

Paul M 12-06-2006 08:19 AM

No, this does not add any tables (but it does add an index).

It runs a simple select on the post & reputation tables.

Lionel 12-08-2006 12:42 AM

I understand that this displays according to last visit, but is there a way to prevent it to display xx New Posts since last visit when all new posts have been read?

Paul M 12-08-2006 02:26 AM

No, this does not have any facilities related to unread posts.

trd167 12-08-2006 08:07 AM

installed and running. thanks

flynnibus 12-08-2006 11:03 AM

Quote:

Originally Posted by Lionel (Post 1134226)
I understand that this displays according to last visit, but is there a way to prevent it to display xx New Posts since last visit when all new posts have been read?

Do a 'mark all forums as read' at the bottom of your main page to catch up if you've just switched your read method to database. changing from cookies to database seems to leave some chaos at first. But once you 'catch up' you should be fine

Lionel 12-08-2006 11:46 AM

Quote:

Originally Posted by flynnibus (Post 1134456)
Do a 'mark all forums as read' at the bottom of your main page to catch up if you've just switched your read method to database. changing from cookies to database seems to leave some chaos at first. But once you 'catch up' you should be fine


i have been using this option all along

Quote:

Database (automatic forum marking)
Which is accurate, but like Paul says, looks like the lastvisit cannot be bypassed unless we do a compare with database for 0 unread

Doglet 12-18-2006 08:58 PM

Well done Paul. Just installed it and two of my users have already commented. :cool:

Mecho 12-19-2006 05:32 PM

Thanks for update ...

but take a look to this pic :

Paul M 12-19-2006 07:12 PM

Oh yeah, thread version updated.

Makc666 12-20-2006 11:35 AM

Paul M
I noticed that in this mode you use:
Code:

No <strong><a href="search.php?do=getnew">New Posts</a></strong> since your last visit.
And in your MOD:
Count of unread posts in the welcome box
https://vborg.vbsupport.ru/showthread.php?t=123886

you use:
Code:

<strong>No <a href=\"search.php?do=getnew\">Unread Posts</a></strong> since your last visit.
The difference is in symbol \ before "

If it is important than maybe we have to update this MOD?

Terminatoronly 12-27-2006 01:48 PM

thnx alot installed :D

wii 01-02-2007 08:27 PM

Can this be modified to just show the number of new posts, so I can use it in the header navigation, like this: New Posts (23) ?

wii 01-02-2007 09:02 PM

Ok, I got it working as I wanted.

I notice that if someone post something in a hidden forum, that count is still visible for everyone ? Even people who can“t see that post !?


All times are GMT. The time now is 02:47 AM.

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.01312 seconds
  • Memory Usage 1,798KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete