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 Text Message Hack v1.0 (https://vborg.vbsupport.ru/showthread.php?t=42444)

elyrain 08-20-2002 03:04 AM

Parse error: parse error, unexpected $ in /home/ibliftin/public_html/forums/newreply.php on line 582

i'm comming up with that error, I do have the tetris hack installed. Anyone know what to do? TIA

g-force2k2 08-20-2002 03:25 AM

elyrain can you show me whats on that line?

thanks in advance...

g-force2k2

Boofo 08-20-2002 03:51 AM

g-force2k2, I still can't get it to take edited text. Also, if I edit a private text message from someone else to me, if gives me the error where I can submit a private text message to myself. :) I thought the Admin could edit any of them.

g-force2k2 08-20-2002 03:58 AM

yeah Boofo but you can't send private text messages to yourself :p thats what Neo was talking about User Validation... btw... i don't know what else could be wrong... you don't edit the user part... thats who the private text message is to... Actually i see what you mean... i will edit that part asap... regards but lets try getting the edit feature to work for you :)

g-force2k2

g-force2k2 08-20-2002 04:01 AM

Boofo for the part about editing a user try this modification... (my bad wasn't thinking again x_X)

open editpost.php

find:

PHP Code:

    // checking user
    
$user $DB_site->query_first("SELECT username FROM user WHERE username='".addslashes(htmlspecialchars($privuser))."'");
      if(empty(
$user[0])) {
        eval(
"standarderror(\"".gettemplate("privtext_error_usernoexist")."\");");
        exit;
      } elseif(
$bbuserinfo[username] == "$user[0]") {
      eval(
"standarderror(\"".gettemplate("privtext_error_userself")."\");");
      exit;
    }
  } 

replace with:

PHP Code:

    // checking user
    
$user $DB_site->query_first("SELECT username FROM user WHERE username='".addslashes(htmlspecialchars($privuser))."'");
      if(empty(
$user[0])) {
        eval(
"standarderror(\"".gettemplate("privtext_error_usernoexist")."\");");
        exit;
      } elseif(
$postinfo[username] == "$user[0]") {
      eval(
"standarderror(\"".gettemplate("privtext_error_userself")."\");");
      exit;
    }
  } 

try and see if that works Boofo :)

g-force2k2

Boofo 08-20-2002 04:02 AM

The only difference between the editpost.php I sent you and the one I am using now is the code from your post about editing that I have in mine, where it isn't in the one I sent you.

Quote:

Originally posted by g-force2k2
yeah Boofo but you can't send private text messages to yourself :p thats what Neo was talking about User Validation... btw... i don't know what else could be wrong... you don't edit the user part... thats who the private text message is to... Actually i see what you mean... i will edit that part asap... regards but lets try getting the edit feature to work for you :)

g-force2k2


g-force2k2 08-20-2002 04:03 AM

Boofo see my recent fix about the problem you brought to my attention :) thanks for showing me that x_X

g-force2k2

Boofo 08-20-2002 04:11 AM

Ok, that fixed the part about me being able to edit a private text message to me when I try editing it. It still won't take the edit though.

g-force2k2 08-20-2002 04:16 AM

could you please post the editpost_privtxt template? thanks in advance Boofo :)

g-force2k2

Jashugan 08-20-2002 04:20 AM

Quote:

Originally posted by Boofo
Ok, that fixed the part about me being able to edit a private text message to me when I try editing it. It still won't take the edit though.
What is the problem excatly? I have no problem with that.. can you give me step by step to detect that problem?


All times are GMT. The time now is 11:35 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.03976 seconds
  • Memory Usage 1,749KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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