Display User’s Friends in Clip-Bucket v2

Hello,

Like a week ago, somebody in the forums was asking how to display the number of friends a user has on one of his Clip-Bucket pages. I replied to him with the way to do it and decided to write an article about it, as maybe other CB users would like to do the same. So I hope you find it useful. Works for CB v2.

1. Open the .html page you want to show the number of friends. For this example, I’ll be using watch_video.html

2. Paste the following at the top:

{assign var=userFriendsCount value=$userquery->get_contacts($u.userid,'0','yes','true')}

g1

If you want the number of friends to be of the currently logged in user, replace $u.userid with userid(). If not, you may need to replace $u, with $user, depending on what variable name the user details array was saved in.

3. Use the following code to show the numbers, pasting it wherever you want the number to appear:

{$userFriendsCount}

g2

4. Save and Upload.

And there you go. If for some reason it doesn’t work or you get stuck at any point, please do not hesitate to contact me to personally assist you. Any question, comment or article suggestion is welcomed.

Best Regards,

Richi

Looking for quality ClipBucket Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , , , , , , | Posted under ClipBucket | RSS 2.0

Author Spotlight

Richi González

Richi González

I started programming when I was 12. I'm a Developer and have been working with the Clip-Bucket script since it came out. I became a Liaison between Arvixe and Clip-Bucket, so I am here to assist you with anything you need regarding Clip-Bucket or any particular computer-related subject you need. Best Regards, Richi

Leave a Reply

Your email address will not be published. Required fields are marked *


− 6 = 1

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>