Support Forums

Title in show_messages.tpl

This is a discussion on Title in show_messages.tpl within the Technical Support forums, part of the Technical Support Forums category; Hello everyone, In my show_messages.tpl, there is three links, "Send new pm", "Inbox" and "outbox. I would like to add ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 10-01-2009, 09:31 AM   #1
Customer
 
Join Date: Apr 2009
Location: South of Spain
Posts: 203
Rep Power: 11
magicosta is on a distinguished road
Default Title in show_messages.tpl

Hello everyone,

In my show_messages.tpl, there is three links, "Send new pm", "Inbox" and "outbox.

I would like to add a little title to hepl users to understand where they are when they click either on Inbox or Outbox link.

So, what do I have to do to put a "Inbox title" when the script display the Inbox results and an "Outbox title" when the script is dispaying the Outbox results?

Thank you for your help.
__________________
Default Template - V 4.1.10 - Developper
magicosta is offline  
Old 10-01-2009, 09:43 AM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,321
Rep Power: 131
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

use smarty debug to display the template variables available to use. Move between the inbox and outbox to see what variables there are and which differ between the two pages and see if there is something you can use to differentiate between the two pm boxes. If you find something, then simply place that smarty variable in the template where you want it to display.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 10-01-2009, 06:05 PM   #3
Customer
 
Join Date: Apr 2009
Location: South of Spain
Posts: 203
Rep Power: 11
magicosta is on a distinguished road
Default

Thank you for your answer Larry,

In fact, I am not sure to understand that code below which start the table in the template page.

I don't understand that code with <a> tag which is not dispalying any link? unless there is something not working in my script! Could you help me to understand that part of the code, thank you.


<tr><th scope="col" width="5%"><input type="checkbox" name="checkbox" id="checkbox" value="checkbox" /></th>

<th scope="col" width="5%" nowrap[COLOR="blue"]><a href="private.php?{$querystring_pmid}">{$smarty.co nst.LANG_ID} {if $sqlsort=="pmid"}<img src="images/sort{$oppositesort}.gif" border="0" alt="Sort" />{/if}</a>[/color]</th>

<th scope="col"><a href="private.php?{$querystring_title}"> {$smarty.const.LANG_TITLE} {if $sqlsort=="title"}<img src="images/sort{$oppositesort}.gif" border="0" alt="Sort" />{/if}</a></th>

<th scope="col"><a href="private.php?{$querystring_fromusername}">{$s marty.const.LANG_FROM} {if $sqlsort=="fromusername"}<img src="images/sort{$oppositesort}.gif" border="0" alt="Sort" />{/if}</a></th>

<th scope="col"><a href="private.php?{$querystring_datesent}">{$smart y.const.LANG_DATE} {if $sqlsort=="datesent"}<img src="images/sort{$oppositesort}.gif" border="0" alt="Sort" />{/if}</a></th>
</tr>
__________________
Default Template - V 4.1.10 - Developper
magicosta is offline  
Old 10-01-2009, 06:14 PM   #4
curmudgeon
 
Join Date: Mar 2006
Posts: 5,321
Rep Power: 131
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Thats not smarty debug, your just looking at the template.

On smartys website ( Smarty : Template Engine ) you can find smarty documentation as well as tutorials and examples. It explains {debug} and what it does and a search here on the forum AND in the 68C docs will also explaine a bit about the smarty {debug}.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Best Of page title kayfi Technical Support 4 05-17-2009 06:58 PM
Ad title does not appear luisram Technical Support 0 07-14-2008 07:32 PM
Categories Title CB Technical Support 0 10-28-2007 03:44 AM


All times are GMT -4. The time now is 04:07 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0