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
  #72  
Old 09-03-2000, 07:54 PM
Guest
 
Posts: n/a
Default

Thanks Parker - uploading bug fix now
Reply With Quote
  #73  
Old 09-03-2000, 09:01 PM
Guest
 
Posts: n/a
Default

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>
in the header of the showthread template

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>
Any ideas how to make the link in the showthread template work so that the member you want to add to your list can be added and the popup shows up?

Also, how about adding a close button to close out the javascript box.

Thanks,
Parker
Reply With Quote
  #74  
Old 09-03-2000, 10:21 PM
Guest
 
Posts: n/a
Default

I'll add this tonight!
Reply With Quote
  #75  
Old 09-04-2000, 02:57 AM
Guest
 
Posts: n/a
Default

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
Reply With Quote
  #76  
Old 09-04-2000, 08:07 AM
Guest
 
Posts: n/a
Default

Hmm.. a small add that could prove to be effective
Reply With Quote
  #77  
Old 09-04-2000, 12:52 PM
Guest
 
Posts: n/a
Default

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>
Reply With Quote
  #78  
Old 09-04-2000, 10:52 PM
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #79  
Old 09-05-2000, 04:31 PM
Guest
 
Posts: n/a
Default

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?
Reply With Quote
  #80  
Old 09-05-2000, 09:29 PM
Guest
 
Posts: n/a
Default

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
Reply With Quote
  #81  
Old 09-05-2000, 09:41 PM
Guest
 
Posts: n/a
Default

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
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 07:06 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.05115 seconds
  • Memory Usage 2,284KB
  • 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
  • (6)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
  • (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