MyBB Community Forums

Full Version: Subject information
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Templates - showthread find

<div class="float_right">
		{$newreply}
	</div>

add below

		<table border="0" cellspacing="0" cellpadding="0" width="100%">
    <tr>    
        <td class="thead"align="left"><strong>SUBJECT İNFORMATİON <i class="float_right fas fa-gavel fa-lg"></i></strong></td>
    </tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%" style="border-left:1px solid #f5f6f7;border-right:1px solid #f5f6f7;text-align:center;">
<tr>
<td class="trow1" width="25%"align="left"><strong><i class="fas fa-users fa-lg"style="color:#3792B5;"></i> Author</strong></td>
<td class="trow1" width="25%">{$thread['username']}</td>
<td class="trow1" width="25%"align="left"><strong><i class=" fas fa-comments fa-lg"style="color:#4BB232;"></i> Replies</strong></td>
<td class="trow1" width="25%">{$thread['replies']}</td>
</tr>
<tr>
<td class="trow1" width="25%"align="left"><strong><i class="fas fa-share fa-lg"style="color:#E35798;"></i> Share</strong></td>
<td class="trow1" width="25%">
<a href="http://www.facebook.com/sharer.php?u={$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}" target=_blank><i class="fab fa-facebook" style="margin-left:15px;font-size:22px;"title="Facebook" align="center"></i></a>
<a href="http://twitter.com/home?status={$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}" target=_blank>
<i class="fab fa-twitter-square" title="Twitter" align="center"style="font-size:22px;"></i></a>  
<a href="https://plus.google.com/share?url={$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}" rel="nofollow" target="_blank">
<i class="fab fa-google-plus-square"title="Google+" align="center"style="font-size:22px;"></i></a>	
</td>
<td class="trow1" width="25%"align="left"><strong><i class="fas fa-eye fa-lg"style="color:#9B54E7;"></i> Views</strong></td>
<td class="trow1" width="25%">{$thread['views']}</td>
</tr>
<tr>
Looks great! Thank you for the share!

Is there any way to show avatar together with username where is the subject information? I cannot seem to find the right variable if it exists..
(2021-01-02, 01:15 PM)Kieria Wrote: [ -> ]Looks great! Thank you for the share!

Is there any way to show avatar together with username where is the subject information? I cannot seem to find the right variable if it exists..

{$mybb->user['avatar']}


oh wait never mind, didn't read the thread fully lol.

Thought this was for index page.
(2021-01-01, 11:51 AM)Anka06 Wrote: [ -> ]Templates - showthread find

<div class="float_right">
		{$newreply}
	</div>

add below

		<table border="0" cellspacing="0" cellpadding="0" width="100%">
    <tr>    
        <td class="thead"align="left"><strong>SUBJECT İNFORMATİON <i class="float_right fas fa-gavel fa-lg"></i></strong></td>
    </tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%" style="border-left:1px solid #f5f6f7;border-right:1px solid #f5f6f7;text-align:center;">
<tr>
<td class="trow1" width="25%"align="left"><strong><i class="fas fa-users fa-lg"style="color:#3792B5;"></i> Author</strong></td>
<td class="trow1" width="25%">{$thread[username]}</td>
<td class="trow1" width="25%"align="left"><strong><i class=" fas fa-comments fa-lg"style="color:#4BB232;"></i> Replies</strong></td>
<td class="trow1" width="25%">{$thread['replies']}</td>
</tr>
<tr>
<td class="trow1" width="25%"align="left"><strong><i class="fas fa-share fa-lg"style="color:#E35798;"></i> Share</strong></td>
<td class="trow1" width="25%">
<a href="http://www.facebook.com/sharer.php?u={$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}" target=_blank><i class="fab fa-facebook" style="margin-left:15px;font-size:22px;"title="Facebook" align="center"></i></a>
<a href="http://twitter.com/home?status={$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}" target=_blank>
<i class="fab fa-twitter-square" title="Twitter" align="center"style="font-size:22px;"></i></a>  
<a href="https://plus.google.com/share?url={$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}" rel="nofollow" target="_blank">
<i class="fab fa-google-plus-square"title="Google+" align="center"style="font-size:22px;"></i></a>	
</td>
<td class="trow1" width="25%"align="left"><strong><i class="fas fa-eye fa-lg"style="color:#9B54E7;"></i> Views</strong></td>
<td class="trow1" width="25%">{$thread['views']}</td>
</tr>
<tr>
in line 9 the line should be like this :-
<td class="trow1" width="25%">{$thread['profilelink']}</td>

otherwise it can show an error....
(2021-01-08, 04:52 PM)PARADOXP Wrote: [ -> ]
(2021-01-01, 11:51 AM)Anka06 Wrote: [ -> ]Templates - showthread find

<div class="float_right">
		{$newreply}
	</div>

add below

		<table border="0" cellspacing="0" cellpadding="0" width="100%">
    <tr>    
        <td class="thead"align="left"><strong>SUBJECT İNFORMATİON <i class="float_right fas fa-gavel fa-lg"></i></strong></td>
    </tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%" style="border-left:1px solid #f5f6f7;border-right:1px solid #f5f6f7;text-align:center;">
<tr>
<td class="trow1" width="25%"align="left"><strong><i class="fas fa-users fa-lg"style="color:#3792B5;"></i> Author</strong></td>
<td class="trow1" width="25%">{$thread[username]}</td>
<td class="trow1" width="25%"align="left"><strong><i class=" fas fa-comments fa-lg"style="color:#4BB232;"></i> Replies</strong></td>
<td class="trow1" width="25%">{$thread['replies']}</td>
</tr>
<tr>
<td class="trow1" width="25%"align="left"><strong><i class="fas fa-share fa-lg"style="color:#E35798;"></i> Share</strong></td>
<td class="trow1" width="25%">
<a href="http://www.facebook.com/sharer.php?u={$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}" target=_blank><i class="fab fa-facebook" style="margin-left:15px;font-size:22px;"title="Facebook" align="center"></i></a>
<a href="http://twitter.com/home?status={$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}" target=_blank>
<i class="fab fa-twitter-square" title="Twitter" align="center"style="font-size:22px;"></i></a>  
<a href="https://plus.google.com/share?url={$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}" rel="nofollow" target="_blank">
<i class="fab fa-google-plus-square"title="Google+" align="center"style="font-size:22px;"></i></a>	
</td>
<td class="trow1" width="25%"align="left"><strong><i class="fas fa-eye fa-lg"style="color:#9B54E7;"></i> Views</strong></td>
<td class="trow1" width="25%">{$thread['views']}</td>
</tr>
<tr>
in line 9 the line should be like this :-
<td class="trow1" width="25%">{$thread['profilelink']}</td>

otherwise it can show an error....


It's just missing inverted commas. Use like this and it will not show any error 


<td class="trow1" width="25%">{$thread['username']}</td>