![]() |
Parse error: parse error in c:\program files\nusphere\apache\htdocs\forums\private.php(18 1) : eval()'d code on line 1
|
The error is not in that line but in the code it's trying to evaluate (i.e the template).
|
right.. the error is probably in the privbackup_header template (witch has to be valid phpcode)
Cano2 |
"Added a new status symbol for PMs wich indicates, which messages are allready backed up."
good work.. but can you add different graphics? (forward&save, replay&save)? this would be very useful... |
For those who are updating from the previous version:
******************** open private.php ******************** search for: eval(gettemplate("privbackup_header",0)); eval("dooutput(\"".gettemplate("privbackup")."\"); "); //and run everything through the template ******************** after it insert: //set status to "backed up" $DB_site->query("UPDATE privatemessage SET messageread=4 WHERE $cond"); ******************** search for: eval(stripslashes(gettemplate("privbackup_header") ); ******************** replace with: eval(gettemplate("privbackup_header",0)); ******************** download the new hack, and move pmbackedup.gif to /images @lou thx.. to add the support for more icons is not a problem, but to create the icons ( 16x16 ist not much space ...). I'll do my best lates Cano2 |
Also, when updating from the previous version, make these changes too:
********************************* search for: PHP Code:
right after it insert: PHP Code:
|
hoops.. thx. Dunno where I have lost my brain today.
|
Hi Cano2
I have just installed this great hack on my Board and it seems to work fine. I have just one little question: I'm working with Mac OS X 10.1.3 and after I download my pm's, I find a file called "private.php" on my desktop, which contains the private messages. But before it can opened in a Browser, I must change the File-Extension every time manualy to "private.html". Is there a way to have the correct Extension (.html) after Download by default? |
hm. I doesn't have a mac, so I can't test it, but i'm sure its because of the headers in the "privbackup_header".. although the behaviour for the "Content-Disposition" header is clearly defined in the http-rfc, every browser behaves different. These headers were the best I found, but I will search again for a way to tweak these headers.
btw: which browser(s) are you using? Cano2 |
First, thanks for your reply. I use OmniWeb 4.1 (a Mac OS X only Browser) and MS Internet Explorer 5.1.3 for Mac OS X.
Let me know, if you find a solution. |
All times are GMT. The time now is 09:19 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|