The Arcive of vBulletin Modifications Site. |
|
ZH - Default Buddy Details »»
|
|||||||||||||||||||||||||
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
~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. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
~Reserved~
|
|
#3
|
||||
|
||||
|
lol I just tried porting this again.Good I noticed it in time
|
|
#4
|
|||
|
|||
|
We Want To Demo Or Screenshot
|
|
#5
|
||||
|
||||
|
Excuse me but how the hell can I take a screenshot of something that happens in the backround
|
|
#6
|
|||
|
|||
|
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 |
|
#7
|
||||
|
||||
|
No sorry
|
|
#8
|
|||
|
|||
|
Sure, that's possible!
Replace Code:
$zhbuddy = $vbulletin->options['zh_buddy_id']; Code:
$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];
EDIT: It works - tested. |
|
#9
|
|||
|
|||
|
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! |
|
#10
|
|||
|
|||
|
No, your new registered user will not become an buddy of your default buddy. But this might be changed by adding a MySQL query.
Quote:
An other way: Add a MySQL query that writes a PM directly into the database. This might work. Greetings, Florian |
![]() |
|
|