vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   private messages backup hack (https://vborg.vbsupport.ru/showthread.php?t=37172)

maverick1236 04-12-2002 02:15 PM

Parse error: parse error in c:\program files\nusphere\apache\htdocs\forums\private.php(18 1) : eval()'d code on line 1

Admin 04-12-2002 04:14 PM

The error is not in that line but in the code it's trying to evaluate (i.e the template).

Cano2 04-15-2002 03:25 PM

right.. the error is probably in the privbackup_header template (witch has to be valid phpcode)

Cano2

LouChipher 04-15-2002 04:29 PM

"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...

Cano2 04-15-2002 04:51 PM

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

Erwin 04-15-2002 07:54 PM

Also, when updating from the previous version, make these changes too:

*********************************
search for:

PHP Code:

          case 3// forwarded message
            
$privatemessage[folder] = "{imagesfolder}/pmforwarded.gif";
            break; 

*********************************
right after it insert:

PHP Code:

          case 4//backed up message
            
$privatemessage[folder] = "{imagesfolder}/pmbackedup.gif";
            break; 

*********************************

Cano2 04-15-2002 08:25 PM

hoops.. thx. Dunno where I have lost my brain today.

r.cakir 04-15-2002 08:58 PM

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?

Cano2 04-16-2002 05:42 PM

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

r.cakir 04-16-2002 06:15 PM

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
  • Page Generation 0.01223 seconds
  • Memory Usage 1,736KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete