View Single Post
  #4  
Old 10-12-2014, 04:48 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 23,018
IntoRain is on a distinguished road
Default

Did you edit the vmmessage.php or vmmessageview.php files? The edit/delete/reply actions are in those files and like Sim said blank page is usually a syntax error

For the slashes in the Bio, in class_userprofile.php search for the function aboutme() and do this:

PHP Code:
  private function aboutme(){
      
$mysidia Registry::get("mysidia");    
      
$document $mysidia->frame->getDocument();
      
$title = new Comment($mysidia->lang->basic.$mysidia->input->get("user"));
      
$title->setBold(TRUE);
      
$title->setUnderlined(TRUE);
      
      
/**** Add this: *****/
      
$bio2 stripslashes($this->bio);

      
$membersince $mysidia->db->select("users", array("membersince"), "username = '{$mysidia->input->get("user")}'")->fetchColumn();      
      
$basicinfo "<br><strong>Member Since:</strong> {$membersince}<br>
                    Gender: 
{$this->gender}<br>
                    Favorite Color: 
{$this->color}<br>
                    Nickname: 
{$this->nickname}<br>
                    Bio: 
{$bio2}";/// <----- !change this!
      
      
$document->add($title);
      
$document->add(new Image($this->avatar"avatar"100));
      
$document->add(new Comment($basicinfo));                    
  } 
Then for the messages, you can go to class_messagetablehelper, getVisitorMessage() function and do it like this:

PHP Code:
    public function getVisitorMessage($vmessage){
        
$date substr_replace($vmessage->datesent," at ",10,1);
        
$vmField = new ArrayList;
        
$vmField->add(new Link("profile/view/{$vmessage->fromuser}"$vmessage->fromuser));
        
$vmField->add(new Comment("({$date})"FALSE));
        
$vmField->add(new Link("vmessage/view/{$vmessage->touser}/{$vmessage->fromuser}", new Image("templates/icons/status.gif"), TRUE));
        
/****** This here! ******/
        
$vmField->add(new Comment(stripslashes($vmessage->vmtext)));
        return 
$vmField;
    } 
__________________


asp.net stole my soul.
Reply With Quote