vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - [DBTech] User Spotlight v1 (vB4) (https://vborg.vbsupport.ru/showthread.php?t=254532)

dustoff99 10-11-2011 09:34 PM

vB version 4.1.6

User will not rotate, read all of the threads before this and tried some of the suggestions, decided to let it run 3 days to see if anything will change.

Settings / General Options:

https://vborg.vbsupport.ru/external/2011/10/47.png
https://vborg.vbsupport.ru/external/2011/10/48.png

Forum blocks Manager:
https://vborg.vbsupport.ru/external/2011/10/49.png

Log File:
https://vborg.vbsupport.ru/external/2011/10/50.png

DragonByte Tech 10-13-2011 04:06 AM

Quote:

Originally Posted by dustoff99 (Post 2256059)
vB version 4.1.6

User will not rotate, read all of the threads before this and tried some of the suggestions, decided to let it run 3 days to see if anything will change.

How many users are in the selected groups? It looks like it's running but not finding someone other then user 16 that fits the criteria. Strange though considering you have it set so low.
If you want to manually run it a few times, change the Spotlight Next Cron Run field to 1, save it and then go to scheduled tasks and run the spotlight task. Set the Cron Run field to 1 each time you want to run it.
I looked at the code and it should be running fine.

Dylan

rpe78 10-13-2011 08:32 AM

I have this

http://screensnapr.com/v/dNrmRU.png

Help ?

dustoff99 10-13-2011 09:48 AM

Quote:

Originally Posted by DragonByte Tech (Post 2256643)
How many users are in the selected groups? It looks like it's running but not finding someone other then user 16 that fits the criteria. Strange though considering you have it set so low.
If you want to manually run it a few times, change the Spotlight Next Cron Run field to 1, save it and then go to scheduled tasks and run the spotlight task. Set the Cron Run field to 1 each time you want to run it.
I looked at the code and it should be running fine.

Dylan

I have a lot of users in the groups I listed.

Odd, after posting, its worked for the last 3 days. Thank you for the reply....

kfyonur 10-13-2011 12:07 PM

What should i write there ?
Spotlight Member ID

it shows same people.

DragonByte Tech 10-15-2011 08:23 PM

Quote:

Originally Posted by kfyonur (Post 2256761)
What should i write there ?
Spotlight Member ID

it shows same people.

As the description says, it's automatically set by a cron job. Only change that field if you want to manually set the spotlight user.

Dylan

DragonByte Tech 10-15-2011 08:32 PM

Quote:

Originally Posted by rpe78 (Post 2256701)

It looks like the translation has wrapped the text in the field. Since it's in the forum sidebar it's hard to adjust the field size. I'd say either put it in another location or modify the translation to say something different that's shorter.

Dylan

CoZmicShReddeR 10-16-2011 01:49 AM

I would rather use this as a widget for the front page of the CMS!

Mr Morningstarr 03-04-2012 04:01 PM

Is there anyway of putting this in a widget? Would be great in a widget.

DragonByte Tech 03-04-2012 06:14 PM

I'll look at adding it to the CMS next update.

Dylan

jack-d 03-08-2012 11:17 PM

In the Select Groups settings I have Admins unchecked but it continues to show them, why is that.

Regards

neya 01-22-2013 10:45 PM

Do you think it would be possible to make the 'user spotlight' text editable? I would like to make it 'Artist/Member of the week' or something along the lines and manually modify it weekly. :)

Prawn Star 01-30-2013 09:48 AM

Idk what just happened. I installed this product and our forums went down. ACP is still working fine besides the plugin & products part. :/
Help please?

DragonByte Tech 02-14-2013 02:15 AM

Quote:

Originally Posted by neya (Post 2398831)
Do you think it would be possible to make the 'user spotlight' text editable? I would like to make it 'Artist/Member of the week' or something along the lines and manually modify it weekly. :)

The text is a phrase, you could edit it as you need.
ACP->Languages & Phrases->Search In Phrases
Search text: dbtech_spotlightSelect "Phrase Text and Phrase Variable Name" and Exact Match Yes

Dylan

DragonByte Tech 02-14-2013 02:20 AM

Quote:

Originally Posted by Prawn Star (Post 2400470)
Idk what just happened. I installed this product and our forums went down. ACP is still working fine besides the plugin & products part. :/
Help please?

I'm sorry about the problem. Were you able to work it out? If you got an error message please let me know what it is so I can figure it out.

Dylan

rgreene1971 03-12-2013 02:51 AM

Anyway to make it a monthly random selection?

Would setting the selection to daily and then changing the cron to run monthly work for what I am looking to do?

DragonByte Tech 03-14-2013 03:59 PM

Quote:

Originally Posted by rgreene1971 (Post 2409423)
Anyway to make it a monthly random selection?

Would setting the selection to daily and then changing the cron to run monthly work for what I am looking to do?

Yes, if you changed it so it would run daily in the settings but modify the scheduled task to run on the first of the month then it should work. Good idea :)

Dylan

DragonByte Tech 04-02-2013 09:15 AM

Updated to v1.6.6

Feature: Can now specify userid's not selectable
Fix: Phrased all cron and vbsetting text

4ngeluxpunk 02-25-2014 03:19 AM

Hi, I would like to know how I can configure the product to the user of my day or more active user out, so now I have and would also like to know how I can adapt it to a module in vBadvanced CMPS. I would appreciate your support.

https://vborg.vbsupport.ru/external/2014/02/7.png

https://vborg.vbsupport.ru/external/2014/02/8.png

Zoul 07-29-2014 07:27 PM

Hello DBTech

As you know following a request for improvement on your forum, I would like to highlight two users.
Since my notions are limited to coding css and html, I can only change the program.
Nevertheless I think I found a solution (not practical but manageable) to provide a second user display.

In the template: dbtech_spotlight_userinfo
I duplicated information in a table:

HTML Code:

<table style="width:100%" border="0">
<tr><td>

<vb:if condition="$use_full_block">
<div>
        <h2 class="blockhead" align="center">{vb:rawphrase dbtech_spotlight}</h2>
        <div class="blockbody formcontrols settings_form_border" id="dbtech_spotlight">

                <div class="blockrow">
<vb:else />

                        <div id="wgo_spotlight" class="wgo_subblock section">
                                <h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase dbtech_spotlight}" />Membre de la semaine</h3>
                                <div>
</vb:if>

                                <table cellpadding="0" cellspacing="0" border="0">
                                <tr>

                                <td width="15">&nbsp;
                                </td>

<vb:if condition="$spot_userdata['user_has_pic']">
                                <td width="{vb:raw vboptions.dbtech_spotlight_max_width}">
                                <img src="{vb:raw spot_userdata['pic']}" alt="User Image" border="0" style="max-height: {vb:raw vboptions.dbtech_spotlight_max_height}px; max-width: {vb:raw vboptions.dbtech_spotlight_max_width}px;">
                                </td>

                                <td width="15">&nbsp;
                                </td>
</vb:if>

                                <td width="*">
                                        <table cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                        <td colspan="2">
                                        <a href="{vb:raw spot_userdata['userlink']}">{vb:raw spot_userdata['musername']}</a>
                                        </td>
                                        </tr>

                                        <tr>
                                        <td>
                                        {vb:rawphrase posts}:
                                        </td>
                                        <td width="15">&nbsp;
                                        </td>
                                        <td>
                                        <a href="search.php?do=finduser&amp;userid={vb:raw spot_userdata['userid']}&amp;contenttype=vBForum_Post&amp;showposts=1">{vb:raw spot_userdata['posts']}</a>
                                        </td>
                                        </tr>

                                        <tr>
                                        <td>
                                        {vb:rawphrase threads}:
                                        </td>
                                        <td width="15">&nbsp;
                                        </td>
                                        <td>
                                        <a href="search.php?do=finduser&amp;userid={vb:raw spot_userdata['userid']}&amp;starteronly=1&amp;contenttype=vBForum_Thread">{vb:raw spot_userdata['threads']}</a>
                                        </td>
                                        </tr>

<vb:if condition="$spot_userdata['spot_location']">
                                        <tr>
                                        <td>
                                        {vb:rawphrase field2_title}:
                                        </td>
                                        <td width="15">&nbsp;
                                        </td>
                                        <td>
                                        {vb:raw spot_userdata['spot_location']}
                                        </td>
                                        </tr>
</vb:if>

<vb:if condition="$spot_userdata['spot_occupation']">
                                        <tr>
                                        <td>
                                        {vb:rawphrase field4_title}:
                                        </td>
                                        <td width="15">&nbsp;
                                        </td>
                                        <td>
                                        {vb:raw spot_userdata['spot_occupation']}
                                        </td>
                                        </tr>
</vb:if>

<vb:if condition="$spot_userdata['show_reputation']">
                                        <tr>
                                        <td>
                                        {vb:rawphrase reputation}:
                                        </td>
                                        <td width="15">&nbsp;
                                        </td>
                                        <td>
                                        {vb:raw spot_userdata['reputation']}
                                        </td>
                                        </tr>
</vb:if>

<vb:if condition="$spot_userdata['cust_block_data']">
{vb:raw spot_userdata['cust_block_data']}
</vb:if>

<vb:if condition="$spot_userdata['can_view_forum']">
                                        <tr>
                                        <td>
                                        {vb:rawphrase dbtech_spot_most_active}:
                                        </td>
                                        <td width="15">&nbsp;
                                        </td>
                                        <td>
                                        <a href="forumdisplay.php?f={vb:raw spot_userdata['most_active_id']}">{vb:raw spot_userdata['most_active']}</a>
                                        </td>
                                        </tr>
</vb:if>

                                        <tr>
                                        <td>
                                        {vb:rawphrase last_activity}:
                                        </td>
                                        <td width="15">&nbsp;
                                        </td>
                                        <td>
                                        {vb:raw spot_userdata['user_lastdate']}
                                        </td>
                                        </tr>

<vb:if condition="$spot_userdata['spot_signature']">
                                        <tr>
                                        <td colspan="3">
                                        {vb:rawphrase signature}:<br />

                                        {vb:raw spot_userdata['spot_signature']}
                                        </td>
                                        </tr>
</vb:if>

                                        </table>
                                </td>
                                </tr>
                                </table>

<vb:if condition="$use_full_block">
                </div>
        </div>
</div>
<vb:else />
                                </div>
                        </div>
</vb:if>

</td><td>

<vb:if condition="$use_full_block">
<div>
        <h2 class="blockhead" align="center">{vb:rawphrase dbtech_spotlight}</h2>
        <div class="blockbody formcontrols settings_form_border" id="dbtech_spotlight">

                <div class="blockrow">
<vb:else />

                        <div id="wgo_spotlight" class="wgo_subblock section">
                                <h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase dbtech_spotlight}" />Membre du Mois</h3>
                                <div>
</vb:if>

                                <table cellpadding="0" cellspacing="0" border="0">
                                <tr>

                                <td width="15">&nbsp;
                                </td>

<vb:if condition="$spot_userdata['user_has_pic']">
                                <td width="{vb:raw vboptions.dbtech_spotlight_max_width}">
                                <img src="{vb:raw spot_userdata['pic']}" alt="User Image" border="0" style="max-height: {vb:raw vboptions.dbtech_spotlight_max_height}px; max-width: {vb:raw vboptions.dbtech_spotlight_max_width}px;">
                                </td>

                                <td width="15">&nbsp;
                                </td>
</vb:if>

                                <td width="*">
                                        <table cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                        <td colspan="2">
                                        <a href="{vb:raw spot_userdata['userlink']}">{vb:raw spot_userdata['musername']}</a>
                                        </td>
                                        </tr>

                                        <tr>
                                        <td>
                                        {vb:rawphrase posts}:
                                        </td>
                                        <td width="15">&nbsp;
                                        </td>
                                        <td>
                                        <a href="search.php?do=finduser&amp;userid={vb:raw spot_userdata['userid']}&amp;contenttype=vBForum_Post&amp;showposts=1">{vb:raw spot_userdata['posts']}</a>
                                        </td>
                                        </tr>

                                        <tr>
                                        <td>
                                        {vb:rawphrase threads}:
                                        </td>
                                        <td width="15">&nbsp;
                                        </td>
                                        <td>
                                        <a href="search.php?do=finduser&amp;userid={vb:raw spot_userdata['userid']}&amp;starteronly=1&amp;contenttype=vBForum_Thread">{vb:raw spot_userdata['threads']}</a>
                                        </td>
                                        </tr>

<vb:if condition="$spot_userdata['spot_location']">
                                        <tr>
                                        <td>
                                        {vb:rawphrase field2_title}:
                                        </td>
                                        <td width="15">&nbsp;
                                        </td>
                                        <td>
                                        {vb:raw spot_userdata['spot_location']}
                                        </td>
                                        </tr>
</vb:if>

<vb:if condition="$spot_userdata['spot_occupation']">
                                        <tr>
                                        <td>
                                        {vb:rawphrase field4_title}:
                                        </td>
                                        <td width="15">&nbsp;
                                        </td>
                                        <td>
                                        {vb:raw spot_userdata['spot_occupation']}
                                        </td>
                                        </tr>
</vb:if>

<vb:if condition="$spot_userdata['show_reputation']">
                                        <tr>
                                        <td>
                                        {vb:rawphrase reputation}:
                                        </td>
                                        <td width="15">&nbsp;
                                        </td>
                                        <td>
                                        {vb:raw spot_userdata['reputation']}
                                        </td>
                                        </tr>
</vb:if>

<vb:if condition="$spot_userdata['cust_block_data']">
{vb:raw spot_userdata['cust_block_data']}
</vb:if>

<vb:if condition="$spot_userdata['can_view_forum']">
                                        <tr>
                                        <td>
                                        {vb:rawphrase dbtech_spot_most_active}:
                                        </td>
                                        <td width="15">&nbsp;
                                        </td>
                                        <td>
                                        <a href="forumdisplay.php?f={vb:raw spot_userdata['most_active_id']}">{vb:raw spot_userdata['most_active']}</a>
                                        </td>
                                        </tr>
</vb:if>

                                        <tr>
                                        <td>
                                        {vb:rawphrase last_activity}:
                                        </td>
                                        <td width="15">&nbsp;
                                        </td>
                                        <td>
                                        {vb:raw spot_userdata['user_lastdate']}
                                        </td>
                                        </tr>

<vb:if condition="$spot_userdata['spot_signature']">
                                        <tr>
                                        <td colspan="3">
                                        {vb:rawphrase signature}:<br />

                                        {vb:raw spot_userdata['spot_signature']}
                                        </td>
                                        </tr>
</vb:if>

                                        </table>
                                </td>
                                </tr>
                                </table>

<vb:if condition="$use_full_block">
                </div>
        </div>
</div>
<vb:else />
                                </div>
                        </div>
</vb:if>


</tr></table>

to arrive:

https://vborg.vbsupport.ru/external/2014/07/7.png

I need variable with an id to finalize the display and you can modify the information as desired.
Pouriez you help me and tell me what I pourai variable use in order to display the information of a desired member

That is the idea, so that I can manually change the id and display the desired user
username_ID_2
userthread _ID_2
userpost_ID_2
usermostactive_ID_2
userlastvisit_ID_2


Thank you for your help

Ravallojr 11-08-2014 11:00 AM

doesn't work with my 4.2.2 :(

RichieBoy67 12-11-2014 11:30 AM

Does this have all the links in the footer?

ozzy47 12-11-2014 11:42 AM

Yes it does, on forum home. :)

RichieBoy67 12-11-2014 11:47 AM

I have it working under activity but cannot get it working in the sidebar.

ozzy47 12-11-2014 11:52 AM

Did you add the block to the Forum Blocks Manager?

RichieBoy67 12-11-2014 12:08 PM

Quote:

Originally Posted by ozzy47 (Post 2526736)
Did you add the block to the Forum Blocks Manager?

yes, I tried a few different things as well but still will not display in the side block.

john7911 12-11-2014 12:16 PM

Thank you I'll try it this week end ;)

ozzy47 12-11-2014 12:17 PM

Quote:

Originally Posted by RichieBoy67 (Post 2526740)
yes, I tried a few different things as well but still will not display in the side block.

What about running the cron, I think it needs to be run for it to show.

RichieBoy67 12-11-2014 12:18 PM

Quote:

Originally Posted by ozzy47 (Post 2526742)
What about running the cron, I think it needs to be run for it to show.

Yep, did that too. It shows but not when I set it to the side block.

DragonByte Tech 12-12-2014 11:36 AM

Have you also tried using the Clear System Cache link under vBulletin's Maintenance group, in case your forum block was cached?

Fillip

RichieBoy67 12-12-2014 02:47 PM

Quote:

Originally Posted by DragonByte Tech (Post 2526942)
Have you also tried using the Clear System Cache link under vBulletin's Maintenance group, in case your forum block was cached?


Fillip

That is usually the first thing I do. :)

Thanks

Gadget_Guy 01-03-2015 12:19 AM

Could anyone suggest a way to load this mod twice or perhaps a way to adjust the forum sidebar to do what I want?

Here's what I want.

Forum Side Bar Block #1 - User Spotlight - This rotates through all the members and spotlights only members from specific usergroups.

Forum Side Bar Block #2 - Vendor Spotlight - This rotates through all the vendors in my vendor usergroup only and spotlights only people in this usergroup.

I'd like to have forum block #1 rotate every couple hours and forum block #2 daily.

FWIW... I have this mod working perfectly on my site right now. Just looking for a way to have it do the double function that I am looking for.

Is there a way to do this?

D.

ozzy47 01-03-2015 10:48 AM

It's not something that could be easily done unfortunately. :(


All times are GMT. The time now is 09:00 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.01753 seconds
  • Memory Usage 1,924KB
  • 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
  • (1)bbcode_html_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (33)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