Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   New Report Function help (http://www.mysidiaadoptables.com/forum/showthread.php?t=5017)

Abronsyth 03-09-2016 11:56 AM

((That's what I thought, but it certainly looks like it ought to be getting it right, to me)):
PHP Code:

    if($mysidia->input->post("reason")){
        
$pm = new PrivateMessage(); 
        
$pm->setsender($mysidia->user->username); // Will appear to be sent by the reporter.
        
$pm->setrecipient($admin->username);
        
$pm->setmessage("<b>⚠ </b> "."Pet Profile Reported""<b>Offending Pet:</b> {$this->adopt->getAdoptID()} <a target=\"_BLANK\" href=\"../../levelup/click/{$this->adopt->getAdoptID()}\">{$this->adopt->getName()}</a> <br/><b>Pet Owner:</b> <a href=\"../../profile/view/{$this->adopt->getOwner()}\" target=\"_BLANK\">{$this->adopt->getOwner()}</a><br/><b>Reason For Report:</b> ".$reason."<br><b>Message Being Reported:</b><br><blockquote>".$this->adopt->getPetBio()."</blockquote><br><b>Report Delivered By:</b> {$mysidia->user->username}");
        
$pm->post();  
    } 

That's right where it's at, part of the report function in levelup.php

tahbikat 03-09-2016 12:33 PM

Abron I'll post my files later for you to look at unless you fix it by then. (on phone right now) I had to change some minor things I remember so not sure if that's what's giving you issues.


All times are GMT -5. The time now is 03:24 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.