MyBB Hacks

Full Version: Get Buddies
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys, I'm willing to add a list of buddies with their avatar to my profile. How can I do it?

Thank you.
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.
lol? Why so rude?
I understand the code but I can't code it...
I have added the {$buddy_list} but nothing showed up.
(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
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.
I downloaded the buddies plugins. My question is: Can this be made using the php in templates or template conditionals?
Is there any reason why you don't want to use the plugin?
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.
You can always set up a local server to test with.
I know I know. I did it. I edited the plugin HTML and it is the way I was looking for. Smile
Reference URL's