vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Help (https://vborg.vbsupport.ru/showthread.php?t=40483)

Boofo 06-30-2002 10:17 PM

Help
 
Can anyone please help me with the following code? I'm getting an error and can't post any newreplies.

https://vborg.vbsupport.ru/showthrea...=&pagenumber=3

Admin 07-01-2002 05:36 AM

I think...
PHP Code:

$threadreviewbits '';
while (
$post=$DB_site->fetch_array($posts)) {
    if (
$postcounter++ < $maxposts) {
        if (
$postcounter%== 0) {
            
$backcolor "#13486D";
            
$post[bgclass] = "alt1";
        } else {
            
$backcolor "#1C5780";
            
$post[bgclass] = "alt2";
        }
        
$username=$post[username];
        if (
$ignore[$post[userid]]) {
            
$reviewmessage $ignoreduser;
        } else {
            
$reviewmessage bbcodeparse($post[pagetext],$threadinfo[forumid],$post[allowsmilie]);
        }
        
// Begin Account hide hack
        
if ($post[usergroupid]==8) {
            if (
$bbuserinfo['usergroupid']==|| $bbuserinfo['usergroupid']==|| $bbuserinfo['usergroupid']==7) {
                eval(
"\$threadreviewbits .= \"".gettemplate("threadreviewbit")."\";");
            } elseif (
$bbuserinfo[userid]!=$post[userid]) {
                eval(
"\$threadreviewbits .= \"".gettemplate("postbit_banned")."\";");
            } else {
                eval(
"\$threadreviewbits .= \"".gettemplate("threadreviewbit")."\";");  
            }
        } else {
            eval(
"\$threadreviewbits .= \"".gettemplate("threadreviewbit")."\";");
        }
// End Account hide hack
    
} else {
        break;
    }



Boofo 07-01-2002 06:30 AM

You thought right. :) It worked! Thank you very much, sir. Can I ask you one thing? Would you please tell me what you changed and why, so I can learn what to watch for the next time? :)

Admin 07-01-2002 06:49 AM

I don't remember... :p I think there was a } else { missing or redundant.

Boofo 07-01-2002 06:53 AM

Well, whichever one it was, it works now. :) I'll have to go over the code again and look at it a little more closely. Thanks again!

John 10-19-2002 07:00 AM

Cheers Chen, fixed my problem as well :)

cgwillis 11-20-2002 09:40 PM

Yeah, it was one missing } right before the end. That should probably be added to the final release of that hack, because the orginal text file has the } missing.


All times are GMT. The time now is 06:52 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.02270 seconds
  • Memory Usage 1,737KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete