Jump to content

Ticket-View with Authentification


Derblub

Recommended Posts

You can view the Support Tickets per Link without Authentification.

This is the dirty fix for the supportview.tpl:

{if $loggedin}
{if $error}

<p>{$LANG.supportticketinvalid}</p>

{else}

<p><strong> »  {$LANG.supportticketsviewticket} {$tid}</strong></p>

<table>
<tr><td width="120">{$LANG.supportticketsdepartment}</td><td>{$department}</td></tr>
<tr><td>{$LANG.supportticketsdate}</td><td>{$date}</td></tr>
<tr><td>{$LANG.supportticketssubject}</td><td>{$subject}</td></tr>
<tr><td>{$LANG.supportticketsstatus}</td><td>{$status}</td></tr>
<tr><td>{$LANG.supportticketsticketurgency}</td><td>{$urgency}</td></tr>
</table>

<br />

<table cellspacing="1" cellpadding="3" width="100%" class="clientareatable">

<tr class="supportticketsheading"><td width="160" rowspan="2" valign="top">{$user}</td><td>{$LANG.supportticketsposted}: {$date}</td></tr>
<tr class="supportticketscontent"><td valign="top">{$message}{if $attachment}<br /><br /><img src="images/support/folder.gif" align="middle" alt="" /> <i>{$LANG.supportticketsticketattachment}: <a href="{$attachmentlink}">{$attachment}</a></i>{/if}</td></tr>

{foreach key=num item=reply from=$replies}

<tr class="supportticketsheading"><td width="160" rowspan="2" valign="top">{$reply.user}</td><td>{$LANG.supportticketsposted}: {$reply.date}</td></tr>
<tr class="supportticketscontent"><td valign="top">{$reply.message}{if $reply.attachment}<br /><br /><img src="images/support/folder.gif" align="middle" alt="" /> <i>{$LANG.supportticketsticketattachment}: <a href="{$reply.attachmentlink}">{$reply.attachment}</a></i>{/if}</td></tr>

{/foreach}

</table>

{if $showclosebutton}
<p align="center"><input type="button" value="{$LANG.supportticketsstatuscloseticket}" onclick="window.location='{$smarty.server.PHP_SELF}?tid={$tid}&c={$c}&closeticket=true'" class="button" /></p>
{/if}

<p><strong> »  {$LANG.supportticketsreply}</strong></p>

{if $errormessage}<div class="errorbox">{$errormessage|replace:'<li>':'  #  '}  #  </div><br />{/if}

<form method="post" action="{$smarty.server.PHP_SELF}?tid={$tid}&c={$c}&postreply=true" enctype="multipart/form-data">

<table cellspacing="1" cellpadding="0" class="frame"><tr><td>
<table width="100%" cellpadding="2">
<tr><td width="120" class="fieldarea">{$LANG.supportticketsclientname}</td><td>{if $loggedin}{$clientname}{else}<input type="text" name="replyname" size=30 value="{$replyname}" />{/if}</td></tr>
<tr><td class="fieldarea">{$LANG.supportticketsclientemail}</td><td>{if $loggedin}{$email}{else}<input type="text" name="replyemail" size=50 value="{$replyemail}" />{/if}</td></tr>
<tr><td colspan="2" class="fieldarea"><textarea name="replymessage" rows="12" cols="60" style="width:100%">{$replymessage}</textarea></td></tr>
<tr><td class="fieldarea">{$LANG.supportticketsticketattachment}:</td><td><input type="file" name="attachment" style="width:80%" /><br />({$LANG.supportticketsallowedextensions}: {$allowedfiletypes})</td></tr>
</table>
</td></tr></table>

<p align="center"><input type="submit" value="{$LANG.supportticketsticketsubmit}" class="button" /></p>

</form>
{/if}
{else}
<p>{$LANG.loginintrotext}</p>

<form action="dologin.php?goto=supporttickets" method="post" enctype="multipart/form-data">

<table align="center">
<tr><td align="right">{$LANG.loginemail}:</td><td><input type="text" name="username" size="40" value="{$username}"></td></tr>
<tr><td align="right">{$LANG.loginpassword}:</td><td><input type="password" name="password" size="25" value="{$password}"></td></tr>
</table>

<p align="center"><input type="submit" value="{$LANG.loginbutton}"><br><input type="checkbox" name="rememberme"{$rememberme}> {$LANG.loginrememberme}</p>
</form>
<p><b>{$LANG.loginforgotten}</B> <a href="passwordreminder.php">{$LANG.loginforgotteninstructions}</a>.</p>
{/if}

Link to comment
Share on other sites

If I am thinking correct it allows the user to view the ticket without having to log into the client area. In a sense...just like Kayako. The email responses from Kayako have a link in the bottom footer of the email that will allow the user to click on it, and be automatically redirected to the ticket view.

 

I could be wrong, but it sounds like it. However, I am not trying it.....

Link to comment
Share on other sites

  • 3 weeks later...

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated