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


All times are GMT. The time now is 11:14 PM.

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.01276 seconds
  • Memory Usage 1,754KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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