vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Buddy Messenger v1.1 (https://vborg.vbsupport.ru/showthread.php?t=43058)

kaost451 08-31-2002 10:00 PM

Buddy Messenger v1.1
 
Buddy Messenger v1.1

This hack add's a nice drop down menu to your index page (pminfo), It's a fast way to contact your buddy's via private message. It is color organized for Online buddies (Red) and Offline buddies (Gray). This hack isn't a final version, There are no reported bugs, but I would like to update it a little more. This hack works with all 2.x versions.

*This modification is originally for a buddy panel I am working on, But I decided to release this because some people might just want this as a separate hack, considering the buddy panel will have completely different options.

Screenshot:
http://www.pixelcentric.com/images/buddymsg.gif

If there is any problems, please let me know. Thanks.

UPDATED: 11-3-02 : 1:37 PM

Attrox 09-01-2002 09:44 PM

Oh, very cool idea. I'll be installing this, nice job! It is a very unique and usefull hack, in my opinion.

kaost451 09-01-2002 09:49 PM

Ooops, Here is the right Buddy_go Image.

ULTIMATESSJ 09-01-2002 10:42 PM

pretty good

kaost451 09-01-2002 10:44 PM

Thanks, Just a simple hack. I'm sure the members will like it.

bluecat 09-01-2002 11:09 PM

How can I make the little icon sit to the left of the drop down menu? Cool hack too. :D

[D]Vincent 09-02-2002 01:49 AM

Nice hack, I'll install it when I have some extra time.

Mystic Gohan 09-02-2002 04:29 AM

looks very nice I will be installing

Mystic Gohan 09-02-2002 04:55 AM

works great took me some time to work out a few kinks and I took out a few extra codes but now it works fine

Mystic Gohan 09-02-2002 04:58 AM

heh sorry for the triple post BUT I found another bug that I cant work out its a Javascript error because it wont let me click on the button it tells me I have an error on the page (in explorer bar)

Mathieu 09-02-2002 06:37 AM

a nice hack I'll install it when I have time.

thx

Dean C 09-02-2002 07:05 AM

lol nice hack mate... ill install it later on RS ;)

Kars10 09-02-2002 09:41 AM

This Hack is great...but in my Forum it adds 12 Querys to my Index.php...
Thats a lot! ;)

kaost451 09-02-2002 04:41 PM

yeah I know a lot of querys, Only because It is for a complete buddy panel, if anyone would like to work on this a little more feel free too.

Kars10 09-02-2002 04:57 PM

Quote:

Originally posted by kaost451
yeah I know a lot of querys, Only because It is for a complete buddy panel, if anyone would like to work on this a little more feel free too.
Like i said, its a great Hack...and i would like to have it on my Board. But i don?t think you can reduce the Querys.
Its the Problem of the Buddylist at all... :ermm:

kaost451 09-02-2002 05:04 PM

yeah, maybe firefly or someone can look at this and maybe reduce the query's, please keep in mind this isn't final I'm sure i'll work out the kinks.

Darkwolf 09-02-2002 05:14 PM

Nice one :)

ZiRu$ 09-02-2002 07:02 PM

DAMN.......very nice idea.....will install RIGHT NOW

ZiRu$ 09-02-2002 07:56 PM

um......ok I installed it....I had to modify it a little to fit my design....it shows up....colors/buddies/everything EXCEPT it isn't LINKED To the PM...

here's part of the code i have..also not sure if it makes a difference but it's in my FORUMHOME template.....not my pmloggedin

Code:

<form name="buddyjump">
<img src="{imagesfolder}/buddy_go.gif" border="0" alt="Message Buddy"><script>
function jumpMenu(){
location=document.buddyjump.buddymenu.options[document.buddyjump.buddymenu.selectedIndex].value;
}
</script>
<smallfont>
<select name="buddymenu" size="1">
<option>Buddy Messenger</option>
<option>Online Buddies</option>
$onlinebuddy
<option>Offline Buddies</option>
$offlinebuddy
</select></smallfont></td>

<a href="Javascript:jumpMenu()"></a>
</td></form>

help?

JCFN TeK gEEk 09-02-2002 08:20 PM

im kinda confused were to add this??

Quote:

==========================
STEP FIVE --> Add 2 New Replacments {buddyon} and {buddyoff}.
==========================
** Inside {buddyon} Add:

style="color:#FF0000"

** Inside {buddyoff} add:

style="color:#969EAF"

kaost451 09-02-2002 09:30 PM

Post #19: You might need to go back and be sure you didn't miss anyparts. It should work fine, I'll double check for you.

Post #20: You have to go to your replacment set's and add new replacments, one called {buddyon} and another called {buddyoff} -- Hope that helps

kaost451 09-02-2002 09:39 PM

I looked over the script and I don't see any problems. Try this if you are having java errors, otherwise it's not the script.


Find:
PHP Code:


<form name="buddyjump">
<
script>
function 
jumpMenu(){
location=document.buddyjump.buddymenu.options[document.buddyjump.buddymenu.selectedIndex].value;
}
</
script>
<
td valign="middle" align="right">
<
smallfont>
<
select name="buddymenu" size="1">
<
option>Buddy Messenger</option>
<
option>Online Buddies</option>
$onlinebuddy
<option>Offline Buddies</option>
$offlinebuddy
</select></smallfont></td>
<
td width="22" valign="middle" align="left">
<
a href="Javascript:jumpMenu()"><img src="{imagesfolder}/buddy_go.gif" border="0" alt="Message Buddy"></a>
</
td></form>
</
tr></table>
</
td></tr

Replace With:
PHP Code:

<form name="jump">
<
script>
function 
jumpMenu(){
location=document.jump.menu.options[document.jump.menu.selectedIndex].value;
}
</
script>
<
td valign="middle" align="right">
<
smallfont>
<
select name="menu" size="1">
<
option>Buddy Messenger</option>
<
option>Online Buddies</option>
$onlinebuddy
<option>Offline Buddies</option>
$offlinebuddy
</select></smallfont></td>
<
td width="22" valign="middle" align="left">
<
a href="Javascript:jumpMenu()"><img src="{imagesfolder}/buddy_go.gif" border="0" alt="Message Buddy"></a>
</
td></form>
</
tr></table>
</
td></tr

if you still have problems, let me know. If anyone has got this installed let me know. thanks.

JCFN TeK gEEk 09-02-2002 10:53 PM

yah.. but where do i go, to find and add those new replacements? im totally lost here!

BigJohnson 09-03-2002 12:41 AM

Ya i get an error too. This is what happens. It works great when linking to the Pm thing for the buddy but when you highlight OFFLINE BUDDY and click the button you get the error saying there is an error. Is there any way to not get this to show up?

snyx 09-03-2002 03:46 AM

huh, buddies in a dropdown list in forumhome..
who would have thunk it..
https://vborg.vbsupport.ru/showthrea...171#post246171

none the less, I shall install it.

kaost451 09-03-2002 04:01 PM

ohh damn, I never seen that.. sorry.. well there you go you can use either one. If you are getting any errors (which I didn't) then It is probably the drop down script. I'll look into it

BigJohnson 09-03-2002 04:54 PM

Ya but I like this drop down alot better than that one.

ZiRu$ 09-03-2002 05:06 PM

me too...but it dont link to the buddies :(

kaost451 09-03-2002 05:12 PM

Okay here is the solution, In step four add this instead.
This should fix the problem.


PHP Code:

<tr id="cat">
    <
td bgcolor="{categorybackcolor}" colspan="6"><a href="private.php?s=$session[sessionhash]title="Click Here to Open Your Private Messages $inboxname"><normalfont color="{categoryfontcolor}"><b>Private Messages</normalfont></b></a></td>
</
tr>
<
tr>
    <
td bgcolor="{secondaltcolor}" align="center" valign="top"><img src="{imagesfolder}/$lightbulb.gif" alt=""></td>
    <
td bgcolor="{firstaltcolor}" colspan="5">
<
table cellpadding="0" cellspacing="0" width="100%">
<
tr><td width="100%" valign="middle"><smallfont>
    <
b>$bbuserinfo[username]</b> - You have $newpm[messages] new message(ssince your last visit.<br>
    (
You have $unreadpm[messagesunread messages and $allpm[messagestotal messages in all your folders.)</smallfont></td>
<
form name="buddyjump">
<
td valign="middle" align="right"><smallfont>
<
select name="buddymenu" onChange="location=document.buddyjump.buddymenu.options[document.buddyjump.buddymenu.selectedIndex].value;" value="GO">
<
option selected>Buddy Messenger</option>
$onlinebuddy
$offlinebuddy
</select>
</
smallfont></td></form>
</
tr></table>
</
td></tr

Now if you would like to add more options to
your buddy messenger, you may add three new
options, profile, send pm and remove buddy.


ex:
username(1)
- Send PM
- Remove
username(2)
- Send PM
- Remove

Just open buddy_messenger and replace it with:

PHP Code:

<option $onoff value="member.php?s=$session[sessionhash]&action=getinfo&userid=$buddy[userid]">$buddy[username]</option>
<
option value="private.php?s=$session[sessionhash]&action=newmessage&userid=$buddy[userid]">- Send PM</option
<
option value="member2.php?s=$session[sessionhash]&action=removelist&userlist=buddy&userid=$buddy[userid]">- Remove</option


kaost451 09-03-2002 05:41 PM

Here I updates the hack. Just go ahead and reinstall it if you are having problems.

Mr_P 09-03-2002 05:58 PM

Quote:

Originally posted by JCFN TeK gEEk
im kinda confused were to add this??


In admin cp look down left hand side and you will see

Replacements
Add | Modify | Add Set

Just add them their if they aint already

kaost451 09-03-2002 06:01 PM

thanks mr p, I put a novice section inside the updated version. explaining where the replacments are.

JCFN TeK gEEk 09-03-2002 08:38 PM

<-- is a novice so thanx :confused:

Mystic Gohan 09-04-2002 12:28 AM

looks good I re-installed works good now thanks much

ZiRu$ 09-04-2002 03:16 AM

thx alot man....the fix works perfect :)

Darth Cow 09-04-2002 03:40 AM

Quote:

Originally posted by kaost451
yeah, maybe firefly or someone can look at this and maybe reduce the query's, please keep in mind this isn't final I'm sure i'll work out the kinks.
What would the SQL be to simply get buddies without worrying about whether they are online or not? Would that be a helpful reduction?

kaost451 09-05-2002 01:30 AM

Quote:

What would the SQL be to simply get buddies without worrying about whether they are online or not? Would that be a helpful reduction?
Yeah I could do that, but then again I kinda like the fact you can see what buddies are online.

I'm glad the update fixed the problem.

FleaBag 09-05-2002 01:46 AM

This is a class hack! Installed in under 2 minutes on 2.2.7, working flawlessly! Thanks. :D

kaost451 09-05-2002 01:47 AM

great!! love to hear that!

Cyberhouse 10-10-2002 06:58 AM

Very nice hack, my members love it.... Thanks


All times are GMT. The time now is 04:46 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01317 seconds
  • Memory Usage 1,850KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete