Ulysses Stuff > Releases

ERS - EMail Reporting System

<< < (13/14) > >>

Shadow132:
Some how I get and error and it says.

--- Code: ---[ERROR] addons/ers/lua/autorun/server/configurations.lua:35: function arguments expected near '='
        1. unknown - addons/ers/lua/autorun/server/configurations.lua:0

--- End code ---

MrPresident:
Looks like you didn't edit the configuration file properly. Can you past the contents of your configuration file to pastebin.com and give me the link so I can see.
Or at the very least, what is on line 35?

KrazyHD:
This doesn't work for me. The report menu doesn't show up for me.

MrPresident:
There are too many issues with this plugin.
I thought it was a good idea, and it works for me, but it seems a lot of hosts don't allow it or something because there have been quite a number of people saying they can't get it to work.

I'm sorry, but it comes as-is. If it works for you, great! If not, sorry.

DarKevin:
I fixed it ;D

I changed the headers from this:


--- Code: --- $to = strip_tags($_POST["sendto"]);

$headers = "From: no-reply@g4p.org\r\n";
$headers .= "Reply-To: no-reply@g4p.org\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

if($type=="PLAYER REPORT")

--- End code ---

to this:


--- Code: --- $to = strip_tags($_POST["sendto"]);


$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$headers .= "Reply-To: no-reply@g4p.org\r\n";
$headers .= "From:" . $from;

if($type=="PLAYER REPORT")

--- End code ---

Apparently the MIME part needs to be the first header, without a " . " before the " = ".
Also, for some reason it seems that the $from header MUST be at the bottom to make it work.

I basically have no experience with PHP, so I cant tell if you just made a mistake, or if it only fixed it for me, because my webserver is retarded or something :P
But it should give you a clue.

I hope that helped.

Good luck!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version