Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Latest profilevisitors - a better look Details »»
Latest profilevisitors - a better look
Version: 1.01, by Oyabun Oyabun is offline
Developer Last Online: Feb 2011 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.7.x Rating:
Released: 12-25-2008 Last Update: Never Installs: 8
Template Edits
Re-useable Code Code Changes Translations  
No support by the author.

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 ! (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

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-26-2008, 06:38 AM
crkgb crkgb is offline
 
Join Date: Oct 2007
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 12-26-2008, 03:27 PM
Rene Kriest Rene Kriest is offline
 
Join Date: Jun 2008
Location: Germany ./. Reality
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by crkgb View Post
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?
Reply With Quote
  #4  
Old 12-26-2008, 04:45 PM
Oyabun Oyabun is offline
 
Join Date: Dec 2006
Location: Germany
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hehe
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?

I know i am the creator... i should know lol
Reply With Quote
  #5  
Old 12-26-2008, 06:30 PM
3arab-hero 3arab-hero is offline
 
Join Date: Mar 2008
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have the same problem in my forum

all of members who visited the profile showen to be offline
Reply With Quote
  #6  
Old 12-26-2008, 11:26 PM
crkgb crkgb is offline
 
Join Date: Oct 2007
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rene Kriest View Post
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.
Reply With Quote
  #7  
Old 12-27-2008, 12:37 AM
Oyabun Oyabun is offline
 
Join Date: Dec 2006
Location: Germany
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As I said, im not the best coder. I am just starting and I just wanted to provide you with what I got.
Reply With Quote
  #8  
Old 12-28-2008, 02:18 AM
Stoebi Stoebi is offline
 
Join Date: Apr 2006
Location: Germany, Berlin
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 12-28-2008, 02:53 AM
Oyabun Oyabun is offline
 
Join Date: Dec 2006
Location: Germany
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lol, danke. Thank you. You saved my little mod.
Reply With Quote
  #10  
Old 12-28-2008, 10:44 AM
Sweeks Sweeks is offline
 
Join Date: Jul 2008
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lovely, installed

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:16 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04466 seconds
  • Memory Usage 2,324KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_html
  • (8)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete