Register Members List Search Today's Posts Mark Forums Read

 
 
Mod Options
  #1  
Old 27 Nov 2002, 19:15
danrak danrak is offline
 
Join Date: Dec 2001
error with functions.php and sessions.php

Ok, everytime I try and edit the functions.php to do a hack, I recieve this error:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/tsf/public_html/admin/functions.php on line 812

Fatal error: Call to undefined function: vbdate() in /home/tsf/public_html/admin/sessions.php on line 399
The only way to get rid of it is to re-upload the file from the original. This is driving me nuts.

Last edited by Xenon : 27 Nov 2002 at 22:16.
Comments
  #2  
Old 27 Nov 2002, 22:17
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Real name: Mike
Xenon will probably tell you this soon, but you are not allowed to post full vBulletin files on the site; it's against the rules.

edit: Never mind, he's already edited your post.

-------------

Now to your problem.

Post the code chunk around line 812 of your functions.php, but not the whole file.

Also, which hack are you trying to install?

Last edited by Velocd : 27 Nov 2002 at 22:19.
  #3  
Old 27 Nov 2002, 22:18
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Real name: Stefan Kaeser
removed your files

you are not allowed to post vb-files here!!!!

to help out, there is just an error in functions.php, which produces the error in sessions.php

post the lines 808-817 of your functions.php can help
__________________
Unfortunatelly i am completely out of vbulletin buisness, so i won't upgrade any of my hacks anymore. Everyone who wants to upgrade my hacks or use part of my codes is allowed to do so, without needing any special permission by me anymore. You just have to mention my full name if you want to reuse some of my work, thats all i ask for.
  #4  
Old 27 Nov 2002, 23:53
danrak danrak is offline
 
Join Date: Dec 2001
Ok, sorry.

I think I may have found the problem. Line 808 had this:
$openingpos = strpos($buffer,'<?');
Could that be it? I have no idea how it got there. I'm reffering to <? in there.

If not lines 808-817 are as follows:
$openingpos = strpos($buffer,'<?');
$closingpos = strrpos($buffer, '?');
$buffer=substr($buffer, 0, $openingpos).substr($buffer, $openingpos+5, $closingpos-($openingpos+5)).substr($buffer, $closingpos+5);
}
$buffer = str_replace(""", "\"", $buffer);
}

return "</normalfont><blockquote><pre><smallfont>PHP:</smallfont><hr>$buffer<hr></pre></blockquote><normalfont>";
}
__________________
Brew Support - Freemason Hall
  #5  
Old 28 Nov 2002, 00:03
danrak danrak is offline
 
Join Date: Dec 2001
Originally posted by Velocd
Also, which hack are you trying to install?
It is doing this when I try and do any hack that invovles the functions.php. The last hack I tried to do was the order of the smilies. Also with the attachment as files hack, and a few others I can not think of. I think the store was one of them too.
  #6  
Old 28 Nov 2002, 01:21
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Are you cutting and pasting using a TEXT editor? Or are you using something like Wordpad which can cause formatting errors?
  #7  
Old 28 Nov 2002, 02:03
danrak danrak is offline
 
Join Date: Dec 2001
I'm using the editor in Cpanel on my webhost.
__________________
Brew Support - Freemason Hall
  #8  
Old 28 Nov 2002, 12:24
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Real name: Stefan Kaeser
this line cannot work:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

change it to this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

or that would be better:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Unfortunatelly i am completely out of vbulletin buisness, so i won't upgrade any of my hacks anymore. Everyone who wants to upgrade my hacks or use part of my codes is allowed to do so, without needing any special permission by me anymore. You just have to mention my full name if you want to reuse some of my work, thats all i ask for.
  #9  
Old 28 Nov 2002, 16:42
danrak danrak is offline
 
Join Date: Dec 2001
It is working now, thank you.
__________________
Brew Support - Freemason Hall
  #10  
Old 28 Nov 2002, 19:27
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Real name: Stefan Kaeser

you're welcome
__________________
Unfortunatelly i am completely out of vbulletin buisness, so i won't upgrade any of my hacks anymore. Everyone who wants to upgrade my hacks or use part of my codes is allowed to do so, without needing any special permission by me anymore. You just have to mention my full name if you want to reuse some of my work, thats all i ask for.
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 08:38.

Layout Options | Width: Wide Color: