Avatars on the last topic
4 posters
Page 1 of 1
Avatars on the last topic
Hello. I am using these codes for the avatars in the last topic and something is wrong because whenever i put the code in the forum it comes this message that i am trying to load a page too many times and it needs refresh all the times.. Can u tell me if it has something wrong in the code and whats the problem?
these codes i use in forum versions:
phpbb2 & punbb
Thank you!
- CSS:
- Code:
.avatar-index { float: left; }
.avatar-index img { width: 40px; height: 40px; padding: 1px; border: 1px solid #DDD; margin: 0 5px; }
- Javascript:
- Code:
$(document).on('ready', function() {
$('.forumline tr .row3.over').prepend('<div class="avatar-index"><div>');
$('.forumline tr .row3.over .avatar-index').each(function () {
var profileUser = $(this).parent().children('span').children('span').children('strong').children('a').attr('href');
$(this).html('<a href="' + profileUser + '" class="avatar-index-enlace"><img src="http://cdn1.iconfinder.com/data/icons/basicset/user_64.png" alt="No Avatar" /></a>');
$(this).children('a').load(profileUser + ' .forumline .row1.gensmall[align="center"]:eq(0) img:eq(0)');
});
});
these codes i use in forum versions:
phpbb2 & punbb
Thank you!
Re: Avatars on the last topic
When you have too many requests on the same page, you will get that message. I believe there is no way to change the code to stop that message.
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.
Re: Avatars on the last topic
Look, i was using this code on my ex forum version which was phpbb2 and it was working fine.. But now i am trying to put it again and it shows this message in any page i go! This is my problem. Not only to the forum but anywhere i go it shows this message.. This is why i posted this message here...
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
Re: Avatars on the last topic
So this happens if you are not even on a forum hosted by Forumotion?
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.
Re: Avatars on the last topic
Yes and this is why its weird..
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
Re: Avatars on the last topic
Well then it is on your side, not Forumotion, if it is happening everywhere. Try clearing your browser's cache.
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.
Re: Avatars on the last topic
I did that but the weird of all is that whenever i put the code this happens.. if i remove the code it doesn't do it..
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
Re: Avatars on the last topic
If you're not using Forumotion you'd probably be better off asking on a site like Stack Overflow.
Dark Nexus- New Member
- Posts : 1
Reputation : 0
Language : English
Re: Avatars on the last topic
In that code you're using the AJAX .load() function. It doesn't look like it caches the loaded data either.
Depending on how many forums you have that this icon is being applied to, you're sending many requests to load a users avatar each time you're on the index. If you keep going over your request limit, I highly suggest you remove that code.
On the French support there is a tuto which caches the data so it only has to load on your first visit.
Please try this tuto: Avatar of who posted last on the forum index
You don't have to use it, it is only a suggestion.
Depending on how many forums you have that this icon is being applied to, you're sending many requests to load a users avatar each time you're on the index. If you keep going over your request limit, I highly suggest you remove that code.
On the French support there is a tuto which caches the data so it only has to load on your first visit.
Please try this tuto: Avatar of who posted last on the forum index
You don't have to use it, it is only a suggestion.
Re: Avatars on the last topic
At first, i am the founder of one forum and on the other one i am just an admin/helper. This is weird because when i had this on my ex-version (phpbb2) worked fine but now it doesn't. Is it possible, because the forum has a lot of categories to load these icons to show this message?
For the link you showed me this will work on both versions? Phpbb2 & Punbb?
For the link you showed me this will work on both versions? Phpbb2 & Punbb?
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
Re: Avatars on the last topic
Depending on how many "Last posts" are show on the index, if a lot, the amount of load functions would no doubt take a toll on your requests.
The link I provided works on all versions from what I tested.
The link I provided works on all versions from what I tested.
Re: Avatars on the last topic
ok solved.. i will post one more and bedtime!!
Topic can close!
Topic can close!
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
Re: Avatars on the last topic
Hello once again and thank you for opening this again.
The codes i provided at the first topic don't work on punbb. why is that?
i just realized that!! lol
The codes i provided at the first topic don't work on punbb. why is that?
i just realized that!! lol
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
Re: Avatars on the last topic
The selectors would need to be changed over to the ones used in punbb.
Here its is:
Here its is:
- Code:
$(document).on('ready', function() {
$('.statused td.tcr').prepend('<div class="avatar-index"><div>');
$('.statused td.tcr .avatar-index').each(function () {
var profileUser = $(this).parent().children('span').children('strong').children('a').attr('href');
$(this).html('<a href="' + profileUser + '" class="avatar-index-enlace"><img src="http://cdn1.iconfinder.com/data/icons/basicset/user_64.png" alt="No Avatar" /></a>');
$(this).children('a').load(profileUser + '#profile-advanced-right .main-content.clearfix.center img:eq(0)');
});
});
Re: Avatars on the last topic
Its appears that it shows it to the homepage but it doesnt show the image of the avatar...
forum: http://informationforum.forumgreek.com
forum: http://informationforum.forumgreek.com
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
Re: Avatars on the last topic
Your forum has a bit things different on it from default punbb, try this:
- Code:
$(document).on('ready', function() {
$('.statused td.tcr').prepend('<div class="avatar-index"><div>');
$('.statused td.tcr .avatar-index').each(function () {
var profileUser = $(this).parent().children('span').children('center').children('strong').children('a').attr('href');
$(this).html('<a href="' + profileUser + '" class="avatar-index-enlace"><img src="http://cdn1.iconfinder.com/data/icons/basicset/user_64.png" alt="No Avatar" /></a>');
$(this).children('a').load(profileUser + '#profile-advanced-right .main-content.clearfix.center img:eq(0)');
});
});
Re: Avatars on the last topic
You are the best!!!!!! I wish you all the thanks i can get from the universe!!!
Thanks, thanks, thanks, thanks!!!!!!
SOLVED!!!
Thanks, thanks, thanks, thanks!!!!!!
SOLVED!!!
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
Similar topics
» Avatars in the last topic #2
» (Only Topic) Missing Avatars
» Topic title/icon problem and round avatars
» Difference between read a topic and open a topic in permissions? And question about member attachments
» not access to topic by group member depend on topic icon.
» (Only Topic) Missing Avatars
» Topic title/icon problem and round avatars
» Difference between read a topic and open a topic in permissions? And question about member attachments
» not access to topic by group member depend on topic icon.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum