php forum
php mysql forum
php mysql smarty
 
Page 2 of 3 < 1 2 3 >
Topic Options
#229781 - 03/22/03 10:22 PM Re: [6.2] User Group Status Flag v1.1 [Re: Daine]
raziel_dup1 Offline
Lurker

Registered: 03/22/03
Posts: 1
I installed this hack on 6.2.3 this evening, but I'm having problems with the threaded view. The icons won't show up on the reply list.<br /><br />I'm assuming this is handled by the code changes around line 150 in showthreaded.php. My hacked area looks like this:<br /><br /> elseif (preg_match("/-5-/",$postergroup)) { // adjust the group number if needed<br /> $UserStatus = "<img src=\"{$config['images']}/industry.gif\" alt=\"Industry Rep\" border=\"0\" />";<br /> }<br /> elseif (preg_match("/-6-/",$postergroup)) { // adjust the group number if needed<br /> $UserStatus = "<img src=\"{$config['images']}/aodstaff.gif\" alt=\"AoD Staff\" border=\"0\" />";<br /> }<br /> elseif (preg_match("/-7-/",$postergroup)) { // adjust the group number if needed<br /> $UserStatus = "<img src=\"{$config['images']}/va.gif\" alt=\"Voice Actor\" border=\"0\" />";<br /> }<br /> elseif (preg_match("/-8-/",$postergroup)) { // adjust the group number if needed<br /> $UserStatus = "<img src=\"{$config['images']}/retailer.gif\" alt=\"Retailer\" border=\"0\" />";<br /> }

Top
#229782 - 03/22/03 11:14 PM Re: [6.2] User Group Status Flag v1.1 [Re: patt]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
It's never worked right in the replies of threaded view. It's tacked onto the admin /mod flag thing... and I don't believe that the admin /mod flags have ever worked right in threaded view on replies. I think that's always been a bug. <br /><br />I always assumed that when the Admin/Mod flag issue gets resolved in threads, this would function properly in that area as well. <img src="/forum/images/graemlins/crazy.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#229783 - 03/23/03 02:15 AM Re: [6.2] User Group Status Flag v1.1 [Re: Daine]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Well... it appears the admin/mod flags are working properly in the latest version of threads.<br /><br />I'll have to look at this bit again.... it should work the same as admin/mod flags. It probably wont' be until I get back from vacation until I can look at it though.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#229784 - 03/23/03 04:46 PM Re: [6.2] User Group Status Flag 1.1 [Re: statusblue]
MattUK Offline
Journeyman

Registered: 11/23/01
Posts: 137
Any ideas Josh? This just does not work..

Top
#229785 - 03/23/03 05:07 PM Re: [6.2] User Group Status Flag 1.1 [Re: statusblue]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
No I use this myself on several production sites, probably for almost a year. No problems. <br />You've never posted any details of what "doesn't work"... so without more details, I don't really have any answers other than start again with a clean copy of the scripts and make sure you got all the steps.<br /><br />95% of the problems with hacks, (and this happens when I install them as well) are problems with doing all the steps. When I have trouble.... first I backup and try again and make sure I did't miss a step.<br /><br />Then if that still doesn't work, then I suspect a conflict with another hack... so then I try with a clean "out of the box" copy of the scripts. That usually helps me narrow it down.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#229786 - 03/23/03 05:14 PM Re: [6.2] User Group Status Flag 1.1 [Re: Daine]
MattUK Offline
Journeyman

Registered: 11/23/01
Posts: 137
I'm sure I have!<br /><br />I have entered the code as requested. However, no users are getting the new little flag.<br /><br />If I change the setting to group 2 or 3 which would be for Moderators, or Users, then the flags are applied as I would expect.. but using any group that has been created, it ignores it, and you do not see the flag.<br /><br />I have tried all the steps multiple times, and the same thing happens time and time again.<br /><br />I have no other hacks installed on version 6.2.3.<br /><br />It is now set to "5" which is for the group I have created, I have added some users to this group, and there are no flags.<br /><br />Totally lost now..

Top
#229787 - 03/23/03 05:23 PM Re: [6.2] User Group Status Flag 1.1 [Re: statusblue]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Do you not get flags anywhere? Or in just a particular script.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#229788 - 03/23/03 05:52 PM Re: [6.2] User Group Status Flag 1.1 [Re: Daine]
MattUK Offline
Journeyman

Registered: 11/23/01
Posts: 137
Hi.<br /><br />No flags anywhere.. the only time I see a flag, is if I change it to group 2 or 3.. very weird!

Top
#229789 - 03/23/03 05:55 PM Re: [6.2] User Group Status Flag 1.1 [Re: statusblue]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
OK <br /><br />Find the user number of a user in group 5 or whatever.... whoever should have a flag and run this query:<br /><br />SELECT U_Groups<br />FROM w3t_Users<br />WHERE U_Number = 'xxxx'<br /><br /><br />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#229790 - 03/23/03 06:08 PM Re: [6.2] User Group Status Flag 1.1 [Re: Daine]
MattUK Offline
Journeyman

Registered: 11/23/01
Posts: 137
[]JoshPet said:<br />OK <br /><br />Find the user number of a user in group 5 or whatever.... whoever should have a flag and run this query:<br /><br />SELECT U_Groups<br />FROM w3t_Users<br />WHERE U_Number = 'xxxx'<br /><br /><br /> [/]<br /><br />Interestingly it only shows -3- and not -5- .. and yet if I goto the mass group manager, and try to add the user again, it does show him as listed <img src="/forum/images/graemlins/frown.gif" alt="" />

Top
#229791 - 03/23/03 06:15 PM Re: [6.2] User Group Status Flag 1.1 [Re: statusblue]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I'm not sure why it's not letting you properly change the user's groups.<br /><br />Might want to reupload the /admin/showgroup.php and /admin/dochangegroup.php scripts. (I think that's what they are called.)<br /><br />You can test the status flags by doing this:<br /><br />UPDATE w3t_Users<br />SET U_Groups = '-5-'<br />WHERE U_Number = 'xxx'<br /><br />That'll update that user, and you can see if the flags are working properly.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#229792 - 03/23/03 06:21 PM Re: [6.2] User Group Status Flag 1.1 [Re: Daine]
MattUK Offline
Journeyman

Registered: 11/23/01
Posts: 137
Thanks Josh, forcing the membership works.. so I guess the hack IS working, but the group membership side of UBB isnt working <img src="/forum/images/graemlins/frown.gif" alt="" /> Ill have to raise that with Infopop then, could also explain why I have never been able to demote moderators!

Top
#229793 - 03/23/03 06:24 PM Re: [6.2] User Group Status Flag 1.1 [Re: statusblue]
MattUK Offline
Journeyman

Registered: 11/23/01
Posts: 137
Josh, the previous query now only shows the user in -5- and not -3- any more.. how do I ensure that he is in both groups?

Top
#229794 - 03/23/03 06:35 PM Re: [6.2] User Group Status Flag 1.1 [Re: statusblue]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Ah....<br /><br />UPDATE w3t_Users<br />SET U_Groups = '-3-5-'<br />WHERE U_Number = 'xxx'<br /><br />Have you done much hacking? If you haven't done much to the admin section, I would try uploading a clean copy of the /admin directory... then see if the group problem is fixed. It would seem to me that an old script, without the get_input function of 6.2 might be kicking around.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#229795 - 03/23/03 06:41 PM Re: [6.2] User Group Status Flag 1.1 [Re: Daine]
MattUK Offline
Journeyman

Registered: 11/23/01
Posts: 137
Thanks very much.. wish I learned SQL!<br /><br />I've been looking at this a little more, and I think that my group 5, or at least the group I thought was 5, isnt in fact 5.. I've listed (using the above commands) other users that ive added to groups, and they are not listed as being in -5- but numbers up as high as -23- .. seeing as I only have 7 groups, how the hell did they get that high?<br /><br />How do I find out what numbers my groups are?!<br /><br />Threads is nice, but the user managment side of it is crap!

Top
#229796 - 03/23/03 06:45 PM Re: [6.2] User Group Status Flag 1.1 [Re: statusblue]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Groups don't renumber themselves. Thats why there is no way to delte them... deleting them creates issues. Did you delete any along the way?<br /><br />Try this to see the content of your groups table and what numbers they are:<br /><br />SELECT *<br />FROM w3t_Groups<br /><br />That'll list everything.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#229797 - 03/23/03 07:03 PM Re: [6.2] User Group Status Flag 1.1 [Re: Daine]
MattUK Offline
Journeyman

Registered: 11/23/01
Posts: 137
No, never deleted any wouldn't know how if there was no menu item.. can only assume its from the UBB days when we imported it in.<br /><br />Now I have updated the code with 23, and everything has kicked into life!<br /><br />So, MANY thanks for your help in getting it working.<br /><br /><happy bunny>

Top
#229798 - 05/11/03 03:48 PM Re: [6.2] User Group Status Flag 1.1 [Re: Daine]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
I just did a fix for this, it now shows the specialflag correctly in expanded view on postlist as well as in the thread list on showthreaded.<br /><br />It's for 6.1 though. It's most certainly working differently in later versions.
_________________________
/Gardener | Complete list of my mods

Top
#229799 - 05/11/03 09:23 PM Re: [6.2] User Group Status Flag 1.1 [Re: c0bra]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I haven't had a chance to play with this - but would like to re-write this for 6.3 with an admin panel to add images and configure the groups. <br /><br />So I still need to play with the "fix". <img src="/forum/images/graemlins/crazy.gif" alt="" /><br /><br />If I can't figure it out - I may ask your guidance. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#229800 - 05/11/03 09:30 PM Re: [6.2] User Group Status Flag 1.1 [Re: Daine]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
What I did was do a join with the Users table to get the correct group value for each post, and had this added to the $tree-array. The way it works now it only checks on $postergroup which is the group for the post you are looking at, which is not the same as what should be shown in the list. Also, inside the show_replies() function it won't even apply as that value is set outside the function.<br /><br />In 6.2+ the join is already there, so it's mostly a matter of adding U_Groups to the query in all places in both postlist and showthreaded. And passing it along in the $tree array along with all the other values of course.
_________________________
/Gardener | Complete list of my mods

Top
Page 2 of 3 < 1 2 3 >


Who's Online
0 registered (), 18 Guests and 10 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Yesterday at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks