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-01-2011 07:44 AM

Some new additions in 1.5.0
ACP option to modify username with CSS
ACP option so you can specify what usergroups the user can be pulled from
Fixed sigpic parsing in signature
Added option to specify if avatar or profile picture is used, which gets selected first and if one or the other is required

Blueracer66 01-01-2011 01:56 PM

Quote:

Originally Posted by DragonByte Tech (Post 2142202)
Some new additions in 1.5.0
ACP option to modify username with CSS
ACP option so you can specify what usergroups the user can be pulled from
Fixed sigpic parsing in signature
Added option to specify if avatar or profile picture is used, which gets selected first and if one or the other is required

I'll check it out and report back to you!

Warlord 01-02-2011 09:15 PM

1 Attachment(s)
I had the first version of this installed and it seemed to work but when I upgraded everything went kablooey.

The avatars stopped showing up, although I did have a lot more options in the Admin CP.

I tried removing the hack entirely and reinstalling but that seriously destroyed the layout of my forumhome template and I got this error message.

Quote:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/dbtech/spotlight/core/class_fetchuser.php on line 55

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/dbtech/spotlight/core/class_fetchuser.php on line 56

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/dbtech/spotlight/core/class_fetchuser.php on line 57

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/dbtech/spotlight/core/class_fetchuser.php on line 58
Looks like if I check Location, Occupation and Reputation under the "Alternate Additions" the errors go away. They still don't show up in the user spotlight when checked though. I went to uncheck them and see if I could reproduce the error and they won't stay unchecked.

The only one that will go back and forth between checked and unchecked is Signature. It doesn't show the signature when you check it though and I get this error (in addition to the screen layout going bonkers).

Quote:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/functions.php(1455) : eval()'d code on line 5

DragonByte Tech 01-02-2011 09:50 PM

Quote:

Originally Posted by Warlord (Post 2142934)
I had the first version of this installed and it seemed to work but when I upgraded everything went kablooey.

The avatars stopped showing up, although I did have a lot more options in the Admin CP.

I tried removing the hack entirely and reinstalling but that seriously destroyed the layout of my forumhome template and I got this error message.



Looks like if I check Location, Occupation and Reputation under the "Alternate Additions" the errors go away. They still don't show up in the user spotlight when checked though. I went to uncheck them and see if I could reproduce the error and they won't stay unchecked.

The only one that will go back and forth between checked and unchecked is Signature. It doesn't show the signature when you check it though and I get this error (in addition to the screen layout going bonkers).

Can you try the 1.5.2 version and let me know if you still have the same problems?
I moved the code around dealing with the errors you are getting and they shouldn't show up anymore.

EnigmaVariation 01-02-2011 09:59 PM

Hi there. I love this mod and have installed it. I don't have the updated version since the other one worked fine for me on 3.8.3.

I was wondering if you could consider adding in Minimum days since last post? I have some users that log in regularly but have not posted in a while. It would be nice to have this additional filter option if possible. Thanks for reading. :)

DragonByte Tech 01-02-2011 10:23 PM

Quote:

Originally Posted by EnigmaVariation (Post 2142952)
Hi there. I love this mod and have installed it. I don't have the updated version since the other one worked fine for me on 3.8.3.

I was wondering if you could consider adding in Minimum days since last post? I have some users that log in regularly but have not posted in a while. It would be nice to have this additional filter option if possible. Thanks for reading. :)

I added it for 1.6.0, just waiting for a couple troubleshooting fixes before I release it.

Warlord 01-02-2011 11:04 PM

Quote:

Originally Posted by DragonByte Tech (Post 2142950)
Can you try the 1.5.2 version and let me know if you still have the same problems?
I moved the code around dealing with the errors you are getting and they shouldn't show up anymore.

Okay, so I uninstalled the old one, reinstalled with product version 1.5.2 and overwrote all of the FTP files with the new ones.

Well, the layout problems seem to be gone when this is active and it looks like the boxes check and uncheck like they should for Alternate Additions.

Bugs:

Avatars still don't show up no matter what I select in the drop down box.
None of the Alternate Additions appear in the User Spotlight when they are checked.
Custom Username CSS doesn't appear to work.
When the signature box is checked I still get the following error.

Quote:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/functions.php(1455) : eval()'d code on line 5
EDIT: Just wanted to note that I'm on vBulletin 3.8.4

EnigmaVariation 01-02-2011 11:40 PM

Hey Warlord, for the avatar issue, did you change the avatar dimensions to whatever you allow on your forum? I think that the default on the mod was 80 x 80 but I had to change mine to 130 x 130 to get mine to display since that is what I allow on my forums. Just a thought. Trying to help out. :)

Warlord 01-03-2011 12:09 AM

