The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

problum in catogory

View previous topic View next topic Go down

Solved problum in catogory

Post by Guest on August 25th 2013, 10:16 pm

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

Guest
Guest


Back to top Go down

Solved Re: problum in catogory

Post by Ikerepc on August 25th 2013, 10:17 pm

What forum version you have?

Ikerepc
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

Solved Re: problum in catogory

Post by Cassius Dio on 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://illiweb.com/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
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 on 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://illiweb.com/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

Guest
Guest


Back to top Go down

Solved re

Post by Guest on August 26th 2013, 11:46 am

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

Guest
Guest


Back to top Go down

Solved Re: problum in catogory

Post by Ikerepc on 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
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

Solved Re: problum in catogory

Post by Guest on August 26th 2013, 2:33 pm

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

Guest
Guest


Back to top Go down

Solved Re: problum in catogory

Post by runawayhorses on August 26th 2013, 2:50 pm

Wow, great code works awesome!

runawayhorses
Hyperactive

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

http://runawayhorses.alldiscussion.net/

Back to top Go down

Solved Re: problum in catogory

Post by Cassius Dio on 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
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 on August 26th 2013, 2:52 pm

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

Ikerepc
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

Solved Re: problum in catogory

Post by Cassius Dio on 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:

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

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

runawayhorses
Hyperactive

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

http://runawayhorses.alldiscussion.net/

Back to top Go down

Solved Re: problum in catogory

Post by Ikerepc on 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
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

Solved Re: problum in catogory

Post by Guest on 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

Guest
Guest


Back to top Go down

Solved Re: problum in catogory

Post by Guest on 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: 

Guest
Guest


Back to top Go down

Solved Re: problum in catogory

Post by Cassius Dio on August 26th 2013, 9:22 pm

Glad we could help you. thumleft 

Have a nice day!

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 on 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]


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


SLGray
Administrator
Administrator

Male Posts : 35667
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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