Help Desk Software & Beyond
May 17, 2012, 06:03:22 AM *
Welcome, Guest. Please login or register.
To post messages you need to register. We apologize for inconvenience, but this is to prevent spam.
Registration is instant (no email verification) and we do not ask for any personal information.

Login with username, password and session length
News: Welcome to Help Desk Software forum!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [REQ] Sending update notifications to multiple addresses  (Read 312 times)
titanzero
Newbie
*

Karma: 0
Posts: 2


View Profile
« on: October 20, 2011, 05:40:08 AM »

Hello everybody

This is my first post.

I have been hacking around with TTX to make some minor changes. I am not  Perl programmer nor have I done much CGI. I mostly work with PHP and Java.

I would like to be able to send out emails notifying a status update to two email addresses. I have been looking around the code but can't find where to begin. If I could find the line of code that says 'send out an email to the customer' then I could just repeat this twice. The other email address can be hard coded into the app so it should be simple to do. Where do I begin?

Also, is there any documentation? Maybe a copy of the code with some comments? I am shocked that there are no comments. Even just one comment describing each function would be nice. I can't find my way around the software. All the forms have an action of %ENV_SCRIPT_NAME% which I can find nothing about. When I google it I get info back about the HTTP var  SCRIPT_NAME. Seeing this I conclude that every form in the app submits to the script which printed the form...however I can not navigate the code and find how things are connected together so I can't clearly work out which script calls which form and which function each form submits to. Is there a flow-diagram for TTX?

If someone could give me a start on being able to map out how the software works then I could draw my own flow-diagram and ascertain what each function does and when.

I would prefer some help in understanding the flow of the code rather than just being told how to make the change I want. I know the ttx.cgi is loaded first. This then checks what the command is in the query string and calls a function. So lets take a new ticket as an example. The user clicks 'Contact Us' this invokes the command 'newticket' which points to TTXTicket::newticket. If this completes ok it returns 'confirmnew' which ttx.cgi points to TTXTicket::confirmnew which appears to do nothing much. This is as far as I can get along the new ticket line.

Also, I know that at some point in TTXTicket::newticket something must happen to save to the DB and send out emails. Is this correct? If it is I cant find where in newticket that this happens. I know that TTXMySQLTickets::save writes to the DB and then TTXTicket::opernotify and TTXTicket::usernotify are used to prepare emails and then TTXMail::sendmail does the final prep and sends the email. But like I said I can't find where in the new ticket process that this happens. I really need a full understanding of the flow of the app to make all the changes I require.

When I google for 'trouble ticket express documentation' all I get back is installation instructions and an operator manual.

Anyway, thanks for your time and I hope to hear back soon  Smiley

Regards

thread title edit by sparky as per sticky thread rules.
« Last Edit: October 20, 2011, 11:57:25 AM by Sparky » Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #1 on: October 20, 2011, 12:07:46 PM »

This is my first post.

.... I have been looking around the code but can't find where to begin..... Where do I begin? ...

If someone could give me a start on being able to map out how the software works...
....

Welcome.

Please begin by reading all of the sticky threads in this forum.

I know there are a couple threads that break down how a TTX page is constructed (I wrote them).   The stickies answer many of your questions as well as provide tips, hints, and fully formed solutions probably similar to what you seek.  If you can't find a mod that does what you want, you can still study how that mod was written in order to apply something similar to your project.

TTX is modular and the module names match their primary function.

I started doing TTX modifications by reverse engineering.

Perhaps deconstructing my "Cc: Mod" (TTX v2) would be most applicable to learning about what you ask.  TTX v3 already had something like that built into it if you use the optional Layout Module.  Of course, you can still apply my Cc: Mod to either version without the optional Layout Module.

If you're familiar with PHP and Java? (or you meant to say JavaScript?), you shouldn't have too much trouble with Perl.  The online Perl tutorials are very helpful.

Good luck.
Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
titanzero
Newbie
*

Karma: 0
Posts: 2


View Profile
« Reply #2 on: October 21, 2011, 08:48:09 AM »

Hi again

Thanks for the reply Sparky. lol, quite sure I mean Java as I work as a Java Web Developer. I am also familiar with JavaScript, html, css, MySQL, C\C++, ASP 3.0, VB .net, VBScript. I have just never had the need or time to learn Perl. I was passed this as a one-off job and its turning out to be more trouble than its worth considering I am not a Perl programmer. But anyway, learn Perl I must!

Thank you for pointing me towards your cc mod. I implemented the changes you list but it does not work. So I was wondering where I post questions about that. Is here OK or should I use the mod post itself?

Quote
I know there are a couple threads that break down how a TTX page is constructed (I wrote them)

Could you point me to these post specifically? I can not find them. Are they in there own thread or are they scattered around? Maybe you could give me some key words to search on that will help me find your posts on TTX structure.

Thanks again for your time
Regards
Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #3 on: October 21, 2011, 01:58:06 PM »

Post any questions about a problem with a MOD as per this sticky...

READ ME BEFORE you Post a Topic or Modify TTX

But the whole point of pointing you to the Cc: Mod was as a learning experience.  So yes, post a new thread as per the rules and we'll figure out what went wrong.

Look at the section of links just below FAQ...

http://forum.unitedwebcoders.com/index.php/topic,500.msg2681.html#msg2681

You will learn just about everything you need to know by picking apart mod #3 ...

http://forum.unitedwebcoders.com/index.php/topic,737.0.html

When I have more time I'll look for the others.
« Last Edit: October 21, 2011, 01:59:57 PM by Sparky » Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media Valid XHTML 1.0! Valid CSS!
Page created in 0.024 seconds with 18 queries.