Coding-Spot

You are not connected. Please login or register

 
 
 

how to have distance between avatars in latest topic?.

Message (Page 1 of 1)

#1

weeknight

weeknight
 
Senior Member

Posted May 27th 2013, 12:53 am

 
Hello mr.mark and all Happy

i want to ask ^_^
how to have distance between avatars in latest topic??
more details you can see this image:
how to have distance between avatars in latest topic?. FiRxuEe

This problem is trivial, but if diihat is very annoying. >.<
because the distance is always changing. when I make a new topic with a new title is always changing, when I open a different browser is always changing. :(

I want to always have distance between avatars. and distance always
remains, unchanged.
i need be like this, have a fixed distance. :)
how to have distance between avatars in latest topic?. ONkYIAL

source:
http://dworld.forumz.ro/

how to be like this mr.mark??

this my code about avatar in latest topic:
Code:
        var CopyrightNotice = 'Copyright D World ©️ 2012 - 2013. All right reserved. Addons to add avatar user in last topics widget for forumotion by InFeRn0. Only works on phpBB3';
        $(function() {
        var x = $('#left')[0]; // Left widget;
        var y = $('#right')[0]; // Right widget;
        $(x).find('.module .inner a[href^="/t"]').each(function() {
        var link = $(this).next().next().attr('href');
        var title = $(this).next().next().text();
        $(this).prepend('<a href="'+link+'" title="'+title+'"></a>');
        $(this).children('a').load(link +'#profile-advanced-right .module:eq(0) img:eq(0)', function() {
        $(this).children('img').attr('class','tlistAv');
        });
        $(this).find('a[href^="/u"]').insertBefore($(this));
        });
        });
        var CopyrightNotice = 'Copyright D World ©️ 2012 - 2013. All right reserved. Addons to add avatar user in last topics widget for forumotion by InFeRn0. Only works on phpBB2';
        $(function() {
        $('.forumline:contains(Ultimele subiecte), .forumline:contains(Latest topics)').attr('id','left');
        var x = $('#left')[0]; // Left widget;
        $(x).find('.row1 span a[href^="/t"]').each(function() {
        var link = $(this).next().next().attr('href');
        var title = $(this).next().next().text();
        $(this).prepend('<a href="'+link+'" title="'+title+'"></a>');
        $(this).children('a').load(link +'#page-body .forumline .row1.gensmall img:eq(0)', function() {
        $(this).children('img').attr('class','tlistAv');
        });
        $(this).find('a[href^="/u"]').insertBefore($(this));
        });
        });

Code:
          .tlistAv {
        border: 1px solid #CCC;
        float: left;
        height: 35px;
        margin-right: 5px;
        padding: 1px;
        width: 35px;
        clear: both;
        margin-bottom: 6px;
        }

please help me ^_^

thanks before :D





#2

BetterHax

BetterHax
 
Advance Member

Posted May 27th 2013, 1:21 pm

 
where can you add the first code?





#3

Mark

Mark
 
Administrator
Administrator

Posted May 27th 2013, 1:25 pm

 
@Betterhax:
- Javascript Management.

@mostone:
- Provide me your mod_recent_topics template.



https://coding-spot.darkbb.com


#4

refresh101

refresh101
 
Advance Member

Posted May 27th 2013, 1:28 pm

 
Ohh I Want That Also Mr.Mark Like Mo Stone :)





#5

Mark

Mark
 
Administrator
Administrator

Posted May 27th 2013, 1:30 pm

 
Ask mostone for codes. But as far as i know the code she gave is only working on Phpbb2 users.



https://coding-spot.darkbb.com


#6

refresh101

refresh101
 
Advance Member

Posted May 27th 2013, 1:34 pm

 
I Just Make A New Topic Instead :)





#7

BetterHax

BetterHax
 
Advance Member

Posted May 27th 2013, 2:13 pm

 
yeah the code have a different spacing.. i try it in my forum





#8

Mark

Mark
 
Administrator
Administrator

Posted May 27th 2013, 3:03 pm

 
Yep. Ok, try this:
- Go to ACP > Display > Templates > Portal > Configuration mod_recent_topics > Find this one: (Focus on the first one you'll see; Click the search button only once, since there are 2 variables inside the template):
Code:
{classical_row.recent_topic_row.S_POSTTIME}

- Now replace it with this one:
Code:
{classical_row.recent_topic_row.S_POSTTIME}<br/>

Then Publish save.



https://coding-spot.darkbb.com


#9

weeknight

weeknight
 
Senior Member

Posted May 27th 2013, 3:30 pm

 
ok this mr.mark,
my recent topic :D

Code:
<!-- BEGIN scrolling_row -->
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
   <tr>
      <td class="catLeft" height="25">
         <span class="genmed module-title">{L_RECENT_TOPICS}</span>
      </td>
   </tr>
   <tr>
      <td class="row1" align="left" id="comments_scroll_div">
         <!-- BEGIN recent_topic_row -->
         » <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="{scrolling_row.recent_topic_row.U_TITLE}" title="{scrolling_row.recent_topic_row.L_TITLE}">{scrolling_row.recent_topic_row.L_TITLE}</a><br />
         <img src="{ICON_TIME}" alt="" />{scrolling_row.recent_topic_row.S_POSTTIME} {BY} 

         <!-- BEGIN switch_poster -->
         <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="{scrolling_row.recent_topic_row.switch_poster.U_POSTER}">{scrolling_row.recent_topic_row.switch_poster.S_POSTER}</a><br /><br />
         <!-- END switch_poster -->

         <!-- BEGIN switch_poster_guest -->
         {scrolling_row.recent_topic_row.switch_poster_guest.S_POSTER}<br /><br />
         <!-- END switch_poster_guest -->

         <!--
         <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="{scrolling_row.recent_topic_row.U_POSTER}">{scrolling_row.recent_topic_row.S_POSTER}</a><br /><br />
         -->
         <!-- END recent_topic_row -->
      </td>
   </tr>
</table>

<script type="text/javascript">
//<![CDATA[
$(function(){
   div_marquee('comments_scroll_div', 'comments_scroll_container', '{SCROLL_WAY}', '{SCROLL_STEP}', '{SCROLL_DELAY}', '{SCROLL_HEIGHT}', 'genmed');
});
//]]>
</script>
<!-- END scrolling_row -->

<!-- BEGIN classical_row -->
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
   <tr>
      <td class="catHead" height="25"><span class="genmed"><b><center>{L_RECENT_TOPICS}</center></b></span></td>
   </tr>
   <tr>
      <td class="row1" align="left"><span class="gensmall" id="sejajar">
      <!-- BEGIN recent_topic_row -->
      » <a href="{classical_row.recent_topic_row.U_TITLE}">{classical_row.recent_topic_row.L_TITLE}</a><br />{BY}&nbsp;

      <!-- BEGIN switch_poster -->
      <a href="{classical_row.recent_topic_row.switch_poster.U_POSTER}">{classical_row.recent_topic_row.switch_poster.S_POSTER}</a>
      <!-- END switch_poster -->

      <!-- BEGIN switch_poster_guest -->
      {classical_row.recent_topic_row.switch_poster_guest.S_POSTER}
      <!-- END switch_poster_guest -->

      {ON} {classical_row.recent_topic_row.S_POSTTIME}<br /><br />

      <!--
      <a href="{classical_row.recent_topic_row.U_POSTER}">{classical_row.recent_topic_row.S_POSTER}</a> {ON} {classical_row.recent_topic_row.S_POSTTIME}<br /><br />
      -->
      <!-- END recent_topic_row -->
      </span></td>
   </tr>
</table>
<!-- END classical_row -->

please help me mr.mark , thanks before ^_^





#10

Mark

Mark
 
Administrator
Administrator

Posted May 27th 2013, 4:11 pm

 
Follow the #8 post mostone.



https://coding-spot.darkbb.com


#11

weeknight

weeknight
 
Senior Member

Posted May 27th 2013, 5:57 pm

 
ok mr,mark, i done try, problem solve :)





#12

Mark

Mark
 
Administrator
Administrator

Posted May 27th 2013, 6:03 pm

 
Since the problem is now solved i will locked this and move to archive section. ~Locked and Moved Happy



https://coding-spot.darkbb.com


#13

Sponsored content


 

Posted

 





Message (Page 1 of 1)

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

In total there is 0 user online :: 0 Registered, 0 Hidden and 0 Guests

Users browsing this forum: None