vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Mini Mods - [DBTech] User Spotlight v1 (vB3) (https://vborg.vbsupport.ru/showthread.php?t=254536)

DragonByte Tech 01-21-2011 07:20 PM

Quote:

Originally Posted by haytham (Post 2152498)
Hi,
I am running 3.8.6 and I have carried out installation instructions but I get nothing. I tried IE 8 and FF and same result. Look at the pic.

What do you have in the settings area for the Member ID and is it a valid user? It looks like what I would expect if you had an invalid userid in there.

EnigmaVariation 01-21-2011 08:53 PM

Everything is working great. :) I just had a question about the random member selection. Will it cycle through all of the members and not repeat anyone until it starts over again? Or is it truly random and some people could show up 3 times and others not at all? I have a member who has been in the spotlight twice now so I was wondering.

DragonByte Tech 01-21-2011 09:37 PM

Quote:

Originally Posted by EnigmaVariation (Post 2152573)
Everything is working great. :) I just had a question about the random member selection. Will it cycle through all of the members and not repeat anyone until it starts over again? Or is it truly random and some people could show up 3 times and others not at all? I have a member who has been in the spotlight twice now so I was wondering.

It selects all the users that fit the criteria in a random order. Then it cycles through the list and picks the first person that's a member of the allowed groups. So yes, someone could be selected a few times before someone gets picked once.

haytham 01-22-2011 04:13 AM

1 Attachment(s)
Quote:

Originally Posted by DragonByte Tech (Post 2152545)
What do you have in the settings area for the Member ID and is it a valid user? It looks like what I would expect if you had an invalid userid in there.

Hi. I left it as it is and my ID is 1.

mjjboard 01-24-2011 11:32 AM

Thanks I updated, however now it appears like the cron never runs, due to the fact the user never changes.

I have even run the cron manually, and the user still does not change.

I have this set to daily:

When to run
Choose how often you want the scheduled task to run.

And I have not edited anything anywhere.

When I upgraded I chose overwrite in all incidences.

DragonByte Tech 01-24-2011 04:52 PM

Quote:

Originally Posted by mjjboard (Post 2153776)
Thanks I updated, however now it appears like the cron never runs, due to the fact the user never changes.

I have even run the cron manually, and the user still does not change.

I have this set to daily:

When to run
Choose how often you want the scheduled task to run.

And I have not edited anything anywhere.

When I upgraded I chose overwrite in all incidences.

What does the scheduled task log for the spotlight say?

SamirDarji 03-23-2011 04:29 AM

I like this plugin, but it's overkill for what I need. I can dissect the code and figure out how to make a query for this, but all I need is a sql query to give me a random user that's logged in say in the last week or month. Would it be possible to just give me that query?

Rickpwns 03-23-2011 01:32 PM

Nice, Will try!

Dylanblitz 03-24-2011 12:40 AM

Quote:

Originally Posted by SamirDarji (Post 2176442)
I like this plugin, but it's overkill for what I need. I can dissect the code and figure out how to make a query for this, but all I need is a sql query to give me a random user that's logged in say in the last week or month. Would it be possible to just give me that query?

What info do you what? just the username? and which do you want, a week or a month.

SamirDarji 03-24-2011 02:37 AM

Quote:

Originally Posted by Dylanblitz (Post 2176808)
What info do you what? just the username? and which do you want, a week or a month.

Yep, just the random username of someone who was active within the week or month that the query is run in. I'm planning to make it into a cron job and just email me or somehow otherwise send me the name.

I want to use this to reward users for being online and logged in. I have a large number of users that visit my site, but don't log in.

Thank you so very much!


All times are GMT. The time now is 08: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.01265 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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