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)

Detomah 11-11-2005 04:52 PM

Quote:

Originally Posted by trackpads
Please! Thank you very much!!

No worries, they are only temp fixes though, i'm sure the finished product will be much smoother when it's done.

Ok, open the MEMBERINFO template:

Find the following code:
Code:

<!-- Start Buddies Hack -->
                        <if condition="$vboptions['buddieslist_active'] AND $userinfo['buddiesliststatus']">                       
                        <fieldset class="fieldset">
                                <legend>$vbphrase[buddies]</legend>
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <tr>
                                        <td>
                                                $vbphrase[totalbuddies]: <strong>$buddyinoutcounter</strong>
                                        </td>
                                </tr>
                                <tr>
                                        <td><a href="buddies.php?$session[sessionurl]u=$userinfo[userid]">$vbphrase[viewmemberbuddies]</a></td>
                                </tr>
                                </table>
                        </fieldset>
                        </if>
                        <!-- End Buddies Hack -->

And replace it with:

Code:

                        <!-- Start Buddies Hack -->
                        <if condition="$vboptions['buddieslist_active'] AND $userinfo['buddiesliststatus']">                       
                        <fieldset class="fieldset">
                                <legend>$vbphrase[buddies]</legend>
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <tr>
                                        <td>
                                                <a href="buddies.php?$session[sessionurl]u=$userinfo[userid]">Total Buddies</a> <strong>$buddyinoutcounter</strong>
                                        </td>
                                </tr>
                                </table>
                        </fieldset>
                        </if>
                        <!-- End Buddies Hack -->

Then save it, that's that bit done.

That'll give you a link from your members info page to the buddy page.

Ok, now open the postbit or postbit_legacy template, which ever you use:

Find the following code:
Code:

        <if condition="$post['userid'] AND $show['member']">
        <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
        </if>

Add underneath:
Code:

        <if condition="$vboptions['buddieslist_active']">
        <tr><td class="vbmenu_option"><a href="buddies.php?$session[sessionurl]&amp;u=$post[userid]"><phrase 1="$post[username]">View {$post[username]}'s Buddy Page</phrase></a></td></tr>
        </if>

Then save it, that's that done.

That gives you a link from your postbit popup to the buddy page.

Ok now open the navbar template:

Find the following code:
Code:

                <if condition="$show['member']">
                        <td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
                </if>

Add underneath:
Code:

                        <if condition="$vboptions['buddieslist_active']">
                        <td class="vbmenu_control"><a href="buddies.php?$session[sessionurl]&amp;u=$post[userid]">Buddy Page</a></td>
                </if>

And save it, that's that done.

That'll add a link in the forum navbar to the buddy page.

Ok, that should be it, it should be pretty straight forward to do.

I'm sure Wasa will be along before to long with these built into the script. :)

Edit: I'll have a little play with the buddy counter, I think that may have to be coded into the actual files though and if so I won't bother as it would only need taking back out once Wasa is done updating it. :)

waza 11-11-2005 05:01 PM

updated to beta 3 lot's of new features (see first post)

Next version will contain:
More expended wannabee approval / unapproval
Limit amount of buddies per usergroup
some other things.

Detomah 11-11-2005 05:06 PM

Quote:

Originally Posted by waza
updated to beta 3 lot's of new features (see first post)

Next version will contain:
More expended wannabee approval / unapproval
Limit amount of buddies per usergroup
some other things.

Nice one. :)

But Bah... I knew that would happen just after I posted that above. :p

waza 11-11-2005 05:40 PM

hehe, btw, screens or updated too. Only the admin options doesn't include some of the new things.

I'll also try to add pm function in next version (what will be a RC)

noonespecial 11-11-2005 07:03 PM

When I tried to install this product, i got a database error:

HTML Code:

Database error in vBulletin 3.5.1:

Invalid SQL:

                                INSERT INTO setting
                                (varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
                                VALUES
                                (
                                        'buddieslist_active',
                                        'buddieslist',
                                        '1',
                                        '1',
                                        'free',
                                        'yesno',
                                        0,
                                        0,
                                        1,
                                        'budiehack'
        ),
        (
                                        'buddieslist_closedmessage',
                                        'buddieslist',
                                        'Sorry, but the buddies list is closed for maintenance. Please check back soon.',
                                        'Sorry, but the buddies list is closed for maintenance. Please check back soon.',
                                        'free',
                                        'textarea',
                                        10,
                                        0,
                                        1,
                                        'budiehack'
        ),
        (
                                        'buddieslist_linelimit',
                                        'buddieslist',
                                        '5',
                                        '3',
                                        'free',
                                        '',
                                        20,
                                        0,
                                        1,
                                        'budiehack'
        ),
        (
                                        'buddieslist_perpagelimit',
                                        'buddieslist',
                                        '40',
                                        '9',
                                        'free',
                                        '',
                                        30,
                                        0,
                                        1,
                                        'budiehack'
        ),
        (
                                        'buddieslist_informationtext',
                                        'buddieslist',
                                        '1',
                                        '1',
                                        'free',
                                        'yesno',
                                        40,
                                        0,
                                        1,
                                        'budiehack'
        ),
        (
                                        'buddieslist_enablepmrequest',
                                        'buddieslist',
                                        '1',
                                        '1',
                                        'free',
                                        'yesno',
                                        60,
                                        0,
                                        1,
                                        'budiehack'
        ),
        (
                                        'buddieslist_activebuddyindicator',
                                        'buddieslist',
                                        '1',
                                        '1',
                                        'free',
                                        'yesno',
                                        70,
                                        0,
                                        1,
                                        'budiehack'
        ),
        (
                                        'buddieslist_displayoptions',
                                        'buddieslist',
                                        'Array',
                                        '',
                                        'free',
                                        '<input type=\\\"hidden\\\" name=\\\"setting[$setting[varname]][]\\\" value=\\\"0\\\" />\r\n<table cellpadding=\\\"0\\\" cellspacing=\\\"0\\\" border=\\\"0\\\">\r\n<tr valign=\\\"top\\\">\r\n<td class=\\\"smallfont\\\" nowrap=\\\"nowrap\\\">\r\n<label for=\\\"buddydisplay1\\\"><input type=\\\"checkbox\\\" name=\\\"setting[$setting[varname]][]\\\" id=\\\"buddydisplay1\\\" value=\\\"1\\\" tabindex=\\\"1\\\" \" . iif(bitwise($setting[\'value\'], 1), \'checked=\"checked\"\') . \" />$vbphrase[birthday]</label><br />\r\n<label for=\\\"buddydisplay2\\\"><input type=\\\"checkbox\\\" name=\\\"setting[$setting[varname]][]\\\" id=\\\"buddydisplay2\\\" value=\\\"2\\\" tabindex=\\\"1\\\" \" . iif(bitwise($setting[\'value\'], 2), \'checked=\"checked\"\') . \" />$vbphrase[age]</label><br />\r\n<label for=\\\"buddydisplay4\\\"><input type=\\\"checkbox\\\" name=\\\"setting[$setting[varname]][]\\\" id=\\\"buddydisplay4\\\" value=\\\"4\\\" tabindex=\\\"1\\\" \" . iif(bitwise($setting[\'value\'], 4), \'checked=\"checked\"\') . \" />$vbphrase[join_date]</label><br />\r\n</td>\r\n<td>&nbsp;</td>\r\n<td class=\\\"smallfont\\\" nowrap=\\\"nowrap\\\">\r\n<label for=\\\"buddydisplay8\\\"><input type=\\\"checkbox\\\" name=\\\"setting[$setting[varname]][]\\\" id=\\\"buddydisplay8\\\" value=\\\"8\\\" tabindex=\\\"1\\\" \" . iif(bitwise($setting[\'value\'], 8), \'checked=\"checked\"\') . \" />$vbphrase[post_count]</label><br />\r\n<label for=\\\"buddydisplay16\\\"><input type=\\\"checkbox\\\" name=\\\"setting[$setting[varname]][]\\\" id=\\\"buddydisplay16\\\" value=\\\"16\\\" tabindex=\\\"1\\\" \" . iif(bitwise($setting[\'value\'], 16), \'checked=\"checked\"\') . \" />$vbphrase[user_title]</label><br />\r\n<label for=\\\"buddydisplay32\\\"><input type=\\\"checkbox\\\" name=\\\"setting[$setting[varname]][]\\\" id=\\\"buddydisplay32\\\" value=\\\"32\\\" tabindex=\\\"1\\\" \" . iif(bitwise($setting[\'value\'], 32), \'checked=\"checked\"\') . \" />$vbphrase[last_visit]</label><br />\r\n</td>\r\n<td>&nbsp;</td>\r\n<td class=\\\"smallfont\\\" nowrap=\\\"nowrap\\\">\r\n<label for=\\\"buddydisplay64\\\"><input type=\\\"checkbox\\\" name=\\\"setting[$setting[varname]][]\\\" id=\\\"buddydisplay64\\\" value=\\\"64\\\" tabindex=\\\"1\\\" \" . iif(bitwise($setting[\'value\'], 64), \'checked=\"checked\"\') . \" />$vbphrase[avatar]</label><br />\r\n<label for=\\\"buddydisplay128\\\"><input type=\\\"checkbox\\\" name=\\\"setting[$setting[varname]][]\\\" id=\\\"buddydisplay128\\\" value=\\\"128\\\" tabindex=\\\"1\\\" \" . iif(bitwise($setting[\'value\'], 128), \'checked=\"checked\"\') . \" />$vbphrase[online_status]</label><br />\r\n</td>\r\n</tr>\r\n</table>',
                                        80,
                                        0,
                                        1,
                                        'budiehack'
        ),
        (
                                        'buddy_avatarresize',
                                        'buddieslist',
                                        '',
                                        '',
                                        'free',
                                        'yesno',
                                        90,
                                        0,
                                        1,
                                        'budiehack'
        ),
        (
                                        'buddy_avatarresizesize',
                                        'buddieslist',
                                        '',
                                        '',
                                        'number',
                                        '',
                                        100,
                                        0,
                                        1,
                                        'budiehack'
        ),
        (
                                        'buddy_showinprofile',
                                        'buddieslist',
                                        '',
                                        '',
                                        'free',
                                        'yesno',
                                        110,
                                        0,
                                        1,
                                        'budiehack'
        );

MySQL Error  : Duplicate entry 'buddieslist_active' for key 1
Error Number : 1062
Date        : Friday, November 11th 2005 @ 04:15:57 PM
Script      : [url]http://www.absolutepunk.net/admincp/plugin.php[/url]
Referrer    : [url]http://www.absolutepunk.net/admincp/plugin.php?do=productadd[/url]
Classname    : vb_database


waza 11-11-2005 07:11 PM

Uhu, I checked this on a board who had the vb 3.0.x installed and upgraded,
I'll check what to do for boards that upgrade. Will come to you back tomorrow, srry for this error, didn't checked that before....

Benj 11-11-2005 07:27 PM

sorry where does this online offlinebuddies thing show i mean on what page. i recon it could be cool onthe user cp page if it isnt already there :D

cheers for this product W

noonespecial 11-11-2005 07:45 PM

Quote:

Originally Posted by waza
Uhu, I checked this on a board who had the vb 3.0.x installed and upgraded,
I'll check what to do for boards that upgrade. Will come to you back tomorrow, srry for this error, didn't checked that before....

No problem man, thanks for checking it out for me - really appreciate the time and effort you put into making hacks for all of us.

FleaBag 11-11-2005 07:46 PM

Hey seems to be working well now. An option to show Profile Picture would be nice. ;)

There are also still a couple of hard coded phrases. 'There are no buddies for this member at this time.' for example. :)

Cheers!

FleaBag 11-11-2005 08:21 PM

Um just realised something too. The buddy list on the bottom of the page is showing all of my buddies on everyone's profiles! ;)

waza 11-12-2005 07:30 AM

Ow, daimned I already know the cause of that, for testing I changed $userinfo to $vbulletin->userinfo, so everywhere It will show your buddies, will upload a new package this afternoon also with an uninstaller for people who upgraded their board from vb 3.0.x with this hack (like noonespecial)

waza 11-12-2005 08:42 AM

<u>12-november-2005:
A fix and an uninstaller for members with vb 3.0.x versions .</u>
For members who had the vb 3.0.x version and upgraded their board:
first run the uninstaller and then do a fresh install
For all others:
overwrite the product.

The uninstaller hasn't been tested because I haven't a upgraded board with the old version, but it just is the old installer with only uninstall options that are changed to vb 3.5 api, so It must work.

Grz,
seba

Wordplay 11-12-2005 11:22 AM

in your before before last attachment:
https://vborg.vbsupport.ru/attachment.php?s=94
is it possible to just have it displayed on user's page directly at the very bottom or so? and the online, offline, and wannabees are displayed with a seriously bad looking scroll through on the side and on the bottom, anyway to get rid of that?

waza 11-12-2005 11:39 AM

invalid attachment url, but I guess you mean the one that is displayed in memberslist

The last one is displayed in members profile

But you first have to activate (I guess, don't know standard values of settings) these things under vbulletin options->buddies list in admincp

Just finished the maximum amount of buddies, Can be useful if you have a vip membership or something...

Wordplay 11-12-2005 11:50 AM

hey waza i just updated my question, thanks for replying so swiftly
Quote:

s it possible to just have the page you get when you click on check out their buddies displayed on user's profile directly at the very bottom or so? and the online, offline, and wannabees are displayed with a seriously bad looking scroll through on the side and on the bottom, anyway to get rid of that?

waza 11-12-2005 12:04 PM

Hmm, i did that cause if you have a large amount of buddies it would really mess up the page.
however, if you want the scrolls away open template: buddies_profile and delete the <div> tags around $wannabeebits $budonbits and $budoffbits
grz,
seba

Wordplay 11-12-2005 12:12 PM

ok thanks, 1 more question please...

is it possible to have the buddylist template displayed when you click on view buddies on a user's profile page? like beneath the part with the wannabees, budons and budoffs?

waza 11-12-2005 01:06 PM

not at this moment, maybe later.

waza 11-12-2005 07:25 PM

I have now done like everything a whole new management system for wannabees, pm function works, a maximum amount of buddies per usergroup, ...
tomorrow I will release RC 1, and if that proofs to bee stable, I think we might have a gold ;)

Detomah 11-13-2005 12:17 AM

Quote:

Originally Posted by waza
I have now done like everything a whole new management system for wannabees, pm function works, a maximum amount of buddies per usergroup, ...
tomorrow I will release RC 1, and if that proofs to bee stable, I think we might have a gold ;)

You are working hard on this. :)

Nice one, look forward to it. :)

Will it still be do-able as an update, or will it need the old one uninstalling and a fresh install for the new one?

waza 11-13-2005 07:35 AM

You will have to overwrite te product, buddies.php and bitfield xml if that answers your question.

But if you overwrite the product I think this uninstalls it first and then re-installs the new one, (not quite sure)

FleaBag 11-13-2005 11:14 AM

Hey waza, I'm really impressed with your dedication to the hack, it's going from strength to strength!

With regard to having buddy avatars directly on the profile.php page, I can understand it could look a mess... So why not limit it to say 8, displayed at random? Similar to how it is on Myspace?

Cheers! :)

waza 11-13-2005 06:51 PM

Hmm, will put it on the ideas list, but it will be for a later version then rc 1, features list for that one is closed.
(I'm finishing the pm function, then all new options (limit buddie quota, wannabee management) will be completed.

I also have on my ideas list some ajax thing like the pm of vbulletin has, if you enter 3 characters or more it looks for corresponding user names...

Grz,
seba

noonespecial 11-16-2005 03:48 AM

Attempted uninstall, two errors:

Step 3:

PHP Code:

Fatal errorCall to a member function on a non-object in /home/jason/public_html/admincp/vbbuddies_uninstall.php on line 481 

Step 4:

PHP Code:

Database error in vBulletin 3.5.1:

Invalid SQL:
ALTER TABLE IF EXISTS user DROP buddiesliststatus;

MySQL Error  You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF EXISTS user DROP buddiesliststatus' at line 1
Error Number 
1064
Date         
WednesdayNovember 16th 2005 01:01:19 AM
Script       
http://www.absolutepunk.net/admincp/vbbuddies_uninstall.php?do=uninstall&step=4
Referrer     http://www.absolutepunk.net/admincp/vbbuddies_uninstall.php
IP Address   68.64.208.134
Classname    
vb_database 


Benj 11-16-2005 10:16 AM

Quote:

Originally Posted by waza
Hmm, will put it on the ideas list, but it will be for a later version then rc 1, features list for that one is closed.
(I'm finishing the pm function, then all new options (limit buddie quota, wannabee management) will be completed.

I also have on my ideas list some ajax thing like the pm of vbulletin has, if you enter 3 characters or more it looks for corresponding user names...

Grz,
seba

u gotta love the ajax

noonespecial 11-17-2005 05:52 PM

Any solution to my problem?

waza 11-17-2005 06:32 PM

yeah, fixed it, but will release it this weekend with the rc 1, now testing things, but I haven't got much time last days due to school

noonespecial 11-17-2005 11:28 PM

Quote:

Originally Posted by waza
yeah, fixed it, but will release it this weekend with the rc 1, now testing things, but I haven't got much time last days due to school

Thanks! Much love.

Snoop-It 11-19-2005 09:18 PM

PM Function doesn't work, everything else does :)

moonclamp 11-19-2005 10:46 PM

RC1: My memberlist is returning this error:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /memberlist.php(91) : eval()'d code on line 1

moonclamp 11-19-2005 11:02 PM

Also ... I've got the journal mod installed and I can no longer add any 'journal buddies'

moonclamp 11-19-2005 11:22 PM

Quote:

Originally Posted by dholaholic
PM Function doesn't work, everything else does :)

Mine sort of sends a PM ... but the title of the PM is merely the buddies name with a link to their profile and no message body

Snoop-It 11-20-2005 12:00 AM

^^ did u have to revert any templates??? i have 2 test accounts, added 1 of them to the other... i didnt get a pm :/ but it does do the normal stuff like add the person on wannabees list...

moonclamp 11-20-2005 04:48 AM

Quote:

Originally Posted by dholaholic
^^ did u have to revert any templates??? i have 2 test accounts, added 1 of them to the other... i didnt get a pm :/ but it does do the normal stuff like add the person on wannabees list...

No. This was my first install. I never bothered with the beta versions.

mikexxx 11-20-2005 07:13 AM

Quote:

Originally Posted by moonclamp
RC1: My memberlist is returning this error:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /memberlist.php(91) : eval()'d code on line 1

I have the same problem on my board.

waza 11-20-2005 08:05 AM

K, thx for reporting these things, I have updated the package, just overwrite the product and everything (pm, memberlist & other list updates) should work correct now.
I'm sure that pm and journal buddy list & ignorelist work now, but the memberlist thing worked for me, However I have changed it and it should now work for everyone.

mikexxx 11-20-2005 10:02 AM

Hi, to bad still have this error:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /memberlist.php(91) : eval()'d code on line 1

waza 11-20-2005 12:35 PM

if you just disable the:
Hook Locatie : memberlist_start
buddies: template resources
plug-in
On my board it still shows up the necessary templates, however, It could be because that is temporary internet files.

Roxie 11-20-2005 03:52 PM

Seems to work half of the time. Could be a good addition.

My icons show green for people that aren't even on my list.

waza 11-20-2005 05:03 PM

Next week the stable will be released, I have fixed today some bugs, and added some options, I will test it myself on some none hacked boards and hacked boards to see if everything works.
@roxy: Could I have the url to your forums so I can see myself, Caus I tested this on 3 boards and the memberlist bits worked fine... However I double check everything tomorrow.


All times are GMT. The time now is 07:11 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.01506 seconds
  • Memory Usage 1,905KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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