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)
-   -   VbBuddies RC 1 (https://vborg.vbsupport.ru/showthread.php?t=100457)

thumbsucker 03-31-2006 08:56 AM

This is a great plugin. Would be nice to get it working.

moonclamp 05-01-2006 07:55 PM

Quote:

Originally Posted by noonespecial
Shit; I thought everything was working .. HOWEVER, I discovered a bug.

Approve Wannabees doesn't work if the user doesn't have anyone on their buddy list yet. It only works if there is already a user on their buddy list.

I just dug this hack out after waiting a couple of months and wondered if anyone found a fix for this error at all?

Basically what happens is, if you try to approve a wannabee it works fine ... but only if you already have other buddies on your list. If your list is otherwise empty it returns a database error
Quote:

Originally Posted by SQL error
Invalid SQL:
SELECT userid,username FROM vb_user WHERE userid IN (9,);

(user ID 9 being the one trying to get approved)

moonclamp 05-03-2006 02:58 AM

OK, I know this is probably the wrong way to fix the error above, but I'm not a coder and it seems to work ...

Open the plugin

"Buddies: check buddyquota + resources + wannabees.:"

Look for the line:

Code:

$listbits2_query=$db->query_read("SELECT userid,username FROM ".TABLE_PREFIX."user WHERE userid IN (".implode(",",$vbulletin->GPC['listbits']).")");
Replace it with

Code:

$listbits2_query=$db->query_read("SELECT userid,username FROM ".TABLE_PREFIX."user WHERE userid IN (".implode(",0",$vbulletin->GPC['listbits']).")");
All I have done is insert a zero after the first comma in implode(",",$vbulletin->

moonclamp 05-03-2006 11:19 PM

Dammit! I've just found out that if you delete a wannabee then all that wannabee's other buddies get deleted from their list.

I give up.

I guess that's what happens when you try working with an unsupported hack.

waza 05-05-2006 06:44 PM

well, I already got that fixed, so tomorrow I'm just gonna post the fix in here.

moonclamp 05-05-2006 11:21 PM

Quote:

Originally Posted by waza
well, I already got that fixed, so tomorrow I'm just gonna post the fix in here.

Fantastic ... I will wait eagerly :)

noonespecial 05-07-2006 03:19 AM

Yes? No? Please!!!

noonespecial 05-07-2006 06:29 PM

Quote:

Originally Posted by moonclamp
Dammit! I've just found out that if you delete a wannabee then all that wannabee's other buddies get deleted from their list.

I give up.

I guess that's what happens when you try working with an unsupported hack.

I've had that happen no matter what - sometimes ALL the buddies get deleted off people's lists. I can't figure out exactly why though ..

I'd love to get this all fixed up. I've even offered $.

moonclamp 05-08-2006 01:39 AM

Quote:

Originally Posted by noonespecial
I'd love to get this all fixed up. I've even offered $.

I'd also be happy to donate once the job's finished ...

noonespecial 05-20-2006 03:53 AM

I think I'm officially abandoning this hack.


All times are GMT. The time now is 08:07 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.02502 seconds
  • Memory Usage 1,739KB
  • 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_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete