Impact-John Posted May 12, 2009 Share Posted May 12, 2009 Hey Everyone i am trying to use the support center section from supportcenter.php found in the sidebar.tpl on my homepage portion of the sidebar.tpl and for some reason i cant get the code to actually display the tickets as it does on the support link the brackets are all empty any help would be great <span class="header"><img src="images/icons/tickets.png" alt="Filter Tickets" width="16" height="16" class="absmiddle" /> Filter Tickets</span> <ul class="menu"> <li><a href="supporttickets.php">Awaiting Reply ({$ticketcounts.awaitingreply})</a></li> <li><a href="supporttickets.php?view=flagged">My Flagged Tickets ({$ticketcounts.myflagged})</a></li> <li><a href="supporttickets.php?view=active">All Active Tickets ({$ticketcounts.allactive})</a></li> <li><a href="supporttickets.php?view=Open">Open Tickets ({$ticketcounts.open})</a></li> <li><a href="supporttickets.php?view=Answered">Answered ({$ticketcounts.answered})</a></li> <li><a href="supporttickets.php?view=Customer-Reply">Customer-Reply ({$ticketcounts.customerreply})</a></li> <li><a href="supporttickets.php?view=On Hold">On Hold ({$ticketcounts.onhold})</a></li> <li><a href="supporttickets.php?view=In Progress">In Progress ({$ticketcounts.inprogress})</a></li> <li><a href="supporttickets.php?view=Closed">Closed Tickets ({$ticketcounts.closed})</a></li> </ul> 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted May 12, 2009 Share Posted May 12, 2009 You can take that code and put it just above in the sidebar.tpl <span class="plain_header">System Information</span> or you can add OR $sidebar eq "home" to {elseif $sidebar eq "support"} which is just above where you took that code from. Or you can put {if $sidebar eq "home"} <span class="header"><img src="images/icons/tickets.png" alt="Filter Tickets" width="16" height="16" class="absmiddle" /> Filter Tickets</span> <ul class="menu"> <li><a href="supporttickets.php">Awaiting Reply ({$ticketcounts.awaitingreply})</a></li> <li><a href="supporttickets.php?view=flagged">My Flagged Tickets ({$ticketcounts.myflagged})</a></li> <li><a href="supporttickets.php?view=active">All Active Tickets ({$ticketcounts.allactive})</a></li> <li><a href="supporttickets.php?view=Open">Open Tickets ({$ticketcounts.open})</a></li> <li><a href="supporttickets.php?view=Answered">Answered ({$ticketcounts.answered})</a></li> <li><a href="supporttickets.php?view=Customer-Reply">Customer-Reply ({$ticketcounts.customerreply})</a></li> <li><a href="supporttickets.php?view=On Hold">On Hold ({$ticketcounts.onhold})</a></li> <li><a href="supporttickets.php?view=In Progress">In Progress ({$ticketcounts.inprogress})</a></li> <li><a href="supporttickets.php?view=Closed">Closed Tickets ({$ticketcounts.closed})</a></li> </ul> {/if} Where you want it to appear. 0 Quote Link to comment Share on other sites More sharing options...
Impact-John Posted May 12, 2009 Author Share Posted May 12, 2009 thanks for trying to help but not of that got the info to actually display on the home page i really need to get this working but i am unsure how to get it to work unless it is encoded than im screwed lol 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted May 12, 2009 Share Posted May 12, 2009 It show up but I think it will only work on the support page in this case I think you would need to query the database! Maybe someone that is alittle more experience can chime in. {if $sidebar eq "home"} <span class="header"><img src="images/icons/home.png" class="absmiddle" width="16" height="16" /> Shortcuts</span> <ul class="menu"> <li><a href="clientsadd.php">Add a New Client</a></li> <li><a href="ordersadd.php">Place New Order</a></li> <li><a href="quotes.php?action=manage">Create Quote</a></li> <li><a href="todolist.php">Create New To-Do Item</a></li> <li><a href="supporttickets.php?action=open">Create New Support Ticket</a></li> <li><a href="whois.php">WHOIS Lookup</a></li> <li><a href="#" onclick="generateInvoices();return false">Generate Due Invoices</a></li> <li><a href="index.php?attemptccpayments=true">Attempt CC Capture</a></li> </ul> <span class="plain_header">Income Projection</span> <div class="smallfont">{$incomestats}</div> <br /> <span class="header"><img src="images/icons/tickets.png" alt="Filter Tickets" width="16" height="16" class="absmiddle" /> Filter Tickets</span> <ul class="menu"> <li><a href="supporttickets.php">Awaiting Reply ({$ticketcounts.awaitingreply})</a></li> <li><a href="supporttickets.php?view=flagged">My Flagged Tickets ({$ticketcounts.myflagged})</a></li> <li><a href="supporttickets.php?view=active">All Active Tickets ({$ticketcounts.allactive})</a></li> <li><a href="supporttickets.php?view=Open">Open Tickets ({$ticketcounts.open})</a></li> <li><a href="supporttickets.php?view=Answered">Answered ({$ticketcounts.answered})</a></li> <li><a href="supporttickets.php?view=Customer-Reply">Customer-Reply ({$ticketcounts.customerreply})</a></li> <li><a href="supporttickets.php?view=On Hold">On Hold ({$ticketcounts.onhold})</a></li> <li><a href="supporttickets.php?view=In Progress">In Progress ({$ticketcounts.inprogress})</a></li> <li><a href="supporttickets.php?view=Closed">Closed Tickets ({$ticketcounts.closed})</a></li> </ul> <br> 0 Quote Link to comment Share on other sites More sharing options...
Impact-John Posted May 12, 2009 Author Share Posted May 12, 2009 yeah i cant seem to get the actual numbers per ticket origin to show up on the homepage at all 0 Quote Link to comment Share on other sites More sharing options...
Strats Posted May 20, 2009 Share Posted May 20, 2009 I would also be interested at possible solution... 0 Quote Link to comment Share on other sites More sharing options...
Strats Posted May 24, 2009 Share Posted May 24, 2009 I would also be interested at possible solution... I attach a screenshot of the prob in case someone can help Thanks 0 Quote Link to comment Share on other sites More sharing options...
Strats Posted June 2, 2009 Share Posted June 2, 2009 Is this one so difficult? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.