Jump to content

show ticket reply with number


Recommended Posts

I think this could be easy done by editing the template and add a counter in the foreach section.

 

How please?

 

This could come in very handy - it would be good to have a ticket response number to refer clients to instead of saying "as stated above/in our previous reply".

 

yeah I mean that and I need it for this, And I am looking for how I can do it for this reason :)

Link to comment
Share on other sites

How please?

yeah I mean that and I need it for this, And I am looking for how I can do it for this reason :)

 

I'm not sure why you posted this in "Marketplace", but I can tell you how to do it. We needed this also. Edit the "viewticket.tpl" template, around line 60-64:

 

<td align="right">{$reply.date}   <span class="replynum">Reply # {$reply.id}</span></td>

 

The "<span class="replynum">Reply # {$reply.id}</span>" part was added. Btw, the "<span class="replynum">" is for CSS/ styling and optional.

 

Also in the admin templates: admin/templates/v4/viewticket.tpl: Add in on line #392

{$reply.id}

 

The first post in each ticket will be numbered "0", and the subsequent numbers won't be in order (it's based on all the replies to all of your tickets), but it still gives you a unique number for each reply, so you can refer the user back to that specific reply/comment.

Link to comment
Share on other sites

I'm not sure why you posted this in "Marketplace"

 

Sorry but WHMCS support told me, This is a right place for my request, so I post is here

 

 

I already tried with this before that, and I was able to make first reply in each ticket with numbered "1" not "0" :)

 

But variable {$reply.id}, It is get reply ID in MySQL entry not by reply count in ticket

 

Thanks

Link to comment
Share on other sites

Do you want to have a number for all message or only for the reply ? Should the first item (initial message) numbered 1 or not ? In other words, do you want this

 

Initial message

Reply 1

Reply 2

Reply 3

Reply 4

 

 

or this

 

 

Message 1

Message 2

Message 3

Message 4

 

I could implement both. I justed tested it on my demo website.

Link to comment
Share on other sites

Do you want to have a number for all message or only for the reply ? Should the first item (initial message) numbered 1 or not ? In other words, do you want this

 

Initial message

Reply 1

Reply 2

Reply 3

Reply 4

 

 

or this

 

 

Message 1

Message 2

Message 3

Message 4

 

I could implement both. I justed tested it on my demo website.

 

Hello, Thank you and finally I made this and succeeded same I want, yesterday :)

 

Thanks a lot for all

Link to comment
Share on other sites

You can do it easily by editing viewticket.tpl

 

Look for this line:

 

{foreach from=$replies item=reply}

Change it to

 

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

Look for after 2 lines :

 

{if $reply.admin}

Add this before it :

 

Reply {$key+1}

 

And you are DONE

 

 

Do the same at client support ticket template

 

Best Regards

Link to comment
Share on other sites

modification change:

 

Look for this line:

 

{foreach from=$replies item=reply}

 

Change it to

 

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

 

Look for after 2 lines :

 

{if $reply.admin}

 

Add this before it :

 

Reply {$key}

 

And you are DONE

 

 

Do the same at client support ticket template

 

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

 

but instade of :

Reply {$key}

change it to

Reply {$key+1}

 

Best Regards

Link to comment
Share on other sites

  • 4 weeks later...
modification change:

 

Look for this line:

 

{foreach from=$replies item=reply}

 

Change it to

 

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

 

Look for after 2 lines :

 

{if $reply.admin}

 

Add this before it :

 

Reply {$key}

 

And you are DONE

 

 

Do the same at client support ticket template

 

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

 

but instade of :

Reply {$key}

change it to

Reply {$key+1}

 

Best Regards

 

Gives me a blank screen. I'll stick with my method :)

Link to comment
Share on other sites

  • 2 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