Get Buddies
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #1
Get Buddies
Hey guys, I'm willing to add a list of buddies with their avatar to my profile. How can I do it?

Thank you.

[Image: 468x602b.png]
01-23-2011 11:12 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Get Buddies
Learn PHP, look through MyBB code and see how MyBB retrieves list of buddies, and stop getting others to do all the work for you.

Please show that you at least are able to understand the code and have tried to do this yourself.

My Blog
01-23-2011 11:31 AM
Find all posts by this user Quote this message in a reply
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #3
RE: Get Buddies
lol? Why so rude?
I understand the code but I can't code it...
I have added the {$buddy_list} but nothing showed up.

[Image: 468x602b.png]
01-23-2011 11:46 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #4
RE: Get Buddies
(01-23-2011 11:46 AM)Skiilz Wrote:  lol? Why so rude?
Why not?

(01-23-2011 11:46 AM)Skiilz Wrote:  I understand the code but I can't code it...
I have added the {$buddy_list} but nothing showed up.
Clearly, you don't understand the code.  {$buddy_list} is just a template variable, not any PHP retrieval code.  You need to look in files like misc.php

My Blog
01-23-2011 12:03 PM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #5
RE: Get Buddies
Skillz, you could always try looking in a plugin which shows the people who have made you their buddy, or visited a profile. Both of these are on mybb in the mods section for 1.4 From there you will be able to see what variables are used and what files are called and with a bit of patience you will figure it out.

I code a little bit - I'm not a php expert, but I study plugins and try and learn a new thing each time. Its fun, and a lot nicer than having to go around the internet cap in hand having to say please can you make me this.....

I looked at that pro-portal thing you wanted - now I have five pro_portal plugins, I have worked out how to make them whenever I like. Thats a great feeling.


[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 01-23-2011 12:45 PM by leefish.)
01-23-2011 12:42 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #6
RE: Get Buddies
I downloaded the buddies plugins. My question is: Can this be made using the php in templates or template conditionals?

[Image: 468x602b.png]
01-23-2011 11:41 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #7
RE: Get Buddies
Is there any reason why you don't want to use the plugin?

01-24-2011 03:11 AM
Find all posts by this user Quote this message in a reply
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #8
RE: Get Buddies
I lost my FTP password. :/ I asked my bro but he isn't at home he is traveling and he have the pass somewhere and when he arrives he will search for it.
But I'll test the profile buddies plugin and edit the html to fit my layout.

[Image: 468x602b.png]
(This post was last modified: 01-24-2011 06:19 AM by Skiilz.)
01-24-2011 06:03 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #9
RE: Get Buddies
You can always set up a local server to test with.

My Blog
01-24-2011 08:18 AM
Find all posts by this user Quote this message in a reply
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #10
RE: Get Buddies
I know I know. I did it. I edited the plugin HTML and it is the way I was looking for. Smile

[Image: 468x602b.png]
01-24-2011 08:51 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: