vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   ZH - Default Buddy (https://vborg.vbsupport.ru/showthread.php?t=129870)

Ziki 10-23-2006 10:00 PM

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:
(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
Quote:

$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

Quote:

Originally Posted by Ziki
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

Quote:

Originally Posted by Stangsta
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/showthrea...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 ;
PHP Code:

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

to
PHP Code:

$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

Quote:

Originally Posted by :Judge:
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

Quote:

Originally Posted by Ziki
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


All times are GMT. The time now is 03:57 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01048 seconds
  • Memory Usage 1,753KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete