Previous Thread
Next Thread
Print Thread
Hop To
#170213 12/13/2006 8:27 AM
Joined: Jul 2006
Posts: 47
M
journeyman
journeyman
M Offline
Joined: Jul 2006
Posts: 47
Is it possible to exclued a particular user from displaying his or hers NAME and TOTAL POST NUMBER?

For example, Rick has over 2500 posts (currently). Is it possible to exclude Rick from TOP POSTERS table?

Markus_003 #170215 12/13/2006 8:40 AM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
You could edit the coding to exclude ricks uid in the sql statement in the appropriate files (I believe top posters island is built from cache_builders/top_posters.php).


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 #170216 12/13/2006 8:45 AM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Just screwing around wiht the query, completely untested and i'm half asleep so i don't know if it'll work, but you could try something similar to:

Change:
Code
$query = "
	select t1.USER_ID,t1.USER_DISPLAY_NAME,t2.USER_TOTAL_POSTS
	from {$config['TABLE_PREFIX']}USERS as t1,
	{$config['TABLE_PREFIX']}USER_PROFILE as t2
	where t1.USER_ID <> 1
	and t1.USER_ID = t2.USER_ID
	and	t1.USER_IS_APPROVED = 'yes'
	order by t2.USER_TOTAL_POSTS desc
	limit {$config['TOP_POSTERS']}
";

To:
Code
$query = "
	select t1.USER_ID,t1.USER_DISPLAY_NAME,t2.USER_TOTAL_POSTS
	from {$config['TABLE_PREFIX']}USERS as t1,
	{$config['TABLE_PREFIX']}USER_PROFILE as t2
	where t1.USER_ID <> 1
	and t1.USER_ID != 1
	and t1.USER_ID = t2.USER_ID
	and	t1.USER_IS_APPROVED = 'yes'
	order by t2.USER_TOTAL_POSTS desc
	limit {$config['TOP_POSTERS']}
";

Adding the uID of users to ban (in this case, the line below):
Code
	and t1.USER_ID != 1


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 #170217 12/13/2006 8:53 AM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Should also be good to point out that you can add numerous lines like what i added again and again with seperate uid's.

Also, be sure to clear your cache after updating the cache builder.

Also it's good to note that by modifying stock code you may be voiding your access to official support from Groupee on your forums, and that you may be required to restore the code to stock before requesting support through a support ticket (just a small disclaimer I try to include when showing people how to break, err modify,things wink.


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 #170219 12/13/2006 9:09 AM
Joined: Jul 2006
Posts: 47
M
journeyman
journeyman
M Offline
Joined: Jul 2006
Posts: 47
It is working. Thank you.

Markus_003 #170221 12/13/2006 9:13 AM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Not a problem, glad I could be of service smile.


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 #185174 05/30/2007 12:01 AM
Joined: May 2007
Posts: 145
member
member
Joined: May 2007
Posts: 145
Why is it that my forum panels only show 5 top posters but this website forum shows 10? Thanks.


[Linked Image from shorthandclasses.com]
Trixie #185176 05/30/2007 12:55 AM
Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
You can control how many show via the control panel I think. We changed ours but don't recall 100% if it was a code hack or Control Panel entry, I think it's a control panel entry.

ntdoc #185181 05/30/2007 2:14 AM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
CP -> Portal -> Portal Settings -> Total # of Top Posters to list


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
1 members (Nightcrawler), 1,165 guests, and 234 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)