Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-28-2000 Last Update: Never Installs: 0
 
No support by the author.

Heh, that was quick.

Here it is: Integrated vBulletin Buddy List, v1.0

Originally coded by Stallion, edited and cleaned up by me.

Download buddy.php here: http://www.enter.net/~rmsullivan/buddy.txt and stick it in your main vB directory.

Make a file (temp.php) in your main vB directory, and put this in it:
Code:
<?php
require("global.php");
$DB_site->query("ALTER TABLE user ADD buddylist TEXT not null");
echo "done";
?>
Run it (it should say done), then delete it.

Add this to your <head> tag in the forumhome template:
Code:
<SCRIPT LANGUAGE="JavaScript">
<!-- 
function popup (addy) {
  var popup = window.open("buddy.php","_new","height=460,location=no,menubar=no,resizable=no,scrollbars=auto,status=no,toolbar=no,width=310" );
}
// -->
</SCRIPT>
And add this to your loggedinusers template:
Code:
(<a href="javascript:popup()"><b>Launch Buddy List!</b></a>)
All other HTML code is contained within buddy.php

Oh, and I almost forgot to mention - set $pmintegrate to your liking. I have a check there incase anyway. LOL

Demos: http://www.magic-singles.com/cpa/forums/ and http://forums.planetunreal.com/

[Edited by Ed Sullivan on 12-09-2000 at 11:53 AM]

Show Your Support

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

Comments
  #52  
Old 08-30-2000, 04:23 AM
Guest
 
Posts: n/a
Default

Ok, no regexes anymore. Just a simple if (!$data[0]) check. Wow, I've made so many little updates to this script...
Reply With Quote
  #53  
Old 08-30-2000, 04:28 AM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Ed Sullivan
Ok, no regexes anymore. Just a simple if (!$data[0]) check. Wow, I've made so many little updates to this script...

Yeah, I feel dumb now, thanks!

Argh -- I spent a lot of time trying to un-learn C++ -- now you're telling me I should treat strings as character arrays? Arghh!
Reply With Quote
  #54  
Old 08-30-2000, 04:29 AM
Guest
 
Posts: n/a
Default

I was going to suggest $data[0] but I held my tongue :P
Reply With Quote
  #55  
Old 08-30-2000, 04:31 AM
Guest
 
Posts: n/a
Default

Although you can do that, no I wasn't.

$data is a ";" split array from $buddylist. $data[0] will be set to an empty string if it's empty (ie, ";" is the first character) OR if $buddylist is empty.
Reply With Quote
  #56  
Old 08-30-2000, 05:11 AM
Guest
 
Posts: n/a
Default

If anyone is interested I hacked it so that it shows a left arrow beside users and a down arrow if you click on them and list their posts.

You can dl it at http://www.hedgehogwheels.com/forums/buddy.php.txt

The arrows:




[Edited by rangersfan on 08-30-2000 at 02:11 AM]
Reply With Quote
  #57  
Old 08-30-2000, 05:35 AM
Guest
 
Posts: n/a
Default

nice rangersfan it works beautifully
Reply With Quote
  #58  
Old 08-30-2000, 08:08 AM
Guest
 
Posts: n/a
Default

Nice, the script keeps getting better
Reply With Quote
  #59  
Old 08-30-2000, 08:49 AM
Guest
 
Posts: n/a
Default

In your postbit template look for


<a HREF="editpost.php?action=editpost&postid=$postid" ><IMG SRC="images/edit.gif" BORDER=0 ALT="Edit/Delete Message"></A>


and add

&nbsp;&nbsp;<A HREF="buddy.php?action=manage=1&search=$username"> <IMG SRC="images/add.gif" border="0" alt="Add $username to your Buddylist"></a>

Here is the image




Now if someone could show me the javascript that I could put in the showthread template that would put the username in and give you the popup window that would be cool. This just adds the members' name to your list and you have to hit your backarrow on your browser to go back to the forum.

I would like for this to take you to the same popup window as you get from the main buddylist where you can close it out after you have added someone.

Parker

[Edited by Parker Clack on 08-30-2000 at 05:50 AM]
Reply With Quote
  #60  
Old 08-30-2000, 02:53 PM
Guest
 
Posts: n/a
Default

My users are complaining that they're visible as online in the Buddy List, even though they've set themselves to 'invisible' in their preferences.
Reply With Quote
  #61  
Old 08-30-2000, 03:01 PM
Guest
 
Posts: n/a
Default

Well shall it be modified to check a users invisible state and then always list them as "offline" if they are invisible? Shall it tell a buddy user "Sorry that user has issues about you knowing when they are on the forum so they will always be shown as OFFLINE to you"
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:04 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.07777 seconds
  • Memory Usage 2,280KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_code
  • (1)bbcode_quote
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)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
  • 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