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)

sabret00the 12-15-2004 06:38 PM

ahhhhh i just noticed that issue too, ok i'll fix that :)

sabret00the 12-15-2004 06:41 PM

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


T3MEDIA 12-15-2004 06:43 PM

Thank you ever so much.

sabret00the 12-17-2004 11:28 AM

i've not been able to work out how to optimise this at all. :(

D|ver 12-17-2004 11:42 AM

Quote:

Originally Posted by benj
are there any plans to update this hack in any way shape or form ?

yeah that would be really so great if this hack would be optimised :)

i really love this hack but because there is still no profile integration i can't use it ;(

sabret00the 12-17-2004 11:55 AM

profile integration is the easy bit, the harder bit is the optimisation, then what i'd really love is making sure you have to accept buddy request, which even that aint too too hard (not saying i could do it but whoever can optimise it can, imo it's just a matter of sending a pm with two links, accept/deny if you click accept then it adds the userid to each table, else it sends back a pm to say request denied.

MikaK 12-22-2004 07:57 AM

This surely looks like a very cool hack to have once optimized! Any progress with that?

Cheers,

-Mika

sabret00the 12-22-2004 09:29 AM

aye once it's optimised it will be a great hack.

T3MEDIA 01-18-2005 12:39 AM

Bump~~~ Any thing new on this?

Cloud-Warrior 01-20-2005 08:41 AM

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.


All times are GMT. The time now is 08:04 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.01259 seconds
  • Memory Usage 1,757KB
  • 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
  • (1)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