Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vB Portal Ruined me!!! Details »»
vB Portal Ruined me!!!
Version: , by Xyphen Xyphen is offline
Developer Last Online: Dec 2004 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-23-2003 Last Update: Never Installs: 0
 
No support by the author.

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); 

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-23-2003, 07:24 PM
JulianD's Avatar
JulianD JulianD is offline
 
Join Date: Jan 2002
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

there should be something wrong with some lines before that.

Double check the instructions, or ask for support over phpportals.com
Reply With Quote
  #3  
Old 01-23-2003, 07:28 PM
Xyphen's Avatar
Xyphen Xyphen is offline
 
Join Date: Dec 2002
Location: ON, Canada
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't ask for support from phpportals, i am not a premium member, can't anyone help here?
Reply With Quote
  #4  
Old 01-23-2003, 07:43 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

IIRC they will give you *Limited* support there, which is why JulianD told you to post there.
Reply With Quote
  #5  
Old 01-23-2003, 08:31 PM
mr e's Avatar
mr e mr e is offline
 
Join Date: Dec 2001
Posts: 461
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what are the lines surrounding that code?
Reply With Quote
  #6  
Old 01-24-2003, 12:26 AM
Xyphen's Avatar
Xyphen Xyphen is offline
 
Join Date: Dec 2002
Location: ON, Canada
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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); 
Reply With Quote
  #7  
Old 01-24-2003, 12:57 AM
Xyphen's Avatar
Xyphen Xyphen is offline
 
Join Date: Dec 2002
Location: ON, Canada
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 01-24-2003, 01:01 AM
JulianD's Avatar
JulianD JulianD is offline
 
Join Date: Jan 2002
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 01-24-2003, 01:18 AM
Xyphen's Avatar
Xyphen Xyphen is offline
 
Join Date: Dec 2002
Location: ON, Canada
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:47 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04583 seconds
  • Memory Usage 2,322KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (9)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete