Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 MOD: Buddy List
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 4

e3stone
Average Member

USA
885 Posts

Posted - 24 April 2001 :  03:50:43  Show Profile  Send e3stone an AOL message
NOTE: You do have to have the Active Members/Users MOD installed for this to work

Buddy List Mod - (Modified Bookmarks Mod)
http://www.insidewaco.com/forum/downloadmods/buddylistmod.zip
Updated as of: August 25, 2001 1:58 p.m. CST

Unzip all files into main forum directory. (forum/)

Run mod_dbsetup.asp

This creates a new table in the database called Buddys (I know I spelled that wrong, but oh well :-) ) which has three fields. 1) an AutoNumber field called Buddy_ID 2) a Long Integer field called BudMemberID which is the memberID of the person who requested that the buddy be 'bookmarked' or stored, and 3) a Long Integer field called BudBudID which is the memberID of the person being 'bookmarked' or stored.

Add this link where ever you want the user to be able to select to 'bookmark' the buddy:

<a href="buddy.asp?mode=add&ID=<% =rs("MEMBER_ID") %>">Add Member To Buddy List</a>

I put mine towards the top of pop_profile.asp

Then you can just add a link to the front page that points to the buddy.asp page
<a hred="buddy.asp">My Buddy List</a>

That should do it. This is my first 'mod', so I hope all the bugs are out of it. I've tested it on my forum, which is running an Access2k database, but I haven't tested it on a SQL DB yet. Everything should work fine since I just modified the recordset definition from the bookmark mod. Hope you enjoy.

Eric

My Buddy List Demo (you have to register first) http://www.insidewaco.com/forum/

Let me know if you find anything that needs correcting. I did this earlier today after only getting about 3 hours sleep last night.

Edited by - e3stone on 24 April 2001 03:52:29

Edited by - e3stone on 27 April 2001 13:25:10

Edited by - e3stone on 05 May 2001 13:16:45

Edited by - e3stone on 05 May 2001 13:18:56

Edited by - e3stone on 24 August 2001 19:10:15

Edited by - e3stone on 25 August 2001 14:55:57

e3stone
Average Member

USA
885 Posts

Posted - 24 April 2001 :  04:17:30  Show Profile  Send e3stone an AOL message
I just noticed...I should have included fields in the buddy list table that looked like the active users table. hmmm, I'll update the zip when I get that finished. Shouldn't take too long.

Eric

Go to Top of Page

bjlt
Senior Member

1144 Posts

Posted - 24 April 2001 :  06:41:34  Show Profile
wish list:

1. buddies online, show only online status of buddies when log on.
2. buddy events, which will require a new events type as buddy, other than private and public.
3 show buddy as a group in pm, search, email etc.
4 more than 1 group such as buddy2 relatives, buddy3 coworkers, buddy4 web friends, etc. let the user decide what they use them for.



Go to Top of Page

e3stone
Average Member

USA
885 Posts

Posted - 24 April 2001 :  08:52:22  Show Profile  Send e3stone an AOL message
This buddy list has more bugs than I thought. I've been messing with it most of the morning and I think I'm going to just try to convert the "active_user.asp" page to the buddy page. Seems like that would be easier since there's already the online status aspect on that page.

Go to Top of Page

Morpheus73
Average Member

Denmark
597 Posts

Posted - 24 April 2001 :  11:00:58  Show Profile
...but keep up the good work, this is an excellent feature. maybe leave the total sum of users online in the inc_file too?

mph73

Morpheus73
Go to Top of Page

Morpheus73
Average Member

Denmark
597 Posts

Posted - 24 April 2001 :  11:07:35  Show Profile

...but keep up the good work, this is an excellent feature. maybe leave the total sum of users online in the inc_file too?

also: the online buddies should be shown in the inc_file for the frontpage. I see a problem if you have e.g. 150 buddies, but the inc_file could be told to show only the first 5 of and then a 6th option ...show all buddies online, and a new page opens and all are shown. the future options to chat/PM and email with online buddy should also be accessible from the inc_file

The old users online could then be included on the buddylist with the option to add buddies from the active users just like from the members.asp

mph73

Edited by - morpheus73 on 24 April 2001 11:10:58
Go to Top of Page

e3stone
Average Member

USA
885 Posts

Posted - 24 April 2001 :  14:22:31  Show Profile  Send e3stone an AOL message
Ok, I coded my version of the buddy list to show online status. I haven't updated the .zip yet, I'll do that later today. I like the idea of having seperate groups of "buddies" i.e. work, friends, family, etc. I'm going to work on that this afternoon and then I'll just update the .zip all at once.

For those of your who are wondering why the row colors are all the same after the second buddy, there's a for next loop at the top of the program that uses the same variable (i) as the variable used in the color change loops. I didn't think this would cause a problems, but I suppose it does. I changed the color variable loop name to something else. If you want to change it, you can, or I'll have the updated code in the .zip later tonight.

Eric

Go to Top of Page

e3stone
Average Member

USA
885 Posts

Posted - 25 April 2001 :  00:25:57  Show Profile  Send e3stone an AOL message
The .zip file has been updated. The buddy.asp file shows if your buddy is online and it also included the new Yahoo Messenger Online alert icon.

If you have already installed this mod, of course, all you have to do is replace the previous buddy.asp file with this one.

More updates on the way.

Any suggestions as to what other features should be on this mod? I'm already working on creating seperate buddy "groups" i.e. coworkers, family, friends, etc.

Eric

Go to Top of Page

