Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Who Am I A Buddy Of? 2.1 Details »»
Who Am I A Buddy Of? 2.1
Version: 1.00, by Gamingforce Gamingforce is offline
Developer Last Online: Jan 2007 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 03-20-2006 Last Update: Never Installs: 18
 
No support by the author.

[ Feature Description ]
This feature allows users to easily see who they are buddies of along with an easy way to add/remove buddies right from the page! This modification is a big upgrade from the one I made for vBulletin 2. It has proved to be a very useful tool for my members. As of this version, there are noother known performance optimization techniques, nobugs and no security problems.

[ Screenshot ]



Enjoy!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-21-2006, 07:47 PM
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
Location: Montreal
Posts: 1,037
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey looking good, love your forums
Reply With Quote
  #3  
Old 03-21-2006, 07:56 PM
projectego's Avatar
projectego projectego is offline
 
Join Date: Feb 2006
Location: UK
Posts: 724
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack, I actually used it when you first released it for the 3.0.x series. Cheers for the port.
Reply With Quote
  #4  
Old 03-22-2006, 01:59 AM
hiiped hiiped is offline
 
Join Date: Jan 2006
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very useful

thanks

< clicking install >
Reply With Quote
  #5  
Old 03-22-2006, 02:30 PM
shadowdancer36 shadowdancer36 is offline
 
Join Date: Nov 2005
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just wondering if I can make a link and have the list to come up as a pop up window?
Reply With Quote
  #6  
Old 03-22-2006, 04:44 PM
Alien's Avatar
Alien Alien is offline
 
Join Date: Oct 2001
Posts: 827
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome port! I'll be using this one...
Reply With Quote
  #7  
Old 04-24-2006, 07:17 AM
briansol's Avatar
briansol briansol is offline
 
Join Date: Apr 2006
Location: CT
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anychance of adding the + or - to each post under the user name like their post count?
Reply With Quote
  #8  
Old 04-24-2006, 08:31 AM
briansol's Avatar
briansol briansol is offline
 
Join Date: Apr 2006
Location: CT
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I figured my own post out.

open showthread.php

find:
Code:
'editor_jsoptions_size',
add after:
Code:
'whobuddy',
find:
Code:
else
		{
			$fetchtype = 'post';
		}
add after:

Code:
//******************************************************************************************************
		//------  buddy mod
		//******************************************************************************************************

		$bbuserinfo['userid'] = $vbulletin->userinfo['userid'];
		$bbuserinfo['buddylist'] = $vbulletin->userinfo['buddylist'];

		$buddyarray = explode(" ", $bbuserinfo['buddylist']);

		//$post['whobuddybit']= "";

		foreach($buddyarray as $buddyid)
		{
			if(strstr(" $buddyid "," $post[userid] "))
			{
				//$post['whobuddybit'].= "Buddy ID: ". $buddyid ." matches";
				$currentpostbuddyid = $buddyid;
			}
		}

			

		if ($currentpostbuddyid == $post[userid]) {
				$mutualbuddybit = "<a href=\"profile.php?$session[sessionurl]do=removelist&amp;userlist=buddy&amp;u=$post[userid]\">[Remove from  Buddy List]</a>";
				
		} else {
				$mutualbuddybit = "<a href=\"profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]\">[Add to Buddy List]</a>";
		}
		$post['whobuddybit'] .= $mutualbuddybit; 
		//$post['whobuddybit'] .= "bbuserinfo[userid]= " . $bbuserinfo['userid'] ."  bbuserinfo[buddylist]= ". $bbuserinfo['buddylist'];

		
			

		//******************************************************************************************************
		//------  end buddy mod
		//******************************************************************************************************

find:
Code:
unset($post);
add after:

Code:
unset($whobuddybit);
unset($mutualbuddybit);


TEMPLATES:

go to edit templates, postbit_legacy (this is the one i use... you may use the new postbit, and i don't know exaclty where you want to add this horizontally... i'm sure you can find a spot on your own. it's the same paste code.

find:
Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
add after:
Code:
<if condition="$post['userid']">
  <div>$post[whobuddybit]</div>
</if>
and i think thats it. let me know if anyone has trouble with it.
Reply With Quote
  #9  
Old 04-24-2006, 08:32 AM
briansol's Avatar
briansol briansol is offline
 
Join Date: Apr 2006
Location: CT
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

also note, this DOESNT add an extra query. All info needed is already pulled from the main query for the posts!
Reply With Quote
  #10  
Old 04-24-2006, 08:35 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Isn't there a way to do a string replace for the file edit?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:47 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06265 seconds
  • Memory Usage 2,296KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete