The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
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"; ?> 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> Code:
(<a href="javascript:popup()"><b>Launch Buddy List!</b></a>) 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
|
Comments |
#42
|
|||
|
|||
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. |
#43
|
|||
|
|||
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 ... |
#44
|
|||
|
|||
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 |
#45
|
|||
|
|||
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. |
#46
|
|||
|
|||
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? |
#47
|
|||
|
|||
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 |
#48
|
|||
|
|||
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... |
#49
|
|||
|
|||
Actually, more than a little bug - cookie isn't getting deleted. Hmm...
|
#50
|
|||
|
|||
Quote:
The only alternative I can think of is this: Code:
if( substr( $buddylist, 0, 1 ) == ";" ) { $buddylist = substr( $buddylist, 1 ); } I don't know if that's any faster, but you can try it out... |
#51
|
|||
|
|||
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. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|