ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Restrict wiki editing by forum posts

May 20, 2008 8:45am

Subscribe [1]
  • #1 / May 20, 2008 8:45am

    mattbrighton

    50 posts

    I know you can restrict wiki access and editing by member group, I was wondering if there was a way to do this via the number of forum posts made, independent of group?

    ie. Editing access available only if 5+ forum posts have been made?

    many thanks for any pointers on this.

  • #2 / May 20, 2008 10:16am

    Robin Sowell

    13255 posts

    Hm- not out of the box….  And after poking it, I’m going to shift to ‘How to’.  But looking at it- I’d either hack mod.wiki.php to alter the {can_edit} itself- or I’d tweak the template file- add a wee bit of php to check if they can edit.  I’d likely go with the template option- looks like: total_forum_topics and total_forum_replies are available in the Session array.  So- no extra queries would be needed to do your check.

    Yep- would most like do that in a template assuming it will take the php edit ok.  Which I haven’t particularly mucked with it, but I don’t see why not.

  • #3 / May 20, 2008 1:37pm

    mattbrighton

    50 posts

    Thanks for the quick feedback. I’ll steer clear of the module hacking, and see if I can stretch my head around a php conditional in the template. I’m guessing this was used as the solution for user contributed notes in the EE user guide also?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases