osclass / Osclass

With Osclass, get your own classifieds site for free. Build your own Osclass installation and start advertising real estate, jobs or whatever you want- in minutes!
http://osclass.org/
650 stars 344 forks source link

User Enable Posting & Disable Posting #1264

Open maddrid opened 10 years ago

maddrid commented 10 years ago

Let user register and log in but not to be able to post if option is not available from preferences or user settings It works same as Activate or Block but on item-post,item-edit ..

Simple but useful addition (future use ) can be implemented only by duplicating and renaming few existing methods and fields 1 field =>oc-includes/osclass/installer/struct.sql in table t_user 'b_posting".. Files => model/User.php osclass/UserActions.php oc-admin/ajax/user-procesing.php oc-admin/users.php oc-admin/themes/modern/users/frm.php helpers/hUsers.php 2 theme files => item-post,item-edit if (osc_user_can_post) else (redirect or sistem message)

conejoninja commented 10 years ago

What would be the purpose of disabling the right of an user to post?

maddrid commented 10 years ago

Will help set up different configuration and display settings for user type ( user ,company &and more ). Will provide a small helper. Example 1 . Block and deactivate does not let user acces to his posted items,watchlist ofers made ... etc.. Disable posting will let user go in (logged )and have acces to his posted items... etc ... but not allows him to post more (admin have a reason ) Example.2 Register as company have personalized fields and different options and resources on item post ( more fotos, more fields) .. Default user_posting set to 0. Site admin check if conditions are made for user type company .. and allows that company access to resources . only theme modifications will be made (we have all details already extracted ). if is_user {} if is_company AND user_can_post .{ abc} Example 3. will let user log in and ...... watch .... he can do nothing ...small "punishment " by admin

conejoninja commented 10 years ago

961 is related to this one : Some user find a way to put their spammy content in user decription.

Need to add 'b_spam' to mark user as spam before block it and give admin time to check it, because block user means block their items too.