Buddy Page

Started by live627, October 15, 2009, 01:11:00 PM

Previous topic - Next topic

live627

Link to the mod

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

Sabre™

Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Marcus Forsberg

Very nice indeed. Keep it up, Arantor.

Costa

Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."


Hikkyz

it's very very very nice.

but i want this mod in SMF 1.1.10

can u help me ?

Costa

Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

Arantor

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.

Antes

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>

Arantor

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?)

C4G-TK

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.)

-img removed-

Arantor

No worries.

For the other mod, it will display a white square if the user has no avatar at present.

JBlaze

Arantor, the readme says it supports 1.1.10 and the mod page says it supports 2.0 RC1.2

Which is it? ::)

;D
Jason Clemons
Former Team Member 2009 - 2012

Arantor

This is what I get for trying to be clever and reuse my template. Thanks for that JBlaze.

JBlaze

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 :)
Jason Clemons
Former Team Member 2009 - 2012

Afro

i installed and get this error

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

what is causing that ?

Arantor

Can you look in the error log please, and confirm where this error occurs?

Afro

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



Arantor

And do you have some buddies when you click on the buddy page?

Also, what other mods do you have?

Afro

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

Advertisement: