Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-17-2016, 07:22 AM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default [Solved] stop showing time when hover

At the bottom of forum, users active in the past hours, how can disable when hover on members names not to show the time they visited forum, i searched here but could not find something similar.

Thanks for any help
Reply With Quote
  #2  
Old 02-17-2016, 03:04 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Create the following plugin:

Product: vBulletin

Hook Location: forumhome_complete

Title: Remove "wrdate" from "wgo_members_list"

Execution Order: 5

Plugin PHP Code:

PHP Code:
$newlist = array();

foreach (
$wgo_members_list AS $member)
{
    
$member['wrdate'] = '';
    
$newlist[] = $member;
}

$wgo_members_list $newlist
Plugin is Active: Yes

Click "Save".
Reply With Quote
  #3  
Old 02-17-2016, 04:23 PM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for your help Mark.

It does not work, for me at least.
* I made it first test In my live site, nothing changed.
* I tried it than in my test site, nothing change to, but here I have an error on the top.
PHP Code:
 WarningInvalid argument supplied for foreach() in [path]/forum.php(787) : eval()'d code on line 413 
Don't get this to live site.

Attachment 154203

Attachment 154204

Even I made a test inserting global $vbulletin;
Reply With Quote
  #4  
Old 02-17-2016, 04:26 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you certain you are using the correct hook location (and not "forumdisplay_complete")?
Reply With Quote
  #5  
Old 02-17-2016, 04:44 PM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, please see the attached image in my previous above post.

Thank you.
Reply With Quote
  #6  
Old 02-17-2016, 04:51 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, then try the hook location "forumhome_whovisited_list" as that also works for me.
Reply With Quote
  #7  
Old 02-17-2016, 05:23 PM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mark I found the problem.

I think on your code you gave me at the end is missing this bracket }
it works with it in forumhome_complete , but it shows only who are online that moment and not 24hour I have.

When disable plugin all comes back.

EDIT:
This Mod VSa - Visitors in Last X Hours is that I use, this disappears and I see online users that moment.
Reply With Quote
  #8  
Old 02-17-2016, 06:08 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The code I posted had both brackets...and works perfectly for me. (seems we've been at this point many times in the past, LOL!)

I didn't realize you were using a mod, I was coding for the feature that comes with vBulletin. Little details like that would be helpful up front.
Reply With Quote
  #9  
Old 02-17-2016, 06:26 PM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
The code I posted had both brackets...and works perfectly for me. (seems we've been at this point many times in the past, LOL!)
In your post #2 in this code I inserted the bracket at the end $wgo_members_list = $newlist;

like this (this is what I mentioned that is missing).?
$wgo_members_list = $newlist;
}

Quote:
Originally Posted by MarkFL View Post
I didn't realize you were using a mod, I was coding for the feature that comes with vBulletin. Little details like that would be helpful up front.
You have a good point, and many times I feel stupid, but if I know at the start I wiil have given this info before. I did not catch this, so many mods, and don't remember where they take effect. Thanks for your patience.
Reply With Quote
  #10  
Old 02-17-2016, 06:32 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only curly braces we need are for the "foreach" block, and I gave both.

Yes, sometimes we might not realize everything relevant to the issue at hand, which is understandable.

If you want to re-send by PM the admin login credentials to your test site, I would be happy to take a look and see if I can resolve this issue.
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 08:18 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.05019 seconds
  • Memory Usage 2,273KB
  • Queries Executed 14 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)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