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:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)