Page 1 of 1

Remove Priority and Replace with Company Name

Posted: Sun Mar 30, 2008 3:25 am
by SteelGoddess
Script URL:
Version of script:
Hosting company: hostmonster.com
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
everyone :-)
Write your message below:

Is there a way to remove the priority field and replace it with a company name field instead?

Also is there a way to have the emails that are sent which are noreply sent from noreply@domain.com?

Thanks a bunch. This really is a nice script. Best one I have tried so far.
It works! Only downfall is its not a joomla mod. It would have been absolutely perfect if it recognized the log in of users. But its still wonderful and definitely worthy of a few beers :-)

Posted: Mon Mar 31, 2008 6:47 pm
by Klemen
You'd have to do a bunch of editing to remove any fields, but you can easily add new fields (like Company name), just login into admin as an administrator and you can enable custom fields on the "Settings" page (and click the [?] sign for help with settings).

Similarly you can set the "no reply" e-mail on the same page.

Posted: Tue Apr 01, 2008 12:06 am
by SteelGoddess
I did all the easy stuff...It was easy :-).

Even though I had set noreply@domain.com as the mail, when it sends mail, the email does not say that as the from. Its a variation of my server and domain. I was just wondering if there was a way beyond listing it in the program, to make it send that way.

I did add the fields...Is it possible to move them around? If I add company name as a field, logically I would want it near the name... I can leave priority there..I just want the name and company lines one after the other...

Thanks,
Alicia

Posted: Tue Apr 01, 2008 1:29 pm
by Klemen
You can try adding this code to all the files that send e-mails (submit_ticket.php, reply_ticket.php, admin_reply_ticket.php). Just add this code just below define('IN_SCRIPT',1);:

Code: Select all

 ini_set('sendmail_from', 'you@address.com');
If that doesn't work then your host is forcing "From:" address to be server default one.

As for custom fields, on the Settings page you can choose to have them displayed before or after the "Message:" field. That's about all the choice you have at the moment unless you can modify the HTML code in index.php