![]() |
Photopost 6.2 + SMF bans not working? Hi. I never had to ban anybody since las week in our forums. Now, I see how the banned users can still comment in photopost, while they haven't access to the forum. Is possible to correct this? Maybe make smf.php search for bans in "smf_ban_groups" table and if exist make it as guest? |
We dont check for bans through some special group. If SMF handled bans like many forums it would probally work as in when you ban someone they are thrown into a banned usergroup as most applications I know of set permissions off of usergroups. So I take it these users are not part of some banned usergroup hense they are not restricted? |
There are 2 tables regarding to bans: smf_ban_groups ID_BAN_GROUP | name | ban_time | expire_time | cannot_access (full ban) | cannot_register | cannot_post | cannot_login | reason | notes Sample: 36 | username | 1187681482 | NULL | 1 | 0 | 0 | 0 | Spammer smf_ban_items ID_BAN | ID_BAN_GROUP | ip_low1 | ip_high1 | ip_low2 | ip_high2 | ip_low3 | ip_high3 | ip_low4 | ip_high4 | hostname | email_address | ID_MEMBER | hits Sample: 98 | 36 | XXX | XXX | YYY | YYY | ZZZ | ZZZ | XXX | XXX | | %usermail% | 386 | 2 There aren't any kind of information about ban in "smf_members". |
Thats the issue then we work off usergroup permissions and most forum softwares move that user into a ban usergroups table entry. SMF must not do that. |
Not sure if could work, but maybe check "smf_ban_items" for the ID_MEMBER, and if exist just overwrite member ID group to guest? The only requisite will be remove from the bans the users after the ban expires, because a temporal ban can expire but the ID_MEMBER still on "smf_ban_items" table. |
I am merely explaining how most integrations work and that we do not support the way they do things. You can make a new SMF usergroup called ban and move any member you wish in the forum to that group then in Photopost resync your groups and set permissions accordingly ;) then things would work like a normal forum. |
Hi Chuck. I created a usergroup called "banned", then I change a member to those usergroup and he is fully banned on SMF (really, I removed all rights) and in PP I refresehd the usergroups and I set all to NO. The usergroup still able to comment and upload photos :S The problem is that, the user still having 2 usergroups... one per message count, and another special called "banned". I can't remove the user from the usergroup bassed on count, so I don't see the way to fully ban people (and right now, I really need it :S) There are a way in SMF.php where I set a usergroup ID for restrict the access? |
I am not fully versed on how SMF works but most forums I know of you can move a user out of any special groups and just place him in one primary group then he would truly be banned. If users are in multiple groups we apply properly the best scenerio for the user so if we can comment etc in that one group then he would be able to. |
Seriously I can't ban a user Chuck? All I need is check the usergroup in "smf_members" table and if usergroup == 20, print "You are banned" and overwritte his group with $usergroup = 100 (guests). I tried before post some times, but really I didn't understand the SMF.php file. I have a user that is touching my balls, and soon will touch more because I can't ban him from Gallery and reviews :( PD: If its more easy, I can use the user ID. No matters if its fully automatic or not, I can writte manually each user ID banned. |
I think I found a solution: In smf.php Code: Content visible to verified customers only.Code: Content visible to verified customers only.Chuck, you think is a solution? |
Well if there main usergroup is 20 it might work but this might change for every single SMF so there is no permanent solution. That might be a solution just for you. The banned group would change for every single forum integration. Your code would look better like this that way you can resync your groups and set permissions accordingly Code: Content visible to verified customers only.Code: Content visible to verified customers only. |
Okay Chuck. Works perfectly. Thanks very much. ;) |
| All times are GMT -5. The time now is 04:39 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0