Good art is a taste, good design is an opinion.


Come as guest, stay as family.
Board Index

Come as guest, stay as family.


You are not connected. Please login or register

Foto

[Solved] Not yet post question ?



View previous topic View next topic Go down Message [Page 1 of 1]

1
Offline

  tommycoo

tommycoo
Punbb Senior
Punbb Senior
Details:
how can i make something like this [Solved] Not yet post question ? AWnRul7

Your Forum Address:
http://atlanta.forumid.net/

Forum Version:
PunBB

Powered by PunBB
Currently 0 users have thanked tommycoo for this post:

2
Offline

  Zyon

Zyon
Punbb Guru
Punbb Guru
You think color or text?

for text you need to edit templates, but for that colors you need to edit css... I don't know that.

Powered by PunBB
Currently 0 users have thanked Zyon for this post:

3
Offline

  Shadow

Shadow
Administrator
Administrator
In [ic]index_box[/ic] at end of template add following code

Code:
[panda=js]<script type="text/javascript">
    //<![CDATA[
    var target = $('td.tcr').find('li.desc.lighter.blend_links');
    target.each(function(index){
        var UserURL = $(this).find('a.gensmall').attr('href');
        var Desc = $(this).parent().find('li a');
      
       if (Desc.text() == '') {
            Desc.text('Not yet posted');
        }
        if($.trim(UserURL) !== '') {
            var found = $(this).parent().parent().find('.ipsUserPhoto_mini');
            var caching_time = 24*60*60*1000;
            var caching_error = 60*1000;
          
           if(localStorage.getItem('avatar_date' + index) <+new Date-caching_time || localStorage.getItem('avatar_date' + index) <+new Date-caching_error) {
                $.get(UserURL, function(data){
                    var avtPrf = $('#profile_tabs p img', data).attr('src');
                    /*
                    if(avtPrf.length > 0) {
                        found.attr('src', avtPrf);
                    }*/
                    found.attr('src', avtPrf);
                    localStorage.setItem('avatar_img' + index, avtPrf);
                    localStorage.setItem('avatar_date' + index, +new Date);
                });
            } else {
                found.attr('src', localStorage.getItem('avatar_img'+ index));
            }
        };
    });
    //]]>
</script>
In [ic]CSS[/ic] add:

Code:
[panda=css].tcr .ipsUserPhoto {
        float: left;
        margin-top: 3px;
    }
    .ipsUserPhoto_mini {
        height: 30px;
        width: 30px;
    }
    .ipsUserPhoto {
        background: none repeat scroll 0 0 #FFFFFF;
        border: 1px solid #D5D5D5;
        box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
        padding: 1px;
    }
    .desc.lighter, .desc.lighter.blend_links a {
        color: #A4A4A4;
    }
    .ipsUserPhoto img {
    height: 40px;
    width: 40px;
}

Powered by PunBB
Currently 0 users have thanked Shadow for this post:

4
Offline

  tommycoo

tommycoo
Punbb Senior
Punbb Senior
not worked ? i've tested it on default punbb ?

Powered by PunBB
Currently 0 users have thanked tommycoo for this post:

5
Offline

  Shadow

Shadow
Administrator
Administrator
Ah i forget to add an html string fuction find  [ic]<td class="tcr">[/ic] and replace it with:

Code:
[panda=html]<!-- Column for Last Post -->
 <td class="tcr">
 <!-- Backup
 <span>
 <a href="{catrow.forumrow.U_LATEST_TOPIC}" title="{catrow.forumrow.LATEST_TOPIC_TITLE}">{catrow.forumrow.LATEST_TOPIC_NAME}</a><br />
 {catrow.forumrow.USER_LAST_POST}
 </span>
 -->
 <!-- BEGIN switch_topic_title -->
 <a href="" class="ipsUserPhoto">
        <img src="http://i78.servimg.com/u/f78/18/17/62/92/defaul10.png" alt="User image" class="ipsUserPhoto_mini">
    </a>
 <!-- END switch_topic_title -->
 <ul class="last_post ipsType_small">
 <li>
 <!-- BEGIN switch_topic_title -->
 <a title="{catrow.forumrow.LATEST_TOPIC_TITLE}" href="{catrow.forumrow.U_LATEST_TOPIC}">{catrow.forumrow.LATEST_TOPIC_NAME}</a>
 <!-- END switch_topic_title -->
 </li>
 <li class="desc lighter blend_links">{catrow.forumrow.USER_LAST_POST}</li>
 </ul>
 </td>
</tr>
 <!-- END forumrow -->

 <!-- BEGIN tablefoot -->
 </tbody>
 </table>
 </div>
 <!-- END tablefoot -->
<!-- END catrow -->

Powered by PunBB
Currently 0 users have thanked Shadow for this post:

6
Offline

  tommycoo

tommycoo
Punbb Senior
Punbb Senior
thanks brow now its working

Powered by PunBB
Currently 0 users have thanked tommycoo for this post:

7
Offline

  Shadow

Shadow
Administrator
Administrator
<div class="solved">Solved & Locked.</div>

Powered by PunBB
Currently 0 users have thanked Shadow for this post:

8
Offline

  Sponsored content



Powered by PunBB
Currently 0 users have thanked Sponsored content for this post:

View previous topic View next topic Back to top Message [Page 1 of 1]


Topic URL's

URL
BBcode
HTML

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