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)

RichieBoy67 07-08-2004 07:58 PM

Yep, I did it like 5 times already..... Maybe another hack is interfering with it..My site is hacked bigtime....

S@NL - BlackBik 07-17-2004 09:39 AM

Installed it and it works great :) (on vB 3.03)

If you can find the time to look into the permissions thingy, it would be greatly appriciated Gary ;)

S@NL - BlackBik 07-17-2004 01:51 PM

Quote:

Originally Posted by Linear Helix
AH! Thanks, M1th. The problem is solved!

Linear Helix, did you solve the problems with the permissions query?
If Yes, would you be so kind to post the correct query?

WEForums 07-19-2004 11:15 AM

*sigh*

Just posting to say this hack makes MySQL rise above 90% a lot of times. Not a good thing, especially since it's on all pages...

weaver 08-06-2004 01:38 AM

Works great. :) I had forgotten to upload global.php and had the no numbers problem but all was fixed after getting it onto the server.

Dark Zero 08-09-2004 07:32 AM

Quote:

Originally Posted by WEForums
*sigh*

Just posting to say this hack makes MySQL rise above 90% a lot of times. Not a good thing, especially since it's on all pages...

i note the same problem

look the query time in the debug:

Code:

Query:
 SELECT count(*) AS posts FROM post WHERE dateline > '1092038482'
Time before: 0.48323607444763
Time after: 1.2166719436646
Time taken: 0.73343586921692

took 0.7 seconds, and i only tested in a test forum with 178.000 post
(my full forum have 220.000)

is much time for a query

my patch solution is only put the code in the index.php
no in global.php
that save much use

ambumann 08-10-2004 12:18 AM

I tried to install it, but keep getting error messages when I navigate the forum

Not able to add cookies, header allready sent.
File: /home/ybskldmn/public_html/pratkomp/global.php
Line: 651

When I try to view a post i get a blank screen.

YLP1 08-10-2004 07:09 PM

Great mod and I have a question.... The number of new threads and posts do not show on the vbadvanced portal...how do I get it to show there?

http://yourlincolnpark.com/lpsforum/index.php

YLP1 08-10-2004 07:14 PM

I wasn't thinking about about the server strain...where would I place this code in the index and is it the same code used in the global?

mcyates 08-17-2004 09:20 AM

i installed this but got nothing
www.myfootballforum.com

Blackbeard 08-22-2004 12:18 PM

I use this hack, but have installed vbadvance cms and it dont show any numbers at all anyone fixed this.

Jpc 09-28-2004 03:04 AM

Same here, I dont use vbaadvance cms but mine will not present numbers, just the phrase text. Ive reinstalled literally 6+ times, double checked everything and again and again.... What to try next?

Envy-UK 10-01-2004 11:55 AM

Quote:

Originally Posted by Jpc
Same here, I dont use vbaadvance cms but mine will not present numbers, just the phrase text. Ive reinstalled literally 6+ times, double checked everything and again and again.... What to try next?


I'm with you on this one. I've started from scratch many times and it's still not showing the numbers, just the phrase text.

Dark Aura 10-03-2004 09:42 AM

Is there a way to provide a link for the number of new posts and threads so when you click on it, it takes you to a page and shows them all to you?

Envy-UK 10-03-2004 09:41 PM

Could you not just link it to /search.php?do=getnew' ?

JKeats 12-23-2004 04:55 AM

unless there's been a change to the code i missed somewhere in these 12 pages... this hack counts all new posts... is there a way to alter it so that if a user doesn't have access to a particular forum it won't coun't new posts from that forum?

Reverend 12-23-2004 02:49 PM

Quote:

Originally Posted by JKeats
is there a way to alter it so that if a user doesn't have access to a particular forum it won't coun't new posts from that forum?

I asked the same question in this thread a while back and from the replies i got back it would apparently be too complex to exclude non permission forums.

https://vborg.vbsupport.ru/showpost....2&postcount=45

JKeats 12-23-2004 03:04 PM

that's unfortunate. :(

noppid 12-27-2004 05:58 PM

I started installing this and realized it puts those two queries system wide. Forum home is the way to go IMO. The permissions need to be worked out to. Great idea, the codes just not ready yet.

Neither thread nor post have an index on dateline, perhaps that would help performance?

noppid 12-27-2004 07:50 PM

Here's my test with no indexes on...
Threads: 4,164,
Posts: 60,276

no indexes: 1.8818728923798 seconds
try two, much later: 2.7305688858032 seconds
immediate retry, must be a cache: 0.00036907196044922 seconds
five minutes later: 0.23074579238892 seconds

I'll add the indexes and try much later so the cache hopefully expires.

Boofo 12-27-2004 10:32 PM

Quote:

Originally Posted by noppid
I started installing this and realized it puts those two queries system wide. Forum home is the way to go IMO. The permissions need to be worked out to. Great idea, the codes just not ready yet.

Neither thread nor post have an index on dateline, perhaps that would help performance?

I've been running my own version of this on the forumhome in my forumhome cache stats hack since before this came out. 1 query. ;)

carwash 01-01-2005 06:45 PM

I am unable to find that line in the navbar template.....has anyone else had this problem? Copying it and pasting it elsewhere and then searching brings up nothing. :(

steadicamop 01-12-2005 09:19 AM

carwash;

Tip - this is something I do, just copy part of the code and search for that, it may just be one character different, then if you do find it, just check the original code and the one you have in your navbar.

I find that sometimes works.

If not, here's whereabouts it is on mine:

Code:

                        <if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase></if>
<br /><phrase 1="$getnewthread[threads]" 2="$getnewpost[posts]" />$vbphrase[navbar_sincelastvisit]</phrase>
                </div>
                </td>
               
        <else />

It's quite near the top, where it shows how many new Private Messages you have.

HTH

Jason

asarian-host 01-15-2005 08:38 AM

This hack does not work at all! :( It just says: "There have been threads and posts since your last visit!" And it does not update any counters (Vbulletin 3.0.5).

- Mark

silent.dr3am 01-18-2005 08:15 AM

*cllicks the install button

nice hack, i like!

sigh 01-22-2005 01:16 AM

Quote:

Originally Posted by asarian-host
This hack does not work at all! :( It just says: "There have been threads and posts since your last visit!" And it does not update any counters (Vbulletin 3.0.5).

- Mark

Same here - doesn't work in 3.0.6

Reverend 01-22-2005 01:26 PM

Quote:

Originally Posted by asarian-host
This hack does not work at all! :( It just says: "There have been threads and posts since your last visit!" And it does not update any counters (Vbulletin 3.0.5).

- Mark

Double check your global.php edit.

Its the global.php that adds the counters.

Works perfect for me on 3.0.6

agiacosa 02-08-2005 12:27 AM

It is working fine within vB but it doesn't show the counts in my portal page (CMPS). Anyone got it working on a portal?

AxEsLoCkEd 03-13-2005 02:30 PM

Greate Mod *clicks install* :)

cnczone 06-09-2005 03:18 AM

it works!

Snake 06-12-2005 01:29 PM

Thanks.

neil b 06-28-2005 01:48 PM

No problems here. Great hack.

Deyth 09-30-2005 12:36 AM

Fatal error: Call to a member function on a non-object in c:\hosting\webhost4life\member\deyth\vbulletin\glo bal.php on line 727

Carforumsnet 10-06-2005 03:43 AM

This hack still works even on VB 3.0.9.....you just have to change the placement of the lines in Global.php. You need to add them under


PHP Code:

$vbphrase['unread_x_nav_compiled'] = construct_phrase($vbphrase['unread_x_nav'], $pmunread_html);
$vbphrase['total_x_nav_compiled'] = construct_phrase($vbphrase['total_x_nav'], $bbuserinfo['pmtotal']); 


DrewzR/T 10-11-2005 06:41 PM

Yeah I couldnt find the lines in 3.0.7. But I think its mainly because I have the blinking PM indicator. Oh well.

Illuvatar 10-29-2005 08:17 PM

Cannot get this to work in 3.5 :(

s?dpol 05-09-2006 05:36 PM

Hi,

I queried the forum but can't find a version working with vb 3.5x. Is there a new Version available?

Thanks

Reverend 05-09-2006 06:25 PM

Quote:

Originally Posted by s?dpol
Hi,

I queried the forum but can't find a version working with vb 3.5x. Is there a new Version available?

Thanks

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

works with 3.5x


All times are GMT. The time now is 07:41 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.01371 seconds
  • Memory Usage 1,820KB
  • 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
  • (1)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (38)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