Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives

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
  #42  
Old 08-30-2000, 02:30 AM
Guest
 
Posts: n/a
Default

LOL, yes. I didn't plan ahead when coding this, and hit a few nasty bugs, where therefore made the workaround code rather nasty as well...

I must've warned Ed at least 5 times before forking it over. Hey, at least it works, and the new version will have some cleaned up code as well as lots of enhancements.
Reply With Quote
  #43  
Old 08-30-2000, 02:43 AM
Guest
 
Posts: n/a
Default

well i don't know php so can't tell the difference ... thanks stallion, ed and mrogish

i have both the buddy list and online user lists on my forum now ...
Reply With Quote
  #44  
Old 08-30-2000, 02:45 AM
Guest
 
Posts: n/a
Default

LOL yeah - the whole cookie storage method was weird at first, but it makes good sense when you see what it's doing.

I was going to get rid of the the "toggle" stuff in it, but that would get rid of viewing multiple people at one time.

Anyway, while Stallion's working on the new nifty version, I'm going to put out a new version with the private forum check and another bug fixed (we just worked around it before)

However, the change may "break" your cookies in that a blank row will appear. Just click the clear buddy list link I'm going to stick in there
Reply With Quote
  #45  
Old 08-30-2000, 02:57 AM
Guest
 
Posts: n/a
Default

Ok, 1.2 can be downloaded from the URL.

It adds mrogish's fix for private forums, and gets rid of a bug that was annoying me. Funny thing is, to avoid "breaking" the cookies, I may have slowed it down a little (had to use an ereg_replace(), but got rid of a next()). Oh well

Anyway, the clear function I mentioned isn't in it anymore since I don't need it and it wouldn't work. Someone wanna look at the code and tell me why it wouldn't work? (That same syntax has worked for me in other scripts)

Enjoy.
Reply With Quote
  #46  
Old 08-30-2000, 03:19 AM
Guest
 
Posts: n/a
Default

Mike,

The one I use to clear cookies has always been:

setcookie("buddylist","",mktime(0,0,0,0,0,2020),$c ookiepath);

It looks like an "issue" with cookies + location( ) calls in PHP. Check out the user discussions at:
http://www.php.net/manual/function.setcookie.php

Also, why can't you use str_replace in place of ereg_replace?
Reply With Quote
  #47  
Old 08-30-2000, 03:41 AM
Guest
 
Posts: n/a
Default

The private forums works in that if they don't have permission it won't allow them to read the message but the title of the thread still shows up instead of "Thread Not Viewable". So if the title of your thread was something that you didn't want anyone to see you'd be in trouble.

How about instead of a "Thread Not Viewable" link it just didn't list them at all?

Parker
Reply With Quote
  #48  
Old 08-30-2000, 03:45 AM
Guest
 
Posts: n/a
Default

str_replace won't let me just check if the first character of the string is ";" ( ^; ) - try it and see.

And thanks for the link - I just faked the location by setting $manage = 1; Of course I found another little bug in the process...
Reply With Quote
  #49  
Old 08-30-2000, 03:48 AM
Guest
 
Posts: n/a
Default

Actually, more than a little bug - cookie isn't getting deleted. Hmm...
Reply With Quote
  #50  
Old 08-30-2000, 04:07 AM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Ed Sullivan
str_replace won't let me just check if the first character of the string is ";" ( ^; ) - try it and see.
Ah ok, forgot how regexp worked for a sec..

The only alternative I can think of is this:

Code:
  if( substr( $buddylist, 0, 1 ) == ";" ) {
    $buddylist = substr( $buddylist, 1 );
  }
That will strip out leading ";". I think that's what you want to do, no?

I don't know if that's any faster, but you can try it out...
Reply With Quote
  #51  
Old 08-30-2000, 04:16 AM
Guest
 
Posts: n/a
Default

Wow, I'm an idiot. The cookie was getting deleted - but I was pulling data from my profile.

So that feature is now added to the release version. See original URL.
Reply With Quote
Reply

Thread Tools

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 05:47 AM.


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.04854 seconds
  • Memory Usage 2,276KB
  • 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
  • (4)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