Archive for myfreeforum.org Before posting please check the "stickies" in the support forums.
Please ask questions in real English and not "txt". You will get a better response.
Please do not ask support questions via PMs.
 



       myfreeforum.org Forum Index -> Portal components
admin (no pm's please)

OPENTICKET and OPENTICKETTOPIC components

[OPENTICKET]
mod_ticket_forums=1,2,4,10
user_ticket_forums=11,12


If mod_ticket_forums has a list of forum ids then mods can use the OPENTICKETTOPIC component to open and close tickets in those forums, otherwise they can in ALL forums.

If user_ticket_forums is set then users can use the OPENTICKETTOPIC component to open and close tickets in those forums, otherwise they can in NO forums. A user can only open/close topics that they have started.

If a topic is set as an OPEN ticket, then {MYFF.OPENTICKET} will show the list of open ticket topics, OPENTICKET all accepts the standard parameters for other SEARCH components.

{MYFF.OPENTICKETTOPIC}

Can be placed in viewtopic_body.tpl (it will be of no use elsewhere) It adds a link "open ticket" "close ticket" where pertinent to the topic. e.g. if the reader has the right to open or close the ticket.

I have placed it on this forum by the "Watch Topic" link, but as I am not allowing users to play with tickets, only the mods will see the link.
Master Mathandal

I cant see anything when I add that code. My viewtopicbody.tpl

Spoiler:

Code:
<!-- END postrow -->

<table width="95%" cellspacing="2" cellpadding="2" border="0" align="center">
   <tr align="right">
   <td width="10%" align="left" valign="middle" nowrap="NOWRAP">
   <span class="nav"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a>&nbsp;&nbsp;&nbsp;<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a>{MYFF.OPENTICKETTOPIC} </span></td>
       <td width="67%" align="left" valign="middle"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>
     &raquo; <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>

CodyT07

Re: OPENTICKET and OPENTICKETTOPIC components

Will there be a way to specify if a user group can use it
eg.
usergroup_anyone
usergroup_mods
CodyT07

Master Mathandal wrote:
I cant see anything when I add that code. My viewtopicbody.tpl

Spoiler:

Code:
<!-- END postrow -->

<table width="95%" cellspacing="2" cellpadding="2" border="0" align="center">
   <tr align="right">
   <td width="10%" align="left" valign="middle" nowrap="NOWRAP">
   <span class="nav"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a>&nbsp;&nbsp;&nbsp;<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a>{MYFF.OPENTICKETTOPIC} </span></td>
       <td width="67%" align="left" valign="middle"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>
     &raquo; <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>


1. Link to Forum?
2. Whats in Your Options?
Master Mathandal

http://theforceunited.myfreeforum.org

Spoiler:

Code:
[OPENTICKET]
mod_ticket_forums=
user_ticket_forums=6,64,51,67,68,78,39,40,65

admin (no pm's please)

Re: OPENTICKET and OPENTICKETTOPIC components

CodyT07 wrote:
Will there be a way to specify if a user group can use it
eg.
usergroup_anyone
usergroup_mods


possibly, but this is the sort of mod where loads of options could be contrived and it could quickly get very complicated. Best to give it time to settle in before changing the options.
CodyT07

Seems like im having a weird issue. Link http://templatetester.myfreeforum.org when i change a topic from an Open Ticket to an Annoucement, their seems to be a delay when the annoucement portal updates to include that topic to be an annoucement. View here http://templatetester.myfreeforum.org/forum1.php A topic is an annoucement but it isnt showing up in the annoucement portal but when I delete the tab and go back to templat test it then shows up as an annoucement. Its kind of strange...
admin (no pm's please)

Not that strange, as when the button is clicked part the the template may be generated before the action is taken, plus we are caching things a bit now for speed.
MarkD

http://holidaychat.myfreeforum.org

OK added

[OPENTICKET]
mod_ticket_forums=
user_ticket_forums=1,18,28,70

to the Options in the admin panel

and added amend viewtopic_body.tpl as follows

Spoiler:

<table width="95%" cellspacing="2" border="0" align="center">
<tr>
<td width="35%" valign="top" nowrap="nowrap" align="left"><span class="gensmall">{S_WATCH_TOPIC}{MYFF.OPENTICKETTOPIC}</span><br />
&nbsp;<br />
{S_TOPIC_ADMIN}</td>
<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td>

</tr>
</table>



I have also amended the left hand menu portal with the {MYFF.OPENTICKET}

On the left hand menu I see the Open Support Ticket menu, but I cannot see the Open Ticket link when in a thread. Any ideas anyone?
admin (no pm's please)

I think there may be a "bugette" I think if you want mod_ticket_forums blank then simply don't have the line at all.
MarkD

Yep, that has got .

Cheers
Mark
archers-rest

Lets just check I got this right then, I want the ticket system but only for mods on my forum so I only need add this to my control pannel -
[OPENTICKET]

then {MYFF.OPENTICKET} in the index where i want it

And {MYFF.OPENTICKETTOPIC} in the viewtopicbody.tpl

Yes?
admin (no pm's please)

If you just want the defaults which is for mods to have it, then nothing needs adding to the control panel.
admin (no pm's please)

Another point is that this system does not have to be about support tickets, it could be about reporting posts etc.

We just need to let you change the text or perhaps we need to add a similar component for such purposes.
MarkD

admin (no pm's please) wrote:
Another point is that this system does not have to be about support tickets, it could be about reporting posts etc.

We just need to let you change the text or perhaps we need to add a similar component for such purposes.


That is quite a good idea actually, we could have Report Thread Breaking T&C's option. Would be useful, depending on how much extra work it is for you of course.
archers-rest

I'm still thinking how best to use this on my forums, but yes using it as a report posts system would be great. Having said that pm's work for that dont they.

I'm thinking its a good way for fellow mods to flag a post that requires a 'specialists' answer.
davecov

Well, I did the following:

In OPTIONS, I put the code

Code:
[OPENTICKET]
access=admin
visible=admin
mod_ticket_forums=15,93


(I only added "access" and "visible" parameters so that users and mods could not see what I was up to!)

Then I put </br>{MYFF.OPENTICKET} in search_results_posts.tpl and search_results_topics.tpl down beneath the Jump Box right at the end of the code, as shown below:

Code:
<table width="100%" cellspacing="2" border="0" align="center">
  <tr>
   <td valign="top" align="right">{JUMPBOX}</td>
  </tr>
</table>
</br>
{MYFF.OPENTICKET}


It works fine with the topics having Open Tickets being displayed at the bottom of the page.

One glitch though - it sends the count of returned search results loopy! For example, every search result comes back with the same figure even though the real total of posts/topics in a list is different. This happens to all users and not just admins.

It is a great thing to have but until I solve that glitch, I have removed the code from search_results_posts.tpl and search_results_topics.tpl.

Dave
admin (no pm's please)

Can you reinstate and give instructions on how to see this issue. Or tell me how to see it on this forum!
MarkD

MarkD wrote:
http://holidaychat.myfreeforum.org

OK added

[OPENTICKET]
mod_ticket_forums=
user_ticket_forums=1,18,28,70

to the Options in the admin panel

and added amend viewtopic_body.tpl as follows

Spoiler:

<table width="95%" cellspacing="2" border="0" align="center">
<tr>
<td width="35%" valign="top" nowrap="nowrap" align="left"><span class="gensmall">{S_WATCH_TOPIC}{MYFF.OPENTICKETTOPIC}</span><br />
&nbsp;<br />
{S_TOPIC_ADMIN}</td>
<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td>

</tr>
</table>



I have also amended the left hand menu portal with the {MYFF.OPENTICKET}

On the left hand menu I see the Open Support Ticket menu, but I cannot see the Open Ticket link when in a thread. Any ideas anyone?


OK took out mod_ticket_forums=, which solved the problem of me not seeing the link, so I now only have

[OPENTICKET]
user_ticket_forums=1,18,28,70

in the admin panel, thought I would check it shows as a normal member on a test account I have, but it doesn't. Any ideas anyone?

Mark
admin (no pm's please)

Seen the bug, working on it!
davecov

admin (no pm's please) wrote:
Can you reinstate and give instructions on how to see this issue. Or tell me how to see it on this forum!


The way to see it on this forum is to put :

</br>
{MYFF.OPENTICKET}

at the end of search_results_posts.tpl and search_results_topics.tpl.

Then, if you use the search link, search box or the drop down 1/7 days box, the count returned is always the same. This happens even if you remove the code from either of the two search_results templates.

I have re-instated it on my forum so you can see the problem. It keeps returning a count of 1028, whether it is posts from 1 day, my posts, unread posts etc. This is even if there is only five posts in the search results list!

Dave
admin (no pm's please)

fixed marks bug I hope.
admin (no pm's please)

and Daves
davecov

Thanks a lot, Admin.

I did just check the various counts and they are all fine except for "View your posts" which, in my own ID, reads 778 posts instead of 1859 posts. Not sure if that is part of this problem or if there is a cap on the number of results returned.

Anyway, I can get back to implementing the Open Ticket fuly now which is very pleasing!

Thanks again

Dave
MarkD

OK just had another look as a basic user and still doesn't appear to be working. I have re-entered all of the information as follows, just to make sure, still no joy. Admins and Mods, see the Openticket link, but not general users. General Users see the Open Support Ticket Portal Menu, but have no link to click to open a support ticket.

As an aside, I tried deleting the Openticket in admin panel options, as in theory this should give the option open a ticket in any forums for a normal member, but still no joy.

[OPENTICKET]
user_ticket_forums=1,18,28,70

viewtopic_body.tpl as follows

Spoiler:

<table width="95%" cellspacing="2" border="0" align="center">
<tr>
<td width="35%" valign="top" nowrap="nowrap" align="left"><span class="gensmall">{S_WATCH_TOPIC}{MYFF.OPENTICKETTOPIC}</span><br />
&nbsp;<br />
{S_TOPIC_ADMIN}</td>
<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td>

</tr>
</table>

admin (no pm's please)

Not having user_ticket_forums will mean no forums are allowed for users.

Remember a user can only open a topic as a ticket that they themselves have started.
MarkD

How bloomin stupid am I, never even thought of that. Doh

Sorry about that!
davecov

Well, I have implemented the Open Ticket on my forum and it has been well received by my moderators. However, we do have a problem with it because when you mark a thread as an "Open Ticket", it loses it's "Sticky", "Announcement" or "Global Announcement" status. So, threads we are used to having at the tops of listings are no longer there.

I see you have put a "Open Ticket" radio button on the edit post page which toggles with those I mentioned above. Is this really necessary as the "Open Ticket" link is already provided elsewhere?

Dave
admin (no pm's please)

open ticket status is a type of post not a toggle. e.g. a sticky open ticket cannot exist.
davecov

This is just what I don't need as it is going to confuse the hell out of my forum members with announcements and stickies moving all over the place due to being marked as "Open Ticket". Looks like we may have to stick (excuse the pun) with "Watching this topic" links instead which will be a real shame.

Dave
admin (no pm's please)

davecov wrote:
This is just what I don't need as it is going to confuse the hell out of my forum members with announcements and stickies moving all over the place due to being marked as "Open Ticket". Looks like we may have to stick (excuse the pun) with "Watching this topic" links instead which will be a real shame.

Dave


Well such is life, we have to add these sorts of things in a way that is sympathetic to the way phpbb2 works, and so the way the ticket system works has to be this way.

But on most forums topics which could be reported/opened as tickets would be normal topics, annoucements/stickies are topics that generally are locked.
An alternative might be to add an option blocking opening tickets on non normal topics! would that help?
davecov

admin (no pm's please) wrote:
davecov wrote:
This is just what I don't need as it is going to confuse the hell out of my forum members with announcements and stickies moving all over the place due to being marked as "Open Ticket". Looks like we may have to stick (excuse the pun) with "Watching this topic" links instead which will be a real shame.

Dave


Well such is life, we have to add these sorts of things in a way that is sympathetic to the way phpbb2 works, and so the way the ticket system works has to be this way.

But on most forums topics which could be reported/opened as tickets would be normal topics, annoucements/stickies are topics that generally are locked.
An alternative might be to add an option blocking opening tickets on non normal topics! would that help?

Adding that option would be ideal as not all sticky topics are locked on my forum. These threads, being so well used and read don't really require "Open Tickets". So, please add the blocking option as it sounds just the ticket (pun intended).

BTW, Being an ex-computer programmer/web designer myself I do appreciate the particular problems you face when having to work within the constraints of a particular computer language!

Thanks

Dave
admin (no pm's please)

I'll add that, in this case it is less the language which is an issue and more our avowed intention that the forums here despite gaining vast numbers of extras over phpbb2, should remain phpbb2 forums for practical purposes.
e.g. if someone wants to move and pays for an export, the export they get is usable on another phpbb2 system.
davecov

Quite right too!

Dave
admin (no pm's please)

Thinking about it more, would anyone ever want non normal topics to be ticketed? I may just block other topic types and see if anyone complains.
davecov

I'm not sure that they would want non-normal topics flagged as "Open Tickets" as they are already "flagged" so to speak by being Sticky or Announcements etc.

Anyway, lets see if anyone complains! Wink

Dave
admin (no pm's please)

A new parameter :

extramods=1,724,1000

e.g. a comma separated list of user ids has been added. Users added here will have the power to open and close support tickets as if they were moderators.
davecov

I've just come across another problem with the "Open Tickets". If you open a ticket on a thread that is in a forum that has it's Read permission set higher than "ALL", it will not appear in the list of "Open Tickets". Change the permission to "ALL" and it will appear.

Dave
admin (no pm's please)

That is really expected behavior, just because something is open as a ticket, does not mean it will be visible in the portal as the portal only shows guest readable material.
davecov

Thanks for the quick response.

I thought the portal could contain material readable according to what forums are specified in the Control Panel and what their permissions are set to in the Admin Panel.

What about sub-portal or just having the "Open Ticket" code within the forum? I can't see the point of forums with "Open Tickets" having their READ permissions set for guests when only Admins and Mods can open, close and see the "Open Tickets"!

I'm getting confused now...

Dave
admin (no pm's please)

The settings in the control panel can be used to open certain topics to be visible to guests in the portal that would not be in the forum view. But everything that boils down to a standard search of the forums for posts, does work on guest viewing.,
davecov

OK. I'll just have to live with it as it is.

Thanks for your help.

Dave
Blacksmith

Where do i put the {MYFFOPENTICKET} in index_body.tpl to make it like it is on this site i.e. on the side.
Spoiler:

<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td colspan="2" class="maintitle">{L_INDEX}</td>
</tr>
<tr>
<td valign="bottom" class="gensmall">
<!-- BEGIN switch_user_logged_in -->
{LAST_VISIT_DATE}<br />
<!-- END switch_user_logged_in -->
{CURRENT_TIME}<br />
<a href="{U_INDEX}" class="nav">{L_INDEX}</a></td>
<td align="right" valign="bottom" class="gensmall">
<a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a><br />
<!-- BEGIN switch_user_logged_in -->
<a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}
</a><br />
<a href="{U_MARK_READ}"><strong>{L_MARK_FORUMS_READ}</strong></a>
<!-- END switch_user_logged_in -->
</td>
</tr>
</table>
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th colspan="2">{L_FORUM}</th>
<th>{L_TOPICS}</th>
<th>{L_POSTS}</th>
<th>{L_LASTPOST}</th>
</tr>
<!-- BEGIN catrow -->
<tr>
<td class="cat" colspan="2"><a href="{catrow.U_VIEWCAT}">{catrow.CAT_DESC}</a></td>
<td class="rowpic" colspan="3"></td>
</tr>
<!-- BEGIN forumrow -->
<tr>
<td class="row1" height="45">{catrow.forumrow.L_FORUM_FOLDER_ALT}</td>
<td class="row1" width="100%"><a href="{catrow.forumrow.U_VIEWFORUM}" class="nav">{catrow.forumrow.FORUM_NAME}</a><br />
<span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
<td class="row2" align="center"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
<td class="row2" align="center"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
<td class="row2" align="center" nowrap="nowrap"><span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr>
<!-- END forumrow -->
<!-- END catrow -->
</table>
<br />
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<td class="cat" colspan="2"><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></td>
</tr>
<tr>
<td class="row1" rowspan="3">{L_WHO_IS_ONLINE}
</td>
<td class="row1" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />
{TOTAL_USERS}<br />
{NEWEST_USER}</span></td>
</tr>
<tr>
<td class="row1"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ <strong>{L_WHOSONLINE_ADMIN}</strong>
] &nbsp; [ <strong>{L_WHOSONLINE_MOD}</strong> ]<br />
{RECORD_USERS}<br />
{LOGGED_IN_USER_LIST}</span></td>
</tr>
<tr>
<td height="20" class="row1"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</tr>
</table>
<!-- BEGIN switch_user_logged_out -->
<br />
<form method="post" action="{S_LOGIN_ACTION}">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="cat">{L_LOGIN_LOGOUT}</td>
</tr>
<tr>
<td class="row1" align="center">
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="gensmall">{L_USERNAME}:&nbsp;</td>
<td><input class="post" type="text" name="username" size="10" /></td>
<td class="gensmall">&nbsp;&nbsp;&nbsp;{L_PASSWORD}:</td>
<td><input class="post" type="password" name="password" size="10" maxlength="32" /></td>
<td class="gensmall">&nbsp;&nbsp;&nbsp;{L_AUTO_LOGIN}</td>
<td><input class="text" type="checkbox" name="autologin" /></td>
<td>&nbsp;&nbsp;<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" /></td>
</tr>
</table></td>
</tr>
</table>
</form>
<!-- END switch_user_logged_out -->
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td class="nav"><a href="{U_INDEX}">{L_INDEX}</a></td>
</tr>
</table>
<br />
<table border="0" align="center" cellpadding="0" cellspacing="3">
<tr>
<td>{L_NEW_POSTS}</td>
<td class="gensmall">{L_NEW_POSTS}</td>
<td>&nbsp;</td>
<td>{L_NO_NEW_POSTS}</td>
<td class="gensmall">{L_NO_NEW_POSTS}</td>
<td>&nbsp;</td>
<td>{L_FORUM_LOCKED}</td>
<td class="gensmall">{L_FORUM_LOCKED}</td>
</tr>
</table>

<br/>{MYFF.VISITS}

admin (no pm's please)

Open ticket is something you do on a topic, so must be in viewtopic_body.tpl
Blacksmith

archers-rest wrote:
Lets just check I got this right then, I want the ticket system but only for mods on my forum so I only need add this to my control pannel -
[OPENTICKET]

then {MYFF.OPENTICKET} in the index where i want it

And {MYFF.OPENTICKETTOPIC} in the viewtopicbody.tpl

Yes?
i put {MYFF.OPENTICKET} in index_body.tpl , the open ticket box appeared on the forum, i take it out it disapears, i have {MYFF.OPENTICKETTOPIC} in the viewtopicbody.tpl, i just want to know where exactly to place {MYFF.OPENTICKET} in index_body.tpl to make it appear on the side
admin (no pm's please)

my mistake MYFF.OPENTICKET should be in index_body.tpl.

But surely you can just look at the page source here to match the positioning. It is harmless to experiment!
Blacksmith

had a few experiments none worked very well
Blacksmith

got it to work! put it in overall_header.tpl

       myfreeforum.org Forum Index -> Portal components
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum