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)

Linear Helix 01-14-2004 12:00 AM

Attention M1th.

PHP Code:

$forumids array_keys($forumcache);
foreach(
$forumids AS $key => $value)
{
    
$fperms = &$bbuserinfo['forumpermissions']["$forumid"];
    
$forum = &$forumcache["$forumid"];
    if (!(
$fperms && CANVIEW) OR !($fperms && CANSEARCH) OR !verify_forum_password($forumid$forum['password'], false)) {
        unset(
$forumids["$key"]);
    }


$forumids apparently ends up empty, because when the script tries to implode() it later on for use in the IN() in the query, nothing results, breaking the query.

DCX 01-15-2004 08:11 AM

ok, i found out that the reason i couldn't find the phrase in the global.php section was because i was lookin at the wrong global.php file....... the only thing i need help on now is editing the navbar template. where do i find that????

M1th 01-15-2004 12:40 PM

Quote:

Originally Posted by Linear Helix
Attention M1th.

PHP Code:

$forumids array_keys($forumcache);
foreach(
$forumids AS $key => $value)
{
    
$fperms = &$bbuserinfo['forumpermissions']["$forumid"];
    
$forum = &$forumcache["$forumid"];
    if (!(
$fperms && CANVIEW) OR !($fperms && CANSEARCH) OR !verify_forum_password($forumid$forum['password'], false)) {
        unset(
$forumids["$key"]);
    }


$forumids apparently ends up empty, because when the script tries to implode() it later on for use in the IN() in the query, nothing results, breaking the query.

Yep, It'll work if you use it for one query only. The second one ends up empty.

DCX 01-15-2004 09:04 PM

ok... i found the templates in the admin control panel. i'll let you know if i got it to work......

Linear Helix 01-15-2004 09:05 PM

AH! Thanks, M1th. The problem is solved!

gmarik 01-17-2004 07:43 AM

nice one

DCX 01-17-2004 10:09 PM

finally, this newb figured it all out..... got it working and it's all good.

Gary King 01-17-2004 11:48 PM

Quote:

Originally Posted by DCX
finally, this newb figured it all out..... got it working and it's all good.

Who exactly are you talking about?

M1th 01-18-2004 09:09 AM

Quote:

Originally Posted by Gary W
Who exactly are you talking about?

I think he's talking about himself. :p

Gary King 01-18-2004 01:27 PM

Quote:

Originally Posted by M1th
I think he's talking about himself. :p

Apparently :rolleyes: :p

DCX 01-19-2004 03:14 AM

yes i was.

KuraFire 01-24-2004 07:39 PM

The COUNT(*) method of doing the query is rather intensive for your server if you have it in phpinclude_start - it's a slow query (the more posts and threads, the slower) that can really hog down a server. I'm interested in seeing NTLDR's method though...

Mijae 01-25-2004 01:01 AM

Quote:

Originally Posted by Reverend
I was merely pointing out that some people might want to change the grammar.

Geez,sorry for mentioning it. :devious:

How many queries does this use? It is too hard on the server?

Gary King 01-25-2004 01:33 AM

Quote:

Originally Posted by Mijae
How many queries does this use? It is too hard on the server?

2 queries, and no, the queries aren't really that much of a strain on the server :)

Boofo 01-25-2004 01:46 AM

Quote:

Originally Posted by KuraFire
The COUNT(*) method of doing the query is rather intensive for your server if you have it in phpinclude_start - it's a slow query (the more posts and threads, the slower) that can really hog down a server. I'm interested in seeing NTLDR's method though...

How would you do it? ;)

KuraFire 01-25-2004 09:51 AM

Quote:

Originally Posted by Boofo
How would you do it? ;)

Haven't looked into it much, but apparently NTLDR has a working method :)

Boofo 01-25-2004 10:31 AM

NTLDR, buddy, can you share it with us? ;)

WetWired 01-26-2004 02:24 PM

Quote:

Originally Posted by Reverend
For anyone that has installed the instructions_newthreads.txt version you might want to make a grammatical change to the phrase content

From this:

Code:

There have been {1} threads and {2} posts since your last visit!
To this:

Code:

There have been {2} posts in {1} threads since your last visit!

For those arguing over this, it's quite simple. If you installed the version that counts old threads with new posts as new threads, then those threads aren't neccessarily new. Therefore, "There have been {2} posts in {1} threads since your last visit!", because the number of "new threads" is really the number of threads with new posts in them. If you installed the version that only lists threads started since the last visit, then the original phrase is more correct.
Not installing this 'cause of the permissions thing. Gonna take some time and look into it myself.

ogden2k 02-01-2004 03:19 PM

I've found a problem with this, if I go to new posts, there's 8 new let's say, New Posts shows all 8. But, when I view all of the 8 posts, the hack still shows that they are new. Shouldn't the hack show 5 new threads if I've read 3 of the 8?

Can this be fixed?

Gary King 02-01-2004 04:40 PM

Quote:

Originally Posted by ogden2k
I've found a problem with this, if I go to new posts, there's 8 new let's say, New Posts shows all 8. But, when I view all of the 8 posts, the hack still shows that they are new. Shouldn't the hack show 5 new threads if I've read 3 of the 8?

Can this be fixed?

Nope, that's how vBulletin works. Click on 'marks forum read' or wait until you expire (time limit depends on what you set in your Who's Online options) then check back on the forums :)

ogden2k 02-01-2004 06:05 PM

Ah ok, that's too bad. It can be confusing for some people.

Gary King 02-01-2004 07:31 PM

Quote:

Originally Posted by ogden2k
Ah ok, that's too bad. It can be confusing for some people.

It's because technically, you would be online your forums for only 0.1 seconds, which is the time it takes to load the page. Because once page is loaded, connection is killed :)

KuraFire 02-02-2004 09:16 AM

Quote:

Originally Posted by Gary W
It's because technically, you would be online your forums for only 0.1 seconds, which is the time it takes to load the page. Because once page is loaded, connection is killed :)

minor detail: unless you're using persistent connections, but those won't affect new posts indicators :)

I'm such a nitpicker.. ;D

ogden2k 02-06-2004 11:25 PM

I am using RC4, and when there are 0 new threads or posts, I get this:
%1$s

Gary King 02-07-2004 12:10 AM

Quote:

Originally Posted by ogden2k
I am using RC4, and when there are 0 new threads or posts, I get this:
%1$s

Strange, works fine for me on RC 3 with 0 threads and 0 posts.

ogden2k 02-07-2004 02:30 PM

It worked fine on RC3 for me as well, not RC4...

Gary King 02-07-2004 02:33 PM

Strange, I'll wait until someone else can confirm this before looking into it :)

ogden2k 02-08-2004 07:29 PM

You can't try it your self...?

Gary King 02-08-2004 08:16 PM

Quote:

Originally Posted by ogden2k
You can't try it your self...?

Well I was hoping someone could respond within a few minutes :p
Anyways, installed RC4, and works fine for me :)

DCX 02-10-2004 05:21 AM

Quote:

Originally Posted by Gary W
Well I was hoping someone could respond within a few minutes :p
Anyways, installed RC4, and works fine for me :)

so do i upgrade to RC4 and RE-install the hack or should it already be on there?

BillaBongUSA 02-10-2004 05:40 AM

You have to re-install it when you upgrade.

Gary King 02-10-2004 11:16 AM

Well you shouldn't have to re-install unless you upgrade 'properly' (by NOT replacing all files) but if you did, try re-installing and hopefully it'll work :)

DCX 02-11-2004 03:51 AM

yeah, when i upgraded... i saw "There have been threads and posts since your last visit" was there but there was no numbers....

i basically was goin in like i was gonna install them again but everything was in place... even the navbar template and the phrases i added. all i did was double check everything and it was working fine again.

Logikos 02-12-2004 10:01 PM

/me clicks install

Logikos 02-13-2004 07:01 PM

Don't like the fact that the permissions don't work, thought since it was vB3 it wouldn't be like the vB2 version where it does the same thing.

/me uninstalls

MischiefThought 02-28-2004 02:24 AM

GREAT Hack. Wonderfull job.

Wifey 03-15-2004 11:59 PM

Installed and it's working perfectly. Thanks!

Cloudrunner 03-28-2004 11:22 PM

Is this working on Gold anyone know?

I cleanly redid everything on me site, and have been bugged about getting this one back, but don't wanna chance it til I have confirmation that it works on Gold.

Thanks

)O( Cloudrunner )O(

Gary King 03-28-2004 11:31 PM

Quote:

Originally Posted by Cloudrunner
Is this working on Gold anyone know?

I cleanly redid everything on me site, and have been bugged about getting this one back, but don't wanna chance it til I have confirmation that it works on Gold.

Thanks

)O( Cloudrunner )O(

Yep works on Gold :)

trafix 03-29-2004 12:18 PM

Quote:

Originally Posted by Gary W
Yep works on Gold :)

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?


All times are GMT. The time now is 04:17 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.01470 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (17)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