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)

Ghostsuit 06-24-2004 12:17 PM

This looks fantastic. Wait for next release before testing :)

Polo 06-24-2004 12:21 PM

i think the file has been updated

Cloud-Warrior 06-24-2004 02:54 PM

Quote:

Originally Posted by Polo
Nice hack Cloud warrior, i have made several modifications to the code (so it can work the way i want it) and so far i havent had any problems.

Thanks for the positive comments all - Polo, I'll appreciate any useful updates / changes you have made...

D|ver 06-24-2004 03:52 PM

great hack :D :D

but is it possible to integrate this into the normal user profile?

Dan 06-24-2004 03:59 PM

Nice Idea :)

Cloud-Warrior 06-24-2004 04:09 PM

If you mean linking to the Friends page, it just involves some editing of your templates. One way to make it more visible is to edit your postbit template, and just add in something like:

Code:

<a class="smallfont" href="friends.php?$session[sessionurl]u=$post[userid]">Friends</a>
whereever you want it. I put it after the reputation images on my forum, it's a matter of personal taste I guess.

Polo 06-24-2004 04:50 PM

Quote:

Originally Posted by Cloud-Warrior
Thanks for the positive comments all - Polo, I'll appreciate any useful updates / changes you have made...

ok Cloud, ;)

D|ver 06-25-2004 09:06 AM

Quote:

Originally Posted by Cloud-Warrior
If you mean linking to the Friends page, it just involves some editing of your templates. One way to make it more visible is to edit your postbit template, and just add in something like:

Code:

<a class="smallfont" href="friends.php?$session[sessionurl]u=$post[userid]">Friends</a>
whereever you want it. I put it after the reputation images on my forum, it's a matter of personal taste I guess.

thx for you help, but i don't mean linking to it

i want to show the friends page under the contact information in the normal user profile
is there any way to include friends.php?u=&userid for example?

that would be really great :)

Gryphon 06-25-2004 05:46 PM

It didn't like table prefixes so I had to make the following changes.

Find:
PHP Code:

     // (Dis)Likes
    
$outuserids = array();
    
$outuserids explode(' 'trim($userinfo[$whichlist]));
    if (
trim($userinfo[$whichlist]) != "") {
        
$outusers $DB_site->query("SELECT user.username,user.userid,usertextfield.".$whichlist." FROM
        "
.TABLE_PREFIX."user,".TABLE_PREFIX."usertextfield WHERE
        user.userid = usertextfield.userid AND
        user.userid IN ("
.implode(',',$outuserids).") 

Replace:
PHP Code:

    // (Dis)Likes
    
$outuserids = array();
    
$outuserids explode(' 'trim($userinfo[$whichlist]));
    if (
trim($userinfo[$whichlist]) != "") {
        
$outusers $DB_site->query("SELECT ".TABLE_PREFIX."user.username,".TABLE_PREFIX."user.userid,".TABLE_PREFIX."usertextfield.".$whichlist." FROM
        "
.TABLE_PREFIX."user,".TABLE_PREFIX."usertextfield WHERE
        "
.TABLE_PREFIX."user.userid = ".TABLE_PREFIX."usertextfield.userid AND
        "
.TABLE_PREFIX."user.userid IN (".implode(',',$outuserids).") 

Find:
PHP Code:

    // (Dis)Liked By
    
$counter 0;
    
$inusersquery "SELECT user.username,user.userid,usertextfield.".$whichlist." FROM
    "
.TABLE_PREFIX."user,".TABLE_PREFIX."usertextfield WHERE
    user.userid = usertextfield.userid AND
    FIND_IN_SET('"
.$userinfo[userid]."', REPLACE(usertextfield.".$whichlist.", ' ', ',')) > 0
    ORDER BY user.username"


Replace:
PHP Code:

    // (Dis)Liked By
    
$counter 0;
    
$inusersquery "SELECT ".TABLE_PREFIX."user.username,".TABLE_PREFIX."user.userid,".TABLE_PREFIX."usertextfield.".$whichlist." FROM
    "
.TABLE_PREFIX."user,".TABLE_PREFIX."usertextfield WHERE
    "
.TABLE_PREFIX."user.userid = ".TABLE_PREFIX."usertextfield.userid AND
    FIND_IN_SET('"
.$userinfo[userid]."', REPLACE(".TABLE_PREFIX."usertextfield.".$whichlist.", ' ', ',')) > 0
    ORDER BY "
.TABLE_PREFIX."user.username"


58sniper 06-25-2004 06:50 PM

The one minor issue I've seen so far is that the avatar dimensions are hard coded. This is fine if you're using the 64x64 format.

Just a thought. Otherwise it's cool.


All times are GMT. The time now is 06:13 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.01274 seconds
  • Memory Usage 1,762KB
  • 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
  • (4)bbcode_php_printable
  • (3)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