rick7165
Senior Member

USA
1094 Posts

Posted - 25 April 2001 :  01:33:48  Show Profile  Visit rick7165's Homepage
What would be really cool for a Yahoo Icon is what they use in the New Beta Version! In the task bar you see the Red Y with the face on top of it depending on what status you're in.

Test Site
www.eastpasco.com
HuwR's SR4 release. Colors and Graphic scheme done by Richard Kinser.

Edited by - rick7165 on 25 April 2001 01:43:27
Go to Top of Page

RedLeader
New Member

USA
85 Posts

Posted - 25 April 2001 :  15:10:58  Show Profile  Visit RedLeader's Homepage  Send RedLeader an AOL message
Download Link:http://63.76.62.48/buddy_mod.zipUPDATED

Demo: http://63.76.62.48/forum
Register,Check out the topics and click on the

I installed the buddy mod and got it working. I like it alot, but I found it kind of cumbersome b/c when adding a buddy, all it did was say the buddy was listed.

I added another page to E3's buddy mod. The page, pop_buddy.asp will pop the buddy list up in another window.

Regardless of whether you are adding or deleting, the end result is that you will see your buddylist.

I also added some code that would allow you to keep the popup open and access the buddy's profile back in your main window.

Here is where I added my code. Here's a zipped copy of pop_buddy.asp with E3's oringal zip, plus added my Add Buddy Icon.

in topic.asp Around line 420 and again at line 599 I added:

 <a href="JavaScript:openWindow('pop_buddy.asp?mode=add&ID=<% =rs("MEMBER_ID") %>')"><img src="<%=strImageURL %>icon_add_buddy.gif" height="16" width="14" alt="Add to Buddylist" border="0" align="absmiddle" hspace="6"></a>




RL



Edited by - redleader on 26 April 2001 10:57:18
Go to Top of Page

Goose
New Member

Denmark
74 Posts

Posted - 26 April 2001 :  04:31:24  Show Profile  Visit Goose's Homepage  Send Goose an ICQ Message
Nice mod.

But...I cannot delete buddies again if I use the popup.

When I select the buddy from the list and click the delete button it says that the buddy is deleted and then I am forwarded to the main forum page inside the little popup window (it shouldn't forward me, in my opinion). When I open the popup again - or click the My Buddy List link, the buddy is still there!

I have no problems deleting buddies from the list when I use the delete feature in My Buddy List.
Go to Top of Page

e3stone
Average Member

USA
885 Posts

Posted - 26 April 2001 :  07:08:58  Show Profile  Send e3stone an AOL message
opps...sorry, I updated the .zip with the correction. You can either download it, or if you've made changes on your buddy page, just replace the entire Case "delete" section with this:

Case "delete"
i = request("i")
aBudCheck = split(i, ",")
dim ibudloop
for ibudloop = 0 to UBound(aBudCheck)
' Delete selected Buds
delSQL = "Delete From "& strTablePrefix & "Buddys where Buddy_ID=" & aBudCheck(ibudloop)
my_conn.Execute delSQL
next
response.write "<br><center><font face=""" & strDefaultFontFace & """ size=3><b>Selected Buds Deleted!</b></font><br>"
response.write "<a href=""default.asp""><br>Back to Forum<br></a></center>" &_
"<meta http-equiv=""Refresh"" content=""2; URL=default.asp"">"

sorry about that. I totally forgot about changing that once I removed the multi-page feature (which the bookmarks mod has)

Eric

Go to Top of Page

ispart
Starting Member

31 Posts

Posted - 26 April 2001 :  09:59:45  Show Profile
readleader how did u add the private message to the default.asp can u give me an idea on that

Thanks

Go to Top of Page

RedLeader
New Member

USA
85 Posts

Posted - 26 April 2001 :  10:59:44  Show Profile  Visit RedLeader's Homepage  Send RedLeader an AOL message
I've updated the above link to reflect the changes. The problem was I was posting the Delete Buddies form to Buddy.asp and not pop_buddy.asp.

Included in the updated download are E3's changes plus the updated pop_buddy.asp


E3 - Shall we merge this 2 togther for 1 download to get rid of any confusion?


My next incarnation might be trying to turn the buddy mod into a Channel for the active desktop. I'll see if I have the time to work on that.

RL



Go to Top of Page

szinski
Starting Member

12 Posts

Posted - 26 April 2001 :  11:01:41  Show Profile
Hi getting this error when I try to run mod_db... :
Creating table(s)...
CREATE TABLE FORUM_BUDDYS( BUDDY_ID COUNTER CONSTRAINT PrimaryKey PRIMARY KEY , BUDMEMBERID#int##0 NOT NULL , BUDBUDID#int##0 NOT NULL )
-2147217900 | Syntax error in field definition.

I use Access 2000.

Any Ideeas?
Go to Top of Page

e3stone
Average Member

USA
885 Posts

Posted - 26 April 2001 :  13:39:01  Show Profile  Send e3stone an AOL message
hmmmmm...well, that sort of confuses me...
why is it coming up saying that its trying to setup a primary key? there isnt' one..

this is what mine says:
Creating table(s)...
CREATE TABLE FORUM_BUDDYS( BUDDY_ID int IDENTITY (1, 1) NOT NULL , BUDMEMBERID int NOT NULL DEFAULT 0, BUDBUDID int NOT NULL DEFAULT 0)

I don't know much about the mod_dbsetup.asp file. Might get better results from whomever wrote that file

sorry

Go to Top of Page
Page: of 4 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07