vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBFriends - View your social network and surf to others in vBulletin 3 (https://vborg.vbsupport.ru/showthread.php?t=66449)

Erwin 01-20-2005 08:49 PM

The easiest would be a separate column which gets updated as people are added or removed from the buddy list. When I have time I was going to look into it. But I'm just too busy. :) It's not hard - same queries only when people are added to buddy list, adds to the column in user table with list of userids.

T3MEDIA 01-28-2005 09:14 AM

Quote:

Originally Posted by Cloud-Warrior
I'm afraid work priorities have put me off track on this hack - it'll be a few weeks before I can take a look.

There's three ideas - see if the existing SQL and code can be optimised, create a new table to store buddy IDs, or cache the output to a HTML file that only gets updated every so often...

Sorry - but I do want to do this, just can't at the moment.

Hey so far for me it works great.

Dennis Olson 02-15-2005 02:14 PM

I'd like something a little different:

Mods and admins can see anyone's list, but regular users can only see their own list. (For example user# 123 could not see user # 456's friends list.) How could that be done?

altsounds 03-05-2005 12:09 PM

Re-vamping the buddy portion of VB would be excellent for this hack so that a PM is sent when you ask to add a buddy and they can either accept you or deny you.

If they accept you, it would be cool if it automatically created the reverse (add me as one of their friends too).

And having the capability of viewing the buddies from the profile with a limit (say 8) shown. Would be cool if they could be shown in random order too so every time you open the profile it would be different. There should then be a link saying view full buddy list which will take you to friends.php

I can mess around with the profile integration thing (not that good at coding mind you) if some expert can handle the whole back end buddy pm sending, accepting, denying and checking.

I'll be keeping my eye on this post!!!!

Great Hack.

Chris

T3MEDIA 03-05-2005 08:31 PM

good idea sounds like myspace... nice.

altsounds 03-10-2005 06:08 PM

Anyone willing to take my suggestions above on?? As I stated I am not a coder so all I can help with is suggestions!! This would be amazing if someone could take it on.

Chris

T3MEDIA 03-13-2005 12:59 PM

Hey a few if statements do not work in this.
I never noticed before. The enemy and " <!-- // If already on list, will want to change this to remove... -->" part.
if you look there isnt code there for the if statement. should be a else but I am not sure what string to put.

If your around think you can fix that small mishap?

Quote:

Originally Posted by sabret00the
fixed code, it was dirty but it works

replace the template with this
HTML Code:

$stylevar[htmldoctype]
<head>
<title>$vboptions[bbtitle] vBFriends</title>
$headinclude

</head>
<body>
$header
$navbar

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr>
                <td class="tcat" width="200">
                        User
                </td>
        <if condition="$whichlist == 'buddylist'">
                <td class="tcat" colspan="2">
                        Friends ($inoutcounter) ... $mutual% Mutual
                </td>
        <else />       
                <td class="tcat" colspan="2">
                        Enemies ($inoutcounter) ... $mutual% Mutual
                </td>
        </if>
        </tr>
        <tr>
                <td class="alt1" valign="top" align="center" rowspan="3">
                        <if condition="!$userinfo[profilepicdateline]">
                                <img src="$vboptions[bburl]/$userinfo[avatarurl]\ /"><br />
                        <else />
                                <img src="$vboptions[bburl]/image.php?u=$userinfo[userid]&amp;type=profile&amp;dateline=$userinfo[profilepicdateline]" /><br />
                        </if>
                    $userinfo[username] ($inoutcounter)<br />
                        <br />
                        <a class="smallfont" href="$vboptions[bburl]/member.php?u=$userinfo[userid]">View Full Profile</a><br />
                        <!-- // If already on list, will want to change this to remove... -->
                        <if condition="$userinfo[userid] != $bbuserinfo[userid]">
                                <a class="smallfont" href="$vboptions[bburl]/profile.php?do=addlist&userlist=$whichlistshort&u=$userinfo[userid]">Add to Your $whichlistshort List</a>
                        </if>
                </td>
                <td class="alt2" colspan="2">
                        <table>
                                <tr>
                                        $inoutuserlist
                                </tr>
                        </table>
                </td>
        </tr>
        <tr>
                <td class="thead" height="20">
                        Is Linked To ($outcounter)
                </td>
                <td class="thead" height="20">
                        Is Linked From ($incounter)
                </td>
        </tr>
        <tr>
                <td class="alt2" valign="top">
                        <div class="smallfont">
                                $outuserlist
                        </div>
                </td>
                <td class="alt2" valign="top">
                        <div class="smallfont">
                                $inuserlist
                        </div>
                </td>
        </tr>
</table>


$footer



sabret00the 03-13-2005 08:38 PM

Quote:

Originally Posted by T3MEDIA
Hey a few if statements do not work in this.
I never noticed before. The enemy and " <!-- // If already on list, will want to change this to remove... -->" part.
if you look there isnt code there for the if statement. should be a else but I am not sure what string to put.

If your around think you can fix that small mishap?

i have no idea what so ever what you mean, this template is working properly for me.

T3MEDIA 03-13-2005 08:44 PM

Quote:

Originally Posted by sabret00the
i have no idea what so ever what you mean, this template is working properly for me.

ok look at your if statement.

<if condition="$userinfo[userid] != $bbuserinfo[userid]">
<a class="smallfont" href="$vboptions[bburl]/profile.php?do=addlist&userlist=$whichlistshort&u= $userinfo[userid]">Add to Your $whichlistshort List</a>
</if>

this is always true. On top of that there isnt a remove there.
shouldnt it not show all the time? I can see it even if they are on my list.

as for enemies I never see that.

is it just me?

sabret00the 03-13-2005 08:48 PM

Quote:

Originally Posted by T3MEDIA
ok look at your if statement.

<if condition="$userinfo[userid] != $bbuserinfo[userid]">
<a class="smallfont" href="$vboptions[bburl]/profile.php?do=addlist&userlist=$whichlistshort&u= $userinfo[userid]">Add to Your $whichlistshort List</a>
</if>

this is always true. On top of that there isnt a remove there.
shouldnt it not show all the time? I can see it even if they are on my list.

as for enemies I never see that.

is it just me?

what the if condition is asking is "if you are not this user => do you want to add him/her to your userlist?" and NOT "if you're a buddy do you wanna add me?".


All times are GMT. The time now is 05:43 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.01256 seconds
  • Memory Usage 1,768KB
  • 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
  • (1)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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