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! ;)


All times are GMT. The time now is 08:01 PM.

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.01332 seconds
  • Memory Usage 1,832KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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