Back to vBulletin 3.7 Add-ons

Buddylist on Forumhome
Mod Version: 1.00, by ThorstenA

This modification is in the archives.
vB Version: 3.7.2 Rating: (1 vote - 5.00 average) Installs: 14
Released: 19 Aug 2008 Last Update: 19 Aug 2008 Downloads: 63
Not Supported Uses Plugins Template Edits Re-usable Code Translations Is in Beta Stage  

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 http://www.vbulletin.org/forum/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
    Code:
    	<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
    Code:
    <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

Download

This modification is archived, downloads are still allowed.

File Type: %1$s product-buddyfh.xml (3.3 KB, 63 downloads)


vblts.ru supports vBulletin®, 2022-2024