Previous Thread
Next Thread
Print Thread
Hop To
#259044 02/05/2017 4:04 PM
Joined: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
Does the Member Spotlight only show Members that have an Avatar?

I've been watching mine (7.5.9) for awhile now and have not seen anyone without an Avatar.

Bill

ECNet #259045 02/05/2017 4:29 PM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
The requirements change a little bit based on what version you're on, but v7.5.9 is:

cache_builders/featured_member.php
Code
	WHERE  t1.USER_ID = t2.USER_ID
	AND	   t1.USER_ID = t3.USER_ID
	AND    t1.USER_IS_BANNED != '1'
	AND	   t1.USER_ID > 1
	AND	   t2.USER_AVATAR != ''
	AND	   t2.USER_TOTAL_POSTS > 40
	$thisclause
Where $thisclause is:
Code
$thisclause = "";
if ($config['FEATURED_MEMBER']) {
	$now = $html->get_date();
	$date = $now - $config['FEATURED_MEMBER'] * 86400;
	$thisclause = "AND t3.USER_LAST_POST_TIME > $date";
}

Anyhow, the WHERE requires:
Member Active (not banned)
Member Not ID #1 (Guest)
Member Has an Avatar (What's to feature if there isn't an image)
Member total posts greater than 40.
Member last active in the last X days (where days would be whatever your "FEATURED_MEMBER" value is)

This changes in v7.6.0 to be a limit of 20 posts vs 40.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
ECNet #259046 02/05/2017 4:44 PM
Joined: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
Most Members have not chosen an avatar.

Can a specific default Avatar be shown just for the purpose of the Member Spotlight?

ECNet #259047 02/05/2017 8:34 PM
Joined: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
Or... can I give everyone a Generic default Avatar if they don't choose one?

ECNet #259048 02/05/2017 9:44 PM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
You're more than welcome to remove the line from the cache builder file; note however that we cannot officially support modifications to stock coding.

Find:
Code
	AND	   t2.USER_AVATAR != ''

And remove it, it's why the code was supplied in my previous post.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #259049 02/05/2017 10:11 PM
Joined: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
Originally Posted by Gizmo
And remove it, it's why the code was supplied in my previous post.
Hey, sorry, I'm a little slow sometimes... smile

But, as to my other question... is there a way to give some default avatar for this Member Spotlight, or to a member that hasn't selected one?

ECNet #259050 02/05/2017 10:14 PM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Generally, in newer versions, users without an avatar are assigned a silhouette as their avatar in the areas that will require one to be displayed, such as your profile page.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #259051 02/05/2017 10:19 PM
Joined: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
Originally Posted by Gizmo
Generally, users without an avatar are assigned a silhouette as their avatar, in the areas that will display one.
in 7.5.9? then it would show in Members Spotlight?

I don't seem to have an Avatar showing here...?

ECNet #259052 02/05/2017 11:05 PM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
No, a silhouette won't show in the member spotlight (it's not coded to), and users without an avatar won't show in member spotlight unless you remove the line as previously indicated.

Silhouettes show in some areas as a placeholder when no image is provided, as of 758+. If you look at your profile, your avatar is a silhouette.

If the silhouette was used everywhere it'd be quite the distraction, hence why it's only used in areas that require one to be.

Fyi, the member spotlight will not assign a silhouette to users without an avatar, the code will probably just try to load an image that doesn't exist.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
2 members (Nightcrawler, Ruben), 524 guests, and 148 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)