Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Code Gallery (https://forums.graalonline.com/forums/forumdisplay.php?f=179)
-   -   Support/FAQ System (https://forums.graalonline.com/forums/showthread.php?t=74011)

xXziroXx 05-16-2007 09:22 PM

Support/FAQ System
 
4 Attachment(s)
Right. This system allows:

* Creation of tickets
* Editing/Answering (same thing, I got lazy) of tickets
* Moving tickets to FAQ tab (awesome, Support and FAQ in one!)
* Closing of tickets (they even disappear from the ticket list after 24 hours! ^^)

Right-o, so here's how it work. You need two edit TWO parts of the system. The serversided rights, and clientsided ones.

serversided rights:


Close - allows you to close tickets
FAQ - allows you to move a ticket from Tickets list to FAQ list
Ticket - allows you to move a ticket from FAQ list to Tickets list

So, rights can look like:

PHP Code:

this.rights.xXziroXx = { "Close""FAQ""Ticket" };
this.rights.MyAccount = { "Close" }; 

Right - lets see what clientsided rights there are to choose from:

tab:Admin - gives you access to the Admin tab
Edit - allows you to edit/reply to tickets
Close - allows you to close tickets
FAQ - allows you to move a ticket from Tickets list to FAQ list
Ticket - allows you to move a ticket from FAQ list to Tickets list
dep:All - lets you view all tickets on Admin list
dep:Bugs - lets you view Bugs tickets on Admin list
dep:Account - lets you view Account tickets on Admin list
dep:Jail - lets you view Jail tickets on Admin list
dep:General Questions - lets you view General Questions tickets on Admin list
dep:Other - lets you view Other tickets on Admin list

Lets say you add the ticket department "Hacker" to this.departments, then you can give people access to dep:Hacker.

Examples:

PHP Code:

this.rights.xXziroXx = {
  
"tab:Admin",  // Tabs
  
"Edit""Close""FAQ""Ticket",  // Actions
  
"dep:All" // Departments
};
this.rights.MyAccount= {
  
"Ticket" // Actions
};
this.rights.MyAccount2 = {
  
"tab:Admin",  // Tabs
  
"Edit""Close",  // Actions
  
"dep:Bugs""dep:Jail" // Departments
}; 

You are free to EDIT and USE this script however and wherever you like, ASLONG as you do NOT remove the Mythic Legends URL from below the "Support Center" text.

Like this script? Please give me good rep! Don't like it? Please give me bad rep!

Rapidwolve 05-16-2007 09:24 PM

Biterrr stealing my idea!

Good work though.

xXziroXx 05-16-2007 09:26 PM

Quote:

Originally Posted by Rapidwolve (Post 1308476)
Biterrr stealing my idea!

Good work though.

It was you who stole my idea! :mad:

Rapidwolve 05-16-2007 09:27 PM

Quote:

Originally Posted by xXziroXx (Post 1308480)
It was you who stole my idea! :mad:

Lol no honestly I didn't even know you planned that. Mine just sort of evolved from a bug reporting tool to a support center. Got the idea from the 'HelpDesk' script (was barely even started) on Zodiac

oinknessx 05-16-2007 09:42 PM

Come on ladies, you all know it was my idea. :cool:

Gambet 05-17-2007 01:52 AM

So you have to add rights for each account separately?

xXziroXx 05-17-2007 01:59 AM

Quote:

Originally Posted by Gambet (Post 1308605)
So you have to add rights for each account separately?

Uploaded a new version that also allow guild specific rights:


PHP Code:

this.guildrights.GUILDNAME = {
  
// rights
}; 


Gambet 05-17-2007 02:02 AM

Quote:

Originally Posted by xXziroXx (Post 1308608)
Uploaded a new version that also allow guild specific rights:


PHP Code:

this.guildrights.GUILDNAME = {
  
// rights
}; 




Still rather inconvenient, requires too many lines of code if you're giving rights to a plethora of accounts (assuming there are a lot of staff on the server), and not completely user friendly.


I believe it would be better if the system read specific text file names, and gave rights to any accounts stored in the text file. That way, servers would only have to add their accounts to the specific text files in order to have rights to that function. A database would work as well.

Switch 05-17-2007 02:08 AM

Quote:

Originally Posted by Gambet (Post 1308610)
Still rather inconvenient, requires too many lines of code if you're giving rights to a plethora of accounts (assuming there are a lot of staff on the server), and not completely user friendly.


I believe it would be better if the system read specific text file names, and gave rights to any accounts stored in the text file. That way, servers would only have to add their accounts to the specific text files in order to have rights to that function. A database would work as well.

You have to ruin everything, don't you? :p

Awesome IMO!

Gambet 05-17-2007 02:09 AM

Quote:

Originally Posted by Switch (Post 1308615)
You have to ruin everything, don't you? :p

Awesome IMO!



It's just a suggestion x-x

killerogue 05-17-2007 02:17 AM

Quote:

Originally Posted by Switch (Post 1308615)
You have to ruin everything, don't you? :p

Just...shut...up, please.

oinknessx 05-17-2007 03:02 AM

Come on ladies, be friendly. :) You should just be happy this script was made public for you.

rE_MiX577 05-17-2007 03:18 AM

ziro was nice enough to test this script out on Zodiac, Even though he hired half the server as PRs the system seems to be ummm.... just there?

submitting tickets are useless, especially when 90% of them will either be spam/lies, or infractions that occur at an instance.

neg rep, for hiring 10 PRs that are all on Zodiac's "Most Jailed" list.

Rapidwolve 05-17-2007 03:42 AM

This system is replacing the one I had? :(

xXziroXx 05-18-2007 04:47 AM

1 Attachment(s)
* Made it possible to actually edit tickets (good job for forgetting that huh?)


Skyld, mind replacing the first document with this one?


All times are GMT +2. The time now is 05:47 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.