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)
-   -   Profile Enhancements - vBStatus - Facebook Style Status Display (v4) (https://vborg.vbsupport.ru/showthread.php?t=181283)

Attilitus 06-01-2008 10:00 PM

vBStatus - Facebook Style Status Display (v4)
 




This modification thread will not be upgraded, since it is possible that some users may prefer v4.

Compatible with 3.6.x and 3.5.x
vBStatus allows your users to update their status to tell other members what they are doing/thinking at any given time. A user's status is displayed under their names in their postbit, in their User Profile, and anywhere else you choose!

User's can edit their status quickly and easily via AJAX.

Administrative options include:
  • Banning a list of usergroups from using the hack.
  • Allowing a list of usergroups to change other users' status.
  • Limit the # of characters used in Status Messages
  • Word wrap status messages to prevent broken templates.
  • Turning the hack on/off.
  • Option of In-Line editting or a popup. (Defined in the admincp)
  • Default status for users with a blank status. (Defined in the admincp)
  • Status prefix to append an admin-customizable forum standard. (Attilitus is doing something)
There are 3 template edits for this hack. The installation readme file will guide you through the entire process.
Update 2.0:
Please reinstall the product xml file, and re-edit your templates following the new instructions in the readme file. This is to correct a small cosmetic bug that displays non-functional links to guests and non-admins.

Update 3.0:
A number of bugs were fixed, and a few new admin options were added. Please uninstall the previous product and reinstall this one. Please re-edit your templates and reupload all files. Sorry for the inconvenience (but at least we are getting this handled in the first 12 hours of release.)

Update 4.0:
This is a fairly comprehensive update. You must remove all previous template edits and add the new template code. You must also "Allow Overwrite" when importing the new product. The DB structure hasn't changed.

New features include:
  • In-Line Editting (This is on by default, but you can return to the previous popup style by changing an option in the admincp)
  • Default Status: If a user doesn't have any status message it will be set to a default status which you can define in the admincp
  • Visual improvements: Various small visual improvements were made, including a change in the location of the small "edit" link.
Update 4.01
I added status prefixes. If your updating from version 4 just reimport the product (with overwrite set to yes), and reupload all the files. No template edits necessary when upgrading from v4 to v4.01. (And I'm not going to change the file version because this update came so quickly on the heals of v4.)


Please do not forget to click INSTALL

Attilitus 06-02-2008 12:27 PM

First Post reserved.

lazydesis 06-02-2008 12:42 PM

very nice thanks :)

elmati 06-02-2008 01:16 PM

where are the files? :)

Attilitus 06-02-2008 01:17 PM

They should be attached to my post. I did upload a new copy to fix a small cosmetic bug, check again.

simunaqv 06-02-2008 01:42 PM

I am getting the following javascript error when I try to update the status:

document.getElementById("mypopup") has no properties

on the following code


PHP Code:

document.getElementById('mypopup').innerHTML=AJAX.handler.responseText


Attilitus 06-02-2008 01:43 PM

I may have made a mistake in my directions for the template edits.

Attilitus 06-02-2008 01:47 PM

Change the template edit in headeinclude to this

Code:

<if condition="$vbulletin->options['vbstatus_active']">
<div id='mypopup' name='mypopup' style='position: absolute; width: 250px; height: 200px; background: none; border: none;'></div>
<script type="text/javascript" src="vbstatus/ajax_wrapper.js"></script>

<script type="text/javascript" src="vbstatus/headerjavascript.js"></script>
</if>

I have reuploaded the package with the fixed installation instructions.

Taragon 06-02-2008 01:53 PM

Thanks Attilitus! [s]Tagged for future use.[/s]

Edit: Installed

hastyhost 06-02-2008 02:03 PM

In MEMBERINFO I cannot find this line: <if condition="$userinfo['usertitle']">

So far that's the only thing I see wrong.

dirtycrow 06-02-2008 02:06 PM

all my groups expect admin and super mods are getting this error

Quote:

You belong to a usergroup which is banned from editting their Status. Contact an administrator for more information.

Attilitus 06-02-2008 02:09 PM

Ah. There was a change in the 3.7 variable name. Put the code for MEMBERINFO above the following line:
Code:

<if condition="$prepared['usertitle']">
The template code itself will work fine. I will reupload the package with the updated installation instructions to avoid future confusion.
Edit: The new installation instructions now include the proper "find" code for 3.7.

Attilitus 06-02-2008 02:13 PM

Quote:

all my groups expect admin and super mods are getting this error
That is unusual. Please tell me what your settings are in vBStatus options in the admincp.

dirtycrow 06-02-2008 02:17 PM

Quote:

Originally Posted by Attilitus (Post 1538778)
That is unusual. Please tell me what your settings are in vBStatus options in the admincp.

i added my banned user group to the banned groups. and now all the other user groups can edit their status.

dirtycrow 06-02-2008 02:18 PM

awesome mod BTW!!! thank you.

hastyhost 06-02-2008 02:19 PM

Alright I made that one change, however it still doesn't seem to be showing under my members names.

I did upload the file contents to the "root". Meaning, I took all the files out of the folder (vBStatus v2) and placed them in the "root" of my forum.

I also upload the whole folder to the root of my forum, and still nothing is showing. hmm

Attilitus 06-02-2008 02:20 PM

Did you read the installation readme file? There are 3 template edits that must be made manually.

hastyhost 06-02-2008 02:22 PM

Yeah, I'm the one that told you about the MEMBERINFO problem, so yes I did do all 3 template edits.

hastyhost 06-02-2008 02:28 PM

Also, this is what I do to edit the templates:

AdminCP>Style Manager>Edit Templates (drop down)>"then just choose the template you need to edit"

That's what I do, but not sure if it's right or not, as I am still learning vbulletin, but I"m not new to installing stuff if you know what I mean..

Here's my files:

headinclude:
Code:

<meta http-equiv="Content-Type" content="text/html; charset=$stylevar[charset]" />
<meta name="generator" content="vBulletin $vboptions[templateversion]" />
<if condition="$show['threadinfo']">
<meta name="keywords" content="<if condition="$threadinfo['taglist']">$threadinfo[taglist], </if>$threadinfo[prefix_plain_html] $threadinfo[title], $vboptions[keywords]" />
<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$threadinfo[prefix_plain_html] $threadinfo[title] $foruminfo[title_clean]" />
<else /><if condition="$show['foruminfo']">
<meta name="keywords" content="$foruminfo[title_clean], $vboptions[keywords]" />
<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$foruminfo[description_clean]" />
<else />
<meta name="keywords" content="$vboptions[keywords]" />
<meta name="description" content="$vboptions[description]" />
</if></if>

<!-- CSS Stylesheet -->
$style[css]
<if condition="is_browser('opera') AND !is_browser('opera', '8.0.1')">
<style type="text/css" id="vbulletin_opera8fix_css">
ul, ol { padding-$stylevar[left]:20px; }
</style>
</if>
<if condition="$show['editor_css']">
$editor_css
</if>
<!-- / CSS Stylesheet -->

<script type="text/javascript" src="$stylevar[yuipath]/yahoo-dom-event/yahoo-dom-event.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript" src="$stylevar[yuipath]/connection/connection-min.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript">
<!--
var SESSIONURL = "$session[sessionurl_js]";
var SECURITYTOKEN = "$bbuserinfo[securitytoken]";
var IMGDIR_MISC = "$stylevar[imgdir_misc]";
var vb_disable_ajax = parseInt("$vboptions[disable_ajax]", 10);
// -->
</script>
<script type="text/javascript" src="clientscript/vbulletin_global.js?v=$vboptions[simpleversion]"></script>
<if condition="$show['popups']"><script type="text/javascript" src="clientscript/vbulletin_menu.js?v=$vboptions[simpleversion]"></script></if>

<if condition="$vboptions['externalrss']">
        <link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] RSS Feed" href="external.php?type=RSS2" />
        <if condition="$show['foruminfo'] OR $show['threadinfo']">
                <link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] - $foruminfo[title_clean] - RSS Feed" href="external.php?type=RSS2&amp;forumids=$foruminfo[forumid]" />
        </if>
</if>
<!--BEGIN VBSTATUS-->
<!--BEGIN VBSTATUS-->
<!--BEGIN VBSTATUS-->
<if condition="$vbulletin->options['vbstatus_active']">
<div id='mypopup' name='mypopup' style='position: absolute; width: 250px; height: 200px; background: none; border: none;'></div>
<script type="text/javascript" src="vbstatus/ajax_wrapper.js"></script>

<script type="text/javascript" src="vbstatus/headerjavascript.js"></script>
</if>
<!--END VBSTATUS-->
<!--END VBSTATUS-->
<!--END VBSTATUS-->

postbit_legacy
Code:

$template_hook[postbit_start]
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
        <if condition="$show['announcement']">
                <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]" colspan="2">
                        <img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />
                        <phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
                </td>
        <else />
                <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[right]: 0px" $post[scrolltothis]>
                        <!-- status icon and date -->
                        <a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
                        $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
                        $post[firstnewinsert]
                        <!-- / status icon and date -->
                </td>
                <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px" align="$stylevar[right]">
                        &nbsp;
                        <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
                        <if condition="$show['inlinemod']">
                                <input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" />
                        </if>
                </td>
        </if>
</tr>
<tr valign="top">
        <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">

                        <div id="postmenu_$post[postid]">
                                <if condition="$show['profile']">
                                <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
                                <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                                <else />
                                $post[musername]
                                </if>
                        </div>
<!--BEGIN VB STATUS-->
<!--BEGIN VB STATUS-->
<!--BEGIN VB STATUS-->
<if condition="$vbulletin->options['vbstatus_active']">

<div class=smallfont> $post[username] <em><a id="vbstatus_$post[postid]">$post[vbstatus_status]</a></em></div>
<if condition="$bbuserinfo['userid']==$post['userid'] OR $vbstatus_isadmin==1">
<a href="javascript:Att_Ajax('userid=$post[userid]&postid=$post[postid]','vbstatus/vbstatus_ajax.php')">Edit Status</a>

</if>
</if>
<!--END VB STATUS-->
<!--END VB STATUS-->
<!--END VB STATUS-->
                        <if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
                        <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
                        $template_hook[postbit_userinfo_left]

                        <if condition="$show['avatar']">
                                <div class="smallfont">
                                        &nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
                                </div>
                        </if>

                        <div class="smallfont">
                                &nbsp;<br />
                                <if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
                                <if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
                                <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
                                <div>
                                        $vbphrase[posts]: $post[posts]
                                </div>
                                $template_hook[postbit_userinfo_right_after_posts]
                                <if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
                                <if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
                                $template_hook[postbit_userinfo_right]
                                <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
                        </div>

        </td>
        <if condition="$show['moderated']">
        <td class="alt2" id="td_post_$post[postid]" style="border-$stylevar[right]: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
        <else />
        <td class="alt1" id="td_post_$post[postid]" style="border-$stylevar[right]: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
        </if>
                $template_hook[postbit_messagearea_start]
                <if condition="$show['messageicon'] OR $post['title']">
                        <!-- icon and title -->
                        <div class="smallfont">
                                <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
                                <if condition="$post['title']"><strong>$post[title]</strong></if>

                        </div>
                        <hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
                        <!-- / icon and title -->
                </if>

                <!-- message -->
                <div id="post_message_$post[postid]">$post[message]</div>
                <!-- / message -->

                <if condition="$show['attachments']">
                <!-- attachments -->
                        <div style="padding:$stylevar[cellpadding]px">

                        <if condition="$show['thumbnailattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_thumbnails]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                        $post[thumbnailattachments]
                                        </div>
                                </fieldset>
                        </if>

                        <if condition="$show['imageattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_images]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                        $post[imageattachments]
                                        </div>
                                </fieldset>
                        </if>

                        <if condition="$show['imageattachmentlink']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_images]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[imageattachmentlinks]
                                        </table>
                                        </fieldset>
                        </if>

                        <if condition="$show['otherattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_files]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[otherattachments]
                                        </table>
                                </fieldset>
                        </if>

                        <if condition="$show['moderatedattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attachments_pending_approval]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[moderatedattachments]
                                        </table>
                                </fieldset>
                        </if>

                        </div>
                <!-- / attachments -->
                </if>

                $template_hook[postbit_signature_start]

                <if condition="$post['signature']">
                <!-- sig -->
                        <div>
                                __________________<br />
                                $post[signature]
                        </div>
                <!-- / sig -->
                </if>

                $template_hook[postbit_signature_end]

                <if condition="$show['postedited']">
                <!-- edit note -->
                        <div class="smallfont">
                                <hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
                                <em>
                                        <if condition="$show['postedithistory']">
                                                <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]" 4="posthistory.php?$session[sessionurl]p=$post[postid]">$vbphrase[last_edited_link_by_x_on_y_at_z_postid]</phrase>.
                                        <else />
                                                <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
                                        </if>
                                        <if condition="$post['edit_reason']">
                                                $vbphrase[reason]: $post[edit_reason]
                                        </if>
                                </em>
                        </div>
                <!-- / edit note -->
                </if>

        </td>