Good lookin' out Enigma, but unfortunately that didn't seem to help. :(

DragonByte Tech 01-03-2011 05:32 AM

Quote:

Originally Posted by Warlord (Post 2142984)
Okay, so I uninstalled the old one, reinstalled with product version 1.5.2 and overwrote all of the FTP files with the new ones.

Well, the layout problems seem to be gone when this is active and it looks like the boxes check and uncheck like they should for Alternate Additions.

Bugs:

Avatars still don't show up no matter what I select in the drop down box.
None of the Alternate Additions appear in the User Spotlight when they are checked.
Custom Username CSS doesn't appear to work.
When the signature box is checked I still get the following error.



EDIT: Just wanted to note that I'm on vBulletin 3.8.4

Is the avatar not showing at all or is it a broken link?
Maybe you modified the template with a previous version and didn't revert? That's a possible reason why none of the additional fields are showing up at all.

The signature thing is weird. I installed 3.8.4 and the mod on my dev and I don't get that error with the signature enabled. Maybe it's something in the users sig that is messing it up? Can you pm me the text that's in the sig so I can try it out locally?

Warlord 01-03-2011 07:05 PM

1 Attachment(s)
Well I feel rather foolish. You were right about the template not being reverted. I had assumed that by removing the hack entirely I had also removed the old template. Silly me.

Okay, so avatars seem to be working now.

Custom Username CSS and Custom Profile Fields don't seem to be working still (yes, I made sure the member in the spotlight had filled out the Custom Profile Field).

The only other issue I'm having now is that when the signature block is checked my forum layout goes bonkers. It's really not a big deal for me because I'm not going to include signatures in my spotlight but I just thought I'd point it out.

I get this error at the very top of my screen:

Quote:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/functions.php(1455) : eval()'d code on line 5
My page layout looks like the attached image. The text in his signature appears to be a BBcode link to his blog. (We don't allow HTML in signatures).

I should also note that I have Cyb - Sub-Forum Manager installed. Perhaps the two hacks just conflict for some reason. (CSS issues?)

I also noticed in the template there seems to be an if statement to span 3 columns, but I don't see the option in the admin cp anywhere. Am I just missing it?

DragonByte Tech 01-04-2011 08:17 AM

Quote:

Originally Posted by Warlord (Post 2143503)
Well I feel rather foolish. You were right about the template not being reverted. I had assumed that by removing the hack entirely I had also removed the old template. Silly me.

Okay, so avatars seem to be working now.

Custom Username CSS and Custom Profile Fields don't seem to be working still (yes, I made sure the member in the spotlight had filled out the Custom Profile Field).

The only other issue I'm having now is that when the signature block is checked my forum layout goes bonkers. It's really not a big deal for me because I'm not going to include signatures in my spotlight but I just thought I'd point it out.

I get this error at the very top of my screen:



My page layout looks like the attached image. The text in his signature appears to be a BBcode link to his blog. (We don't allow HTML in signatures).

I should also note that I have Cyb - Sub-Forum Manager installed. Perhaps the two hacks just conflict for some reason. (CSS issues?)

I also noticed in the template there seems to be an if statement to span 3 columns, but I don't see the option in the admin cp anywhere. Am I just missing it?

I doubt it's conflicting with the sub forum manager. Most likely the error is screwing up code that's getting outputted and that is messing up the layout.
I'm not sure what's causing it. I have the same thing in my sig on my dev site.

The 3 column span is for the users that have it set to show below the navbar. I needed to have some additional formatting for it to look right.

What are you putting in the custom field setting? Are you putting the number or the whole thing? Like field5 or just 5?

Warlord 01-05-2011 11:56 PM

The Custom Profile Fields seem to be working now. I guess it just needed some time to reset itself?

DragonByte Tech 01-06-2011 01:13 AM

Quote:

Originally Posted by Warlord (Post 2144662)
The Custom Profile Fields seem to be working now. I guess it just needed some time to reset itself?

Hmm, it doesn't store any data so not sure why it started working. Not going to complain though :)

DragonByte Tech 01-06-2011 01:18 AM

Few small changes with 1.6.0
Added last post date to the selection criteria and fixed problem with avatar url

Geek Specialtie 01-10-2011 01:19 AM

I just updated to 1.6.1 and the profile image and avatars are not showing.

The image path is not generated correctly.

I have my forum installed in a subdirectory, /forum, the img src for both do not include the subdirectory in the path.

it generates
domain.com/customavatars/avatar1_5.gif
when it should be
domain.com/forum/customavatars/avatar1_5.gif

DragonByte Tech 01-10-2011 06:48 PM

I made an update with 1.6.2
Hopefully fixed the avatar issues with the different installation layouts, pretty much replicated the way vB sets the path to the avatar/profile pic
Fixed bbcode not parsing on custom fields
Switched code to use existing data so was able to eliminate all but 2 custom db queries, should be better on performance now.

Geek Specialtie 01-10-2011 07:19 PM

Quote:

Originally Posted by DragonByte Tech (Post 2147161)
I made an update with 1.6.2
Hopefully fixed the avatar issues with the different installation layouts, pretty much replicated the way vB sets the path to the avatar/profile pic
Fixed bbcode not parsing on custom fields
Switched code to use existing data so was able to eliminate all but 2 custom db queries, should be better on performance now.

My profile images and avatar images are working again. Thanks for the update.

EnigmaVariation 01-13-2011 03:30 AM

I upgraded to the latest version 1.6.2 (uploaded new files and installed new xml) but now it won't randomly select anyone in the scheduled tasks. Anyone else having this issue? Should I completely uninstall, delete all of the files off my server and reupload/reinstall?

DragonByte Tech 01-13-2011 05:31 AM

Quote:

Originally Posted by EnigmaVariation (Post 2148290)
I upgraded to the latest version 1.6.2 (uploaded new files and installed new xml) but now it won't randomly select anyone in the scheduled tasks. Anyone else having this issue? Should I completely uninstall, delete all of the files off my server and reupload/reinstall?

What do you have for the settings?
Maybe something in there is not letting it select a new user

EnigmaVariation 01-16-2011 11:36 PM

Dragonbyte-Tech: Spotlight - General Options

Spotlight Active? - Yes

Spotlight Location - Below Active Users

When to run - Daily

Image Type - Avatar/Profile Image - Image Not Required

Avatar Maximum Height - 130

Avatar Maximum Width - 130

Minimum Posts - 100

Minimum Reputation - 0

Minimum Days - 7

Minimum Days since Last Post -14

Custom Username CSS (not used)

Custom Profile Fields - 39

Alternate Additions - none checkmarked

Select Groups/Allowed Groups - same selected in each

Spotlight Member ID - it always selects user 1 if I don't put one in there myself - it was working fine before I upgraded to the latest version - currently has user ID I put in there - 19130

Spotlight Next Cron Run - 1295240112

EnigmaVariation 01-17-2011 03:03 AM

Hm, it started working again on its own. I will keep you updated if there is a glitch again. :)

DragonByte Tech 01-17-2011 09:00 AM

Quote:

Originally Posted by EnigmaVariation (Post 2150306)
Hm, it started working again on its own. I will keep you updated if there is a glitch again. :)

I'm not sure what groups you have selected or the volume of posts your users have but also make sure you have users in those groups with over 100 posts. It might be selecting the same person over and over.

It creates a scheduled task log entry every hour telling you what it's doing. If you think something is up you can check the logs and see what it's doing.

EnigmaVariation 01-18-2011 03:10 AM

It seems to be a bit broken again.

It just ran its scheduled task and selected a user that did not meet the settings I had. I put that they had to have logged in within the last 7 days, this person hadn't logged in since October, and that they had to have posted within the last 14 days, and this person hadn't posted since May 2010.

Any ideas on how I can fix this?

DragonByte Tech 01-18-2011 07:29 PM

Quote:

Originally Posted by EnigmaVariation (Post 2150771)
It seems to be a bit broken again.

It just ran its scheduled task and selected a user that did not meet the settings I had. I put that they had to have logged in within the last 7 days, this person hadn't logged in since October, and that they had to have posted within the last 14 days, and this person hadn't posted since May 2010.

Any ideas on how I can fix this?

Sorry about that, I found a problem in the cron that selects the user. I fixed it in 1.6.3

Geek Specialtie 01-19-2011 02:22 AM

I was having the same issue, showing a member that hasn't posted in over a year. I'll install the update.

Thanks for staying on top of and fixing issues quickly.

EnigmaVariation 01-19-2011 03:10 AM

I installed the update and will report back if there is an issue. But I really appreciate how quickly you attend to everyone's questions/concerns. This has been one of my forum members' favorite things to look forward to each day - the changing of the spotlight. And what is nice is that as the admin, I don't even know who it is randomly going to select so that is fun for me too. Thanks for such a great mod and for keeping it up to date. :)

mjjboard 01-21-2011 04:53 PM

I see you have the option to select what usergroups can view the spotlight box but what about an option for the admin to select what usergroups can be randomly selected? I ask that coz I am getting banned users come up and obviously I do not want a banned member in the spotlight.

haytham 01-21-2011 05:22 PM

1 Attachment(s)
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.

DragonByte Tech 01-21-2011 07:19 PM

Quote:

Originally Posted by mjjboard (Post 2152485)
I see you have the option to select what usergroups can view the spotlight box but what about an option for the admin to select what usergroups can be randomly selected? I ask that coz I am getting banned users come up and obviously I do not want a banned member in the spotlight.

You are using a really old version. The newest version has the ability to select what groups to choose from.

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 01:34 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.01594 seconds
  • Memory Usage 1,854KB
  • 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
  • (22)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
  • (40)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