Archive

Archive for September, 2009

Staff Cannot View Ticket Until They Are Assigned in osTicket v1.6 RC5

September 30th, 2009 Masino Sinaga 2 comments

Today I made a modification in order to give solution to one of the topics in osTicket Forum Discussion.

Here is the quote of that topic:

I dont want the user to see the ticket till they are assigned to it. Only Admin and Manager of that department can view the idea.

So basically something like that:
if(usergroup == admin)
view all tickets
else if(usergroup == manager)
view ticket of their dept only
else if(usergroup == staff)
view only tickets that are assigned to them

Here, admin/manager/staff are user group with group id 1/2/3

I am not sure where do I find the querry which I can change to have this implemented. This whole thing is for backend login users.

Read more…

  • Share/Bookmark

Different Open Ticket Pages in osTicket System v1.6 RC5

September 29th, 2009 Masino Sinaga 2 comments

Have you ever wanted to make the different open ticket pages in osTicket System version 1.6 RC5 in order your user are able to submit separate tickets for the different problems? For example, at the top of your website page, it says “Submit Ticket” with another option that says Phone support, but it’s still linked with the original open.php file. And the other option says Network support, also, it’s still linked with the original open.php file, and so forth. Well, here is the solution I made. Read more…

  • Share/Bookmark
Categories: osTicket Tags: , , , , , ,

Remind Staff about Assigned Ticket in osTicket System v1.6 RC5

September 28th, 2009 Masino Sinaga No comments

There is an interesting feature request in osTicket Discussion Forum about how to send an email to an already assigned staff member to remind them to get on their tickets. To implement this new feature, I made a modification. Read more…

  • Share/Bookmark
Categories: osTicket Tags: , , , , ,

Limiting Tickets Sent by Same Email Within The Last N Days in osTicket

September 27th, 2009 Masino Sinaga No comments

As Administrator in your osTicket System, you want to limit tickets sent by the same user/email within the last period of days, somehow. For example, you want to limit only 3 tickets a user (determined from the email address) can submit within the last one month. When this condition meet the criteria, osTicket System will display the message such as: “You are not allowed to send the ticket because you have already sent 3 tickets within the last 30 days!”, afterwards, the system will reject the ticket that user submitting immediately. So here is the solution that I made. Read more…

  • Share/Bookmark
Categories: osTicket Tags: , , , ,

Improving Basic Filter Become Advanced Filter in Pods CMS of WordPress

September 26th, 2009 Masino Sinaga Comments off

Currently, the Filter Form up to Pods CMS version 1.7.3 still uses the basic form. It has one textbox and one button only. In addition, this filter form can only filter the recordset that returned by its process based on the name field. So I made modification/enhancement by adding combobox that contains of all fields from the table in order to make user easier to choose based which field they will filter, which has default is filter in all fields or any field. Besides that, I also added the search type, whether Match Case or not, Page Limit selection, and the field selection to give user choices sorting the recordset based on the certain field and the certain sort type. Read more…

  • Share/Bookmark

How to Prevent Displaying SQL Error Message in Pods CMS

September 25th, 2009 Masino Sinaga No comments

I have been running Pods CMS version 1.7.3 on this blog. So far so good, until I found a SQL error if the pg parameter in URL assigned with invalid value. For example, the proper value should be 1, 2, and so on, then you assign this parameter with non-numerical value, such as aa, etc. The message error that shown up contains of the MySQL Query including the table name. In my humble opinion, this error message should not be displayed on the client’s browser page for the security reason. So, I made modification to prevent displaying this SQL Error Message on functions.php file of this Pods CMS. Read more…

  • Share/Bookmark

Improving Pagination Feature in Pods CMS of WordPress

September 24th, 2009 Masino Sinaga No comments

Today I saw an improvement about Styling the paging feature created by nikos in Pods CMS Forums. It was an interesting improvement, indeed. Then I applied it on my blog here. I also added the 2 additional links: Previous and Next on the pagination feature, by modifying the pagination_2.php and Pod.class.php file. Read more…

  • Share/Bookmark

How to Change Register Globals Value for Your Website

September 23rd, 2009 Masino Sinaga No comments

There are some resources that recommend you to set register_globals become Off on your PHP installation in order to keep your website secure. Some of them are:
- Using Register Globals
- How do I deal with register_globals?
We are not talking or discussing about those resources, but the question is: “How do I change this register_globals value become Off anyhow if its directive on my server currently is On, and in the same time I could not change the register_globals directive from the php.ini file?” Well, here is the solution for you. Read more…

  • Share/Bookmark

How to Embed CSS Code to HTML Code Without Using CSS File

September 22nd, 2009 Masino Sinaga 2 comments

As we know, most websites made by involving the CSS file that contains of CSS Code to make your web appearence as good as you want. This CSS file typically separated with the file that contain of your HTML or PHP Code. But sometimes, you obviously do not want to separate this CSS Code with your HTML Code for your website. This needed if you want to incorporate the CSS Code and the HTML or PHP Code just in the same file. For example, both of CSS and HTML or PHP code being saved in database or your CSS Code is not too complex or not too many. This following code will show you how we can embed the CSS Code to HTML Code into one file without having using the .css file. Read more…

  • Share/Bookmark
Categories: General Tags: , , , , , ,

How to Add Custom Record Number in Table List of PodPages

September 21st, 2009 Masino Sinaga 1 comment

I have just found the way how to add custom record number in the table list of PodPages in WordPress Pods CMS plugin. I optimize the PodPages feature for this purpose by using Bypassing Templates technique. Currently, up to Pods CMS version 1.7.3, you can only use the id field from the table as your record number column. Unfortunately, if you delete one or some of the record(s) from the table, then there will be missing number when you displaying this record number that you get from that id field. Besides that, if you search or filter the certain record, then the record number on the result will not continuously (there will be some missing number). So, here is the solution that I made to fix that problem, by adding the custom record number column based on the number of record in a page or in the table result. Read more…

  • Share/Bookmark