01-23-2011, 11:12 AM
01-23-2011, 11:31 AM
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.
Please show that you at least are able to understand the code and have tried to do this yourself.
01-23-2011, 11:46 AM
lol? Why so rude?
I understand the code but I can't code it...
I have added the {$buddy_list} but nothing showed up.
I understand the code but I can't code it...
I have added the {$buddy_list} but nothing showed up.
01-23-2011, 12:03 PM
(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...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
I have added the {$buddy_list} but nothing showed up.
01-23-2011, 12:42 PM
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 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.
01-23-2011, 11:41 PM
I downloaded the buddies plugins. My question is: Can this be made using the php in templates or template conditionals?
01-24-2011, 03:11 AM
Is there any reason why you don't want to use the plugin?
01-24-2011, 06:03 AM
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.
But I'll test the profile buddies plugin and edit the html to fit my layout.
01-24-2011, 08:18 AM
You can always set up a local server to test with.
01-24-2011, 08:51 AM
I know I know. I did it. I edited the plugin HTML and it is the way I was looking for.