vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Profile Enhancements - Show online/offline status in friends block (https://vborg.vbsupport.ru/showthread.php?t=171899)

Taragon 03-01-2008 10:00 PM

Show online/offline status in friends block
 
Show online/offline status in friends block
  • Shows the online/offline status in the user profile friends block like ie. MySpace.

Demo: http://www.letsgather.net/member.php?u=1

Code:

----------------------------
memberinfo_tiny

FIND:
----------------------------

<li class="memberinfo_tiny">
<if condition="$user['avatarurl']">
        <a href="member.php?$session[sessionurl]u=$user[userid]"><img src="$user[avatarurl]" alt="$user[username]"<if condition="$user['avatarwidth']"> width="$user[avatarwidth]"</if><if condition="$user['avatarheight']"> height="$user[avatarheight]"</if> border="0" class="alt2" /></a>
</if>                               
        <div class="smallfont" title="$user[username]"><a href="member.php?$session[sessionurl]u=$user[userid]">$user[musername]</a></div>
</li>

----------------------------
REPLACE with:
----------------------------

<li class="memberinfo_tiny">
<if condition="$user['avatarurl']">
        <a href="member.php?$session[sessionurl]u=$user[userid]"><img src="$user[avatarurl]" alt="$user[username]"<if condition="$user['avatarwidth']"> width="$user[avatarwidth]"</if><if condition="$user['avatarheight']"> height="$user[avatarheight]"</if> border="0" class="alt2" /></a>
</if>                               
        <div class="smallfont" title="$user[username]"><a href="member.php?$session[sessionurl]u=$user[userid]">$user[musername]</a></div>
        <div class="smallfont">
                <if condition="$user['onlinestatus']">$user[onlinestatus]</if>
        </div>
</li>

----------------------------
memberinfo_css

FIND:
----------------------------

/**
* Memberinfo Tiny
*/
li.memberinfo_tiny {
        height:105px;
        width:75px;
        overflow:hidden;
        float:$stylevar[left];
        text-align:center;
        margin:1px;
}

----------------------------
REPLACE with:
----------------------------

/**
* Memberinfo Tiny
*/
li.memberinfo_tiny {
        height:115px;
        width:75px;
        overflow:hidden;
        float:$stylevar[left];
        text-align:center;
        margin:1px;
}

----------------------------
Done!


Taragon 03-02-2008 04:08 PM

Small oops...
Code:

----------------------------
memberinfo_css

FIND:
----------------------------

height:115px;

----------------------------
REPLACE with:
----------------------------

height:105px;

----------------------------


ofcourse should be
Code:

----------------------------
memberinfo_css

FIND:
----------------------------

height:105px;

----------------------------
REPLACE with:
----------------------------

height:115px;

----------------------------


I've updated the txt file.

SwollenCranium 03-02-2008 04:40 PM

Hmmmm ....

How about writing an article on how you did all those user profile modifications ?

The HOW TO section on profiles is lacking of any clear guidance.

YOURS looks awesome.

Taragon 03-02-2008 05:05 PM

Even though it took me a couple of months to figure some stuff out, being not a coder or web designer myself, it basically is very simple and looks very much like the example given here by Hex_legend https://vborg.vbsupport.ru/showthread.php?t=166890

It’s an html page, using the MEMBERINFO template, having 2 columns, filled with the MEMBERINFO hooks and custom profile fields.

Also, this is just nice ;)
This is awesome http://mygtblog.org/about-princeton/

Forgive me if I'm breaking any site rules for making credits to a 3rd party site btw.

To your question, maybe, in the future.

I do like to keep this topic "this mod only" after this reply :)

choccyclaire 03-02-2008 05:50 PM

This is cool. Thanks. :D

zmmmzz 03-04-2008 01:58 AM

awesome

nerofix 03-11-2008 09:22 PM

Cool how did you made the online status appears as text as you can see in the first screenshot?

LisaJH 05-07-2008 12:59 PM

it dont work for me :S

Captain Tycoon 06-14-2008 02:08 PM

Marked and Installed! Works Perfectly :)

Ultimate Killer 06-21-2008 01:39 PM

Great thanks.


All times are GMT. The time now is 07:54 AM.

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.01318 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_code_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