Log in

View Full Version : Who do i this this


Vinney
06-23-2002, 10:32 AM
I've added a showban hack to my forum.
http://forum.peugeot-gti.net/showbanned.php
but now

if you members click,

http://forum.peugeot-gti.net/showgroups.php?s=

to view the admiistration ..... the banned people are in there as well.


What part of showgroups.php do i need to edit so i dont show the usergroup 11 ( which the banned members are )


I think it's just a little query ... but because am dump and not a code master, i dunno wot it is

Thanks for your time.

Chris M
06-23-2002, 11:26 AM
Just modify the "banned members" usergroup in the Admin CP, and set "viewable on showgroups" to no:)

Satan

Vinney
06-23-2002, 12:23 PM
Originally posted by hellsatan
Just modify the "banned members" usergroup in the Admin CP, and set "viewable on showgroups" to no:)

Satan

I knew someone would come out with that.

If you know anything about the show banned users hacks, if you set the group to non viewable .... it doesn't even show in the

http://forum.peugeot-gti.net/showbanned.php


Next idea please. :)

Logician
06-23-2002, 12:59 PM
Replace:


// get administrators & super moderators ************************************************** ********
$users = $DB_site->query("
SELECT
$locationfieldselect usergroup.title, user.username, user.userid, user.invisible, user.receivepm,
user.usergroupid, user.lastactivity, user.lastvisit
FROM usergroup
LEFT JOIN user ON (usergroup.usergroupid = user.usergroupid)
LEFT JOIN userfield ON (userfield.userid = user.userid)
WHERE usergroup.showgroup = 1
");


AS:


// get administrators & super moderators ************************************************** ********
$users = $DB_site->query("
SELECT
$locationfieldselect usergroup.title, user.username, user.userid, user.invisible, user.receivepm,
user.usergroupid, user.lastactivity, user.lastvisit
FROM usergroup
LEFT JOIN user ON (usergroup.usergroupid = user.usergroupid)
LEFT JOIN userfield ON (userfield.userid = user.userid)
WHERE usergroup.showgroup = 1 AND usergroup.usergroupid!=11
");


And how come this fix is not already included in the hack? :confused:

Vinney
06-23-2002, 02:57 PM
bingo ... cheers mate !!

streeter
06-24-2002, 09:17 PM
where did you get the Show Banned hack?

Vinney
06-24-2002, 10:23 PM
Originally posted by streeter
where did you get the Show Banned hack?

ask someone else you arrogant get ... stop jumping in on my thread ... pm me for chirst sake !

Dean C
06-25-2002, 04:59 PM
^ that was uncalled for mate...

streeter
06-25-2002, 06:41 PM
agreed.

Logician
06-25-2002, 06:50 PM
streeter:

https://vborg.vbsupport.ru/showthread.php?s=&threadid=35979

https://vborg.vbsupport.ru/showthread.php?s=&threadid=36819