Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: live627 on October 15, 2009, 01:11:00 PM

Title: Buddy Page
Post by: live627 on October 15, 2009, 01:11:00 PM
Link to the mod (https://custom.simplemachines.org/index.php?mod=2204)

Buddy Page


Original Author: Arantor
SMF Version: 2.0.x
Mod Version: 2.1

Description:
This mod adds a Buddy Page to the main tab listing, so you can see all your buddies in one place.
Additionally if the admin enables it in permissions, you can see if your buddies also have you marked as a buddy and even whether you and your buddies have other buddies in common.

Thanks to the FamFamFam icon set, for the online/offline icon.

ChangeLog:
2.1 - 28 July, 2013
Updated to add support for Default Avatar Mod (Thanks to Joker)
Fixed some minor bugs

2.0 - December 28, 2012
Taken Over by Runic
Updated for 2.0.X

1.2 - November 9, 2009
Minor compatibility fix for RC2 public.

1.1 - October 31, 2009
Update for RC2 compatibility

1.0 - October 15, 2009
First release

Why Not Visit:
http://www.smfhacks.com (http://www.smfhacks.com/)
Title: Re: Buddy Page
Post by: Sabre™ on October 15, 2009, 01:15:29 PM
Very nice mate!
Cheers :)
Title: Re: Buddy Page
Post by: Marcus Forsberg on October 15, 2009, 01:16:00 PM
Very nice indeed. Keep it up, Arantor.
Title: Re: Buddy Page
Post by: Costa on October 15, 2009, 01:21:11 PM
Congrats Arantor!
Title: Re: Buddy Page
Post by: Smog on October 17, 2009, 04:38:05 AM
Very nice Arantor!  :)
Title: Re: Buddy Page
Post by: Hikkyz on October 18, 2009, 11:38:33 AM
it's very very very nice.

but i want this mod in SMF 1.1.10

can u help me ?
Title: Re: Buddy Page
Post by: Costa on October 18, 2009, 12:20:00 PM
Quote from: Arantor on October 15, 2009, 01:11:00 PM
This will not be back-ported to 1.1.
Title: Re: Buddy Page
Post by: Arantor on October 18, 2009, 12:49:55 PM
Quote from: Hikkyz on October 18, 2009, 11:38:33 AM
but i want this mod in SMF 1.1.10

As Costa quoted from my mod's page, I will not back port this to 1.1, not even as a paid project.

Bluntly put, while yes it could be done without too much work, I have no desire to then spend time every single day helping people with adding the tab to the main menu, which is what it would come to.

I love writing mods, but what I don't want is for in 6 months (or more) time still going over how to edit this one if I haven't added any new features to it. That's the reason I'm not backporting it to 1.1, and I never will.

If someone else wants the job of doing that, they're welcome to use whatever code from it they wish and perform the operation on it, with the caveat that I will not support the 1.1 version if I haven't written the final code.
Title: Re: Buddy Page
Post by: Antes on October 19, 2009, 03:34:58 AM
CuuuTE :) :) , really lovely ... & Thx for encourge ppl ,upgrade to SMF 2

Turkish Translation ( Based on XML ) , i'm glad if you add turkish.xml
( Small NoTe : I Also open topic in Turkish Section )

<?xml version="1.0"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>Arantor:BuddyPage</id>
<version>1.0</version>

<file name="$languagedir/Modifications.turkish.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['buddypage'] = 'Arkadaş Sayfası';
$txt['permissiongroup_buddylist'] = 'Arkadaş Listesi';
$txt['permissiongroup_simple_buddylist'] = 'Arkadaş Listesi';
$txt['permissionname_user_buddylist'] = 'Arkadaş Listelerine İzin Ver';
$txt['permissionhelp_user_buddylist'] = 'Seçilen grup üyelerinin forumdaki üyeleri arkadaş olarak eklemesini sağlar.';
$txt['permissionname_user_buddypage'] = 'Arkadaş Sayfalarına İzin Ver';
$txt['permissionhelp_user_buddypage'] = 'Kullanıcıların arkadaş listelerine ana sayfadan ulaşmalarına izin ver.';
$txt['permissionname_user_buddy_seeothers'] = 'Eğer kendi işaretlenmişse , kullanıcının görmesine izin ver';
$txt['permissionhelp_user_buddy_seeothers'] = 'Kullanıcının eklediği arkadaşların da onu listesine eklemesi (örn. eğer seni işaretlemişlerse)';
$txt['permissionname_user_buddy_seecommon'] = 'Ortak arkadaşları görebilsinler';
$txt['permissionhelp_user_buddy_seecommon'] = 'Kullanıcıların ortak arkadaşlarını görmesini sağlar (örn. senin ve onun arkadaş listesinde olan biri)';
$txt['buddies'] = 'Arkadaşlar';
$txt['buddiesincommon'] = 'Ortak Arkadaşlar';
$txt['user_has_you_buddy'] = 'Arkadaşı olarak işaretlemiş';
]]></add>
</operation>
</file>

<file name="$languagedir/Errors.turkish.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['cannot_user_buddylist'] = 'Arkadaş listesini kullanma izniniz bulunmamaktadır.';
$txt['cannot_user_buddypage'] = 'Arkadaşlarınızı görmeniz için arkadaş sayfasını kullanma izniniz bulunmamaktadır.';
$txt['no_buddies'] = 'Arkadaş listenizde arkadaş bulunmuyor.';
]]></add>
</operation>
</file>

<file name="$languagedir/Who.turkish.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['whoall_buddypage'] = 'Arkadaş sayfalarına bakıyor';]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.turkish-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['buddypage'] = 'Arkadaş Sayfası';
$txt['permissiongroup_buddylist'] = 'Arkadaş Listesi';
$txt['permissiongroup_simple_buddylist'] = 'Arkadaş Listesi';
$txt['permissionname_user_buddylist'] = 'Arkadaş Listelerine İzin Ver';
$txt['permissionhelp_user_buddylist'] = 'Seçilen grup üyelerinin forumdaki üyeleri arkadaş olarak eklemesini sağlar.';
$txt['permissionname_user_buddypage'] = 'Arkadaş Sayfalarına İzin Ver';
$txt['permissionhelp_user_buddypage'] = 'Kullanıcıların arkadaş listelerine ana sayfadan ulaşmalarına izin ver.';
$txt['permissionname_user_buddy_seeothers'] = 'Eğer kendi işaretlenmişse , kullanıcının görmesine izin ver';
$txt['permissionhelp_user_buddy_seeothers'] = 'Kullanıcının eklediği arkadaşların da onu listesine eklemesi (örn. eğer seni işaretlemişlerse)';
$txt['permissionname_user_buddy_seecommon'] = 'Ortak arkadaşları görebilsinler';
$txt['permissionhelp_user_buddy_seecommon'] = 'Kullanıcıların ortak arkadaşlarını görmesini sağlar (örn. senin ve onun arkadaş listesinde olan biri)';
$txt['buddies'] = 'Arkadaşlar';
$txt['buddiesincommon'] = 'Ortak Arkadaşlar';
$txt['user_has_you_buddy'] = 'Arkadaşı olarak işaretlemiş';
]]></add>
</operation>
</file>

<file name="$languagedir/Errors.turkish-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['cannot_user_buddylist'] = 'Arkadaş listesini kullanma izniniz bulunmamaktadır.';
$txt['cannot_user_buddypage'] = 'Arkadaşlarınızı görmeniz için arkadaş sayfasını kullanma izniniz bulunmamaktadır.';
$txt['no_buddies'] = 'Arkadaş listenizde arkadaş bulunmuyor.';
]]></add>
</operation>
</file>

<file name="$languagedir/Who.turkish-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['whoall_buddypage'] = 'Arkadaş sayfalarına bakıyor';]]></add>
</operation>
</file>

</modification>
Title: Re: Buddy Page
Post by: Arantor on October 23, 2009, 04:05:43 AM
Does that person have an avatar, and if so, what type of avatar? (is it an uploaded one, one of from an avatar pack, or an external URL?)
Title: Re: Buddy Page
Post by: C4G-TK on October 23, 2009, 04:08:22 AM
I'm sorry, Arantor.  I had installed your mod and the other new buddy mod.  It was the other mod that had the problem.  I replied in the wrong thread by mistake.  I apologize.  (That's why I removed my comment.)
Title: Re: Buddy Page
Post by: Arantor on October 23, 2009, 04:09:01 AM
No worries.

For the other mod, it will display a white square if the user has no avatar at present.
Title: Re: Buddy Page
Post by: JBlaze on October 23, 2009, 04:17:52 AM
Arantor, the readme says it supports 1.1.10 and the mod page says it supports 2.0 RC1.2

Which is it? ::)

;D
Title: Re: Buddy Page
Post by: Arantor on October 23, 2009, 04:24:00 AM
This is what I get for trying to be clever and reuse my template. Thanks for that JBlaze.
Title: Re: Buddy Page
Post by: JBlaze on October 23, 2009, 04:38:38 AM
Quote from: Arantor on October 23, 2009, 04:24:00 AM
This is what I get for trying to be clever and reuse my template. Thanks for that JBlaze.

No sweat. Happens to the best of us :)
Title: Re: Buddy Page
Post by: Afro on October 26, 2009, 07:42:01 AM
i installed and get this error

"Wrong value type sent to the database. Array of integers expected. (users) "

what is causing that ?
Title: Re: Buddy Page
Post by: Arantor on October 26, 2009, 07:44:31 AM
Can you look in the error log please, and confirm where this error occurs?
Title: Re: Buddy Page
Post by: Afro on October 26, 2009, 08:20:47 AM
http://www.afrowall.com/index.php?action=buddypage
Apply Filter: Only show the errors with the same message
Wrong value type sent to the database. Array of integers expected. (users)
Function: loadMemberData
Apply Filter: Only show the errors from this file
File: /home/afrowall/public_html/Sources/Load.php
Line: 994


Title: Re: Buddy Page
Post by: Arantor on October 26, 2009, 08:25:31 AM
And do you have some buddies when you click on the buddy page?

Also, what other mods do you have?
Title: Re: Buddy Page
Post by: Afro on October 26, 2009, 08:34:28 AM
Quote from: Arantor on October 26, 2009, 08:25:31 AM
And do you have some buddies when you click on the buddy page?

Also, what other mods do you have?
.


i have some buddies but nothing shows when i click on buddy page. just the error.
hmm; i have many mods installed. ultimate profile included.



.     Global Headers Footers      2.0 
2.    Aeva ~ Auto-Embed Video & Audio    6.9.99    
3.    AutoKeywords    1.1
4.    Buddy Page    1.0    
5.    Sitemap    2.0.0
6.    Favicon    1.2    
7.    Twitter mod    1.5    
8.    Ultimate Profile    0.9
9.    More Spiders    1.2    
10.    Pm_Informer    2.0.0.1
11.    Registration redirection    0.1
12.    Social Bookmarks    2.0
13.    ENotify    1.06
14.    Birthday Posts    0.10.2 Beta
15.    Add IP2Location to Track IP    1.2
16.    SMF Media Gallery    2.0
17.    RSS Feeder    1.1.1
18.    Welcome Topic Mod    2.0.2
19.    RSS Feed Icon    1.1    [ Uninstall ]
20.    Pretty URLs    1.0RC
21.    Ad Managment
22.    DisableTemplateEval
23.    SMF Links
24.    NoFollow All Links
25.    SMF Articles
Title: Re: Buddy Page
Post by: Arantor on October 26, 2009, 08:35:39 AM
Are buddy lists enabled on your site?
Title: Re: Buddy Page
Post by: Afro on October 26, 2009, 08:43:49 AM
yes,

cpan >>features n options >> Enable buddy lists. checked
Title: Re: Buddy Page
Post by: Arantor on October 26, 2009, 08:49:25 AM
Weird, very weird. Please can you attach your Load.php file here?

For reasons unknown, the list of buddies is not being loaded properly during Load.php, which is causing this error.
Title: Re: Buddy Page
Post by: Afro on October 26, 2009, 09:09:39 AM
here is the file
Title: Re: Buddy Page
Post by: Afro on October 26, 2009, 01:33:54 PM
maybe this could help.

I uninstalled it and installed the other buddy list mod.

It shows the same error but this tile it added something like

expecting (buddy_list).

i checked on the database but no table like buddy_list there.
Title: Re: Buddy Page
Post by: Arantor on October 26, 2009, 02:57:47 PM
Interesting, very interesting. Something is askew inside SMF then...

Both mods draw on the same place; it's not a table but a column in it.

If you check smf_settings, you'll find a long list of entries across the two columns in it, one of which should be 'enable_buddylist' on the left - is that listed and what does it say?
Title: Re: Buddy Page
Post by: Afro on October 26, 2009, 03:52:34 PM
Quote from: Arantor on October 26, 2009, 02:57:47 PM
Interesting, very interesting. Something is askew inside SMF then...

Both mods draw on the same place; it's not a table but a column in it.

If you check smf_settings, you'll find a long list of entries across the two columns in it, one of which should be 'enable_buddylist' on the left - is that listed and what does it say?

it is listed there .    enable_buddylist     1 .  i opened  it and the value is one
Title: Re: Buddy Page
Post by: Arantor on October 26, 2009, 03:58:24 PM
OK... now in the smf_members table, find your own row (by your user id, typically 1) and see the value for the buddy_list column. What does that contain? (Please feel free to PM me that if you're not willing to post it publicly, given that it would be able to identify everyone on your buddy list if they were to sign up on your forum)
Title: Re: Buddy Page
Post by: Afro on October 26, 2009, 04:03:27 PM
I saw something like this there

''''4,9,11,137,22,2978,3,119,6,134,4225,4223,5537,...
Title: Re: Buddy Page
Post by: Arantor on October 26, 2009, 04:10:41 PM
In quotes?
Title: Re: Buddy Page
Post by: Afro on October 26, 2009, 04:14:55 PM
Quote from: Arantor on October 26, 2009, 04:10:41 PM
In quotes?

i dont get what you mean here please.

meanwhile i see i have only 4 people on my buddy list according to my profile.
yet i see many member id numbers here on the database
Title: Re: Buddy Page
Post by: Arantor on October 26, 2009, 04:20:26 PM
Well, you've put "" at the start. Did it have that in the field, or was it just a list of numbers with commas?
Title: Re: Buddy Page
Post by: Afro on October 26, 2009, 04:22:16 PM
Quote from: Arantor on October 26, 2009, 04:20:26 PM
Well, you've put "" at the start. Did it have that in the field, or was it just a list of numbers with commas?


oh yes. i just copied and pasted it the way it is there
Title: Re: Buddy Page
Post by: Arantor on October 26, 2009, 04:23:50 PM
That shouldn't be there.

Do other users have "" too? (I don't want the numbers, just want to know if "" is there too)
Title: Re: Buddy Page
Post by: Afro on October 26, 2009, 04:25:41 PM
Quote from: Arantor on October 26, 2009, 04:23:50 PM
That shouldn't be there.
Do other users have "" too? (I don't want the numbers, just want to know if "" is there too)

hmm, others dont have the quotes, i was gonna tell you that now because i just looked closely.
i will remove the quotes and see what i will get
Title: Re: Buddy Page
Post by: Afro on October 26, 2009, 04:46:49 PM
Ok, the buddy page is showing up now.
Thanks a lot.
Title: Re: Buddy Page
Post by: Arantor on October 26, 2009, 04:48:48 PM
Good to know, though I'm also curious where the "" came from. Let me know if it happens again.
Title: Re: Buddy Page
Post by: Afro on October 26, 2009, 04:55:59 PM
Here is the scenario at the moment. I use Ultimate profile which i think has its own buddy structure.
The people i see on my buddy page are different from the people i added on my buddy list after installing ultimate profile.

what can i do about that ?
Title: Re: Buddy Page
Post by: Arantor on October 26, 2009, 04:59:19 PM
I don't know anything about Ultimate Profile, but if it does use something different I guess Buddy Page would have to be rewritten.
Title: Re: Buddy Page
Post by: SoLoGHoST on October 26, 2009, 05:04:34 PM
Great Mod Arantor!!

Sorry, I never actually used the Ultimate Profile mod before, so can't help ya with that one Afro :(
Title: Re: Buddy Page
Post by: Arantor on October 26, 2009, 05:08:40 PM
Thanks, SoLoGHoST! (Should I admit now this is the first time I ever made a template in a mod before...?)
Title: Re: Buddy Page
Post by: Afro on October 26, 2009, 05:15:37 PM
is there a way to set how many people to appear on the buddy page ?
Title: Re: Buddy Page
Post by: Arantor on October 26, 2009, 05:29:13 PM
No, it just displays everyone. It didn't occur to me to write pagination.

I *may* look at it for a future version, no guarantee though.
Title: Re: Buddy Page
Post by: SoLoGHoST on October 26, 2009, 08:20:35 PM
Quote from: Arantor on October 26, 2009, 05:08:40 PM
Thanks, SoLoGHoST! (Should I admit now this is the first time I ever made a template in a mod before...?)
LoL, there's a first time for everything... or so I hear ;)
Title: Re: Buddy Page
Post by: Afro on October 27, 2009, 06:35:45 AM
Ok, Arantor The Quotes inside the database showed up again this morning. Just on my own alone.
Title: Re: Buddy Page
Post by: Arantor on October 27, 2009, 01:20:52 PM
Quote from: Afro on October 27, 2009, 06:35:45 AM
Ok, Arantor The Quotes inside the database showed up again this morning. Just on my own alone.

Weird, very weird. Something is modifying that column, then. Have you added any new buddies yourself?
Title: Re: Buddy Page
Post by: Afro on October 27, 2009, 04:25:35 PM
yes, i added one more buddy. i removed the quotes 7 hours ago and its working normal for now
Title: Re: Buddy Page
Post by: Arantor on October 27, 2009, 07:31:14 PM
Curious, very curious.

Please can you attach your Sources/Profile-Modify.php file?
Title: Re: Buddy Page
Post by: Afro on October 28, 2009, 01:02:34 PM
here
Title: Re: Buddy Page
Post by: Xolkiyr on November 09, 2009, 03:32:50 AM
I've tried installing your mod manually.. followed all instructions.. but it seems that the language files aren't working for me. The button that's supposed to say Buddy Page is blank. The part of the permissions page that is supposed to be options for the Buddypage are blank as well.

Any ideas? I hate to feel like I'm becoming a thorn in your side with all my little problems. ^_^;;
Title: Re: Buddy Page
Post by: Arantor on November 09, 2009, 07:28:06 AM
What language are you using, and what theme(s) are you using?
Title: Re: Buddy Page
Post by: Xolkiyr on November 09, 2009, 11:12:35 AM
just plain English. As for theme, I'm using my own which is based off the default theme. So all the language files and most of the templates are being pulled from the default theme anyway.
Title: Re: Buddy Page
Post by: Arantor on November 09, 2009, 11:14:30 AM
Clear the file cache from Admin > Maintenance > Routine. If you have manually updated the files the cache will always need to be cleared.
Title: Re: Buddy Page
Post by: Xolkiyr on November 09, 2009, 11:18:03 AM
There we go, that fixed it. Thanks again :)
Title: Re: Buddy Page
Post by: 7s-1k on November 09, 2009, 03:17:29 PM
Dutch translation ;)

$txt['buddypage'] = 'Vrienden pagina';
$txt['permissiongroup_buddylist'] = 'Vrienden lijsten';
$txt['permissiongroup_simple_buddylist'] = 'Vrienden lijsten';
$txt['permissionname_user_buddylist'] = 'Vriendenlijst toestaan';
$txt['permissionhelp_user_buddylist'] = 'Sta gebruikers in deze groep toe om vrienden van het forum te selecteren.';
$txt['permissionname_user_buddypage'] = 'Vriendenlijst toestaan';
$txt['permissionhelp_user_buddypage'] = 'Sta gebruikers toe om hun vriendelijst te kiezen uit het menu.';
$txt['permissionname_user_buddy_seeothers'] = 'Sta de gebruiker toe om te kijken of ze zelf zijn gemarkeerd';
$txt['permissionhelp_user_buddy_seeothers'] = 'Sta de gebruiker toe om te kijken of ze door zijn/haar vrienden zijn gemarkeerd';
$txt['permissionname_user_buddy_seecommon'] = 'Gemeenschappelijke vrienden';
$txt['permissionhelp_user_buddy_seecommon'] = 'Sta de gebruiker toe om te zien of hij/zij gemeenschappelijke vrienden heeft.';
$txt['buddies'] = 'Vrienden';
$txt['buddiesincommon'] = 'Gemeenschappelijke vrienden';
$txt['user_has_you_buddy'] = 'Markeer als vriend';
Title: Re: Buddy Page
Post by: Arantor on November 09, 2009, 04:58:40 PM
Thanks for the translation - unfortunately there are a few other strings not in that list, so I can't update the list just yet :(

In the errors file (will be for Errors.dutch.php) the following will need translation:
$txt['cannot_user_buddylist'] = 'You are not permitted to use the buddy list.';
$txt['cannot_user_buddypage'] = 'You are not permitted to use the buddy page to view your buddies.';
$txt['no_buddies'] = 'You have no buddies on your buddy list.';


And in the Who's Online (for Who.dutch.php):
$txt['whoall_buddypage'] = 'Viewing their buddy page';

Really would love to get this one into the next version though, and if you can translate those last strings, I'd be able to, thanks :)
Title: Re: Buddy Page
Post by: Afro on November 16, 2009, 06:43:06 AM
Error . it installed well in rc2 but when i click the buddy page on menubar, ig loads a blank page.
then the log shows the below error.

http://www.afrowall.com/index.php?action=buddypage
Apply Filter: Only show the errors with the same message
Unable to load the 'main' template.


edit.

i removed the buddypage template and uploaded a new one. it solved the issue
Title: Re: Buddy Page
Post by: 7s-1k on November 16, 2009, 06:53:14 AM
Here ya go  :)

Errors.dutch.php

$txt['cannot_user_buddylist'] = 'Je hebt niet genoeg rechten om de vriendenlijst te gebruiken.';
$txt['cannot_user_buddypage'] = 'Je hebt niet genoeg rechten om te bekijken hoeveel vrienden je hebt.';
$txt['no_buddies'] = 'Je hebt geen vrienden op je vriendenlijst.';


Who.dutch.php

$txt['whoall_buddypage'] = 'Laat hen vriendenlijst zien';
Title: Re: Buddy Page
Post by: Arantor on November 16, 2009, 10:38:17 AM
@Afro
Weird, very weird. Though it might be possible to get that if you update SMF without updating the mod at the same time.

@7s-1k
Thanks - I'll roll them into the next version shortly.
Title: Re: Buddy Page
Post by: Sudhakar Arjunan on December 02, 2009, 01:12:52 PM
nice update for curve theme.
Title: Re: Buddy Page
Post by: mirahalo on December 23, 2009, 06:41:30 PM
Im getting the same   Wrong value type sent to the database. Array of integers expected. (buddy_list)   I have enable the buddy list,  and I use 2.0RC2, default theme,

Wrong value type sent to the database. Array of integers expected. (buddy_list)
Function: editBuddies

Archivo: /home/o/public_html/foro/Sources/Profile-Modify.php
Línea: 1467   in my members table under buddy_list  I also have comas ''''''   in  many users, I remove the comas from my id but that did not help,   I was using ultimate profile,  I unistalled it  long before I install this one,  dont know if thats got to do with this,  I know ultimate use a different table:  _buddys  so I really dont know
Title: Re: Buddy Page
Post by: Arantor on December 23, 2009, 06:46:27 PM
Hmm. Well *something* is messing with your buddy_list column.

It doesn't do it on a fresh RC1.2 or RC2, so it's gonna be something else. What other mods do you have?
Title: Re: Buddy Page
Post by: mirahalo on December 23, 2009, 07:00:03 PM
I got a few:

1. Signature Area BBCode Buttons 1.7 
2. Custom Field On Posting 1.2 
3. Share This Topic 1.3 
4. Advanced Contact Form 1.1 
5. Buddy Page 1.2 
6. PM to New Members 1.2 
7. Spoiler Tag 0.6b 
8. Member Color Link 3.0.7 
9. Advanced Reputation System 1.8 
10. SMF Media Gallery 2.0.1 
11. Load Standard Language 1.0.2 
12. SMG Spanish Translation 2.0.1 
13. Topic View Log 1.1
14. Thank-O-Matic 2.0 RC1 
15. PageRank BBCode 1.5 
16. eNinja - Admin Notes 0.9.1 
17. SimpleSEF 1.0.1 
18. Birthday Posts 0.11.2 Beta 
19. SubAccounts Mod 1.0.0 
20. Welcome Topic Mod 2.0.2
21. Internal_Links_Use_Same_Window 1.2 
22. YouTube BBCode 2.5.1 
23. SimplePortal 2.3.1 
24. Remove Reply Prefix 1.0 
25. Hide Tag 2.3.6 
26. Sitemap
Title: Re: Buddy Page
Post by: Azrael1 on January 03, 2010, 08:25:28 PM
is it possible to ad a bar like on the page Members with the possibility to sort your buddies alphabetical or by online Status?
Title: Re: Buddy Page
Post by: Arantor on January 03, 2010, 08:29:08 PM
Quote from: Azrael1 on January 03, 2010, 08:25:28 PM
is it possible to ad a bar like on the page Members with the possibility to sort your buddies alphabetical or by online Status?

Not without a substantial rewrite of the mod, which to be honest I don't really plan to add.
Title: Re: Buddy Page
Post by: Neverhurry on January 05, 2010, 04:44:33 PM
Very nice mod. Can it be integrated into the profile page? So that one clicks the profile page and right there will see all his friends avatars.
Title: Re: Buddy Page
Post by: Arantor on January 05, 2010, 04:49:52 PM
Quote from: neverhurry on January 05, 2010, 04:44:33 PM
Very nice mod. Can it be integrated into the profile page?

I don't plan to, no. More hassle than it's worth IMO.
Title: Re: Buddy Page
Post by: Scaala on March 22, 2010, 09:14:54 AM
I have an interesting result - I am not sure if it's specifically an error, or if it is working properly.  Most everything about the buddy page looks to be working right from the other pages, and on the buddy page if you have 1 or more buddies.

If you have zero buddies and click on the buddy page, the title bar shifts from showing "buddies" to saying "An Error Has Occured!" and below it reads "You have no buddies", which makes sense.

Is the error message a sign of an error?  Or is that what you would expect it to display?
Title: Re: Buddy Page
Post by: Arantor on March 22, 2010, 09:25:52 AM
No, that's as I originally wrote.
Title: Re: Buddy Page
Post by: Vincent Volmer on April 07, 2010, 07:01:57 PM
Hello,

Thanks for your great mod.

I have a small issue with a text string I guess. In the log there appears this error:

URL http://digiscrap.nl/imode/scraps_afdrukken/blurb_563.5.html
8: Undefined index: buddypage
File: /shared/usr/wzen1234567/DOMAIN/www.digiscrap.nl/HTML/Sources/Subs.php
Line: 4038


and

URL http://digiscrap.nl/wap2/overige_tips_en_vragen/digiscrap_event_2010_2175.25.html
8: Undefined index: buddypage
File: /shared/usr/wzen1234567/DOMAIN/www.digiscrap.nl/HTML/Sources/Subs.php
Line: 4038


The string $txt['buddypage'] = 'Vrienden'; is present in Modifications.dutch.php
I deleted the cach from SMF.

Maybe you can help?

Thanks, Vincent

Edit: Running: SMF2.0RC3
Title: Re: Buddy Page
Post by: Vincent Volmer on April 08, 2010, 01:28:55 PM
Hello,

I removed the SimpleSEF mod because of a lot of problems and also this error is gone.... So let's hope it will stay away from the error log  ;)

Thanks,

Vincent
Title: Re: Buddy Page
Post by: Robbo_ on April 09, 2010, 01:23:31 AM
I'll look into the problem when I get a chance to see if I can solve the conflict between the mods so you can use both.
Title: Re: Buddy Page
Post by: Vincent Volmer on April 09, 2010, 01:31:39 AM
Hello,

I installed Pretty URL's and it works fine and there are no errors in the log. With a lot of other mods I had problems/errors when SimpleSEF was installed.

So I'll stay with Pretty URLs. Also the Buddypage is working fine now!  :D

Thanks for your support!

Vincent
Title: Re: Buddy Page
Post by: Bruno36 on May 16, 2010, 04:11:04 AM
Hello!

When I click on my buddy I get an error

Wrong value type sent to the database. Array of integers expected. (users)
Title: Re: Buddy Page
Post by: Arantor on May 16, 2010, 06:34:25 AM
Yay for Ultimate Profile being broken. This has been an issue for months, it is a UP bug and one I reported to them ages ago.
Title: Re: Buddy Page
Post by: Yağız... on May 16, 2010, 06:45:38 AM
Quote from: Arantor on May 16, 2010, 06:34:25 AM
Yay for Ultimate Profile being broken. This has been an issue for months, it is a UP bug and one I reported to them ages ago.
:) I still don't know how to reproduce this, soooo I can't fix it ...
Title: Re: Buddy Page
Post by: Arantor on May 16, 2010, 07:22:33 AM
At some point UP is pushing quotes into the buddies field in SMF. Check wherever that field is being updated to see what data type is being pushed; I suspect you've got a query with extra quotes it's not supposed to have.
Title: Re: Buddy Page
Post by: Yağız... on May 16, 2010, 07:31:50 AM
Weird ... Because UP doesn't update anything on members table. I've commented SMF's editBuddies function (./Sources/Profile-Modify.php) for putting instead our buddy functions. I just put this instead:
global $sourcedir;
require_once($sourcedir . '/Buddies.php');
BuddiesMain();

And I don't think it'll break something but yeah ... I should make some tests again.
Title: Re: Buddy Page
Post by: uniektekniek on June 08, 2010, 08:08:56 PM
Quote from: 130860 on December 23, 2009, 06:41:30 PM
Im getting the same   Wrong value type sent to the database. Array of integers expected. (buddy_list)   I have enable the buddy list,  and I use 2.0RC2, default theme,

Wrong value type sent to the database. Array of integers expected. (buddy_list)
Function: editBuddies

Archivo: /home/o/public_html/foro/Sources/Profile-Modify.php
Línea: 1467   in my members table under buddy_list  I also have comas ''''''   in  many users, I remove the comas from my id but that did not help,   I was using ultimate profile,  I unistalled it  long before I install this one,  dont know if thats got to do with this,  I know ultimate use a different table:  _buddys  so I really dont know

im getting this same error.. also have UP installed.. which is see is most likely the cause.. but where would i find the "members table" to have a crack at deleting the extra comas anyway?
Title: Re: Buddy Page
Post by: Arantor on June 08, 2010, 08:13:31 PM
You'll find it in the database, likely under smf_members.

Note that it's not extra commas that are the problem, it's quote marks (commas are the ones at the bottom like so , which actually aren't a problem, but quotes like " are very much a problem)
Title: Re: Buddy Page
Post by: uniektekniek on June 09, 2010, 12:11:02 AM
at the risk of soundly just a little uneducated... where/how do i get in to edit the database? this is new to me..
Title: Re: Buddy Page
Post by: Afro on June 09, 2010, 04:52:52 AM
Edit the database for what ?
Title: Re: Buddy Page
Post by: Arantor on June 09, 2010, 05:20:38 AM
Quote from: uniektekniek on June 09, 2010, 12:11:02 AM
at the risk of soundly just a little uneducated... where/how do i get in to edit the database? this is new to me..

You'll need a tool like phpMyAdmin. It's not for the faint-hearted, and you are definitely advised to take a backup first.
Title: Re: Buddy Page
Post by: uniektekniek on June 09, 2010, 07:52:20 PM
yeah i think i might just let the people in the know fix this one.. haha.. cheers anyway!
Title: Re: Buddy Page
Post by: !RFAN on August 10, 2010, 08:57:59 PM
whenever i tried to open my Buddy Page i got this message

Wrong value type sent to the database. Array of integers expected. (users)

what should i do. i reinstalled the mod but no change occurred.
Title: Re: Buddy Page
Post by: VitProg on September 14, 2010, 04:00:36 AM
Russian translated
Title: Re: Buddy Page
Post by: Joker™ on October 11, 2010, 09:30:19 AM
Quote from: !RFAN on August 10, 2010, 08:57:59 PM
whenever i tried to open my Buddy Page i got this message

Wrong value type sent to the database. Array of integers expected. (users)

what should i do. i reinstalled the mod but no change occurred.
Just noticed today that my forum has also got the same problem.

Quote from: Arantor on June 08, 2010, 08:13:31 PM
You'll find it in the database, likely under smf_members.

Note that it's not extra commas that are the problem, it's quote marks (commas are the ones at the bottom like so , which actually aren't a problem, but quotes like " are very much a problem)
What changes exactly have to be made there, can anyone explain?
Title: Re: Buddy Page
Post by: Joker™ on October 13, 2010, 06:28:08 AM
Is there any support for this mod available?
Title: Re: Buddy Page
Post by: Yağız... on October 13, 2010, 07:49:26 AM
Find buddy_list at smf_members table. Remove everything except numbers and commas.
Title: Re: Buddy Page
Post by: !RFAN on October 19, 2010, 06:16:35 AM
i cant get u??? can u please update the mod?
Title: Re: Buddy Page
Post by: Oya on October 19, 2010, 07:52:03 AM
it isnt this mod that's broken or in need of updating
Title: Re: Buddy Page
Post by: !RFAN on October 20, 2010, 06:41:17 PM
okay but why it is not working for most of the users??
Title: Re: Buddy Page
Post by: Oya on October 20, 2010, 07:15:29 PM
because all the people it's broken for used ultimate profile which broke the buddy system in their forum
Title: Re: Buddy Page
Post by: Joker™ on October 21, 2010, 01:19:45 AM
Quote from: Yağız... on October 13, 2010, 07:49:26 AM
Find buddy_list at smf_members table. Remove everything except numbers and commas.
Thanks, working fine now ;).
Title: Re: Buddy Page
Post by: !RFAN on October 21, 2010, 10:07:14 AM
u mean we cant use both mods together?
Title: Re: Buddy Page
Post by: Oya on October 21, 2010, 10:58:49 AM
no, you cant use both mods together, as has been shown several times
Title: Re: Buddy Page
Post by: anakmacan on October 30, 2010, 10:38:17 PM
Quote from: Yağız... on October 13, 2010, 07:49:26 AM
Find buddy_list at smf_members table. Remove everything except numbers and commas.

Ive opened smf_members table, and then i clicked "Structure" (this is where to edit buddy_list right?). But i didnt find any number or comas, i only found "Text" like this :
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg295.imageshack.us%2Fimg295%2F6778%2Fbuddylist.jpg&hash=54d2c9d720c78cdde118d3d92424e27021901aed)

Anyone can help me with this ? im php blind lol,
thx in advanced..
Title: Re: Buddy Page
Post by: Oya on October 31, 2010, 06:26:51 AM
yes, the field type is text

hit "browse" for the table (not "structure") and look at the buddy_list column
Title: Re: Buddy Page
Post by: roonekoos on October 31, 2010, 06:35:30 AM
Quote from: !RFAN on October 21, 2010, 10:07:14 AM
u mean we cant use both mods together?

Both work fine on my forum
http://metal-world.biz

Title: Re: Buddy Page
Post by: anakmacan on November 01, 2010, 07:33:36 AM
Quote from: Oya on October 31, 2010, 06:26:51 AM
yes, the field type is text

hit "browse" for the table (not "structure") and look at the buddy_list column

Yup, browse, and then "Edit", and then what do i do next ?
Title: Re: Buddy Page
Post by: Oya on November 01, 2010, 07:38:44 AM
where did i say to touch that?

you don't touch that whatsoever

browse through the rows where you see each member's information and look at the column titled 'buddy_list'
Title: Re: Buddy Page
Post by: anakmacan on November 01, 2010, 07:41:57 AM
lol :D okay ill try that, thx
Title: Re: Buddy Page
Post by: anakmacan on November 01, 2010, 07:52:17 AM
HA!! it worked.. so ive noticed some members have extra coma on the front like ,34,36,25 so on, i removed the first coma and the row of numbers become 34,36,25, now everything is fixed. THX FOR THE HELP OYA :DDDD cant do nuttin w/o u dude.
Title: Re: Buddy Page
Post by: Laza on December 04, 2010, 01:39:50 PM
Can you please update this mod for SMF 2.0 RC4  :)
Title: Re: Buddy Page
Post by: Eclipse16V on December 29, 2011, 12:47:24 AM
Does this Mod run on SMF 2.0.2?
Title: Re: Buddy Page
Post by: live627 on December 29, 2011, 12:58:05 AM
http://custom.simplemachines.org/mods/index.php?mod=3068
Title: Re: Buddy Page
Post by: Deaks on July 28, 2013, 11:00:06 AM
With thanks to Joker™ (http://www.simplemachines.org/community/index.php?action=profile;u=226111) this mod has been updated to add support for his Default Avatar Mod :)
Title: Re: Buddy Page
Post by: Draffi on August 04, 2013, 03:22:04 PM
Did the new version a change in the SQL-DB, or is it enough, when i overwrite the PHP-Files?
Title: Re: Buddy Page
Post by: electricwildflower on August 09, 2013, 08:42:12 AM
Quick couple of questions for you i installed it on my test forum 2.0.4 all went well i can edit permissions etc but nothing shows on my navigation bar i am using menu editor light  & blackstorm theme if that has any issues or not with it.

also will this work with ultimate profile ?

Cheers
Title: Re: Buddy Page
Post by: Cat McFarlane on September 12, 2013, 10:15:22 PM
Hiya  :)

Reinstalled Buddy Page, then made it visible to users. Then the code shown in picture popped up, while on pc. Testing on ipad as test user, and when I clicked into buddy myself as admin, the same error message popped up.
Title: Re: Buddy Page
Post by: electricwildflower on September 13, 2013, 08:36:09 AM
Fixed the problem with menu editor light was as simple as creating a new button on the menu and adding "yourwebsite/forum/index.php?action=buddypage" as a external url. This will come in handy if anyone wants to create there own custom buttons or add it to a mod that edits the menu in one way or another.
Title: Re: Buddy Page
Post by: electricwildflower on December 05, 2013, 06:19:47 AM
Another quick question i have re done my sites theme, stripped away a few mods one of them being menu editor light, moved my forum out of it's sub directory etc etc. So anyway the buddies list isn't showing up on my menu i uninstalled it and reinstalled it twice but still shows nothing i even manually added the button to my menu but it still shows nothing.

The actually buddies page shows up fine just i carnt get the damn button to add to the menu. Your help would be most welcome here is a link to my test forums so you can see what i mean.

http://www.keepitrealkeepitgoth.com/test/index.php
Title: Re: Buddy Page
Post by: littlenicki on December 14, 2013, 06:20:51 AM
Very interesting mod! What code part could be usedf for displaying common buddies with SMF 1.1.X ? Thank you
Title: Re: Buddy Page
Post by: littlenicki on April 18, 2014, 08:02:20 PM
Bump
Title: Re: Buddy Page
Post by: Game.ruler on May 16, 2014, 02:48:18 AM
For anyone who is getting "Wrong value type sent to the database. Array of integers expected. (users)" due to value in buddy_list column like (,3,5,7,,9) etc, add this line :

$user_info['buddies'] = array_filter( $user_info['buddies'], 'strlen' );


Before :

if(!count($user_info['buddies']))
fatal_lang_error('no_buddies', false);

Title: Re: Buddy Page
Post by: Arantor on May 17, 2014, 04:04:41 PM
I'd wonder why your database is messed up like that in the first place since the normal buddy code in SMF does not do that.