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 |
#72
|
|||
|
|||
Thanks Parker - uploading bug fix now
|
#73
|
|||
|
|||
ED:
I have added a link from the showthread page that will allow you to add the member to your buddylist. What I am wanting to do though is to have it use the javescript pop up window so you don't get a full page opening but instead get the popup. Unfortunately if you use the javascript with this hack you don't get the username inserted but instead you get the last person that post to that thread. I am using: Code:
<SCRIPT LANGUAGE="JavaScript"> <!-- function popup (addy) { var popup = window.open("buddy.php?action=manage=1&search=$username","_new","height=460,location=no,menubar=no,resizable=no,scrollbars=auto,status=no,toolbar=no,width=310" ); } // --> </SCRIPT> and then in javascript link in the postbit template Code:
<a href="javascript:popup()"><font face="verdana" size="1" color="#ffffff"> <b>Launch Buddy List!</b></font> Also, how about adding a close button to close out the javascript box. Thanks, Parker |
#74
|
|||
|
|||
I'll add this tonight!
|
#75
|
|||
|
|||
I have added this to the memberlist file.
In memberlist template look for: <td align="center" bgcolor="#ffffff"><FONT face="verdana,arial,helvetica" size="1" color="#xxxxxx"><b>Posts by this user</b></font></td> and below this add: <td align="center" bgcolor="#ffffff"><FONT face="verdana,arial,helvetica" size="1" color="#xxxxxx"><b>Add to Buddy List</b></font></td> (Replace the XXXXXX with your board's colors) Then in your memberlistbit template look for: <td bgcolor="#EFEFEF"><FONT face="verdana, arial, helvetica" size="2" >$bio</font></td> and just above this add: <td bgcolor="#EFEFEF" align="center"><A HREF="buddy.php?action=manage=1&search=$username" target="_new"><IMG SRC="images/add.gif" border="0" alt="Add $username to your Buddylist"></a></td> Here is the image: Parker |
#76
|
|||
|
|||
Hmm.. a small add that could prove to be effective
|
#77
|
|||
|
|||
Parker, try using these as your respective lines:
Code:
<SCRIPT LANGUAGE="JavaScript"> <!-- function popup (username) { var popup = window.open("buddy.php?action=manage=1&search="+username,"_new","height=460,location=no,menubar=no,resizable=no,scrollbars=auto,status=no,toolbar=no,width=310" ); } // --> </SCRIPT> <a href="javascript:popup($username)"><font face="verdana" size="1" color="#ffffff"> <b>Launch Buddy List!</b></font> |
#78
|
|||
|
|||
It is possible to add the same user more than one time,
another thing, can you have a message saying the :"no such user" when trying to add not existed users. |
#79
|
|||
|
|||
Small prob, when I start the BList, I'll be added to the List. When I start the list again I'll be added a 2nd time, an d so on! Anyone got this prob?
|
#80
|
|||
|
|||
Ed:
Thanks for the try. What I get when I click on the link is a little java error message in the lower left hand tool bar that says "Error on the page". It would appear that putting $username in the () javascript doesn't like. If I take this out between the brackets then the java box opens ok but nothing is put in. Parker |
#81
|
|||
|
|||
Ed:
Found the solution. Use the javascript code for the header in the showthread template as you have outline above. Then in the postbit template use: <a href="javascriptopup('$username')"><IMG SRC="images/add.gif" border="0" alt="Add $username to your Buddylist"></A> instead. Note the change in the brackets used. Thanks for all the help. This is a really great add on as now a member can add a person to their buddy list from the thread instead of having to type it in. Parker |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|