User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Site Layout and Usability section within the Web Development category of DaniWeb, a massive community of 425,779 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,325 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Site Layout and Usability advertiser: Programming Forums
Views: 1897 | Replies: 2
Reply
Join Date: Oct 2006
Posts: 26
Reputation: djnzak is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
djnzak djnzak is offline Offline
Light Poster

WHMCS Template coding

  #1  
Mar 26th, 2008
Hi

Well i was trying to edit the support ticket template of whmcs and there is the following code

{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}

and what i want to do is that the customer reply should be one colour and the staff another colour but the problem is that the replies are taken using the foreach loop therefore if i change the colour of it then all the staff and customer replies will change to that colour

Is there any way i can make them both different colours?

Thanks a lot in advance for all the help
Last edited by peter_budo : Mar 26th, 2008 at 4:04 pm. Reason: Keep It Organized - please use [code] tags
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2008
Posts: 1
Reputation: cybercop007 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
cybercop007 cybercop007 is offline Offline
Newbie Poster

Re: WHMCS Template coding

  #2  
May 29th, 2008
create css class and implemented in between staff and user,it will be easily done
Reply With Quote  
Join Date: Oct 2006
Posts: 26
Reputation: djnzak is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
djnzak djnzak is offline Offline
Light Poster

Re: WHMCS Template coding

  #3  
May 29th, 2008
Hi, thx a lot but can you please give me an example of the code for both the css and tpl(main) file

thx in advance
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Site Layout and Usability Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the Site Layout and Usability Forum

All times are GMT -4. The time now is 2:55 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC