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)

Ocean 03-29-2004 12:36 PM

Gary, M1th made a post here suggesting a change that would account for not counting posts/threads that the user didn't have permission for.


Have you looked at this? If so, what's your opinion on it?


And if anyone else has tried it - can you tell me how well it works, as well as how much added load it puts on the Server?

Thanks, all!

Gary King 03-29-2004 07:12 PM

Quote:

Originally Posted by trafix
interesting, i just installed this and acording to the hack it says...

There have been 747 threads and 4488 posts since your last visit!

any ideas?

Check now it should be working fine :)

Gary King 03-29-2004 07:21 PM

Quote:

Originally Posted by Ocean
Gary, M1th made a post here suggesting a change that would account for not counting posts/threads that the user didn't have permission for.


Have you looked at this? If so, what's your opinion on it?


And if anyone else has tried it - can you tell me how well it works, as well as how much added load it puts on the Server?

Thanks, all!

I'll look into that when I have enough free time; also, might take up too much processing time on each page, but if someone wants to make this, then be my guest :)

trafix 03-29-2004 09:50 PM

Quote:

Originally Posted by Gary W
Check now it should be working fine :)

nope, just checked it now and i have ---> There have been 750 threads and 4499 posts since your last visit!

Gary King 03-29-2004 11:18 PM

Quote:

Originally Posted by trafix
nope, just checked it now and i have ---> There have been 750 threads and 4499 posts since your last visit!

I can tell you right now that it's not this hack that's having the problem, but something else going on in the forums. Which board is it for?

trafix 03-29-2004 11:24 PM

We are using Gold! and only has 5 hacks installed

HTL -- has 3 file edits
VB Trader (Full) -- has NO file edits
Members Choice Voting -- has NO file edits
On line Today (yours)
and this one

Gary King 03-30-2004 12:52 AM

Quote:

Originally Posted by trafix
We are using Gold! and only has 5 hacks installed

HTL -- has 3 file edits
VB Trader (Full) -- has NO file edits
Members Choice Voting -- has NO file edits
On line Today (yours)
and this one

http://www.petnshow.com/network/ ?

trafix 03-30-2004 02:37 AM

nope ... another site that i am co admin for http://www.usodja.com/forums/index.php?

Ocean 03-30-2004 01:23 PM

Hi!

Quick question - the Instructions at some point tell you to look for:

Code:

******************************
OPEN UP THE navbar TEMPLATE AND FIND
******************************
<if condition="$show['pmstats']"><br /><a href="private.php?$session[sessionurl]">$vbphrase[private_messages]</a>: $vbphrase[unread] <if condition="$bbuserinfo['pmunread']"><strong>$bbuserinfo[pmunread]</strong><else />$bbuserinfo[pmunread]</if>, $vbphrase[total] $bbuserinfo[pmtotal].</if>
******************************


However, I couldn't find that code anywhere in my navbar template.

Am I blind? Or has there been a change for vB 3.0 Gold?

Hellburn 03-30-2004 05:22 PM

Find:

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>
Below add the code.

Ocean 03-30-2004 06:46 PM

Thank you, Hellburn. That did the trick. :)

Gary King 03-30-2004 09:51 PM

Quote:

Originally Posted by trafix
nope ... another site that i am co admin for http://www.usodja.com/forums/index.php?

Wow that is really messed up, I'm not too sure on what the problem is though. They look like they have no relation with any of the forum stats; anyhow, maybe something to do with your vB Trader? Because this hack relies on the thread and post tables, not sure if that has anything to do with the hacks that you installed. Anyhow you're the only one reporting this problem as of now.

Choclo 03-31-2004 05:53 AM

I got strange characters...

íæÌÜÏ 1 ãæÇÖíÚ æ 30 ãÔÇÑßÇÊ ãõäÐ ÃÎÑ ÒíÇÑÉ áß

on vB 3.0 gold...

Stray 04-02-2004 02:32 AM

The problem with the hack listing so many posts and threads might have something to do with the fact that it seems to continually add threads and posts made since you came back, in other words it shows threads and posts made while you were gone plus continues to add whatever is going on while you're currently there until you leave or mark all forums read.
At least that's what it does for me...

Gary King 04-02-2004 11:16 AM

Quote:

Originally Posted by Stray
The problem with the hack listing so many posts and threads might have something to do with the fact that it seems to continually add threads and posts made since you came back, in other words it shows threads and posts made while you were gone plus continues to add whatever is going on while you're currently there until you leave or mark all forums read.
At least that's what it does for me...

Yep that's how the built-in new post feature works in vBulletin (when you click on 'Get New Posts').

It will reset once it passes the cookie timeout setting you chose in your admin cp.

Also, for that vB3 Gold problem with strange characters, works fine for me on vBulletin 3 :)

Stray 04-02-2004 07:38 PM

That's kinda odd, but it does make sense. Maybe I'll add something to my FAQ about it because people are already getting confused.
It's funny how every new thread also counts as one new post, it's gonna take me awhile to get used to finding logical explanations, seems like such a rare occurence with other software. :laugh:

Gary King 04-02-2004 08:44 PM

Quote:

Originally Posted by Stray
That's kinda odd, but it does make sense. Maybe I'll add something to my FAQ about it because people are already getting confused.
It's funny how every new thread also counts as one new post, it's gonna take me awhile to get used to finding logical explanations, seems like such a rare occurence with other software. :laugh:

Well technically, new threads ARE new posts as well ;)

SaN-DeeP 04-05-2004 07:53 PM

[high]* SaN-DeeP installed ;)[/high]

SaN-DeeP 04-05-2004 08:37 PM

Code:



OPEN UP THE navbar TEMPLATE AND FIND
******************************
<if condition="$show['pmstats']"><br /><a href="private.php?$session[sessionurl]">$vbphrase[private_messages]</a>: $vbphrase[unread] <if condition="$bbuserinfo['pmunread']"><strong>$bbuserinfo[pmunread]</strong><else />$bbuserinfo[pmunread]</if>, $vbphrase[total] $bbuserinfo[pmtotal].</if>
******************************
UNDER IT, ADD
******************************
<br /><phrase 1="$getnewthread[threads]" 2="$getnewpost[posts]" />$vbphrase[navbar_sincelastvisit]</phrase>



I am unable to find that line in navbar :rolleyes: :rolleyes:

need help pls.

Thxn.
Sandy...

Gary King 04-05-2004 11:13 PM

Quote:

Originally Posted by SaN-DeeP
Code:



OPEN UP THE navbar TEMPLATE AND FIND
******************************
<if condition="$show['pmstats']"><br /><a href="private.php?$session[sessionurl]">$vbphrase[private_messages]</a>: $vbphrase[unread] <if condition="$bbuserinfo['pmunread']"><strong>$bbuserinfo[pmunread]</strong><else />$bbuserinfo[pmunread]</if>, $vbphrase[total] $bbuserinfo[pmtotal].</if>
******************************
UNDER IT, ADD
******************************
<br /><phrase 1="$getnewthread[threads]" 2="$getnewpost[posts]" />$vbphrase[navbar_sincelastvisit]</phrase>



I am unable to find that line in navbar :rolleyes: :rolleyes:

need help pls.

Thxn.
Sandy...

Instructions updated take a look :)

SaN-DeeP 04-06-2004 06:11 AM

Gary W thnx for quick reply
works :)

Sandy...

LadyBeth 04-06-2004 04:15 PM

clicking install!

SaN-DeeP 04-07-2004 09:16 PM

OPEN UP THE navbar TEMPLATE AND FIND
HTML 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>
UNDER IT, ADD
HTML Code:

<br /><phrase 1="$getnewthread[threads]" 2="$getnewpost[posts]" />$vbphrase[navbar_sincelastvisit]</phrase>
CREATE NEW PHRASE CALLED navbar_sincelastvisit
WITH THE FOLLOWING CONTENT:
Code:

There have been {1} threads and {2} posts since your last visit!
THE HACK IS NOW INSTALLED, ENJOY!

I cant find that line in my navbar template 0_o
also the PRivate Messages link on navbar is not visible after installing this hack.
I am sure. something i did wrong somewhere.

Please help

Thnx.

leitel 04-07-2004 09:48 PM

Just curious. Does the count of new posts and threads since their last visit INCLUDE new posts/threads in forums from which they do not have access? Thanks! :)

Illuvatar 04-09-2004 02:18 AM

Illuvatar installs this one again on VB Gold! :p

Modified the phrase just a tad...but hey. lol

http://www.warofthering.net/forums/v...oad/index.php?

Linear Helix 04-13-2004 12:21 AM

Quote:

leitel:

Just curious. Does the count of new posts and threads since their last visit INCLUDE new posts/threads in forums from which they do not have access? Thanks!
Yeah, that's the big problem with this mod. I worked on it a while but I don't know enough php/MySQL to get it to count only stuff the user has permission to see.

GaleForce 04-13-2004 02:06 PM

When there are 0 threads and 0 new posts it shows this;

There have been threads and posts since your last visit!

Wait... it's showing that for everything. :surprised:

budlite74 04-18-2004 05:19 PM

i dont get the actuall #post and #threads ... I just get the phrase

Sooner95 04-26-2004 10:37 PM

thanks bud...works great!

Reverend 05-01-2004 10:16 PM

Has anyone managed to code this so that it only counts threads/posts that the user has permission to view.

Members are constantly enquiring why the counts don't match the "new posts" search results.Feels awkward explaining to them that the totals include forums they don't have access to. :disappointed:

WEForums 05-20-2004 05:33 PM

Quote:

Originally Posted by GaleForce
When there are 0 threads and 0 new posts it shows this;

There have been threads and posts since your last visit!

Wait... it's showing that for everything. :surprised:

Upload global.php.

You, too, budlite74.

whitetigergrowl 06-25-2004 01:07 AM

Quote:

Originally Posted by WEForums
Upload global.php.

You, too, budlite74.

I'm having the same problem even though everything (after double and triple checking) seems to look like it's supposed to. It shows the words but no #'s. Any idea how I can fix this?

RichieBoy67 07-02-2004 09:13 PM

Dam, same problem here.... Help please...

Steve123 07-05-2004 09:49 PM

My forums have a million posts or so..

When it runs the query on the posts table it takes a while.. is there any way around this?

RichieBoy67 07-06-2004 10:06 PM

Is there any support for this??? Please???

Illuvatar 07-07-2004 03:45 AM

lol...

This wonderfull hack has been re-installed twice in 3 days!

First for VB 3.0.2 and now for 3.0.3!! :p

Thanks again!

RichieBoy67 07-08-2004 03:11 PM

maybe you can help me for a minute????

Illuvatar 07-08-2004 05:38 PM

Not a problem! I actually had the same problem you did after I upgraded, and that was because the globals.php file is replaced with the upgrade. All of my other pieces, the phrase, etc. were not affected. So all I had to do was reinsert the code into globals.php and re-upload it....and poof.....all fixed.

Have you verified that your globals is hacked proper?

RichieBoy67 07-08-2004 06:19 PM

Yep, my global.php should be right on the money.. I uninstalled the template right now though because it wasn't working..

Illuvatar 07-08-2004 07:07 PM

Jeez...dunno..... I'd say to try again....make sure everything is backed out and reapply the whole thing. Should only take like 5 minutes.


All times are GMT. The time now is 12:01 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.01632 seconds
  • Memory Usage 1,830KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_html_printable
  • (12)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