• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

how to restrict user to delete posts posted by him only

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to use JForum as a discussion board for my already developed application� all is going well.
However, when I come across delete permission I could not find the way to assign forum-based permission for �delete post� or �delete comment� option. Can some body tell me that in which way I should use permission that one should be able to delete only those posts or comments that he wrote himself and cannot delete other posts on the same Forum?

[originally posted on jforum.net by ahmad]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Only moderators can remove posts, not regular users, even if they created the message.

Currently this moderation role is for all messages, in fact.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
so how can i add such feature. as it seems a very basic feature.
i did not explored much the JForum code so can you pleas guide me where to start ... if i would like to add these type of delete permissions
[originally posted on jforum.net by ahmad]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1.First, you need to adjust the permission for General group to allow deleting post to true in Control Panel.
2.Then, you need to modify the templates/default/post_show_action_buttons_inc.htm, line 22:

3.Reload JForum.

See also:
http://www.andowson.com/posts/list/253.page#428
[originally posted on jforum.net by andowson]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thankx andowson !!!
it works absolutely fine.
[originally posted on jforum.net by ahmad]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
its fine to delete single comment/ reply
but if want to delete the whole topic (as administrator can ) i need to assign isAdmin Group permission to the user and he can delete but the problem is that once a user is mentioned as isAdmin=yes he can any post on any forum where his rights are read only.
[originally posted on jforum.net by ahmad]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
like here is the scenario:

1. I created a forum and a user group, eg: NewTest with the same name. only this UserGroup has the read\write rights where as i assigned General group(default user group for all users) read only rights to the NewTest Forum. Now any user who is the member of NewTest user group can create new post, edit them and delete also.
where as other all members who are by default members of general group can only view the post and replies on a NewTest Forum topic ....

2. I created another Forum , eg TestOnly, again the same thing only members of TestOnly can post comment in this Forum, where as members of TestOnly can not post\delete any message on NewTest but can view (due to General Group Membership), and voice versa....


now if i want to add the capability for the members of the TestOnly members to be able to delete the whole topic i need to change group permission to isAdmin=yes and it works fine.

but now members of TestOnly can also delete post on NewTest. that is not appropriate (this is because both the members of TestOnly and NewTest are members of General group and general group has read only access to both Forums).

sooo ..... any suggestions that how to restrict NewTest members to delete topics of NewTest Forum only and cant delete Topics on TestOnly.
[originally posted on jforum.net by ahmad]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic