The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

First poster avatar img

View previous topic View next topic Go down

First poster avatar img

Post by Johncov1 on August 1st 2014, 10:51 am

Hi guys
just setting up the last poster avatar image http://help.forumotion.com/t133214-new-option-show-avatars-in-the-column-last-posts on my forum
but instead of the last poster avatar image intopics_list_box
is it possible to have the thread starter avatar image like in the image

thanks guys for all your work

edit. dion has done it on phpbb3 herehttp://forum.dion-designs.com//p13950/#p13950

could it be converted to punbb?


Last edited by Johncov1 on August 2nd 2014, 3:44 am; edited 2 times in total

Johncov1
New Member

Posts : 17
Reputation : 0
Language : Uk

Back to top Go down

Re: First poster avatar img

Post by Luffy on August 1st 2014, 12:52 pm

Hello,

Yes you can do that. I personally have that but i have to do it manually.
I used this tutorial:
http://www.punbb.biz/t336-javascript-using-description-to-work-like-image-in-topiclist-punbb-phpbb2
but you must enter the image in the thread description to view it outside.

That box with the image you can place it wherever you want!






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Re: First poster avatar img

Post by Johncov1 on August 1st 2014, 1:09 pm

sorry for the confusion mr mind
its not the images in thread i want
its the avatars of the topic starter b4 thread title
is it possible ?
updated my thread
thank you any way for replying

Johncov1
New Member

Posts : 17
Reputation : 0
Language : Uk

Back to top Go down

Re: First poster avatar img

Post by Johncov1 on August 2nd 2014, 3:45 am

bump updated my post

Johncov1
New Member

Posts : 17
Reputation : 0
Language : Uk

Back to top Go down

Re: First poster avatar img

Post by Luffy on August 2nd 2014, 9:51 am

@Johncov1 wrote:sorry for the confusion mr mind
its not the images in thread i want
its the avatars of the topic starter b4 thread title
is it possible ?
updated my thread
thank you any way for replying
Hello,

Moving the avatar to an other location, could be possible. But if you do that then the avatar of your forum index will be moved also. You can make the avatars in the topics list with a different code than the ones that are in the forum index but you will need a javascript, which i don't recommend because it will make your forum very slow.
But still its your decision.

MrMind.

Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Re: First poster avatar img

Post by Johncov1 on August 2nd 2014, 12:09 pm

MrMind wrote:
@Johncov1 wrote:sorry for the confusion mr mind
its not the images in thread i want
its the avatars of the topic starter b4 thread title
is it possible ?
updated my thread
thank you any way for replying
Hello,

Moving the avatar to an other location, could be possible. But if you do that then the avatar of your forum index will be moved also. You can make the avatars in the topics list with a different code than the ones that are in the forum index but you will need a javascript, which i don't recommend because it will make your forum very slow.
But still its your decision.

MrMind.
thank you mr mind for replying
do u know how to code any of those ways
if u could that would be great
thans again

Johncov1
New Member

Posts : 17
Reputation : 0
Language : Uk

Back to top Go down

Re: First poster avatar img

Post by Luffy on August 2nd 2014, 12:38 pm

Since your forum is PunBB please send me the topic_list_box template so i can fix it for you.






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Re: First poster avatar img

Post by Johncov1 on August 2nd 2014, 1:03 pm

MrMind wrote:Since your forum is PunBB please send me the topic_list_box template so i can fix it for you.
here u go pal thank you for this

Code:


