vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Forum Home Enhancements - Members who have visited today. (https://vborg.vbsupport.ru/showthread.php?t=196458)

Saviour 10-25-2009 01:45 PM

Can this be coded with a conditional to prevent Banned members from appearing? If so, what is the correct procedure for coding this mod to allow for this?

Thanks, in advance...

Jobe1986 10-25-2009 10:59 PM

Odd question, but why doesn't this mod use:
PHP Code:

$user['musername'] = fetch_musername($today); 

in the forumhome_start plug-in so it doesn't have to go and find the user name markup itself?

Personally I think this would be a nice addition to the mod. At least that way other mods can use the fetch_musername hook and it actually have effect in this mods output.

Paul M 10-29-2009 12:52 PM

Because it doesnt need to use it :)

The information is read as part of an existing read, and also in an existing cache, therefore the extra overhead that fetch_musername() adds is unnecessary.

Skydiver10 10-29-2009 07:43 PM

Thanks for this mod Paul!! :)

Jobe1986 10-31-2009 02:00 AM

Quote:

Originally Posted by Paul M (Post 1907773)
Because it doesnt need to use it :)

The information is read as part of an existing read, and also in an existing cache, therefore the extra overhead that fetch_musername() adds is unnecessary.

But at the cost of not allowing OTHER mods to use the fetch_musername hook to change the musername

Also, for the record (from the afore mentioned fetch_musername, where $user is passed TO the function, using the SAME caches):
PHP Code:

$user['musername'] = $vbulletin->usergroupcache["$displaygroupid"]['opentag'] . $username $vbulletin->usergroupcache["$displaygroupid"]['closetag']; 


Paul M 10-31-2009 03:32 PM

I'm well aware how the function works ;)

As for the hook, no one has found that to be an issue in over 4 years.

I will not be changing this version (or any of the 3.x versions). However, I will consider it for the 4.0 version.

forumtester 11-02-2009 01:35 PM

Just a quickie.
It says in the info that you can change the mode from today to last 24 hrs in the acp.

I must be a bit of an idiot because I can't see any option for changing between the two. Could someone just point me in the right direction.

Paul M 11-02-2009 03:10 PM

Quote:

(Options are in vBulletin Options > Who has visited today)
:) .

forumtester 11-02-2009 06:56 PM

You Da Man!!

And a fellow brit....good lad

Adam H 11-02-2009 08:10 PM

Hey paul what code would i need to edit to change the time period , i.e instead of 24 hours changing it to a week or something


All times are GMT. The time now is 08:40 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.02129 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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