The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

problum in catogory

4 posters

Go down

Solved problum in catogory

Post by Guest Sun 25 Aug - 14:16

how show members profile pic 
on catogry
i means last poster user profile picture in catagory
right side ?
avatar
Guest
Guest


Back to top Go down

Solved Re: problum in catogory

Post by Ikerepc Sun 25 Aug - 14:17

What forum version you have?
Ikerepc
Ikerepc
Active Poster

Male Posts : 1186
Reputation : 167
Language : Who cares...
Location : Where web help & support is needed

http://admins.forumotion.com

Back to top Go down

Solved Re: problum in catogory

Post by Cassius Dio Sun 25 Aug - 22:56

Hi, bye

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);
    };
 
});
On "Placement" field select "In the homepage".

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%;
}
Codes are given from an official tutorial:
http://help.forumgratuit.ro/t44802-avatarul-postatorului-la-ultimele-mesaje
Cassius Dio
Cassius Dio
Forumember

Male Posts : 581
Reputation : 79
Language : Romanian &English
Location : Yellow Submarine

http://beatles.forummo.com/

Back to top Go down

Solved Re: problum in catogory

Post by Guest Mon 26 Aug - 3:44

Cassius Dio wrote:Hi, bye

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);
    };
 
});
On "Placement" field select "In the homepage".

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%;
}
Codes are given from an official tutorial:
http://help.forumgratuit.ro/t44802-avatarul-postatorului-la-ultimele-mesaje
i am follow your post
thanks for rply but no work

 i am using punbb
avatar
Guest
Guest


Back to top Go down

Solved re

Post by Guest Mon 26 Aug - 3:46

Zyon wrote:What forum version you have?
my forum version is punbb
avatar
Guest
Guest


Back to top Go down

Solved Re: problum in catogory

Post by Ikerepc Mon 26 Aug - 5:08

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)?
Ikerepc
Ikerepc
Active Poster

Male Posts : 1186
Reputation : 167
Language : Who cares...
Location : Where web help & support is needed

http://admins.forumotion.com

Back to top Go down

Solved Re: problum in catogory

Post by Guest Mon 26 Aug - 6:33

i dont undarstand brother i am also add new code in index box
please give me code
avatar
Guest
Guest


Back to top Go down

Solved Re: problum in catogory

Post by runawayhorses Mon 26 Aug - 6:50

Wow, great code works awesome!
avatar
runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 166
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Solved Re: problum in catogory

Post by Cassius Dio Mon 26 Aug - 6:51

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". thumleft 
Cassius Dio
Cassius Dio
Forumember

Male Posts : 581
Reputation : 79
Language : Romanian &English
Location : Yellow Submarine

http://beatles.forummo.com/

Back to top Go down

Solved Re: problum in catogory

Post by Ikerepc Mon 26 Aug - 6:52

I ask are you want to avatar be right of last post in some forum?
Ikerepc
Ikerepc
Active Poster

Male Posts : 1186
Reputation : 167
Language : Who cares...
Location : Where web help & support is needed

http://admins.forumotion.com

Back to top Go down

Solved Re: problum in catogory

Post by Cassius Dio Mon 26 Aug - 7:01

Zyon wrote:I ask are you want to avatar be right of last post in some forum?
The author wants on his forum to show the avatar of the last poster, like in this image:problum in catogory E8TgMJF
Cassius Dio
Cassius Dio
Forumember

Male Posts : 581
Reputation : 79
Language : Romanian &English
Location : Yellow Submarine

http://beatles.forummo.com/

Back to top Go down

Solved Re: problum in catogory

Post by runawayhorses Mon 26 Aug - 7:11

It works fine on my forum punbb, click the site icon to see that its working.
avatar
runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 166
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Solved Re: problum in catogory

Post by Ikerepc Mon 26 Aug - 7:27

__Ashiq__ wrote:how show members profile pic 
on catogry
i means last poster user profile picture in catagory
right side ?
Sorry Cassius Dio, but there writte in category right side...
So I'm ask.
Ikerepc
Ikerepc
Active Poster

Male Posts : 1186
Reputation : 167
Language : Who cares...
Location : Where web help & support is needed

http://admins.forumotion.com

Back to top Go down

Solved Re: problum in catogory

Post by Guest Mon 26 Aug - 11:06

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
avatar
Guest
Guest


Back to top Go down

Solved Re: problum in catogory

Post by Guest Mon 26 Aug - 11:14

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: 
avatar
Guest
Guest


Back to top Go down

Solved Re: problum in catogory

Post by Cassius Dio Mon 26 Aug - 13:22

Glad we could help you. thumleft 

Have a nice day!
Cassius Dio
Cassius Dio
Forumember

Male Posts : 581
Reputation : 79
Language : Romanian &English
Location : Yellow Submarine

http://beatles.forummo.com/

Back to top Go down

Solved Re: problum in catogory

Post by SLGray Mon 26 Aug - 16:46

__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
__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: 
Topic Solved & Locked

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]


problum in catogory Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51463
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top


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