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)
-   -   Forum Display Enhancements - Latest profilevisitors - a better look (https://vborg.vbsupport.ru/showthread.php?t=199800)

Oyabun 12-25-2008 10:00 PM

Latest profilevisitors - a better look
 
Hi there!

First of all i'd like to tell you that im not the best coder and you will have to edit your templates on your on risk :D! (Better save your template if you're not sure about this...)

What does this modification do?
It'll make your "latest profilevisitors block" in the profile look better and it adds online/offline buttons if you've uploaded them.

How to add the time and date the user visited the profile.

If you want to show avatars (small) aswell click here


open your memberinfo_visitorbit template:
search for:
HTML Code:

<li class="smallfont">
replace with:
HTML Code:

<li class="smallfont" style="margin-top: 4px">$user[onlinestatus]
Open template memberinfo_block_recentvisitors:
Change ol and /ol in ul and /ul

Open file includes/class_profileblock.php:
search for:
PHP Code:

SELECT user.useriduser.usernameuser.usergroupiduser.displaygroupidprofilevisitor.visible 

replace with:
PHP Code:

SELECT user.useriduser.usernameuser.usergroupiduser.displaygroupiduser.lastactivity, (user.options " . $this->registry->bf_misc_useroptions['invisible'] . ") as invisibleprofilevisitor.visible 

search for:
PHP Code:

$visitors["$user[username]"] = $user

above add:
PHP Code:

fetch_online_status($usertrue); 

Done! (Thanks to Stoebi)




Excuse my english, im german.
HF with this mod. Greez :confused:

crkgb 12-26-2008 06:38 AM

Definitely a nice mod. Only one comment though. It needs to support a scroll bar. Like in this page on the left side: http://weblog.33b.ru/weblog.1745546.html

Otherwise options of people displayed are limited to the page height.

Rene Kriest 12-26-2008 03:27 PM

Quote:

Originally Posted by crkgb (Post 1693822)
Definitely a nice mod. Only one comment though. It needs to support a scroll bar. Like in this page on the left side: http://weblog.33b.ru/weblog.1745546.html

Otherwise options of people displayed are limited to the page height.

I don't think so. It's about the latest, not all visitors. Just write above "latest X visitors" or do you wanna carry along with your profile the visitor's list of the last century - and counting? ;)

Oyabun 12-26-2008 04:45 PM

Hehe :D
But does anyone have an idea how to fix that problem with the icons?
On my board they all show up as "offline".

I tried $user[onlinestatus], $prepared[onlinestatus] and $post[onlinestatus] aswell, but nothing seemed to work.
Is that just a problem on my own forums...maybe? :confused:

I know i am the creator... i should know lol

3arab-hero 12-26-2008 06:30 PM

i have the same problem in my forum

all of members who visited the profile showen to be offline

crkgb 12-26-2008 11:26 PM

Quote:

Originally Posted by Rene Kriest (Post 1694106)
I don't think so. It's about the latest, not all visitors. Just write above "latest X visitors" or do you wanna carry along with your profile the visitor's list of the last century - and counting? ;)

If you have 20 ppl visiting your profile page every month - you are absolutely right. In my case it's close to 500 daily. So I have 50 recent visitors displayed. Your view on the problem is unacceptable in my case.

Oyabun 12-27-2008 12:37 AM

As I said, im not the best coder. I am just starting and I just wanted to provide you with what I got.

Stoebi 12-28-2008 02:18 AM

Quote:

I also tried $user[onlinestatus] but it did not WORK :<
Right, without file edits the onlinestatus will not available.

Revert and open your memberinfo_visitorbit template:
search for:
HTML Code:

<li class="smallfont">
replace with:
HTML Code:

<li class="smallfont" style="margin-top: 4px">$user[onlinestatus]
Open template memberinfo_block_recentvisitors:
Change ol and /ol in ul and /ul

Open file includes/class_profileblock.php:
search for:
PHP Code:

SELECT user.useriduser.usernameuser.usergroupiduser.displaygroupidprofilevisitor.visible 

replace with:
PHP Code:

SELECT user.useriduser.usernameuser.usergroupiduser.displaygroupiduser.lastactivity, (user.options " . $this->registry->bf_misc_useroptions['invisible'] . ") as invisibleprofilevisitor.visible 

search for:
PHP Code:

$visitors["$user[username]"] = $user

above add:
PHP Code:

fetch_online_status($usertrue); 

Ready!

Quote:

how to add the the time the user visited.
http://your-vb.com/showthread.php?t=114


Regards,

Stoebi

Oyabun 12-28-2008 02:53 AM

Lol, danke. Thank you. You saved my little mod. :)

Sweeks 12-28-2008 10:44 AM

Lovely, installed :D

Maybe add a mini preview of the friend's avatar next to their online status?
________
Motorcycle tires


All times are GMT. The time now is 10:43 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.01948 seconds
  • Memory Usage 1,765KB
  • 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
  • (4)bbcode_html_printable
  • (8)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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