Help Desk Software & Beyond
May 17, 2012, 04:01:09 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: Trouble ticket V3 - Access code  (Read 2309 times)
abbradburn
Newbie
*

Karma: 0
Posts: 3


View Profile
« on: January 28, 2010, 12:11:42 PM »

I've upgraded to V3 and am struggling to see how to get the access code field displayed on my website? I can't see where I give the key.cgi the variable number?
Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #1 on: January 28, 2010, 12:13:07 PM »

I can't see where I give the key.cgi the variable number?

You'll have to explain that statement in more detail.
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
abbradburn
Newbie
*

Karma: 0
Posts: 3


View Profile
« Reply #2 on: January 28, 2010, 01:17:28 PM »

Basically I have my website : http://www.golddiskcomputers.co.uk/NewTicket.php which has a skinned entry form.  I've added the access code via the control panel (using setup.cgi).  However, I can't see how I can display the code that the user needs to duplicate to be able to successfully post the ticket and thus limit the spam tickets being entered through our helpdesk. The below is the the applicable lines which I thought would work? but don't. I've tried specifying a literal line such as : <img src="key.cgi?1264696449-16233" /> and that works but the below code attempts to take the variable as its generated for each ticket (complete guess)


                              <input name=keycode type=text id="keycode" value="" size=6>
                              <img src="cgi-bin/tticket/key.cgi?($keyid)" /></td>
« Last Edit: January 28, 2010, 01:20:34 PM by abbradburn » Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #3 on: January 28, 2010, 01:34:21 PM »

Please follow posting guidelines by reading the sticky threads.  I have no idea why you would post a troubleshooting issue in the Modifications forum...  moving this thread now.

Note item #3 from the Read Me First sticky thread...

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

Manually add the following line to your ttxcfg.cgi file and let me know if that solves it.

Quote
captchamode=alt
« Last Edit: January 28, 2010, 01:38:27 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
abbradburn
Newbie
*

Karma: 0
Posts: 3


View Profile
« Reply #4 on: January 29, 2010, 06:04:08 AM »

I've added the additional code but it's not fixed the issue.  Maybe I haven't communicated the problem terribly well but the standard template as comes with the software works fine showing the access code etc. The problem I have is replicating this on my skinned version, the image software needs a variable passing to it? but I can't see how?
Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #5 on: January 29, 2010, 10:55:08 AM »

I've added the additional code but it's not fixed the issue.  Maybe I haven't communicated the problem terribly well but the standard template as comes with the software works fine showing the access code etc. The problem I have is replicating this on my skinned version, the image software needs a variable passing to it? but I can't see how?

How did you replicate it?  Did you copy the code from a browser or from the newticket.html template?  I also see that your New Ticket page is done with php...  that's a whole different animal and TTX is not compatible with php!

If you copied the code from a browser then all the various macros are missing!  The macros are the hidden bits of code in the template that dynamically passes the variables as the page loads.

In order for the templates to load with all the various bits (like the missing Captcha image) you need to call the template from within the URL query string...

Code:
http://example_site.com/ttx/ttx.cgi?cmd=newticket

I think you need to read some threads...

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

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

I would suggest using iframes.  You can place the correct URL to TTX within an iframe within your php template.
« Last Edit: January 29, 2010, 01:42:36 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
susan2go
Newbie
*

Karma: 0
Posts: 1


View Profile
« Reply #6 on: May 18, 2010, 11:15:59 PM »

I had the same problem and had to change line 641 of TTXTicket.pm from:

<td><img src="key.cgi?$keyid" /></td>

to:

<td><img src="http://www.mydomain.com/cgi-bin/ttx/key.cgi?$keyid" /></td>

that's assuming ttx is in cgi-bin/ttx. 

I call my form from a php script in another directory and this drove me out of mind until I found the problem.

The form may be called by using this php code:

<?php $cgi = "http://www.yourdomain.com/cgi-bin/ttx/ttx.cgi?cmd=newticket";
echo file_get_contents($cgi); ?>

You don't need an iframe at all.  I named that little script showform.php and then just did an include in my main php script.

Alter that to suit your particular paths.

Just wanted to post this in case someone else has the same problem so they won't fruitlessly search this forum. 

« Last Edit: May 18, 2010, 11:26:14 PM by susan2go » Logged
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.027 seconds with 18 queries.