Jump to content
MakeWebGames

Recommended Posts

Posted (edited)

Okay, since the Forum switch there was some problems with the code. I fixed them to find a 10,000 Character limit, so I have had to upload the files in a Zip folder.

What is in the Folder:

- support.php

- staff_support.php

- SQL's.txt

- Instructions.txt

Support Desk.zip

Edited by Maniak
Errors in code from Forum Switch.
Posted

You will have an issue when people install this as your asking for an ID on line 61 in support home which will error as the table is empty.

You should on things like this check if its empty first to avoid sql errors.

if($db->num_rows($query)==0){ echo "no tickets"; return; }

Posted

@Zu: Line 61 to 64:

$query = $db->query('SELECT * FROM `support` WHERE (`sUser`='.abs(intval($ir['userid'])).')');

if(!$db->num_rows($query)) {

echo '<tr><td colspan="4" align="center">You currently have no outstanding Support Tickets</td></tr>';

} else {

Posted

I installed and had no issues.. Only thing it seems to be lacking is the ability to 'close' a ticket once replied and dealt with.

But this mod is exactly what I had been wanting.. a simple bug reporting just didnt rock my boat.. but this mod sure does ;)

Posted

@Artemis, I still got to post the staff side to this, I got sidetracked by a film last night. I will post it up as soon as I get home from work :)

Posted

Nice mod. I added it, and tweaked the menu bar to show red if a player has an open ticket, and also added a link in staff part to show red if a new ticket has been opened.

With regards to closing a ticket, I think I'll add a section to show closed tickets, because if not, we have to leave the ticket open until they acknowledge they have seen the reply, and if they don't, the ticket could be open for a long time, then they come back a week later saying "i didn't see what you wrote", so I'll probably add in a section for closed ones.

Thanks for all the hard work Maniak, works great.

Posted

In the users side the Ticket will stay there whether it is Open or Closed. It only "disappears" on the Staff side when it is Closed (to save clogging up on the staff side).

I was thinking of adding a Cron OR timestamp for this to delete any Closed tickets that have a last reply time of > 30 days. Would this be useful or not?

By the way, if you have this online, could you give me the Link to the website (so I can post here as an example)?

  • 2 weeks later...
Posted

addition to this mod

im thinking somthing like a event add would be good so the member knows when the staff have replyed to there ticket

i may add it myself and post when i have the time but what do u guys think? :thumbsup:

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...