Author Topic: User avatar in the comments  (Read 284 times)

Offline azsxsaz13

  • Hero Member
  • *****
  • Posts: 44
  • Karma: +0/-0
User avatar in the comments
« on: January 19, 2014, 12:11:14 PM »
Hi, Alexa
I want to share one small problem:
when at a later stage the user upload an image(avatar), it does not go in the comments he previously been written.
you can easily remove this problem?

Offline alexa

  • Administrator
  • Hero Member
  • *****
  • Posts: 493
  • Karma: +7/-1
Re: User avatar in the comments
« Reply #1 on: January 19, 2014, 12:29:38 PM »
Hello,

link.php

replace this code:

Code: [Select]
$sql2 = $conn->Prepare('UPDATE reviews SET comimage = ? WHERE comenter = ?');
if($conn->Execute($sql2,array($new_image,$cusername)) === false) {
print '<br /><div id="error">error inserting[1]: '.$conn->ErrorMsg().'</div><br />';
}


with this code:


Code: [Select]
$sql2 = $conn->Prepare('UPDATE reviews SET comimage = ? WHERE comenter = ?');
if($conn->Execute($sql2,array($new_image,$shouter)) === false) {
print '<br /><div id="error">error inserting[1]: '.$conn->ErrorMsg().'</div><br />';
}

Offline azsxsaz13

  • Hero Member
  • *****
  • Posts: 44
  • Karma: +0/-0
Re: User avatar in the comments
« Reply #2 on: January 20, 2014, 12:34:03 AM »
once again thank you. with such support will probably buy all themes  :)