vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   vB Portal Ruined me!!! (https://vborg.vbsupport.ru/showthread.php?t=48047)

Xyphen 01-23-2003 07:16 PM

vB Portal Ruined me!!!
 
Just kiddin, i got a little error cuz of vB Portal, I installed vb portal on vb2.2.9, and when I try to edit a post or something, it gives this error..

Code:

Parse error: parse error in /home/darkani/public_html/otakuo/forums/editpost.php on line 249
Please help!!

Line 249 says:
PHP Code:

$title=censortext($title); 


JulianD 01-23-2003 07:24 PM

there should be something wrong with some lines before that.

Double check the instructions, or ask for support over phpportals.com

Xyphen 01-23-2003 07:28 PM

I can't ask for support from phpportals, i am not a premium member, can't anyone help here?

NTLDR 01-23-2003 07:43 PM

IIRC they will give you *Limited* support there, which is why JulianD told you to post there.

mr e 01-23-2003 08:31 PM

what are the lines surrounding that code?

Xyphen 01-24-2003 12:26 AM

PHP Code:

    // check attachment status
    // keep, delete, update
    
if (trim($attachmentaction)=="delete") {
      
$attachmentsql=",attachmentid=0";
      
$DB_site->query("DELETE FROM attachment WHERE attachmentid=$postinfo[attachmentid]");
      
updatethreadcount($threadinfo[threadid]);
    }
    if (
trim($attachmentaction)=="new") {
            
// sort attachement
            
if (is_array($HTTP_POST_FILES)) {
                
$attachment $HTTP_POST_FILES['attachment']['tmp_name'];
                
$attachment_name $HTTP_POST_FILES['attachment']['name'];
                
$attachment_size $HTTP_POST_FILES['attachment']['size'];
            }
            if (
trim($attachment)!="none" and trim($attachment)!="" and trim($attachment_name)!="") {
                
$attachmentid=acceptupload($foruminfo[moderateattach]);
              
$attachmentsql=",attachmentid='$attachmentid'";
              
$DB_site->query("DELETE FROM attachment WHERE attachmentid=$postinfo[attachmentid]");
            }
    }
  }

  
// remove sessionhash from urls:
  
$message stripsession($message)

  
$title=censortext($title);
  
$message=censortext($message);

  if (
strlen($message)>$postmaxchars and $postmaxchars!=0) {
    eval(
"standarderror(\"".gettemplate("error_toolong")."\");");
  }

  
// find out if first post
  
$getpost=$DB_site->query_first("SELECT postid FROM post WHERE threadid=$threadinfo[threadid] ORDER BY dateline LIMIT 1");
  if (
$getpost[postid]==$postid) {
    
$isfirst=1;
  } else {
    
$isfirst=0;
  }
  if (
$isfirst and $title!="" and $postinfo[dateline]+$editthreadtitlelimit*60>time()) {
    
$DB_site->query("UPDATE thread SET title='".addslashes(htmlspecialchars($title))."', iconid=".intval($iconid)." WHERE threadid=$threadinfo[threadid]");
    
//$title="";
  
}

  if (
$email) {
    if (!
$checkid=$DB_site->query_first("SELECT subscribethreadid FROM subscribethread WHERE userid=$postinfo[userid] AND threadid=$threadinfo[threadid]")) {
      
$DB_site->query("INSERT INTO subscribethread (subscribethreadid,userid,threadid) VALUES (NULL,$postinfo[userid],$threadinfo[threadid])");
    } 
// else : already subscribed, so no need to do that again
  
} else {
    if (
$checkid=$DB_site->query_first("SELECT subscribethreadid FROM subscribethread WHERE userid=$postinfo[userid] AND threadid=$threadinfo[threadid]")) {
      
$DB_site->query("DELETE FROM subscribethread WHERE userid=$postinfo[userid] AND threadid=$threadinfo[threadid]");
    } 
// else : already unsubscribed, so no need to unsubscribe
  


Line 249, which is the error line, is:
PHP Code:

$title=censortext($title); 


Xyphen 01-24-2003 12:57 AM

A new error just came!!!

In the moderators Control Panel, This error shows up:

Code:

Parse error: parse error in /home/darkani/public_html/otakuo/forums/mod/moderate.php on line 35

JulianD 01-24-2003 01:01 AM

Replace

PHP Code:

$message stripsession($message

with this:

PHP Code:

$message stripsession($message); 

For the mod cp error, try to do the same and see if you're missing a ; in the early lines.

Xyphen 01-24-2003 01:18 AM

Yes, Julian, its fixed!! THNX MAN, I am such an dumb@$$ not to read the code -_-!!

One more thing, I fixed the error in moderate.php. Here is what to do,

Find 1 of 2:
PHP Code:

makelabelcode("<b>Located in:</b>","<a href=\"../forumdisplay.php?s=$session[sessionhash]&forumid=$thread[forumid]\" target="_blank">$thread[forumtitle]</a>"); 

Replace with:
PHP Code:

makelabelcode("<b>Located in:</b>","<a href=\"../forumdisplay.php?s=$session[sessionhash]&forumid=$thread[forumid]\" target=\"_blank\">$thread[forumtitle]</a>"); 

Find 2 of 2:
PHP Code:

makelabelcode("<b>Located in:</b>","<a href=\"../forumdisplay.php?s=$session[sessionhash]&forumid=$post[forumid]\" target="_blank">$post[forumtitle]</a>"); 

Replace With:
PHP Code:

makelabelcode("<b>Located in:</b>","<a href=\"../forumdisplay.php?s=$session[sessionhash]&forumid=$post[forumid]\" target=\"_blank\">$post[forumtitle]</a>"); 

I hope that was the fix, at least I think that was the fix, also, This was no error in vb portal, thats the way vb2.2.9 came, someone should post this at vbulletin.com or something. Thx you guys, I fixed all the errors!!


All times are GMT. The time now is 12:25 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.01231 seconds
  • Memory Usage 1,771KB
  • 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
  • (9)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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