Page 1 of 1

Locations of certain parts of the code.

Posted: Tue Jul 19, 2005 5:39 am
by Uleepera
Script URL: http://www.togw.com/hd/
Version of script: 0.93
Version of PHP: 4.3.x
Hosting company: Custom
Have you searched THIS FORUM for your problem: Yes
(if not please do before posting)
If so, what terms did you try: didn't try any... I read through the posts.

Write your message below:

I'm trying to locate certain portions of the code for modifacation, unfortunitly I learned to code rather differently in structure and I'm having some trouble locating the sections I need. I will outline below what I'm looking for in the hopes that someone knows where the sections are.

1. The section at the top of the pages that outlines the urls for the site, for example, Mysite > Mysite support system > Submit a ticket as I would like to remove the links entirly.

2. The section that would call index.php?a=add to submit a ticket as I would like to modify it to check for a user being logged on first.

3. The section listing the users to logon for the admin section. I do not want a dropdown, rather an input text field.

4. The sectiont that handles catagories... I want to add the ability to use sub-catagories.

Any help is greatly appreciated, if it's not to much work involved I will post my findings and guides to modifing the code for any interested parties.

-Marc

Re: Locations of certain parts of the code.

Posted: Tue Jul 19, 2005 9:02 am
by Klemen
Uleepera wrote:1. The section at the top of the pages that outlines the urls for the site, for example, Mysite > Mysite support system > Submit a ticket as I would like to remove the links entirly.
index.php, reply_ticket.php, submit_ticket.php, ticket.php
Uleepera wrote:2. The section that would call index.php?a=add to submit a ticket as I would like to modify it to check for a user being logged on first.
index.php function print_add_ticket(), then submits to submit_ticket.php
Uleepera wrote:3. The section listing the users to logon for the admin section. I do not want a dropdown, rather an input text field.
admin.php function print_login()
Uleepera wrote:4. The sectiont that handles catagories... I want to add the ability to use sub-catagories.
manage_categories.php

Regards

Validation form

Posted: Fri Jan 20, 2006 5:51 pm
by hardworker
Where do I go to change the validation form? I added some other fields to the form, and the "message" section is optional. Also, I do not need the "subject" field, but even though I removed it from the form, it keeps telling me "Enter Subject"

Posted: Fri Jan 20, 2006 7:11 pm
by zphd24
Interesting to see this topic come up today, as I'm in the process of doing the exact same thing.

I've added an "Invoice" column in the dB, and added the appropriate code where I could see, but I'm still getting an error:

Can't execute SQL:
INSERT INTO `hesk_tickets` ( `id`,`trackid`,`name`,`email`, invoice`, `category`,`priority`,`subject`,`message`,`dt`,`ip`,`status` )
VALUES ( '','3Q3DXT55S','Tester McTesty','test@test.com', '933456`, '1','3','Testing Invoice','Invoice testing',NOW(),'xx.xx.xxx.xx','1' )

MySQL said:
Unknown column '933456' in 'field list'

Any suggestions for what I missed?

Posted: Fri Jan 20, 2006 7:30 pm
by zphd24
zphd24 wrote:Interesting to see this topic come up today, as I'm in the process of doing the exact same thing.

I've added an "Invoice" column in the dB, and added the appropriate code where I could see, but I'm still getting an error:

Can't execute SQL:
INSERT INTO `hesk_tickets` ( `id`,`trackid`,`name`,`email`, invoice`, `category`,`priority`,`subject`,`message`,`dt`,`ip`,`status` )
VALUES ( '','3Q3DXT55S','Tester McTesty','test@test.com', '933456`, '1','3','Testing Invoice','Invoice testing',NOW(),'xx.xx.xxx.xx','1' )

MySQL said:
Unknown column '933456' in 'field list'

Any suggestions for what I missed?
Nevermind, got it sorted out! :)