PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro Bug Reports

Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 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?
Teck is offline   Reply With Quote
Old October 27th, 2008, 06:25 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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".
Teck is offline   Reply With Quote
Old October 27th, 2008, 06:19 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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.
Teck is offline   Reply With Quote
Old October 28th, 2008, 07:09 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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?
Teck is offline   Reply With Quote
Old November 8th, 2008, 08:17 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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.
Teck is offline   Reply With Quote
Old 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?
Teck is offline   Reply With Quote
Old November 9th, 2008, 09:34 AM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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.
Teck is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Photopost not using members avator in SMF Cajunle General Discussion 14 November 18th, 2011 09:31 PM
PhotoPost and SMF scrapper_monique Before You Buy 2 June 5th, 2008 07:24 AM
Getting PhotoPost to show in my SMF forum stevek Photopost Pro How Do I...? 5 April 11th, 2007 07:04 AM
Photopost Classifieds: SMF support brother7 Before You Buy 0 October 24th, 2005 06:10 AM
Need Help Intergrating SMF and Photopost kisii Photopost Pro Installation & Upgrades 0 January 6th, 2005 01:39 AM


All times are GMT -5. The time now is 02:19 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0