vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   New Posts & Threads Since Last visit (https://vborg.vbsupport.ru/showthread.php?t=82774)

Nullifi3d 10-04-2005 05:48 PM

Well it counts the posts since your last visit, not the posts that you haven't viewed since your last visit.

predatorkill 10-10-2005 10:43 AM

Quote:

Originally Posted by Reverend
My mistake,i forgot to add the navbar edit :o

BTW, i removed the separate (get new posts) link as there is already a link under the posts and threads counts,and i also placed it under the pm stats (same position as Gary's 3.0 hack). Just my own preference.

Thanks for the hack though Zach.


That way is better and more noticeable by the user!!!

i didnt make alter to the sql tables.I must do that?the hack works ok tho...

Nice hack!

Thanks a lot!

southernlady 10-10-2005 11:42 AM

I slipped it down a bit to after this:
Code:

<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
That puts it in the Welcome section that is part of the user cp and under the PM messages. Liz

Quillz 10-10-2005 04:25 PM

I'd like to install this plug-in, but is running that SQL query required? I know how to access phpMyAdmin, but I don't know where to run the query. I'd like to just not do it if at all possible.

Nullifi3d 10-10-2005 06:22 PM

If you don't run the query then you'll be scanning your entire post and thread tables each time you featch the data (load the page that shows the totals). I wouldn't reccomend not running the sql query if you have more then a few thousand threads and/or posts.

Quillz 10-10-2005 07:32 PM

Quote:

Originally Posted by Nullifi3d
If you don't run the query then you'll be scanning your entire post and thread tables each time you featch the data (load the page that shows the totals). I wouldn't reccomend not running the sql query if you have more then a few thousand threads and/or posts.

I installed this on my test board with 1 member and 1 post. But, just for reference, where exactly do I run this query? I know how to run it, and I know how to access phpMyAdmin. Just don't know where it goes.

Nullifi3d 10-10-2005 07:42 PM

Click the SQL link in phpmyadmin, or you can run sql queries from Maintenance >> Execute SQL Query in your forum's AdminCP.

LeeWicKeD 10-14-2005 09:29 PM

great mod,works fine, even at vb3.5gold

vBarab 10-15-2005 03:27 PM

find
PHP Code:

$newthreads number_format($getnewthreads['count']); 

afer that
PHP Code:

// Users
$getnewUsers $db->query_first("SELECT COUNT(*) AS count FROM " TABLE_PREFIX "user WHERE  1 AND joindate >= '{$vbulletin->userinfo['lastvisit']}'"); 
$newUsers number_format($getnewUsers['count']); 


Xtrm2Matt 10-27-2005 11:43 AM

~~~ removed ~~~

Just fixed it. Forgot to uninstall the other "New posts" hack before installing this one :)

Thanks anyways :)

Matt

BANDiT600 10-27-2005 12:54 PM

Very very nice!!!
/me installed!

Reverend 10-29-2005 06:31 PM

A couple of our members are reporting a small glitch with the new post count.

Sometimes when they go to the main index page it says "there has been 1 new posts and 0 new threads since your last visit.",

but when they click on the "New Posts" link, it says:

"Sorry, there are no new threads to view. You may search for threads updated during the previous 24 hours, here."

Any ideas ???

Zachery 10-29-2005 08:24 PM

Quote:

Originally Posted by Reverend
A couple of our members are reporting a small glitch with the new post count.

Sometimes when they go to the main index page it says "there has been 1 new posts and 0 new threads since your last visit.",

but when they click on the "New Posts" link, it says:

"Sorry, there are no new threads to view. You may search for threads updated during the previous 24 hours, here."

Any ideas ???

They already read it :p the mark read system can confuse members.

Reverend 10-29-2005 08:43 PM

Quote:

Originally Posted by Zachery
They already read it :p the mark read system can confuse members.

err no if it was that simple i would have told them that. :rolleyes:

It happens when they have already marked the previous posts as read.So in this case,no they haven't already read it.

apdcanari 10-29-2005 11:37 PM

Good hack :nervous:

ggiersdorf 10-30-2005 04:25 PM

could someone please explain this

I have noticed when I go to my board it says there are 5 new post since last visit etc. No problem when I go to these threads and read them, and go back to the main page I would expect them to say there are 0 new message (posts) not emails that are unread. I have to phyiscally mark the forums read
is there a way to mark a thread read once I read it automatically?

I want it to say there are X unread posts now.

Is it possible to also set this for subscribed threads so it dosent say there are 4000 posts, but there are 12 posts in your subscribed threads!?

Paul M 10-30-2005 05:53 PM

Quote:

Originally Posted by ggiersdorf
could someone please explain this

Um, you just had it explaiined to you here.

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

ggiersdorf 10-30-2005 05:57 PM

Paul yes, but I want to change it to tell me # of unread posts. and I dont know how

Paul M 10-30-2005 06:42 PM

You can't, without re-writing it.

wii 11-12-2005 08:28 PM

Will this hack work for Version 3.5.1 ?

Reverend 11-12-2005 10:03 PM

Quote:

Originally Posted by wii
Will this hack work for Version 3.5.1 ?

I'm using 3.5.1 and it works fine.

wii 11-14-2005 10:15 AM

Do you have a test login so I can see it in action?

Thanks

By the way, how do you get this on the non-forum page?

Members: 13059
Forum Posts: 78791

HMBeaty 11-20-2005 01:06 AM

How do I get this to show on the navbar of EVERY page? Thanks

HMBeaty 11-23-2005 12:13 AM

Anyone?

Zachery 11-23-2005 04:00 AM

Quote:

Originally Posted by NRR
How do I get this to show on the navbar of EVERY page? Thanks

Thats alot of extra overhead... are you sure you want to be running large querys on EVERY page displayed on your forum?

Gio Takahashi 12-02-2005 03:38 PM

Quote:

There has been Array new posts and 0 new threads since your last visit.
Any explanations why, and how exactly do I fix this?

Gio Takahashi 12-02-2005 07:04 PM

hmm. Got it fixed.

dark dragun 12-04-2005 08:42 AM

I change up the navbar code. it looked to cluttered, this is simpler.

PHP Code:

<if condition="$vbulletin->userinfo['userid'] != '0' AND THIS_SCRIPT == 'index'"><br /><span class="smallfont"><a href="$vboptions[bburl]/search.php?do=getnew">New posts</a>:$newposts <a href="$vboptions[bburl]/search.php?do=getnew">New threads</a>:$newthreads </span></if> 


Gio Takahashi 12-11-2005 10:19 PM

Hmmm. Curious.

I am wondering if it is possible to add this in the Who's Online page, so that people could see whether there is new post or new threads while idling in the who's online page.

xeyr 12-13-2005 02:01 AM

Installed, thanks!

PennylessZ28 12-22-2005 01:04 AM

excellent

Dantenator 12-29-2005 08:22 PM

I decided to go with having it displayed on every page on my site thinking overhead is not that great a problem because it's a small site. However, I'm having a little trouble with it where the new posts count shows nothing on any search page and also my CMPS homepage. I mean it just doesn't show anything at all, no zero, no nothing. I thought it might be related to the global_start hook. Would I need to change that to something else?

Codeman05 01-06-2006 03:57 PM

I am also unable to get this hack to work on the CMPS homepage, any clues on what to do?

Snatch 01-06-2006 05:37 PM

Code:

<a href="$vboptions[bburl]/search.php?do=getnew">New threads</a>:$newthreads </span></if>
This is the same String linke the new post Link. How can I search only new Threads by klick on new Threads ?

Greetz
Snatch

NexDog 01-11-2006 12:16 PM

Will this work outside the navbar? We don't use it but I'd like these stats to show on the left column we have that shows a user his stats when he logs in....I installed it but the links with the stats don't appear. The $newposts and $newthreads variables don't appear to work...

Snatch 01-16-2006 11:10 AM

New Turn,

how i can search only vor new threads since last visit ?

Zachery 01-16-2006 02:37 PM

search.php?do=getnew&oldmethod=1

Snake 01-24-2006 08:47 PM

Screenshots?

Guest210212002 01-25-2006 03:02 PM

This working on 3.5.3?

Zachery 01-25-2006 06:25 PM

Quote:

Originally Posted by Chris-777
This working on 3.5.3?

Yes.


All times are GMT. The time now is 04:20 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.01533 seconds
  • Memory Usage 1,822KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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