vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Forum Home Enhancements - Buddylist on Forumhome (https://vborg.vbsupport.ru/showthread.php?t=188506)

ThorstenA 08-17-2008 10:00 PM

Buddylist on Forumhome
 
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 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

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

Quote:

Originally Posted by StonePilot (Post 1601858)
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

Quote:

Originally Posted by MrBig (Post 1601888)
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

Quote:

Originally Posted by masons_mum (Post 1602089)
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?


All times are GMT. The time now is 01:31 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.01297 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_code_printable
  • (3)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
  • (10)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