PDA

View Full Version : ZH - Default Buddy


Ziki
10-23-2006, 10:00 PM
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:
(Works in 3.6)

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

Ziki
10-24-2006, 07:27 PM
~Reserved~

Lionel
10-24-2006, 07:43 PM
The way you have it set, you are making it incompatible with other hacks inserting buddies by wiping it out. Use this instead
$db->query("
UPDATE " . TABLE_PREFIX . "usertextfield
SET buddylist = IF(buddylist <> '', CONCAT(buddylist, ' ', 'YOURADMINID'),
'YOURADMINID')
WHERE userid = '$userid';
");

P.S. I was using the same code you posted all along. Psionic Vision corrected it for me. So the code I posted is his in reality.

Ziki
10-25-2006, 03:24 AM
I think you're right.I will change to your code.

:Judge:
10-25-2006, 03:48 PM
Install clicked, just waiting for for the first update. ;)

Thanks much for this hack, I have been looking for this!

Ziki
10-25-2006, 05:22 PM
It was actualy made for your request :)

Stangsta
10-25-2006, 06:10 PM
Has it been fixed from the issue above? If so, im gonna use this.

:Judge:
10-25-2006, 06:28 PM
It was actualy made for your request :)

Awesome!!, thank you again very much. I believe this will be a most useful addition for many communities.

Ziki
10-25-2006, 07:01 PM
Has it been fixed from the issue above? If so, im gonna use this.

Yes in 1.0.1

bada_bing
10-25-2006, 11:15 PM
Holy Moly thanks I will install shortly once I get an issue worked out with my site

Ziki
10-26-2006, 11:56 AM
Hope you fix it soon :)

:Judge:
10-27-2006, 03:14 AM
Heya Ziki I installed and as far as I can tell I did it just right, made sure it was on and set my user id but it didn't work today.

For the user id I just put 1

I do have a couple of hacks for the buddies already, could that be a problem? Here is links to those:

https://vborg.vbsupport.ru/showthread.php?t=105302
https://vborg.vbsupport.ru/showthread.php?t=104872&page=10

Paul M
10-27-2006, 03:45 AM
His version 1.0.1 won't work, he has commented out two lines he needs.

change these two lines ;

//$zhbuddy = $vbulletin->options['zh_buddy_id'];
//$zhuserid = $vbulletin->userinfo['userid'];

to

$zhbuddy = $vbulletin->options['zh_buddy_id'];
$zhuserid = $vbulletin->userinfo['userid'];

Ziki
10-27-2006, 03:53 AM
Oh right my bad.

:Judge:
10-27-2006, 10:46 AM
Paul thank you much for taking out the time to look at this.

OK Ziki it's a new day gots me fingers crossed.

O'yeah I just made the edit to the product, should I rewrite this or is the edit good?

Ziki
10-27-2006, 10:52 AM
Paul thank you much for taking out the time to look at this. :D

OK Ziki it's a new day gots me fingers crossed. ;)

I don't get that part about me :alien:

:Judge:
10-27-2006, 11:44 PM
I don't get that part about me :alien:

Yep it works just fine!!

Ziki
10-28-2006, 08:58 AM
Right.I though it meant something else :D

Shanj
11-15-2006, 09:56 PM
I don't have guests or users registering. I create all user accounts and send my members their login info to use.

Can I use this to create a default buddies list for my members?

Ziki
11-17-2006, 12:02 PM
Nope this wouldn't work that way

bada_bing
11-27-2007, 06:32 PM
Future use