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 August 25th 2013, 10:16 pm

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 August 25th 2013, 10:17 pm

What forum version you have?
Ikerepc
Ikerepc
Active Poster

Male Posts : 1187
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 August 26th 2013, 6:56 am

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 August 26th 2013, 11:44 am

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 August 26th 2013, 11:46 am

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 August 26th 2013, 1:08 pm

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 : 1187
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 August 26th 2013, 2:33 pm

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 August 26th 2013, 2:50 pm

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 August 26th 2013, 2:51 pm

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 August 26th 2013, 2:52 pm

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

Male Posts : 1187
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 August 26th 2013, 3:01 pm

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 August 26th 2013, 3:11 pm

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 August 26th 2013, 3:27 pm

__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 : 1187
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 August 26th 2013, 7:06 pm

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 August 26th 2013, 7:14 pm

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 August 26th 2013, 9:22 pm

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 August 27th 2013, 12:46 am

__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 : 51576
Reputation : 3525
Language : English
Location : United States

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

Back to top Go down

Back to top

- Similar topics

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