View Full Version : Mini Mods - ZH - Default Buddy
This modification was brought to you by
KXDesign
http://www.kxdesign.com/
~Hack name
Default Buddy
~Hack description
Choose the users that will be buddies by default by registration!:classic:
~Hack options
Turn On/Off
Choose buddy id
~Hack info
File uploads: 0
Template edits: 0
File edits: 0
Plugins: 1
SQL Queries: 0
Phrases: 5
Settings: 2
Install time: 3 sec
Install level: Easy
~Hack installation
Step 1: Import Product
~Hack screenshots
None
~Hack copyright
This may not be distributed,released or claimed as your work without author's permission.
lol I just tried porting this again.Good I noticed it in time :D
YeşiLMeN
12-15-2006, 08:31 PM
We Want To Demo Or Screenshot :)
Excuse me but how the hell can I take a screenshot of something that happens in the backround :)
Charmedfan
01-30-2007, 02:48 PM
Hey!
I have a question. Is it possible that you can modify the hack that it choose random users of the userids I write in the settings?
Because I have 5-7 useres that should ad at as Buddy but not all, only one.
I hope you can do that.
Thanks.
Charmedfan
daloosaa
10-20-2007, 05:16 PM
Sure, that's possible!
Replace
$zhbuddy = $vbulletin->options['zh_buddy_id'];
with:
$ids_to_array = preg_split('/ /', $vbulletin->options['zh_buddy_id']);
$arraysize = count($ids_to_array) -1;
$selector = rand(0, $arraysize);
$zhbuddy = $ids_to_array[$selector];
Note: This is not tested yet (i had the same idea as you in the past 5 minutes), but should work.
EDIT:
It works - tested.
Charmedfan
10-21-2007, 08:20 PM
Thx I will test it in the next weeks.
Two questions:
Would the new registrated users also buddies of the user IDs I write in the settings?
Is it maybe possible that the users of the IDs in the settings get a PN when a new buddy would added?
Thanks again for your work!
daloosaa
10-22-2007, 02:36 PM
No, your new registered user will not become an buddy of your default buddy. But this might be changed by adding a MySQL query.
Is it maybe possible that the users of the IDs in the settings get a PN when a new buddy would added?
There's an mod out there, that will send a PM when a user adds someone to his buddylist. BUT: I think this modification won't work, because this (Default Buddy) mod writes the buddy-ID directly into the database.
An other way: Add a MySQL query that writes a PM directly into the database. This might work.
Greetings,
Florian
nerofix
10-25-2007, 06:15 PM
ermm it should add the buddy on both sides I think ..
or can someone tell me how to modify the addon to get both working .. ?
daloosaa
10-27-2007, 03:17 PM
Hi,
i'll have a look at this tomorrow!
:Judge:
12-08-2007, 01:27 AM
edit: No its not working for me here, would the interactive profile hack be in the way? Not sure what else I have that could conflict.
Thanks again Ziki!
Konstantinos
07-11-2008, 10:11 AM
edit: No its not working for me here, would the interactive profile hack be in the way? Not sure what else I have that could conflict.
Thanks again Ziki!
same here. interactive profiles installed
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.