<!-- BEGIN topics_list_box -->
<p class="center">
<iframe allowtransparency="true" frameborder="0" scrolling="no"
src="//platform.twitter.com/widgets/follow_button.html?screen_name=DarkModz"
style="width:200px; height:24px;vertical-align:middle;"></iframe>
<span class='st_twitter_hcount' displayText='Tweet'></span>
<iframe class="topicface" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fhttp://darkmodz.pro-forums.co.uk{TOPIC_URL}&layout=button_count&width=150&show_faces=false&action=like&colorscheme=light&font=trebuchet+ms&height=24" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:75px; height:24px; vertical-align:middle;" allowTransparency="true"></iframe>
<span class='st_facebook_hcount' displayText='Facebook'></span>
<span class='st_plusone_hcount' displayText='Google +1'></span>
<span class='st_sharethis_hcount' displayText='ShareThis'></span>
</p>
<!-- BEGIN row -->
<!-- BEGIN header_table -->
   <!-- BEGIN multi_selection -->
      <script type="text/javascript">
      function check_uncheck_main_{topics_list_box.row.header_table.BOX_ID}() {
         var all_checked = true;
         for (i = 0; (i < document.{topics_list_box.FORMNAME}.elements.length) && all_checked; i++) {
         if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
            all_checked = document.{topics_list_box.FORMNAME}.elements[i].checked;
         }
         }
         document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked = all_checked;
      }
      function check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}() {
         for (i = 0; i < document.{topics_list_box.FORMNAME}.length; i++) {
         if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
            document.{topics_list_box.FORMNAME}.elements[i].checked = document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked;
         }
         }
      }
      </script>
   <!-- END multi_selection -->

   <div class="main-head">
      <!-- BEGIN multi_selection -->
      <input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" />
      <!-- END multi_selection -->
      <h1 class="page-title">{topics_list_box.row.L_TITLE} [{topics_list_box.row.COUNT_TOTAL_TOPICS}]</h1>
   </div>
   <div class="main-content">
   <table cellspacing="0" class="table">
      <thead>
         <tr>
            <th class="tcl">{L_TOPICS}</th>
            <th class="tc2">{topics_list_box.row.L_REPLIES}</th>
            <th class="tc3">{topics_list_box.row.L_VIEWS}</th>
            <th class="tcr">{topics_list_box.row.L_LASTPOST}</th>
         </tr>
      </thead>
      <tbody class="statused">
<!-- END header_table -->

<!-- BEGIN header_row -->
<strong>{topics_list_box.row.L_TITLE}</strong>
<!-- END header_row -->

<!-- BEGIN topic -->
   <!-- BEGIN table_sticky -->
      </tbody>
   </table>
   </div>

   <div class="main-head">
      <!-- BEGIN multi_selection -->
      <input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" /   >
      <!-- END multi_selection -->
      <h2>{topics_list_box.row.topic.table_sticky.L_TITLE} [{topics_list_box.row.topic.table_sticky.COUNT_TOTAL_TOPICS}]</h2>
   </div>
   <div class="main-content">
   <table cellspacing="0" class="table">
      <thead>
         <tr>
            <th class="tcl">{L_TOPICS}</th>
            <th class="tc2">{topics_list_box.row.topic.table_sticky.L_REPLIES}</th>
            <th class="tc3">{topics_list_box.row.topic.table_sticky.L_VIEWS}</th>
            <th class="tcr">{topics_list_box.row.topic.table_sticky.L_LASTPOST}</th>
         </tr>
      </thead>
      <tbody class="statused">
   <!-- END table_sticky -->
      <tr>
         <td class="tcl tdtopics <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">
            <span class="status">
               <img title="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" src="{topics_list_box.row.TOPIC_FOLDER_IMG}" alt="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" />
            </span>
            <!-- BEGIN single_selection -->
            <input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} />&nbsp;
            <!-- END single_selection -->
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{topics_list_box.row.ICON}&nbsp;
            {topics_list_box.row.NEWEST_POST_IMG}
            {topics_list_box.row.PARTICIPATE_POST_IMG}&nbsp;
            {topics_list_box.row.TOPIC_TYPE}&nbsp;
            <h2 class="topic-title"><a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a></h2>&nbsp;
<dd>&nbsp;</dd>
<dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{topics_list_box.row.L_BY} {topics_list_box.row.TOPIC_AUTHOR} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {topics_list_box.row.GOTO_OPEN} {topics_list_box.row.GOTO_PAGE_NEW} {topics_list_box.row.GOTO_CLOSE} </dd>
            <!-- BEGIN switch_description -->
            <br />
            &nbsp;
            <!-- END switch_description -->
         </td>
         <td class="tc2 <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">{topics_list_box.row.REPLIES}</td>
         <td class="tc3 <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">{topics_list_box.row.VIEWS}</td>
         <td class="tcr <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->"><!-- BEGIN avatar -->
<span class="lastpost-avatar">{topics_list_box.row.topic.avatar.LAST_POST_AVATAR}</span>
<!-- END avatar --> <dd>&nbsp;</dd> {topics_list_box.row.LAST_POST_AUTHOR} <dd> {topics_list_box.row.LAST_POST_TIME} {topics_list_box.row.LAST_POST_IMG}</dd> </td>
         <!-- BEGIN multi_selection -->
         <td><input onclick="javascript:check_uncheck_main_{topics_list_box.row.BOX_ID}();" type="checkbox" name="{topics_list_box.FIELDNAME}[]{topics_list_box.row.BOX_ID}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></td>
         <!-- END multi_selection -->
      </tr>
<!-- END topic -->
<!-- BEGIN no_topics -->
<tr>
   <td class="tcl" colspan="4"><strong>{topics_list_box.row.L_NO_TOPICS}</strong></td>
</tr>
<!-- END no_topics -->

<!-- BEGIN bottom -->
      </tbody>
   </table>
   </div>
   <div class="main-foot clearfix">
      <!-- BEGIN multi_selection -->
      <input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" />
      <!-- END multi_selection -->
      <p class="h2">{L_TOPICS} [{topics_list_box.row.bottom.COUNT_TOTAL_TOPICS}]</p>
      <p class="options">
         <a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a>&nbsp;{S_WATCH_FORUM}&nbsp;<a href="#top">{L_BACK_TO_TOP}</a>
      </p>
   </div>
<!-- END bottom -->
<!-- BEGIN spacer --><br /><!-- END spacer -->
<!-- END row -->
<!-- END topics_list_box -->


Johncov1
New Member

Posts : 17
Reputation : 0
Language : Uk

Back to top Go down

Re: First poster avatar img

Post by Luffy on August 2nd 2014, 1:10 pm

Ok so here is what you have to do.
Remove the template and replace it with this one:
Code:


<!-- BEGIN topics_list_box -->
<p class="center">
  <iframe allowtransparency="true" frameborder="0" scrolling="no"
src="//platform.twitter.com/widgets/follow_button.html?screen_name=DarkModz"
style="width:200px; height:24px;vertical-align:middle;"></iframe>
<span class='st_twitter_hcount' displayText='Tweet'></span>
<iframe class="topicface" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fhttp://darkmodz.pro-forums.co.uk{TOPIC_URL}&layout=button_count&width=150&show_faces=false&action=like&colorscheme=light&font=trebuchet+ms&height=24" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:75px; height:24px; vertical-align:middle;" allowTransparency="true"></iframe>
<span class='st_facebook_hcount' displayText='Facebook'></span>
<span class='st_plusone_hcount' displayText='Google +1'></span>
<span class='st_sharethis_hcount' displayText='ShareThis'></span>
</p>
<!-- BEGIN row -->
<!-- BEGIN header_table -->
  <!-- BEGIN multi_selection -->
      <script type="text/javascript">
      function check_uncheck_main_{topics_list_box.row.header_table.BOX_ID}() {
        var all_checked = true;
        for (i = 0; (i < document.{topics_list_box.FORMNAME}.elements.length) && all_checked; i++) {
        if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
            all_checked = document.{topics_list_box.FORMNAME}.elements[i].checked;
        }
        }
        document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked = all_checked;
      }
      function check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}() {
        for (i = 0; i < document.{topics_list_box.FORMNAME}.length; i++) {
        if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
            document.{topics_list_box.FORMNAME}.elements[i].checked = document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked;
        }
        }
      }
      </script>
  <!-- END multi_selection -->

  <div class="main-head">
      <!-- BEGIN multi_selection -->
      <input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" />
      <!-- END multi_selection -->
      <h1 class="page-title">{topics_list_box.row.L_TITLE} [{topics_list_box.row.COUNT_TOTAL_TOPICS}]</h1>
  </div>
  <div class="main-content">
  <table cellspacing="0" class="table">
      <thead>
        <tr>
            <th class="tcl">{L_TOPICS}</th>
            <th class="tc2">{topics_list_box.row.L_REPLIES}</th>
            <th class="tc3">{topics_list_box.row.L_VIEWS}</th>
            <th class="tcr">{topics_list_box.row.L_LASTPOST}</th>
        </tr>
      </thead>
      <tbody class="statused">
<!-- END header_table -->

<!-- BEGIN header_row -->
<strong>{topics_list_box.row.L_TITLE}</strong>
<!-- END header_row -->

<!-- BEGIN topic -->
  <!-- BEGIN table_sticky -->
      </tbody>
  </table>
  </div>

  <div class="main-head">
      <!-- BEGIN multi_selection -->
      <input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" /  >
      <!-- END multi_selection -->
      <h2>{topics_list_box.row.topic.table_sticky.L_TITLE} [{topics_list_box.row.topic.table_sticky.COUNT_TOTAL_TOPICS}]</h2>
  </div>
  <div class="main-content">
  <table cellspacing="0" class="table">
      <thead>
        <tr>
            <th class="tcl">{L_TOPICS}</th>
            <th class="tc2">{topics_list_box.row.topic.table_sticky.L_REPLIES}</th>
            <th class="tc3">{topics_list_box.row.topic.table_sticky.L_VIEWS}</th>
            <th class="tcr">{topics_list_box.row.topic.table_sticky.L_LASTPOST}</th>
        </tr>
      </thead>
      <tbody class="statused">
  <!-- END table_sticky -->
      <tr>
        <td class="tcl tdtopics <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">
            <span class="status">
              <img title="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" src="{topics_list_box.row.TOPIC_FOLDER_IMG}" alt="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" />
            </span>
            <!-- BEGIN single_selection -->
            <input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} />&nbsp;
            <!-- END single_selection -->
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{topics_list_box.row.ICON}&nbsp;
            {topics_list_box.row.NEWEST_POST_IMG}
            {topics_list_box.row.PARTICIPATE_POST_IMG}&nbsp;
            {topics_list_box.row.TOPIC_TYPE}&nbsp;
            <h2 class="topic-title">
<!-- BEGIN avatar -->
<span class="lastpost-avatar2">{topics_list_box.row.topic.avatar.LAST_POST_AVATAR}</span>
                          <!-- END avatar -->
<a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a></h2>&nbsp;
                          <dd>&nbsp;</dd>
                          <dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{topics_list_box.row.L_BY} {topics_list_box.row.TOPIC_AUTHOR} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {topics_list_box.row.GOTO_OPEN} {topics_list_box.row.GOTO_PAGE_NEW} {topics_list_box.row.GOTO_CLOSE}  </dd>
            <!-- BEGIN switch_description -->
            <br />
            &nbsp;
            <!-- END switch_description -->
        </td>
        <td class="tc2 <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">{topics_list_box.row.REPLIES}</td>
        <td class="tc3 <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">{topics_list_box.row.VIEWS}</td>
        <td class="tcr <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->"><dd>&nbsp;</dd> {topics_list_box.row.LAST_POST_AUTHOR} <dd> {topics_list_box.row.LAST_POST_TIME} {topics_list_box.row.LAST_POST_IMG}</dd> </td>
        <!-- BEGIN multi_selection -->
        <td><input onclick="javascript:check_uncheck_main_{topics_list_box.row.BOX_ID}();" type="checkbox" name="{topics_list_box.FIELDNAME}[]{topics_list_box.row.BOX_ID}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></td>
        <!-- END multi_selection -->
      </tr>
<!-- END topic -->
<!-- BEGIN no_topics -->
<tr>
  <td class="tcl" colspan="4"><strong>{topics_list_box.row.L_NO_TOPICS}</strong></td>
</tr>
<!-- END no_topics -->

<!-- BEGIN bottom -->
      </tbody>
  </table>
  </div>
  <div class="main-foot clearfix">
      <!-- BEGIN multi_selection -->
      <input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" />
      <!-- END multi_selection -->
      <p class="h2">{L_TOPICS} [{topics_list_box.row.bottom.COUNT_TOTAL_TOPICS}]</p>
      <p class="options">
        <a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a>&nbsp;{S_WATCH_FORUM}&nbsp;<a href="#top">{L_BACK_TO_TOP}</a>
      </p>
  </div>
<!-- END bottom -->
<!-- BEGIN spacer --><br /><!-- END spacer -->
<!-- END row -->
<!-- END topics_list_box -->

Save it and publish it and then add this code in your CSS
Code:
.lastpost-avatar2 img {
background: none repeat scroll 0 0 #FFF;
border: 1px solid #C6D2DC;
border-radius: 0;
box-shadow: 0 1px 2px #D2E3F2;
height: 30px;
margin-top: 3px;
padding: 1px;
width: 30px;
}

Submit it and you are done!


MrMind.






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Re: First poster avatar img

Post by Johncov1 on August 2nd 2014, 1:28 pm

MrMind wrote:Ok so here is what you have to do.
Remove the template and replace it with this one:
Code:


<!-- BEGIN topics_list_box -->
<p class="center">
 <iframe allowtransparency="true" frameborder="0" scrolling="no"
src="//platform.twitter.com/widgets/follow_button.html?screen_name=DarkModz"
style="width:200px; height:24px;vertical-align:middle;"></iframe>
<span class='st_twitter_hcount' displayText='Tweet'></span>
<iframe class="topicface" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fhttp://darkmodz.pro-forums.co.uk{TOPIC_URL}&layout=button_count&width=150&show_faces=false&action=like&colorscheme=light&font=trebuchet+ms&height=24" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:75px; height:24px; vertical-align:middle;" allowTransparency="true"></iframe>
<span class='st_facebook_hcount' displayText='Facebook'></span>
<span class='st_plusone_hcount' displayText='Google +1'></span>
<span class='st_sharethis_hcount' displayText='ShareThis'></span>
</p>
<!-- BEGIN row -->
<!-- BEGIN header_table -->
  <!-- BEGIN multi_selection -->
  <script type="text/javascript">
  function check_uncheck_main_{topics_list_box.row.header_table.BOX_ID}() {
  var all_checked = true;
  for (i = 0; (i < document.{topics_list_box.FORMNAME}.elements.length) && all_checked; i++) {
  if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
  all_checked = document.{topics_list_box.FORMNAME}.elements[i].checked;
  }
  }
  document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked = all_checked;
  }
  function check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}() {
  for (i = 0; i < document.{topics_list_box.FORMNAME}.length; i++) {
  if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
  document.{topics_list_box.FORMNAME}.elements[i].checked = document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked;
  }
  }
  }
  </script>
  <!-- END multi_selection -->

  <div class="main-head">
  <!-- BEGIN multi_selection -->
  <input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" />
  <!-- END multi_selection -->
  <h1 class="page-title">{topics_list_box.row.L_TITLE} [{topics_list_box.row.COUNT_TOTAL_TOPICS}]</h1>
  </div>
  <div class="main-content">
  <table cellspacing="0" class="table">
  <thead>
  <tr>
  <th class="tcl">{L_TOPICS}</th>
  <th class="tc2">{topics_list_box.row.L_REPLIES}</th>
  <th class="tc3">{topics_list_box.row.L_VIEWS}</th>
  <th class="tcr">{topics_list_box.row.L_LASTPOST}</th>
  </tr>
  </thead>
  <tbody class="statused">
<!-- END header_table -->

<!-- BEGIN header_row -->
<strong>{topics_list_box.row.L_TITLE}</strong>
<!-- END header_row -->

<!-- BEGIN topic -->
  <!-- BEGIN table_sticky -->
  </tbody>
  </table>
  </div>

  <div class="main-head">
  <!-- BEGIN multi_selection -->
  <input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" / >
  <!-- END multi_selection -->
  <h2>{topics_list_box.row.topic.table_sticky.L_TITLE} [{topics_list_box.row.topic.table_sticky.COUNT_TOTAL_TOPICS}]</h2>
  </div>
  <div class="main-content">
  <table cellspacing="0" class="table">
  <thead>
  <tr>
  <th class="tcl">{L_TOPICS}</th>
  <th class="tc2">{topics_list_box.row.topic.table_sticky.L_REPLIES}</th>
  <th class="tc3">{topics_list_box.row.topic.table_sticky.L_VIEWS}</th>
  <th class="tcr">{topics_list_box.row.topic.table_sticky.L_LASTPOST}</th>
  </tr>
  </thead>
  <tbody class="statused">
  <!-- END table_sticky -->
  <tr>
  <td class="tcl tdtopics <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">
  <span class="status">
  <img title="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" src="{topics_list_box.row.TOPIC_FOLDER_IMG}" alt="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" />
  </span>
  <!-- BEGIN single_selection -->
  <input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} />&nbsp;
  <!-- END single_selection -->
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{topics_list_box.row.ICON}&nbsp;
  {topics_list_box.row.NEWEST_POST_IMG}
  {topics_list_box.row.PARTICIPATE_POST_IMG}&nbsp;
  {topics_list_box.row.TOPIC_TYPE}&nbsp;
  <h2 class="topic-title">
<!-- BEGIN avatar -->
<span class="lastpost-avatar2">{topics_list_box.row.topic.avatar.LAST_POST_AVATAR}</span>
  <!-- END avatar -->
<a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a></h2>&nbsp;
  <dd>&nbsp;</dd>
  <dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{topics_list_box.row.L_BY} {topics_list_box.row.TOPIC_AUTHOR} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {topics_list_box.row.GOTO_OPEN} {topics_list_box.row.GOTO_PAGE_NEW} {topics_list_box.row.GOTO_CLOSE} </dd>
  <!-- BEGIN switch_description -->
  <br />
  &nbsp;
  <!-- END switch_description -->
  </td>
  <td class="tc2 <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">{topics_list_box.row.REPLIES}</td>
  <td class="tc3 <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">{topics_list_box.row.VIEWS}</td>
  <td class="tcr <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->"><dd>&nbsp;</dd> {topics_list_box.row.LAST_POST_AUTHOR} <dd> {topics_list_box.row.LAST_POST_TIME} {topics_list_box.row.LAST_POST_IMG}</dd> </td>
  <!-- BEGIN multi_selection -->
  <td><input onclick="javascript:check_uncheck_main_{topics_list_box.row.BOX_ID}();" type="checkbox" name="{topics_list_box.FIELDNAME}[]{topics_list_box.row.BOX_ID}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></td>
  <!-- END multi_selection -->
  </tr>
<!-- END topic -->
<!-- BEGIN no_topics -->
<tr>
  <td class="tcl" colspan="4"><strong>{topics_list_box.row.L_NO_TOPICS}</strong></td>
</tr>
<!-- END no_topics -->

<!-- BEGIN bottom -->
  </tbody>
  </table>
  </div>
  <div class="main-foot clearfix">
  <!-- BEGIN multi_selection -->
  <input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" />
  <!-- END multi_selection -->
  <p class="h2">{L_TOPICS} [{topics_list_box.row.bottom.COUNT_TOTAL_TOPICS}]</p>
  <p class="options">
  <a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a>&nbsp;{S_WATCH_FORUM}&nbsp;<a href="#top">{L_BACK_TO_TOP}</a>
  </p>
  </div>
<!-- END bottom -->
<!-- BEGIN spacer --><br /><!-- END spacer -->
<!-- END row -->
<!-- END topics_list_box -->

Save it and publish it and then add this code in your CSS
Code:
.lastpost-avatar2 img {
background: none repeat scroll 0 0 #FFF;
border: 1px solid #C6D2DC;
border-radius: 0;
box-shadow: 0 1px 2px #D2E3F2;
height: 30px;
margin-top: 3px;
padding: 1px;
width: 30px;
}

Submit it and you are done!


MrMind.
thank you so much mr mind
but it wasnt wot i wanted ill have a little play with the code an see

but wot i realy want is the topic starter avatar? instead of last poster

do u know how to set it up with with or without javascript?
i know u said it might make my forum slow but have a try an see first

thanks again so much for ur time

Johncov1
New Member

Posts : 17
Reputation : 0
Language : Uk

Back to top Go down

Re: First poster avatar img

Post by Luffy on August 2nd 2014, 1:33 pm

Oh i will try figure it out! I am in a hurry now but i will be back in half an hour. I will try figure this out and tell you..






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Re: First poster avatar img

Post by Johncov1 on August 2nd 2014, 1:55 pm

MrMind wrote:Oh i will try figure it out! I am in a hurry now but i will be back in half an hour. I will try figure this out and tell you..
thank you so much

Johncov1
New Member

Posts : 17
Reputation : 0
Language : Uk

Back to top Go down

Re: First poster avatar img

Post by Luffy on August 2nd 2014, 3:30 pm

Hey,

Sorry but i couldn't manage to grab the avatar. I will keep on working on it. If i find it i will tell you..






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Re: First poster avatar img

Post by Johncov1 on August 4th 2014, 6:02 pm

MrMind wrote:Hey,

Sorry but i couldn't manage to grab the avatar. I will keep on working on it. If i find it i will tell you..
any chance of doing that pal ?

Johncov1
New Member

Posts : 17
Reputation : 0
Language : Uk

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum