How many friends do you have?
Description
With this tutorial, you will be able to show how many friends you have.
Set up
Here are the codes that you have to copy/paste in a new widget!

phpBB3
- Code:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script><script>
jQuery.get('/profile.forum?mode=viewprofile&u={USERNAME}', function(data) {
html = jQuery('#profile-advanced-right .module:eq(1) .inner div:eq(1)', data).html();
jQuery('#friends_list').html(html);
});
</script><center><div id="friends_list"></div></center>
phpBB2
- Code:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script><script>
jQuery.get('/profile.forum?mode=viewprofile&u={USERNAME}', function(data) {
html = jQuery('.forumline:eq(3) .row1', data).html();
jQuery('#friends_list').html(html);
});
</script><center><div id="friends_list"></div></center>
PunBB
- Code:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script><script>
jQuery.get('/profile.forum?mode=viewprofile&u={USERNAME}', function(data) {
html = jQuery('#profile-advanced-right .module:eq(2) .main-content', data).html();
jQuery('#friends_list').html(html);
});
</script><center><div id="friends_list"></div></center>
Invision
- Code:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script><script>
jQuery.get('/profile.forum?mode=viewprofile&u={USERNAME}', function(data) {
html = jQuery('#profile-advanced-right .module:eq(2) .box-content', data).html();
jQuery('#friends_list').html(html);
});
</script><center><div id="friends_list"></div></center>
Technical problems
![]() | The tutorial was tested with all forum versions and with the browser Mozilla Firefox; If you notice that the tutorial doesn't work for a browser or for a version of forum (PhpBB2, PhpBB3, PunBB, Invision) contact an administrator and we will fill this field with your reporting. Thanks, the staff |
![]() | For every problem or question please, contact us in the section Support for the tutorials, The staff will answer you as soon as it is possible... |
Friendly,
The team of the Forum of Codes.