vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   How many threads and posts since your last visit! (https://vborg.vbsupport.ru/showthread.php?t=59583)

Link14716 01-03-2004 08:48 PM

Installed to phpinclude_start.

Thanks. :)

The Keeper 01-03-2004 09:06 PM

Quote:

Originally Posted by Gary W
Both.

Wouldn't it be better to have it so that new threads only showed up when there actually were new threads? You could do that by selecting the id from thread table where createdate is newer than last visit.

SELECT threadid FROM thread WHERE dateline > $pmlastvisit

Or something like that.

macshrine 01-03-2004 11:13 PM

really easy to install!! great mod, i installed it at www.macshrine.com/forums/index.php

thanks alot :)

Gary King 01-04-2004 03:17 AM

Quote:

Originally Posted by DCX
i'm new to vb and i wanna try to add hacks and stuff to my board. i found the global.php file on the server but i couldn't find the navbar template file. to make things easier for me, is there a site or list somewhere showing where all the files are installed into which folder or whatever? oh yeah, will this work for vb3 gamma?

Yep it should work with vB 3 Gamma, you can try anyways, it's a very quick install and uninstall if required :)

Littlebit 01-04-2004 02:52 PM

installed :) thanks for the mod Gary

Bernd Glasstett 01-04-2004 05:11 PM

I added something to it, phrases to be exact.

Enter the following phrases on GLOBAL:

home_sincelastvisit = since your last visit
home_newthreadssincelastvisit = new threads
home_newpostsssincelastvisit = new posts

and then use this code in the navbar-template:

Code:

<br /><b>$getnewthread[threads]</b> $vbphrase[home_newthreadssincelastvisit], <b>$getnewpost[posts]</b> $vbphrase[home_newpostsssincelastvisit] $vbphrase[home_sincelastvisit]
For the ones who would like to translate it ;)

Link14716 01-04-2004 05:16 PM

All you need is one phrase.

Just call it "home_sincelastvisit"
"There have been {1} threads and {2} posts since your last visit!"

Then use this in navbar:
Code:

<phrase 1="$getnewthread[threads]" 2="$getnewpost[posts]" />$vbphrase[home_sincelastvisit]</phrase>

Bernd Glasstett 01-04-2004 05:19 PM

true... I still have to get used to some things on the new system. Thanks Link :)

ogden2k 01-04-2004 09:23 PM

Which one do I use if I don't want the thread count to go up if someone posts into a thread?

SmEdD 01-05-2004 12:23 AM

This is also possible to be done in one query instead of two.

And you should also give credit to the orignal author for the vb2 one as the query has barley changed.


All times are GMT. The time now is 08:44 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.01184 seconds
  • Memory Usage 1,735KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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