</tr>
<tr>
        <td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
                $post[onlinestatus]
                <if condition="$show['reputationlink']">
                        <span id="reputationmenu_$post[postid]"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow" id="reputation_$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></span>
                        <if condition="$show['popups']"><script type="text/javascript"> vbrep_register("$post[postid]")</script></if>
                </if>
                <if condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&amp;p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>" border="0" /></a></if>
                <if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if>
                $post[iplogged]
                &nbsp;
        </td>
        <if condition="$show['moderated']">
        <td class="alt2" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px; border-top: 0px">
        <else />
        <td class="alt1" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px; border-top: 0px">
        </if>
                <!-- controls -->
                <if condition="$post['editlink']">
                        <img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />
                        <a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
                </if>
                <if condition="$post['forwardlink']">
                        <a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
                </if>
                <if condition="$post['replylink']">
                        <a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
                </if>
                <if condition="$show['multiquote_post']">
                        <a href="$post[replylink]" rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]" border="0" id="mq_$post[postid]" /></a>
                </if>
                <if condition="$show['quickreply'] AND !$show['threadedmode']">
                        <a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
                </if>
                <if condition="$show['moderated']">
                        <img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
                </if>
                <if condition="$show['spam']">
                        <img src="$stylevar[imgdir_misc]/spam_detected.png" alt="$vbphrase[spam_post]" border="0" />
                </if>
                <if condition="$show['deletedpost']">
                        <if condition="$show['managepost']">
                                <a href="postings.php?$session[sessionurl]do=managepost&amp;p=$post[postid]"><img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[manage]" border="0" /></a>
                        <else />
                                <img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" />
                        </if>
                </if>
                <if condition="$show['redcard']">
                        <a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
                <else />
                        <if condition="$show['yellowcard']">
                                <a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
                        </if>
                </if>
                $template_hook[postbit_controls]
                <!-- / controls -->
        </td>
</tr>
</table>
$template_hook[postbit_end]

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
                <td class="thead">$post[username]</td>
        </tr>
        <if condition="$show['profile']">
                <tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
        </if>
        <if condition="$show['pmlink']">
                <tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['emaillink']">
                <tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['homepage']">
                <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
        </if>
        <if condition="$show['search']">
                <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
        </if>
        <if condition="$post['userid'] AND $show['member']">
        <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_contacts]</phrase></a></td></tr>
        </if>
        $template_hook[postbit_user_popup]
        </table>
</div>
<!-- / post $post[postid] popup menu -->


hastyhost 06-02-2008 02:32 PM

MEMBERINFO:
Code:

$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude

$usercss
$memberinfo_css
<style type="text/css" id="vbulletin_tabctrl_css">
@import url("clientscript/vbulletin_tabctrl.css?v=$vboptions[simpleversion]");
<if condition="$show['rtl']">@import url("clientscript/vbulletin_tabctrl_rtl.css?v=$vboptions[simpleversion]");</if>
</style>

<script type="text/javascript" src="clientscript/vbulletin_tabctrl.js?v=$vboptions[simpleversion]"></script>

<title>$vboptions[bbtitle] - $vbphrase[view_profile]: $userinfo[username]</title>


<if condition="$userinfo['userid'] == $bbuserinfo['userid']">
<script type="text/javascript" src="clientscript/vbulletin_profilefield_edit.js?v=$vboptions[simpleversion]"></script>
</if>
<script type="text/javascript">
<!--
vbphrase['server_failed_respond_try_again'] = "$vbphrase[server_failed_respond_try_again]";
vbphrase['edit_value'] = "$vbphrase[edit_value_js]";

<if condition="$show['post_visitor_message']">
function goto_post_pm()
{
        vB_TabCtrls['profile_tabs'].switch_tab('visitor_messaging');
        fetch_object('visitor_messaging').scrollIntoView();

        var textarea = fetch_object('visitor_message_form_textarea');
        if (textarea)
        {
                textarea.focus();
                textarea.select();
        }
}
</if>
-->
</script>

</head>
<body>

$header
$navbar


<!-- begin user css -->
<div id="usercss" class="floatcontainer">

<div id="content_container">
        <div id="content">

                <div id="main_userinfo" class="floatcontainer">
                        <table cellpadding="0" cellspacing="0" border="0" width="100%">
                        <tr>
                                <if condition="$prepared['profilepicurl']">
                                        <td id="profilepic_cell" class="tborder alt2"><img src="$prepared[profilepicurl]" $prepared[profilepicsize] alt="<phrase 1="$prepared[username]">$vbphrase[xs_picture]</phrase>" /></td>
                                </if>
                                <td valign="top" width="100%" id="username_box"<if condition="$prepared['profilepicurl']"> class="profilepic_adjacent"</if>>
                                        <if condition="$prepared['rank'] OR $prepared['reputationdisplay']">
                                                <div id="reputation_rank">
                                                        <if condition="$prepared['reputationdisplay']">
                                                                <div id="reputation">$prepared[reputationdisplay]</div>
                                                        </if>
                                                        <if condition="$prepared['rank']">
                                                                <div id="rank">$prepared[rank]</div>
                                                        </if>
                                                </div>
                                        </if>
                                        <h1>$prepared[musername] $prepared[onlinestatus]</h1>
<!--BEGIN VB STATUS-->
<!--BEGIN VB STATUS-->
<!--BEGIN VB STATUS-->
<if condition="$vbulletin->options['vbstatus_active']">

<div class=smallfont> $userinfo[username] <em><a id="vbstatus_$userinfo[userid]">$userinfo[vbstatus_status]</a></em></div>
<if condition="$bbuserinfo['userid']==$userinfo['userid'] OR $vbstatus_isadmin==1">
<a href="javascript:Att_Ajax('userid=$userinfo[userid]&postid=$userinfo[userid]','vbstatus/vbstatus_ajax.php')">Edit Status</a>

