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

[Javascript] No post to view



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

1
Offline

  Guest

avatar
Guest


Tutorial: No post to view
With this little piece of code, you can add a no post to view next to avatar as well. It's really good way to keep your subforums without posts looking good.


--> Tutorials, tips and tricks <--
No post to view



- Javascript
Placement: In Homepage

Code:
[panda=js]      $(function(){
        var text = '<span class="punbb-avatar"><img src="http://illiweb.com/fa/invision/pp-blank-thumb.png" /></span>  <span class="punbb-size"><i>No post to view</i></span>';
        var noPost = $('td.tcr');
        $(noPost).each(function() {
        if($(this).text() == '') {
        $(this).html(text);
        }
        else { }
        });
        });


- CSS
Code:
[panda=css]    .punbb-avatar img {
height: 40px;
width: 40px;
}

.punbb-size {
  position: relative;
  top: -15px;
}


- Preview




© PunBB Design


If you have any questions related to this topic create a topic with the following title:
No post to view

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

2
Offline

  Michael_vx

avatar
Punbb Junior
Punbb Junior
hi i wonder how i could transofrm this code to work for phpbb2

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

3
Offline

  Virus

avatar
★Moderator★
★Moderator★
[infos="Questions and Problems"]Hello,

You have to create a new topic to Questions & Problems referring to this post. That way other members with the same question will find the answers easier in the correct category.[/infos]

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

4
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