Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[DBTech] User Spotlight v1 (vB3) Details »»
[DBTech] User Spotlight v1 (vB3)
Version: 1.6.6, by DragonByte Tech DragonByte Tech is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.8.x Rating:
Released: 12-01-2010 Last Update: 08-16-2017 Installs: 52
Uses Plugins Auto-Templates
Additional Files Translations  
No support by the author.

DragonByte Technologies are proud to present User Spotlight v1: A mini mod to show a random member on your forumhome page.


Why User Spotlight?

DBTech's User Spotlight mod lets you display a random member on your forum home page as a way to increase member commmunication.

-------------------------------------------------------------------------------------------

If you like this mod please hit the button to the right ---->

Please remember to click the, button to the right if you installed the mod ---->

What does 'Marking As Installed' do ?

* It helps you to stay on top of updates - members who have installed modifications will be notified by us whenever new updates are available.

*
For security issues - vbulletin.org will contact all members who have installed a modification whenever a security issue is brought to their attention.

* Marking a modification as installed also helps us know how many people are using our work, giving us extra incentive to provide more features and new modifications.

We appreciate the support!
-------------------------------------------------------------------------------------------

Priority support for this version is handled at the Developers Website.

-------------------------------------------------------------------------------------------

Translations available @ [url="http://www.dragonbyte-tech.com/forums/91-Translations[/URL]
Support for translations handled by the translator in its respective threads only.

-------------------------------------------------------------------------------------------

Major Features

ForumHome Integration: Members' details will show in the infobar on the forumhome.

-------------------------------------------------------------------------------------------

To Install:
  1. Upload all files in the "upload" folder to your forum.
  2. Import the product file via the product manager in your AdminCP.
  3. Done!
----------------------------------------------------------------------------------

Feature List
  • Random user selected every night
  • Admin override of selected user
  • Admin variables to limit selected users by number of posts, reputation and days active

Download Now

File Type: zip [DBTech] User Spotlight v1.6.6.zip (18.5 KB, 21 views)

Screenshots

File Type: png forumhome_vb3.png (38.6 KB, 0 views)
File Type: jpg acp_settings.jpg (114.1 KB, 0 views)

Show Your Support

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

Comments
  #82  
Old 03-24-2011, 03:47 AM
DragonByte Tech's Avatar
DragonByte Tech DragonByte Tech is offline
 
Join Date: Feb 2010
Location: Scotland
Posts: 8,814
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SamirDarji View Post
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!
Ah okay, easy enough. Just put this file into your includes/cron folder and create a scheduled task for it. It will send you an email with a random username for a user that's logged in the past week and one for the past month. Change the $to_email variable inside the file as well.

Dylan
Attached Files
File Type: php random_logged_in_user.php (802 Bytes, 5 views)
Reply With Quote
  #83  
Old 03-24-2011, 04:26 AM
SamirDarji SamirDarji is offline
 
Join Date: Apr 2004
Posts: 645
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DragonByte Tech View Post
Ah okay, easy enough. Just put this file into your includes/cron folder and create a scheduled task for it. It will send you an email with a random username for a user that's logged in the past week and one for the past month. Change the $to_email variable inside the file as well.

Dylan
OMG!!! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you!

Even though I'm not using the mod in this thread, I'm marking it as installed and nominating it for MOTM. It's the least I can do.

Should I schedule the cron for every day, or just every week/month?
Reply With Quote
  #84  
Old 03-24-2011, 05:02 AM
DragonByte Tech's Avatar
DragonByte Tech DragonByte Tech is offline
 
Join Date: Feb 2010
Location: Scotland
Posts: 8,814
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SamirDarji View Post
OMG!!! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you!

Even though I'm not using the mod in this thread, I'm marking it as installed and nominating it for MOTM. It's the least I can do.

Should I schedule the cron for every day, or just every week/month?
For whenever you want. If you want an email weekly then just set it to run every week.

Dylan
Reply With Quote
  #85  
Old 03-24-2011, 06:20 AM
SamirDarji SamirDarji is offline
 
Join Date: Apr 2004
Posts: 645
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome! Thank you very much. I've run it a few times manually to see how it worked. Really sweet.

I was looking at the code and I noticed it's using 30 days for the month, which generally works, but I wanted to see if there was a way to get it to be precisely the number of days in a month. I found the date('t') function on php.net that seems like it will return the number of days in the current month which could be used to calculate the exact number of seconds in that month.

The only problem is that vb's cron doesn't have a setting to run at the end of the month. A quick google search came up with some exotic cron lines that I'm not familar with nor know how to implement. So the other option would be to execute the script in two different crons in vb, once for the end of the week, once for the first of the month, and if the script detects that it's running at the first of the month that's not the end of the week, subtract a day and then calculate the month via that time and determine the random user.

But the more I think about this, since the week or month would be executed separately in two different crons, maybe the script should just be croned to run daily and do its own end of week and end of month detection and execute accordingly. Then the cron variable is taken out of the picture.

So the whole body of the script could be two if statements. If today is last day of month, execute for last day of month and email. If today is last day of the week, excute for end of the week and email. If it doesn't fall into either loop, the cron will execute with no output. But looking at the structure of your cron, it's designed to execute both queries back to back from an array, so the main loop would change. Would it be too much to ask for this design change?

I've figured out that
Code:
if(date('j') == date('t'))
can be used to check eom and
Code:
if(date('N') == 7)
should be able to be used to check eow. But this research has taken me over an hour.
Reply With Quote
  #86  
Old 04-02-2011, 09:57 AM
tommydamic68's Avatar
tommydamic68 tommydamic68 is offline
 
Join Date: Jan 2009
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a problem as well, the user never changes.

here is my log:
16544 Dragonbyte-Tech: Spotlight - Pick Random User 07:04, 2nd Apr 2011 Not time to update spotlight userid yet
16375 Dragonbyte-Tech: Spotlight - Pick Random User 01:06, 1st Apr 2011 Not time to update spotlight userid yet
16368 Dragonbyte-Tech: Spotlight - Pick Random User 00:01, 1st Apr 2011 Not time to update spotlight userid yet
16361 Dragonbyte-Tech: Spotlight - Pick Random User 23:00, 31st Mar 2011 Not time to update spotlight userid yet
16354 Dragonbyte-Tech: Spotlight - Pick Random User 22:01, 31st Mar 2011 Not time to update spotlight userid yet
16347 Dragonbyte-Tech: Spotlight - Pick Random User 21:01, 31st Mar 2011 Not time to update spotlight userid yet
16340 Dragonbyte-Tech: Spotlight - Pick Random User 20:01, 31st Mar 2011 Not time to update spotlight userid yet
16337 Dragonbyte-Tech: Spotlight - Pick Random User 19:45, 31st Mar 2011 Not time to update spotlight userid yet
16332 Dragonbyte-Tech: Spotlight - Pick Random User 19:05, 31st Mar 2011 Not time to update spotlight userid yet
16325 Dragonbyte-Tech: Spotlight - Pick Random User 18:01, 31st Mar 2011 Not time to update spotlight userid yet
16318 Dragonbyte-Tech: Spotlight - Pick Random User 17:00, 31st Mar 2011 Not time to update spotlight userid yet
16311 Dragonbyte-Tech: Spotlight - Pick Random User 16:00, 31st Mar 2011 Not time to update spotlight userid yet
16304 Dragonbyte-Tech: Spotlight - Pick Random User 15:00, 31st Mar 2011 Not time to update spotlight userid yet
16297 Dragonbyte-Tech: Spotlight - Pick Random User 14:00, 31st Mar 2011 Not time to update spotlight userid yet
16290 Dragonbyte-Tech: Spotlight - Pick Random User 13:02, 31st Mar 2011 Not time to update spotlight userid yet
Reply With Quote
  #87  
Old 04-04-2011, 09:05 AM
DragonByte Tech's Avatar
DragonByte Tech DragonByte Tech is offline
 
Join Date: Feb 2010
Location: Scotland
Posts: 8,814
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tommydamic68 View Post
I have a problem as well, the user never changes.
How often is it set to update and when was the last time it was updated?
If you want to force it to start over login to the ACP and go to the settings area. On the spotlight settings set the Spotlight Next Cron Run field to 1. It will start with a new user that fits the criteria next time it checks to run.
Reply With Quote
  #88  
Old 08-25-2011, 12:22 AM
ShawneyJ's Avatar
ShawneyJ ShawneyJ is offline
 
Join Date: Jul 2006
Location: Australia
Posts: 1,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have a problem where, when you click on the next page number it dont work the first click. ie: your on page "1" when you click page "2" in a thread or forum, i had to click on page number twice for the the page to display. this also effected usernames, click on a username and the URL in browser would change, but the page stays the same until you clicked twice. i disabled my hacks 1 by 1 and finally after disabling "this mod" my forum is back to normal, as in, you only have to click on a username or next page once now for it to direct rather than 2 times. hope this makes sense.
cheers.
testing on 3.8.4.
Reply With Quote
  #89  
Old 08-25-2011, 06:43 AM
DragonByte Tech's Avatar
DragonByte Tech DragonByte Tech is offline
 
Join Date: Feb 2010
Location: Scotland
Posts: 8,814
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jaycob View Post
i have a problem where, when you click on the next page number it dont work the first click. ie: your on page "1" when you click page "2" in a thread or forum, i had to click on page number twice for the the page to display. this also effected usernames, click on a username and the URL in browser would change, but the page stays the same until you clicked twice. i disabled my hacks 1 by 1 and finally after disabling "this mod" my forum is back to normal, as in, you only have to click on a username or next page once now for it to direct rather than 2 times. hope this makes sense.
cheers.
testing on 3.8.4.
Do you mean it's doing this when viewing a thread? The mod should only be showing and affecting anything on the forum homepage.

Dylan
Reply With Quote
  #90  
Old 08-26-2011, 01:30 AM
ShawneyJ's Avatar
ShawneyJ ShawneyJ is offline
 
Join Date: Jul 2006
Location: Australia
Posts: 1,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DragonByte Tech View Post
Do you mean it's doing this when viewing a thread? The mod should only be showing and affecting anything on the forum homepage.

Dylan
hi mate,

i actually changed DBTech: Spotlight - Show Random User to "global_start" to show on all pages and put the code in my sidebar. maybe thats where i went wrong.
sorry for not explaining fully.
Reply With Quote
  #91  
Old 08-26-2011, 04:51 PM
DragonByte Tech's Avatar
DragonByte Tech DragonByte Tech is offline
 
Join Date: Feb 2010
Location: Scotland
Posts: 8,814
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jaycob View Post
hi mate,

i actually changed DBTech: Spotlight - Show Random User to "global_start" to show on all pages and put the code in my sidebar. maybe thats where i went wrong.
sorry for not explaining fully.
Yes, it was only designed to run on the forum home for vB3. Changing the hook probably make it act like it is.
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 04:51 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.05095 seconds
  • Memory Usage 2,364KB
  • Queries Executed 28 (?)
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
  • (2)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_postinfo_query
  • fetch_postinfo
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete