News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Buddies List

Started by live627, June 28, 2011, 07:30:42 PM

Previous topic - Next topic

live627

Link to Mod

Buddies List 1.0 by live627



Ever wondered why SMF is so hush-hush about who is your buddy? Looking for a simple way to change that? Use this mod which lists all the buddies of a given member.

Features:
  • A simple  list of buddies
  • Permission for viewing said list
  • A great example of using a few of the new hooks introduced in SMF2
  • And most importantly, no file edits!

    Why is the usage of hooks and no file edits so important?
  • No matter the language, no missing text and telltale errors all entries are present
  • No edit conflicts - it doesn't matter if this mod is installed first and uninstalled third; it will just work.
  • Less files to edit means less permissions hassle. Your Packages directory should still be word-writable, though.

Jessica.

Perfect! Installing right away :P
Testing Zone - SMF 2.0.7, default Curve
School & Chat - phpBB3, over 170 mods installed, official live forum

I use the latest version of Chrome

phpBB: Forum = a section; Board = whole site
SMF: Forum = whole site; Board = a section

ZerK

actually im in love with mods that use hooks, going to install this mod after my upgrade and some changes

Apllicmz

Good
Update Portugues Files




Jessica.

Quote from: ElPlayer on June 29, 2011, 12:40:49 AM
actually im in love with mods that use hooks, going to install this mod after my upgrade and some changes

I really like them too. Is there a list or something of all mods that use hooks?
Testing Zone - SMF 2.0.7, default Curve
School & Chat - phpBB3, over 170 mods installed, official live forum

I use the latest version of Chrome

phpBB: Forum = a section; Board = whole site
SMF: Forum = whole site; Board = a section

live627

No. But here's the thing: some mods that use hooks also use file edits. Like SimpleDesk 2.0 or Dream Portal 1.1. The truthful reason they use both is because SMF lacks so many hooks it's unbelievable. I, as well as Arantor, tried to convince Norv to add many more hooks into 2.0 but he refused, citing the feature freeze as the reason. Only, every concurrent RC has admittedly broken said rule. So history has proven that claim useless.

One thing I should note for mods that avoid file edits is that they generally do not deeply integrate with existing functionality such as deeply interacting with topics or PMs because of the blatant lack of hooks. They mainly add new sections to enhance SMF. Although, as SimpleColorizer shows, the buffer hook can be used to work wonders.

lovely_cellocan

i instaled but main theme can not loaded ! :(  i deleted mod but still same. i cant open my topic :(
www.essizforum.com [nofollow]
www.essizforum.net
www.essizforum.org
www.essizforum.net
www.essizforum.org
www.essizforum.net
www.essizforum.org
www.essizforum.net
www.essizforum.org

live627

Can you open your own support topic in the SMF2 support area? I doubt this mod caused it.

live627

1.0.1 - July 1, 2011
! Buddies in common would throw an error sometimes
* Simplified code

Bugo

Help tips are not displayed.

zzuzu

Hello,

I need help. I can't see permissions anywhere. Where they should be? Thank you for the answer.

Eclipse16V

Thanks for this nice Mod.
I worked with:
SMF 2 in German

Shop:
SID Giessen

Eclipse16V

How can I delete on of this links?
I worked with:
SMF 2 in German

Shop:
SID Giessen

live627

Find and remove from BuddiesList.php

$context['linktree'][] = array(
'url' => $scripturl . '?action=profile;area=buddieslist',
'name' => $txt['buddieslist']
);

hcfwesker

#14
smf 2.0.2

This is a very cool MOD.  But after installing ( no install errors) , when I view another members buddy list, I get about 145 errors in the error log.  Added attached pic below : The member's name doesn't appear next to the user icon ( circled in orange)  and the list of common buddies, you can tell not all names are loaded cause of the excessive commas, circled in green.

That's why i believe the errors are coming from.

Today at 06:54:01 AM
313655cb953c3995ea01286760825277
Type of error: Undefined

http://www.brawldomain.com/index.php?action=profile;area=buddieslist;u=1707

8: Undefined index: 3702

File: /home/xxxxxxx/public_html/Themes/default/BuddiesList.template.php
Line: 30


8: Undefined index: 3702

^  that line has a different number at the end for each member's id not found.

Would pretty URLs have anything to do with the errors?  I only ue pretty URLs for profiles, so not sure if that could be what is causing the problem?


live627

I guess members might have buddiies that have removed their  accounts.

hcfwesker

Can't be that because members cant remove their own accounts.  and only members I remove are unactivated accounts older than 30 days.

live627

I'll look into this further later when I have some free time.

Eclipse16V

Quote from: live627 on January 25, 2012, 12:29:12 AM
Find and remove from BuddiesList.php

$context['linktree'][] = array(
'url' => $scripturl . '?action=profile;area=buddieslist',
'name' => $txt['buddieslist']
);

Thanks

Quote from: hcfwesker on January 25, 2012, 07:59:32 AM
smf 2.0.2

This is a very cool MOD.  But after installing ( no install errors) , when I view another members buddy list, I get about 145 errors in the error log.  Added attached pic below : The member's name doesn't appear next to the user icon ( circled in orange)  and the list of common buddies, you can tell not all names are loaded cause of the excessive commas, circled in green.

That's why i believe the errors are coming from.

Today at 06:54:01 AM
313655cb953c3995ea01286760825277
Type of error: Undefined

http://www.brawldomain.com/index.php?action=profile;area=buddieslist;u=1707

8: Undefined index: 3702

File: /home/xxxxxxx/public_html/Themes/default/BuddiesList.template.php
Line: 30


8: Undefined index: 3702

^  that line has a different number at the end for each member's id not found.

Would pretty URLs have anything to do with the errors?  I only ue pretty URLs for profiles, so not sure if that could be what is causing the problem?


Same error

Quote from: live627 on January 25, 2012, 06:21:14 PM
I'll look into this further later when I have some free time.
Thanks
I worked with:
SMF 2 in German

Shop:
SID Giessen

RizAIR

Thank you for this mod.

Quote from: hcfwesker on January 25, 2012, 07:59:32 AM
The member's name doesn't appear next to the user icon.

I have this problem too in 2.0.2. Was solution ever found?

Advertisement: