 | |  | | | Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here. |
October 27th, 2008, 04:57 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Mar 2006 Location: /home/mrteck
Posts: 106
| 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?
|
| |
October 27th, 2008, 06:25 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,689
|
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?
|
| |
October 27th, 2008, 08:12 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Mar 2006 Location: /home/mrteck
Posts: 106
|
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".
|
| |
October 27th, 2008, 06:19 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,689
|
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.
|
| |
October 28th, 2008, 06:29 AM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Mar 2006 Location: /home/mrteck
Posts: 106
|
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.
|
| |
October 28th, 2008, 07:09 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,689
|
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.
|
| |
November 8th, 2008, 02:27 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Mar 2006 Location: /home/mrteck
Posts: 106
|
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?
|
| |
November 8th, 2008, 08:17 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,689
|
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.
|
| |
November 9th, 2008, 05:17 AM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Mar 2006 Location: /home/mrteck
Posts: 106
|
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.
Last edited by Teck; November 9th, 2008 at 05:35 AM.
|
| |
November 9th, 2008, 06:23 AM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Mar 2006 Location: /home/mrteck
Posts: 106
|
I think I found a solution:
In smf.php Code: Content visible to verified customers only.
After that, paste: Code: Content visible to verified customers only.
ID_GROUP for banneds in SMF is 20.
Chuck, you think is a solution?
|
| |
November 9th, 2008, 09:34 AM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,689
|
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.
make it this Code: Content visible to verified customers only.
|
| |
November 9th, 2008, 02:18 PM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Mar 2006 Location: /home/mrteck
Posts: 106
|
Okay Chuck.
Works perfectly.
Thanks very much. |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 02:19 AM. | |