PDA

View Full Version : Forum Home Enhancements - Buddylist on Forumhome


ThorstenA
08-17-2008, 10:00 PM
Notice: This mod uses Re-usable Code, so please feel free to port it to vbulletin 4 under your username. Thanks.

What does this Product do?
It displays Buddylist (https://vborg.vbsupport.ru/misc.php?do=buddylist) on Forumhome

How to install?

Import Product
Open template FORUMHOME and put $fh_buddylist where you want to show buddylist.
Create template BUDDYLIST_FH and put this code into it

<script type="text/javascript">
<!--
function pm(tform)
{
var users = new Array();
var arrCount = 0;
for (i = 0; i < tform.elements.length; i++)
{
var element = tform.elements[i];
if ((element.name != "allbox") && (element.type == "checkbox") && (element.checked == true))
{
users[arrCount] = element.value;
arrCount++;
}
}
if (arrCount == 0)
{
alert("$vbphrase[no_users_selected]");
}
else
{
var querystring = "";
for (i = 0; i < users.length; i++)
{
querystring += "&userid[]=" + users[i];
}
if (opener && !opener.closed )
{ // parent window is still open
self.location= "private.php?$session[sessionurl]do=newpm" + querystring;
// opener.location="private.php?$session[sessionurl]do=newpm" + querystring;
}
else
{ // parent window has closed or went to a different URL.
self.location= "private.php?$session[sessionurl]do=newpm" + querystring;
//window.open("private.php?$session[sessionurl]do=newpm" + querystring, "pm");
}
}
}
// -->
</script>


<form action="private.php" method="post" target="_blank" name="vbform">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
<td class="tcat" colspan="3">$vbphrase[contacts]</td>
</tr>
<tr>
<td class="thead" align="center" colspan="3"><span class="smallfont">-- <strong>$vbphrase[online]</strong> --</span></td>
</tr>
$onlineusers
<tr>
<td class="thead" align="center" colspan="3"><span class="smallfont">-- <strong>$vbphrase[offline]</strong> --</span></td>
</tr>
$offlineusers
<tr>
<td class="tfoot" align="center" colspan="3">

<input type="button" class="button" value="$vbphrase[pm_users]" onclick="pm(this.form);" title="$vbphrase[send_private_message_to_selected_users]" />
</td>
</tr>
</table>

</form>



optional: Open template buddylistbit and change it to

<tr>
<td class="alt1"><a href="member.php?$session[sessionurl]u=$buddy[userid]"><img src="$stylevar[imgdir_statusicon]/user_$buddy[statusicon].gif" alt="" title="<phrase 1="$buddy[username]" 2="$buddy[statusicon]">$vbphrase[x_is_y]</phrase>" border="0" /></a></td>
<td class="alt2" width="100%"><label class="smallfont" for="buddy_$buddy[userid]"><a href="member.php?$session[sessionurl]u=$buddy[userid]"><if condition="$show['highlightuser']"><span class="highlight">$buddy[username]</span><else />$buddy[username]</if></a></label></td>
<td class="alt1"><input type="checkbox" name="userid[]" id="buddy_$buddy[userid]" value="$buddy[userid]" /></td>
</tr>

Done


How to uninstall?

Deinstall Product
Rechange FORUMHOME
Done

KURTZ
08-18-2008, 09:44 PM
screen shots? :p

ThorstenA
08-18-2008, 09:49 PM
No screenshots available, sorry. Variable $fh_buddylist includes only BUDDYLIST template and you can put this variable where you want on Forumhome. Nothing special here. Point is that users see immediately who from their friends is online and they can pn them very fast.

whitetigergrowl
08-18-2008, 10:20 PM
Will not install this mod without screenshots or a demo.

StonePilot
08-18-2008, 10:22 PM
I agree, this has some merit for a product, but I'm wary of going through the trouble w/o at least an example of what it looks like and what information it shows.

ThorstenA
08-18-2008, 10:29 PM
I agree, this has some merit for a product, but I'm wary of going through the trouble w/o at least an example of what it looks like and what information it shows.
Product shows exactly BUDDYLIST template within $fh_buddylist variable. You can see this template in your forum via Quick Links > Open Contacts Popup. Be sure to put this variable in some container like < div > or < table > as it is not restricted horizontally.

If there is interest in this product I am thinking of publishing an auto-template version.

MrBig
08-18-2008, 10:52 PM
if you added the friends avatar next to it it would be gold!

ThorstenA
08-18-2008, 10:55 PM
if you added the friends avatar next to it it would be gold!

Great idea, looking into it.

masons_mum
08-19-2008, 06:15 AM
i have installed this..but my problem with it is that its not collapsable. So someone like me, an admin, has over 20 contacts...it takes a while to get to my forums LOL. Is there a wayt o make the table collapseable? other wise great idea thank you.

Just tested it out...and nothing happens when you click pm.

ThorstenA
08-19-2008, 06:39 AM
Just tested it out...and nothing happens when you click pm.

Please change template BUDDYLIST_FH to the updated content in my Mod Information post (#1) within this thread. Is it working now?

Hornstar
08-20-2008, 08:35 PM
yeah ill consider this, I have a bit in my side column already tho.

yahoooh
08-27-2008, 07:39 AM
this one is perfect

nerofix
12-06-2008, 06:47 PM
Yes with avatar would be nice, waiting for this :)

jlew24asu
12-06-2008, 06:50 PM
why is a screenshot so much to ask?

ThorstenA
11-17-2009, 10:42 PM
Notice: This mod uses Re-usable Code, so please feel free to port it to vbulletin 4 under your username. Thanks.

Tyran1
04-25-2012, 03:56 AM
Works perfect on vB 3.8.7 PL2
Thanks!!!