problum in catogory
4 posters
Page 1 of 1
problum in catogory
how show members profile pic
on catogry
i means last poster user profile picture in catagory
right side ?
on catogry
i means last poster user profile picture in catagory
right side ?
Guest- Guest
Re: problum in catogory
Hi,
Go to "Administration Panel ~> Modules ~> HTML & JAVASCRIPT ~> JavaScript codes management", create a new code and add:
Then go to "Administration Panel ~> Display ~> Pictures and colors ~> Colors ~> CSS Stylesheet" and add:
http://help.forumgratuit.ro/t44802-avatarul-postatorului-la-ultimele-mesaje
Go to "Administration Panel ~> Modules ~> HTML & JAVASCRIPT ~> JavaScript codes management", create a new code and add:
- Code:
$(function(){
if(!window.localStorage) return;
// Avatar par défaut
var default_avatar= 'http://2img.net/i/fa/invision/pp-blank-thumb.png';
// Temps de cache, ici 24 h * 60 m * 60 s * 1000 ms donc un jour
var caching_time= 24*60*60*1000;
// Temps de cache d'une erreur, ici 60 s * 1000 ms donc une minute
var caching_error= 60*1000;
var set_avatar= function(id) {
$('.mini_ava.member'+id).html('<img src="'+get_avatar(id)+'" />');
};
var get_avatar= function(id) {
if(localStorage.getItem('t_ava'+id) < +new Date - caching_time || (localStorage.getItem('d_ava'+id)==default_avatar && localStorage.getItem('t_ava'+id) < +new Date - caching_error))
{
localStorage.setItem('d_ava'+id, default_avatar);
$.get('/u'+id, function (d){
localStorage.setItem('t_ava'+id,+new Date);
localStorage.setItem('d_ava'+id, $('#profile-advanced-right .module:first div img:first,.forumline td.row1.gensmall:first > img, .frm-set.profile-view.left dd img,dl.left-box.details:first dd img, .row1 b .gen:first img, .real_avatar img',d).first().attr('src')||default_avatar);
set_avatar(id);
});
}
return localStorage.getItem('d_ava'+id);
};
var to_replace= {};
$('dd.lastpost strong a.gensmall, .ipbtable tr td:last-child span strong a.gensmall, .table td.tcr strong a.gensmall, .forumline .row3.over strong a.gensmall').each(function(){
to_replace[$(this).attr('href').substr(2)]= 1;
$(this).closest('td,dd').prepend('<div class="mini_ava member'+$(this).attr('href').substr(2)+'"></div>');
});
for(i in to_replace)
{
set_avatar(i);
};
});
Then go to "Administration Panel ~> Display ~> Pictures and colors ~> Colors ~> CSS Stylesheet" and add:
- Code:
.mini_ava {
float: left;
}
.mini_ava img {
width: 40px;
height: 40px;
margin: 0 5px;
border-radius: 10px;
transition: all 1s;
-moz-transition: all 1s;
-webkit-transition: all 1s;
-o-transition: all 1s;
}
.mini_ava img:hover
{
zoom: 130%;
}
http://help.forumgratuit.ro/t44802-avatarul-postatorului-la-ultimele-mesaje
Re: problum in catogory
i am follow your postCassius Dio wrote:Hi,
Go to "Administration Panel ~> Modules ~> HTML & JAVASCRIPT ~> JavaScript codes management", create a new code and add:On "Placement" field select "In the homepage".
- Code:
$(function(){
if(!window.localStorage) return;
// Avatar par défaut
var default_avatar= 'http://2img.net/i/fa/invision/pp-blank-thumb.png';
// Temps de cache, ici 24 h * 60 m * 60 s * 1000 ms donc un jour
var caching_time= 24*60*60*1000;
// Temps de cache d'une erreur, ici 60 s * 1000 ms donc une minute
var caching_error= 60*1000;
var set_avatar= function(id) {
$('.mini_ava.member'+id).html('<img src="'+get_avatar(id)+'" />');
};
var get_avatar= function(id) {
if(localStorage.getItem('t_ava'+id) < +new Date - caching_time || (localStorage.getItem('d_ava'+id)==default_avatar && localStorage.getItem('t_ava'+id) < +new Date - caching_error))
{
localStorage.setItem('d_ava'+id, default_avatar);
$.get('/u'+id, function (d){
localStorage.setItem('t_ava'+id,+new Date);
localStorage.setItem('d_ava'+id, $('#profile-advanced-right .module:first div img:first,.forumline td.row1.gensmall:first > img, .frm-set.profile-view.left dd img,dl.left-box.details:first dd img, .row1 b .gen:first img, .real_avatar img',d).first().attr('src')||default_avatar);
set_avatar(id);
});
}
return localStorage.getItem('d_ava'+id);
};
var to_replace= {};
$('dd.lastpost strong a.gensmall, .ipbtable tr td:last-child span strong a.gensmall, .table td.tcr strong a.gensmall, .forumline .row3.over strong a.gensmall').each(function(){
to_replace[$(this).attr('href').substr(2)]= 1;
$(this).closest('td,dd').prepend('<div class="mini_ava member'+$(this).attr('href').substr(2)+'"></div>');
});
for(i in to_replace)
{
set_avatar(i);
};
});
Then go to "Administration Panel ~> Display ~> Pictures and colors ~> Colors ~> CSS Stylesheet" and add:Codes are given from an official tutorial:
- Code:
.mini_ava {
float: left;
}
.mini_ava img {
width: 40px;
height: 40px;
margin: 0 5px;
border-radius: 10px;
transition: all 1s;
-moz-transition: all 1s;
-webkit-transition: all 1s;
-o-transition: all 1s;
}
.mini_ava img:hover
{
zoom: 130%;
}
http://help.forumgratuit.ro/t44802-avatarul-postatorului-la-ultimele-mesaje
thanks for rply but no work
i am using punbb
Guest- Guest
Re: problum in catogory
Are you think like
last post
time
member
and right of that members avatar?
If yes, are you change something in your index_box (admin panel -> Display -> Templares -> General -> index_box)?
last post
time
member
and right of that members avatar?
If yes, are you change something in your index_box (admin panel -> Display -> Templares -> General -> index_box)?
Re: problum in catogory
i dont undarstand brother i am also add new code in index box
please give me code
please give me code
Guest- Guest
Re: problum in catogory
Have you enabled your JavaScript codes management from "Administration Panel ~> Modules ~> HTML & JAVASCRIPT ~> JavaScript codes management", field "Enable Javascript code management"? If no, choose "Yes", then click "Save".
Re: problum in catogory
The author wants on his forum to show the avatar of the last poster, like in this image:Zyon wrote:I ask are you want to avatar be right of last post in some forum?
Re: problum in catogory
It works fine on my forum punbb, click the site icon to see that its working.
Re: problum in catogory
Sorry Cassius Dio, but there writte in category right side...__Ashiq__ wrote:how show members profile pic
on catogry
i means last poster user profile picture in catagory
right side ?
So I'm ask.
Re: problum in catogory
i am not undastand what matter talk all members please help my
dont disscusion help me 1st then discusion
i am how install this trick in my forum ? need code please and where use code
dont disscusion help me 1st then discusion
i am how install this trick in my forum ? need code please and where use code
Guest- Guest
Re: problum in catogory
ok solve this problum i am sucessfully install this in my forum
top thanks to zyon , runwayhorses , [b]cassius dio thanks all for rply and teach me really given thanks i am happy:wouhou:
top thanks to zyon , runwayhorses , [b]cassius dio thanks all for rply and teach me really given thanks i am happy:wouhou:
Guest- Guest
Re: problum in catogory
__Ashiq__ wrote:i am not undastand what matter talk all members please help my
dont disscusion help me 1st then discusion
i am how install this trick in my forum ? need code please and where use code
Topic Solved & Locked__Ashiq__ wrote:ok solve this problum i am sucessfully install this in my forum
top thanks to zyon , runwayhorses , cassius dio thanks all for rply and teach me really given thanks i am happy:wouhou:
Please don't double/triple post. Your post need to be separated by 24 hours before bumping, replying or adding more information. Please use the edit button instead![/b]
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum