Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Dec 2002
Posts: 67
Power User
Power User
Joined: Dec 2002
Posts: 67
Thanks, Allen! I have the if/then statements up there in the code I posted, but I did try removing the minus signs from them (/6/ vs /-6-/), and I added $GroupId to the end of showflat.inc.php around line 685:
PHP Code
list ($Number,$Username,$Posted,$IP,$Subject,$Body,$Approved,$Picture,$Title,$Color,$Icon,$Poll,$Files,$ParentPost,$PostStatus,$Signature,$LastEdit,$LastEditBy,$Location,$TotalPosts,$Registered,$stars,$picwidth,$picheight,$usernum,$ParentUser,$bday,$showbday,$addsig,$accept_pm,$homepage,$GroupId) = $dbh -> fetch_array($sth); 
It actually does what I need, except that it prints a whole post for each group the person belongs to... as an admin, I belong to 4 groups, so I see four of the same post one after another, with the group ID# under my membername if I uncomment the test line I have in the first post.
So any idea how to make it not print the person's post multiple times if a person belong to multiple groups?
I've attached a screencap to illustrate. You can see that it printed three copies of the post since I belong to three groups, with the group icon added to the iteration where it read that group number:
[Linked Image]

Sponsored Links
Entire Thread
Subject Posted By Posted
Checking user group for group icons in showflat Calpy 01/15/2007 6:08 AM
Re: Checking user group for group icons in showflat Calpy 01/17/2007 12:51 AM
Re: Checking user group for group icons in showflat AllenAyres 01/17/2007 2:32 AM
Re: Checking user group for group icons in showfla Calpy 01/17/2007 11:09 AM
Re: Checking user group for group icons in showfla Gizmo 01/17/2007 12:00 PM
Re: Checking user group for group icons in showfla AllenAyres 01/17/2007 4:06 PM
Re: Checking user group for group icons in showfla Gizmo 01/17/2007 4:27 PM
Re: Checking user group for group icons in showfla AllenAyres 01/17/2007 8:57 PM
Re: Checking user group for group icons in showfla Calpy 01/18/2007 12:01 AM
Re: Checking user group for group icons in showfla Gizmo 01/18/2007 4:42 AM
Re: Checking user group for group icons in showfla JoshPet 01/18/2007 5:38 AM
Re: Checking user group for group icons in showfla Calpy 01/25/2007 8:12 AM
Re: Checking user group for group icons in showfla JoshPet 01/26/2007 3:29 AM
Re: Checking user group for group icons in showfla Deejay23 01/26/2007 7:56 PM
Re: Checking user group for group icons in showfla Calpy 04/02/2007 3:40 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 538
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 8
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)