</if>
</if>
<!--END VB STATUS-->
<!--END VB STATUS-->
<!--END VB STATUS-->                                       
<if condition="$prepared['usertitle']">
                                                <h2>$prepared[usertitle]</h2>
                                        </if>
                                </td>
                        </tr>
                        </table>

                        <!-- link bar -->
                        <div class="tborder content_block" id="link_bar">
                                <ul class="thead block_row block_title list_no_decoration floatcontainer">
                                        <if condition="$prepared['myprofile']">
                                                <if condition="$show['can_customize_profile']">
                                                        <li class="thead" id="usercss_switch_link"><a href="profile.php?$session[sessionurl]do=customize">$vbphrase[customize_profile]</a></li>
                                                </if>
                                        <else />
                                                <if condition="$show['usercss_switch']">
                                                        <li class="thead" id="usercss_switch_link"><a href="profile.php?$session[sessionurl]do=switchusercss&amp;hash=$bbuserinfo[logouthash]&amp;u=$prepared[userid]">$usercss_switch_phrase</a></li>
                                                </if>
                                        </if>

                                        <if condition="$show['contactlinks']">
                                                <li class="thead" id="minicontact"><a href="#contactinfo">$vbphrase[send_message]</a> <script type="text/javascript">vBmenu.register("minicontact");</script></li>
                                        </if>

                                        <if condition="$show['userlists']">
                                                <li class="thead" id="userlists"><a href="profile.php?$session[sessionurl]do=buddylist&amp;nojs=1">$vbphrase[user_lists]</a> <script type="text/javascript">vBmenu.register("userlists");</script></li>
                                        </if>

                                        <if condition="$show['usernotes']">
                                                <li class="thead"><a href="usernote.php?$session[sessionurl]u=$prepared[userid]">$vbphrase[user_notes] ($prepared[usernotecount])</a></li>
                                        </if>

                                        <if condition="can_moderate()">
                                                <li class="thead"><a href="moderator.php?$session[sessionurl]do=useroptions&amp;u=$userinfo[userid]">$vbphrase[edit_user_profile]</a></li>
                                        </if>

                                </ul>

                                <!-- current activity -->
                                <if condition="$prepared['lastactivitydate'] OR $prepared['action']">
                                        <div class="alt2 smallfont block_row" id="activity_info">
                                                <if condition="$prepared['lastactivitydate']">
                                                        <div id="last_online">
                                                                <span class="shade">$vbphrase[last_activity]:</span> $prepared[lastactivitydate]<if condition="!$show['detailedtime']"> <span class="time">$prepared[lastactivitytime]</span></if>
                                                        </div>
                                                </if>
                                                <if condition="$prepared['action']">
                                                        <span class="shade">$vbphrase[current_activity]:</span> $prepared[action] $prepared[where]
                                                </if>
                                        </div>
                                </if>
                                <!-- / current activity -->

                        </div>
                        <!-- / link bar -->

                        <!-- user list menu -->
                        <ul id="userlists_menu" class="vbmenu_popup list_no_decoration" style="display: none">
                                <li class="thead first"><phrase 1="$prepared[username]">$vbphrase[user_lists]</phrase></li>
                                <if condition="$prepared['canbefriend']">
                                        <li class="vbmenu_option">
                                                <a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=friend&amp;u=$prepared[userid]"><if condition="$prepared['requestedfriend']">$vbphrase[confirm_friendship_request]<else />$vbphrase[add_to_friends_list]</if></a>
                                        </li>
                                </if>
                                <if condition="$prepared['isfriend']">
                                        <li class="vbmenu_option">
                                                <a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=friend&amp;u=$prepared[userid]">$vbphrase[remove_from_friends_list]</a>
                                        </li>
                                </if>
                                <if condition="$show['addbuddylist']">
                                        <li class="vbmenu_option">
                                                <a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$prepared[userid]">$vbphrase[add_to_contacts]</a>
                                        </li>
                                </if>
                                <if condition="$show['removebuddylist']">
                                        <li class="vbmenu_option">
                                                <a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=buddy&amp;u=$prepared[userid]">$vbphrase[remove_from_contacts]</a>
                                        </li>
                                </if>
                                <if condition="$show['addignorelist']">
                                        <li class="vbmenu_option">
                                                <a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=ignore&amp;u=$prepared[userid]">$vbphrase[add_to_ignore_list]</a>
                                        </li>
                                </if>
                                <if condition="$show['removeignorelist']">
                                        <li class="vbmenu_option">
                                                <a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=ignore&amp;u=$prepared[userid]">$vbphrase[remove_from_ignore_list]</a>
                                        </li>
                                </if>
                        </ul>

                        <!-- contact popup menu -->
                        <ul id="minicontact_menu" class="vbmenu_popup list_no_decoration" style="display:none">
                                <if condition="$show['post_visitor_message'] OR $show['pm'] OR $show['email']">
                                        <li class="thead first"><phrase 1="$prepared[username]">$vbphrase[send_message_to_x]</phrase></li>
                                </if>
                                <if condition="$show['post_visitor_message']"><li class="vbmenu_option"><img src="$stylevar[imgdir_button]/sendtofriend.gif" alt="" class="alt2 inlineimg" /> <a href="visitormessage.php?$session[sessionurl]do=message&amp;u=$prepared[userid]" onclick="return goto_post_pm();"><phrase 1="$prepared[username]">$vbphrase[post_a_visitor_message_for_x]</phrase></a></li></if>
                                <if condition="$show['pm']">
                                        <li class="vbmenu_option"><img src="$stylevar[imgdir_button]/sendtofriend.gif" alt="" class="alt2 inlineimg" /> <a href="private.php?$session[sessionurl]do=newpm&amp;u=$prepared[userid]" rel="nofollow"><phrase 1="$prepared[username]">$vbphrase[send_private_message_to_x]</phrase></a></li>
                                </if>
                                <if condition="$show['email']"><li class="vbmenu_option"><img src="$stylevar[imgdir_button]/sendtofriend.gif" alt="" class="alt2 inlineimg" /> <a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$prepared[userid]" rel="nofollow"><phrase 1="$prepared[username]">$vbphrase[send_message_via_email_to_x]</phrase></a></li></if>
                                <if condition="$prepared['hasimdetails']">
                                        <li class="thead<if condition="!$show['post_visitor_message'] AND !$show['pm'] AND !$show['email']"> first</if>">$vbphrase[instant_messaging]</li>
                                        <if condition="$prepared['icq']">
                                                <li class="vbmenu_option"><img class="alt2 inlineimg" alt="" src="$stylevar[imgdir_misc]/im_icq.gif" />  <a href="#" dir="ltr" onclick="imwindow('icq', '$prepared[userid]', 500, 450); return false;"><phrase 1="$prepared[username]">$vbphrase[send_icq_message_to_x]</phrase></a></li>
                                        </if>
                                        <if condition="$prepared['aim']">
                                                <li class="vbmenu_option"><img class="alt2 inlineimg" alt="" src="$stylevar[imgdir_misc]/im_aim.gif" /> <a href="#" dir="ltr" onclick="imwindow('aim', '$prepared[userid]', 400, 200); return false;"><phrase 1="$prepared[username]">$vbphrase[send_aim_message_to_x]</phrase></a></li>
                                        </if>
                                        <if condition="$prepared['msn']">
                                                <li class="vbmenu_option"><img class="alt2 inlineimg" alt="" src="$stylevar[imgdir_misc]/im_msn.gif" /> <a href="#" dir="ltr" onclick="imwindow('msn', '$prepared[userid]', 400, 200); return false;"><phrase 1="$prepared[username]">$vbphrase[send_msn_message_to_x]</phrase></a></li>
                                        </if>
                                        <if condition="$prepared['yahoo']">
                                                <li class="vbmenu_option"><img src="$stylevar[imgdir_misc]/im_yahoo.gif" alt="" class="alt2 inlineimg" /> <a href="#" dir="ltr" onclick="imwindow('yahoo', '$prepared[userid]', 400, 200); return false;"><phrase 1="$prepared[username]">$vbphrase[send_yahoo_message_to_x]</phrase></a></li>
                                        </if>
                                        <if condition="$prepared['skype']">
                                                <li class="vbmenu_option"><img src="$stylevar[imgdir_misc]/im_skype.gif" alt="" class="alt2 inlineimg" /> <a href="#" dir="ltr" onclick="imwindow('skype', '$prepared[userid]', 400, 285); return false;"><phrase 1="$prepared[username]">$vbphrase[send_skype_message_to_x]</phrase></a></li>
                                        </if>
                                </if>
                        </ul>
                        <!-- / contact popup menu -->
        </div>

        <div id="profile_tabs">
                $template_hook[profile_left_first]
                $blocks[visitor_messaging]
                $blocks[aboutme]
                $blocks[stats]
                $blocks[friends]
                $blocks[infractions]
                $blocks[contactinfo]
                $template_hook[profile_left_last]
        </div>

        <script type="text/javascript">
        <!--
        vBulletin.register_control("vB_TabCtrl", "profile_tabs", "$selected_tab", "&raquo;", "profile.php?u=2&do=loadtab&tabid={1:tabid}");
        //-->
        </script>

</div>
</div>

<div id="sidebar_container">
        <!-- sidebar -->
        $template_hook[profile_right_first]
        $blocks[stats_mini]
        $template_hook[profile_right_mini]
        $blocks[friends_mini]
        $blocks[albums]
        $template_hook[profile_right_album]
        $blocks[groups]
        $blocks[visitors]
        $template_hook[profile_right_last]
        <!-- / sidebar -->
</div>

<!-- end usercss -->
</div>

$footer

</body>
</html>


Attilitus 06-02-2008 02:34 PM

Check your vBulletin options for vBStatus. Is there an option for turning vBStatus on/off? Also are you sure that you are editting the template that your site is currently using?

Also, I have reuploaded the files to fix the bug which causes all users to be banned when no banned usergroup is specified. To fix just reupload the files, there is no need to reupload the product or update any templates.

hastyhost 06-02-2008 02:34 PM

Ok I found my problem :)

What I did was I coded in "postbit_legacy" instead of "postbit" .

So for anyone else that may have this issue, just try either or if one doesn't work for you :) GREAT MOD

Attilitus 06-02-2008 02:38 PM

Glad everything worked out. I would suggest reuploading the product and reuploading all the files now though. As I've fixed a few bugs in the past 15-20 minutes.

I'll release a v3 version once I'm satisfied all bugs have been squashed.

hastyhost 06-02-2008 02:41 PM

Also, another thing I noticed in your instructions is you say: Upload all files in the Upload folder to your forum root.

lol At first like I said a minute ago, I uploaded all the actuall "files" in the vbstatus folder to the "root". But in order for this mod to work, you need to only upload "the folder" in the upload "folder" to the root of your forum.

So I think to save confusion, you should reword it like this: Upload all folders in the Upload folder to your forum root.

I may be wrong who knows as I am still a newb at this forum, but just trying to help if I did :) AGAIN GREAT MOD

edit-Yeah I reuploaded it

StuntFactoryX 06-02-2008 02:42 PM

looks cool... any feedback on how it looks in postbit legacy? is there a text limit and can users break the style?

Attilitus 06-02-2008 02:44 PM

It will look perfectly fine in postbit_legacy.

There might be some potential for users to break the style. I will add a word_wrap and a character limit. (Right now the practical character limit is 200 characters by virtue of the db table size).

dirtycrow 06-02-2008 02:45 PM

v2 kills the header links in firefox.

hastyhost 06-02-2008 02:46 PM

I'm getting database errors now after uploading the new files. You can view my forum at "forums.hastyhost.com"

hope it's ok to post links like that

kambiz 06-02-2008 02:47 PM

first of all thanks a lot.
It seems there is issue with positioning in the code we have to add to headinclude. it made lmost half of header unclickable (did I use it right?). I mean the logo and some of links in the navbar are not in links style unless you click on Edit Status once.).
I checked the code and seems it's because of positioning. I tried to change it to fixed, relative and static. they solved that issue but made another one: extra height in header.
for now I solved my problem by removing the height from the code which I know is not a good solution.
anyone can help me?

dirtycrow 06-02-2008 03:00 PM

Quote:

Originally Posted by kambiz (Post 1538818)
first of all thanks a lot.
It seems there is issue with positioning in the code we have to add to headinclude. it made lmost half of header unclickable (did I use it right?). I mean the logo and some of links in the navbar are not in links style unless you click on Edit Status once.).
I checked the code and seems it's because of positioning. I tried to change it to fixed, relative and static. they solved that issue but made another one: extra height in header.
for now I solved my problem by removing the height from the code which I know is not a good solution.
anyone can help me?

i followed your advice, works. thanks.

Attilitus 06-02-2008 03:04 PM

Change the following bit of code to fix the problem with unclickable header links:

headinclude
Code:

<div id='mypopup' name='mypopup' style='position: absolute; width: 250px; height: 200px; background: none; border: none;'></div>
change to:

Code:

<div id='mypopup' name='mypopup' style='position: absolute; background: none; border: none;'></div>
This will be fixed in the instructions in v3 once I finish adding a few features.

BlakeMichael 06-02-2008 03:11 PM

Hey, I followed the instructions exactly and ended up with this:

Quote:

Database error in vBulletin 3.7.0:

Invalid SQL:
SELECT vbstatus_status FROM userfield WHERE userid = '2';

MySQL Error : Unknown column 'vbstatus_status' in 'field list'
Error Number : 1054
Request Date : Monday, June 2nd 2008 @ 11:06:41 AM
Error Date : Monday, June 2nd 2008 @ 11:06:41 AM
Script : http://desertcalling.com/vbstatus/vb...=2&postid=4528
Referrer : http://desertcalling.com/showthread.php?t=351
IP Address : 76.122.236.213
Username : Isaac
Classname : vb_database
MySQL Version : 4.1.22-standard
Can you help? :)

kambiz 06-02-2008 03:13 PM

Quote:

Originally Posted by Attilitus (Post 1538850)
Change the following bit of code to fix the problem with unclickable header links:

headinclude
Code:

<div id='mypopup' name='mypopup' style='position: absolute; width: 250px; height: 200px; background: none; border: none;'></div>
change to:

Code:

<div id='mypopup' name='mypopup' style='position: absolute; background: none; border: none;'></div>
This will be fixed in the instructions in v3 once I finish adding a few features.

thanks a lot.

MindTrix 06-02-2008 03:17 PM

Can this be changed so that people can change their status in the top right corner of each page? Same as you can with the Vmoods Manager hack?

Attilitus 06-02-2008 03:19 PM

Wow. I'm sorry. I left a line of uninstallation code at the bottom of one of the files.

If you are encountering this DB error please do the following:

1) Go into the product manager.
2) Edit product vBStatus.
3) Delete everything inside the uninstallation code box.
4) Go back to the product maanger.
5) Uninstall the product vBStatus.
6) Reinstall version 3.0 fresh.

Zweeper 06-02-2008 03:35 PM

Quote:

Originally Posted by BlakeMichael (Post 1538857)
Hey, I followed the instructions exactly and ended up with this:


Can you help? :)


i got the same problem

Attilitus 06-02-2008 03:45 PM

Yea, that most recent update had a mistaken line of code in it. If you are getting that DB error follow my previous instructions to uninstall the product.

Version 3 is released now. Do a fresh reinstall of that version and everything ought to be fine.

Attilitus 06-02-2008 03:47 PM

Quote:

Can this be changed so that people can change their status in the top right corner of each page? Same as you can with the Vmoods Manager hack?
It can be changed, but I think that the intrusiveness of having a floating link on every page outweighs the benefits for the majority of the users.

tei727 06-02-2008 03:56 PM

Code:

Database error in vBulletin 3.7.1:

Invalid SQL:
SELECT vbstatus_status FROM userfield WHERE userid = '1';

MySQL Error  : Unknown column 'vbstatus_status' in 'field list'
Error Number  : 1054

help

Attilitus 06-02-2008 03:59 PM

Quote:

help
Sorry you were one of the unlucky ones to download the package with the mistaken uninstall plugin code included. Follow the instructions in this post and then reinstall version 3.0. Do a totally fresh install (redo the template edits, reupload the product, and reuplod the files).

https://vborg.vbsupport.ru/showpost....9&postcount=36


All times are GMT. The time now is 06:21 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.01982 seconds
  • Memory Usage 2,060KB
  • 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
  • (10)bbcode_code_printable
  • (1)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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