WikiPost

WikiPost [Paid] 1.0.4

No permission to buy ($40.00)
You shouldn't use the wiki post moderator permission for that since, as you could see for yourself, they'll have WikiPost permissions over all other threads.

I'm working on a new release that will allow you to assign the WikiPost from the thread creation page.
Okay, I want to understand how this is designed to work.

If this is the case then what is the purpose of this under "Wiki Post"
"Create wiki post in own thread" (you can see why we assume this means users in the applicable group should have the option to make their own thread into a wiki post as they do on MacRumors)

If that's not how it's designed, then how should it work? I am assuming only a moderator will be able to create or convert a new topic into a wiki?

Appreciate the clarification here because it's pretty confusing.
 
Okay, I want to understand how this is designed to work.

If this is the case then what is the purpose of this under "Wiki Post"
"Create wiki post in own thread" (you can see why we assume this means users in the applicable group should have the option to make their own thread into a wiki post as they do on MacRumors)

If that's not how it's designed, then how should it work? I am assuming only a moderator will be able to create or convert a new topic into a wiki?

Appreciate the clarification here because it's pretty confusing.

That permission allows the user to create a WikiPost on any of their existing threads. There's another interesting permission called "Suggest threads to turn into WikiPost" in case you don't want to give your visitors direct permission to create WikiPosts but you'd want to receive suggestions for possible WikiPosts in your forum that would go into the moderation queue.
 
That permission allows the user to create a WikiPost on any of their existing threads. There's another interesting permission called "Suggest threads to turn into WikiPost" in case you don't want to give your visitors direct permission to create WikiPosts but you'd want to receive suggestions for possible WikiPosts in your forum that would go into the moderation queue.
I even tried this, all on a default test board with no other addons.

The Registered users group
Screen Shot 2021-07-31 at 8.51.43 AM.webp

I created a new thread, and then clicked on wiki tools, can only "suggest"
Screen Shot 2021-07-31 at 8.52.19 AM.webp

You cannot even change your own post into a wiki, only suggest.

The only way to allow users to create or convert to wiki is by allowing moderator permissions. To me, this is fundamentally broken.
 
I even tried this, all on a default test board with no other addons.

The Registered users group
View attachment 255426

I created a new thread, and then clicked on wiki tools, can only "suggest"
View attachment 255427

You cannot even change your own post into a wiki, only suggest.

The only way to allow users to create or convert to wiki is by allowing moderator permissions. To me, this is fundamentally broken.

Could you please analyze the permissions for the user in the screenshot and post the results here?
 
Could you please analyze the permissions for the user in the screenshot and post the results here?
Sure - Gobal:


Analyze permissions​

This tool allows you to analyze the individual components that make up a permission set for a user. It is particularly useful for determining why a permission is not being applied as you expect.

General permissions​

View
Yes (Details)
View node
Yes (Details)
View member lists
Yes (Details)
View member profiles
Yes (Details)
Use push notifications
No (Details)
Maximum mention alerts
5 (Details)
Search
Yes (Details)
Create new content tag
Yes (Details)
Bypass user content tag limit
No (Details)
Upload an avatar
Yes (Details)
Upload a profile banner
Yes (Details)
Edit profile
Yes (Details)
Edit custom title
No (Details)
Require two-step verification
No (Details)
Change username
Yes (Details)
Change username without approval
No (Details)
Submit content without approval
Yes (Details)
Bypass flood check
No (Details)
Bypass spam check
No (Details)
View warning issuer
No (Details)
Bypass "nofollow" in submitted content links
No (Details)
Report content
Yes (Details)
Use contact form
Yes (Details)

General moderator permissions​

View IP addresses
No (Details)
Bypass user privacy
No (Details)
Use the spam cleaner
No (Details)
View warning details
No (Details)
Give users warnings directly
No (Details)
Delete issued warnings
No (Details)
Delete all warnings
No (Details)
Edit basic user profiles
No (Details)
Approve / reject users
No (Details)
Approve / reject username change
No (Details)
Ban users
No (Details)
View Warning Actions
No (Details)
Edit Warning Actions
No (Details)
Don't Summarize Warning Actions
No (Details)
Bypass warning title censor
No (Details)

Bookmark permissions​

View own bookmarks
Yes (Details)
Create bookmark
Yes (Details)

Forum permissions​

View threads by others
Yes (Details)
View thread content
Yes (Details)
React to posts
Yes (Details)
Vote on threads/posts (when applicable)
Yes (Details)
Mark post as solution to own question thread (when applicable)
Yes (Details)
Post new thread
Yes (Details)
Post replies
Yes (Details)
Delete own post
Yes (Details)
Edit own post
Yes (Details)
Time limit on editing/deleting own posts (minutes)
Unlimited (Details)
Edit own thread title (requires edit own post)
Yes (Details)
Delete own thread
No (Details)
View attachments to posts
Yes (Details)
Upload attachments to posts
Yes (Details)
Upload video/audio to posts
Yes (Details)
Tag own thread
Yes (Details)
Tag any thread
No (Details)
Manage tags by others in own thread
No (Details)
Vote on polls
Yes (Details)

Forum moderator permissions​

Use inline moderation on threads / posts
No (Details)
Stick / unstick thread
No (Details)
Lock / unlock threads
No (Details)
Manage (move, merge, etc.) any thread
No (Details)
Delete any thread
No (Details)
Hard-delete any thread
No (Details)
Ban users from replying to a thread
No (Details)
Edit any post
No (Details)
Delete any post
No (Details)
Hard-delete any post
No (Details)
Give warnings on posts
No (Details)
Manage any tags
No (Details)
View deleted threads / posts
No (Details)
View unapproved threads / posts
No (Details)
Undelete threads / posts
No (Details)
Approve / unapprove threads / posts
No (Details)
Mark post as solution to any question thread (when applicable)
No (Details)

Conversation permissions​

Start conversations
Yes (Details)
Receive new conversations
Yes (Details)
React to messages
Yes (Details)
Upload attachments to conversations
No (Details)
Upload video/audio to conversations
No (Details)
Edit own messages
Yes (Details)
Time limit on editing own messages (minutes)
5 (Details)
Maximum conversation recipients
5 (Details)

Conversation moderator permissions​

Edit any message
No (Details)
Always invite participants to conversations
No (Details)

Signature permissions​

Edit signature
Yes (Details)
Allow basic text formatting (bold, italic, etc)
Yes (Details)
Allow extended text formatting (color, font, size)
Yes (Details)
Allow alignment changes
Yes (Details)
Allow lists
Yes (Details)
Allow images
Yes (Details)
Allow links
Yes (Details)
Allow embedded media
Yes (Details)
Allow block tags (code, quote, etc)
Yes (Details)
Maximum printable characters
Unlimited (Details)
Maximum lines
Unlimited (Details)
Maximum links
Unlimited (Details)
Maximum images
Unlimited (Details)
Maximum smilies
Unlimited (Details)
Maximum text size (1 - 7)
Unlimited (Details)

Profile post permissions​

View profile posts
Yes (Details)
React to profile posts
Yes (Details)
Manage profile posts on own profile
Yes (Details)
Post new profile posts
Yes (Details)
Comment on profile posts
Yes (Details)
Delete own profile posts
Yes (Details)
Edit own profile posts
Yes (Details)
View attachments to profile posts and comments
Yes (Details)
Upload attachments to profile posts and comments
Yes (Details)
Upload video/audio to profile posts and comments
Yes (Details)

Profile post moderator permissions​

Can use inline moderation on profile posts
No (Details)
Edit any profile posts
No (Details)
Delete any profile posts
No (Details)
Hard-delete any profile posts
No (Details)
Give warnings on profile posts
No (Details)
View deleted profile posts
No (Details)
View unapproved profile posts
No (Details)
Undelete profile posts
No (Details)
Approve / unapprove profile posts
No (Details)

Wiki Post​

Edit WikiPosts
Yes (Details)
Create WikiPosts in own thread (requires edit wikiposts)
Yes (Details)
Disable WikiPosts in own threads (requires edit wikiposts)
Yes (Details)
Protect own WikiPosts (requires edit wikiposts)
Yes (Details)
Suggest threads to turn into WikiPost
Yes (Details)

Wiki Post moderator permissions​

Create WikiPosts on any thread
No (Details)
Ban users from edit any WikiPost
No (Details)
Protect any WikiPost
No (Details)

Node:

General permissions​

View
Yes (Details)
View node
Yes (Details)
View member lists
Yes (Details)
View member profiles
Yes (Details)
Use push notifications
No (Details)
Maximum mention alerts
5 (Details)
Search
Yes (Details)
Create new content tag
Yes (Details)
Bypass user content tag limit
No (Details)
Upload an avatar
Yes (Details)
Upload a profile banner
Yes (Details)
Edit profile
Yes (Details)
Edit custom title
No (Details)
Require two-step verification
No (Details)
Change username
Yes (Details)
Change username without approval
No (Details)
Submit content without approval
Yes (Details)
Bypass flood check
No (Details)
Bypass spam check
No (Details)
View warning issuer
No (Details)
Bypass "nofollow" in submitted content links
No (Details)
Report content
Yes (Details)
Use contact form
Yes (Details)

General moderator permissions​

View IP addresses
No (Details)
Bypass user privacy
No (Details)
Use the spam cleaner
No (Details)
View warning details
No (Details)
Give users warnings directly
No (Details)
Delete issued warnings
No (Details)
Delete all warnings
No (Details)
Edit basic user profiles
No (Details)
Approve / reject users
No (Details)
Approve / reject username change
No (Details)
Ban users
No (Details)
View Warning Actions
No (Details)
Edit Warning Actions
No (Details)
Don't Summarize Warning Actions
No (Details)
Bypass warning title censor
No (Details)

Bookmark permissions​

View own bookmarks
Yes (Details)
Create bookmark
Yes (Details)

Forum permissions​

View threads by others
Yes (Details)
View thread content
Yes (Details)
React to posts
Yes (Details)
Vote on threads/posts (when applicable)
Yes (Details)
Mark post as solution to own question thread (when applicable)
Yes (Details)
Post new thread
Yes (Details)
Post replies
Yes (Details)
Delete own post
Yes (Details)
Edit own post
Yes (Details)
Time limit on editing/deleting own posts (minutes)
Unlimited (Details)
Edit own thread title (requires edit own post)
Yes (Details)
Delete own thread
No (Details)
View attachments to posts
Yes (Details)
Upload attachments to posts
Yes (Details)
Upload video/audio to posts
Yes (Details)
Tag own thread
Yes (Details)
Tag any thread
No (Details)
Manage tags by others in own thread
No (Details)
Vote on polls
Yes (Details)

Forum moderator permissions​

Use inline moderation on threads / posts
No (Details)
Stick / unstick thread
No (Details)
Lock / unlock threads
No (Details)
Manage (move, merge, etc.) any thread
No (Details)
Delete any thread
No (Details)
Hard-delete any thread
No (Details)
Ban users from replying to a thread
No (Details)
Edit any post
No (Details)
Delete any post
No (Details)
Hard-delete any post
No (Details)
Give warnings on posts
No (Details)
Manage any tags
No (Details)
View deleted threads / posts
No (Details)
View unapproved threads / posts
No (Details)
Undelete threads / posts
No (Details)
Approve / unapprove threads / posts
No (Details)
Mark post as solution to any question thread (when applicable)
No (Details)

Conversation permissions​

Start conversations
Yes (Details)
Receive new conversations
Yes (Details)
React to messages
Yes (Details)
Upload attachments to conversations
No (Details)
Upload video/audio to conversations
No (Details)
Edit own messages
Yes (Details)
Time limit on editing own messages (minutes)
5 (Details)
Maximum conversation recipients
5 (Details)

Conversation moderator permissions​

Edit any message
No (Details)
Always invite participants to conversations
No (Details)

Signature permissions​

Edit signature
Yes (Details)
Allow basic text formatting (bold, italic, etc)
Yes (Details)
Allow extended text formatting (color, font, size)
Yes (Details)
Allow alignment changes
Yes (Details)
Allow lists
Yes (Details)
Allow images
Yes (Details)
Allow links
Yes (Details)
Allow embedded media
Yes (Details)
Allow block tags (code, quote, etc)
Yes (Details)
Maximum printable characters
Unlimited (Details)
Maximum lines
Unlimited (Details)
Maximum links
Unlimited (Details)
Maximum images
Unlimited (Details)
Maximum smilies
Unlimited (Details)
Maximum text size (1 - 7)
Unlimited (Details)

Profile post permissions​

View profile posts
Yes (Details)
React to profile posts
Yes (Details)
Manage profile posts on own profile
Yes (Details)
Post new profile posts
Yes (Details)
Comment on profile posts
Yes (Details)
Delete own profile posts
Yes (Details)
Edit own profile posts
Yes (Details)
View attachments to profile posts and comments
Yes (Details)
Upload attachments to profile posts and comments
Yes (Details)
Upload video/audio to profile posts and comments
Yes (Details)

Profile post moderator permissions​

Can use inline moderation on profile posts
No (Details)
Edit any profile posts
No (Details)
Delete any profile posts
No (Details)
Hard-delete any profile posts
No (Details)
Give warnings on profile posts
No (Details)
View deleted profile posts
No (Details)
View unapproved profile posts
No (Details)
Undelete profile posts
No (Details)
Approve / unapprove profile posts
No (Details)

Wiki Post​

Edit WikiPosts
Yes (Details)
Create WikiPosts in own thread (requires edit wikiposts)
Yes (Details)
Disable WikiPosts in own threads (requires edit wikiposts)
Yes (Details)
Protect own WikiPosts (requires edit wikiposts)
Yes (Details)
Suggest threads to turn into WikiPost
Yes (Details)

Wiki Post moderator permissions​

Create WikiPosts on any thread
No (Details)
Ban users from edit any WikiPost
No (Details)
Protect any WikiPost
No (Details)

I can replicate this problem on both of my sites.

However, when I go to MacRumors it works as I expected it to work on my sites. I am just a regular user there (see Wiki post at the bottom)
Screen Shot 2021-07-31 at 9.19.46 AM.webp
 
Sure - Gobal:


Node:


I can replicate this problem on both of my sites.

However, when I go to MacRumors it works as I expected it to work on my sites. I am just a regular user there (see Wiki post at the bottom)
View attachment 255428
So, I think I understand what's going on. Permissions seem to be working fine. The way I see it, you're trying to enable a WikiPost on a thread which you do not own and on a forum in which you do not have WikiPost moderator permissions.


The Registered users group
Screen Shot 2021-07-31 at 8.51.43 AM.png

These permissions are Ok if you want registered users to be able to Edit Any WikiPosts and Create/Disable WikiPosts only on their own threads.

I suspect you were trying to create a WikiPost on a thread you do not own since the following screenshot shows the Like button and, by default, you cannot like your own posts.


So, if you'd want to have the Create WikiPost option on the previous screenshot, you would have to be logged in as "ericgtr12" or as a user with WikiPost administrator permissions (more specifically the "Create WikiPosts on any thread" permission).

Let me know if you're able to configure the permissions on your test board and I'll send you the updated addon.

I also uploaded the newest version of the addon to your test board with the fix to the WikiPost option not appearing when you create a thread.
 
Last edited:
So, I think I understand what's going on. Permissions seem to be working fine. The way I see it, you're trying to enable a WikiPost on a thread which you do not own and on a forum in which you do not have WikiPost moderator permissions.
I have tested this several times with the test user starting the thread as well on both forums.

These permissions are Ok if you want registered users to be able to Edit Any WikiPosts and Create/Disable WikiPosts only on their own threads.

I suspect you were trying to create a WikiPost on a thread you do not own since the following screenshot shows the Like button and, by default, you cannot like your own posts.


So, if you'd want to have the Create WikiPost option on the previous screenshot, you would have to be logged in as "ericgtr12" or as a user with WikiPost administrator permissions (more specifically the "Create WikiPosts on any thread" permission).

Let me know if you're able to configure the permissions on your test board and I'll send you the updated addon.

I also uploaded the newest version of the addon to your test board with the fix to the WikiPost option not appearing when you create a thread.
Okay, it is now working as it should on the test board when posting as the test user in the Registered group with the proper (non-moderator) permission, I see the option as the test user so it looks like you made some changes.

I would like to try this on my production board now (which still isn't working) if you want to send me the code.

Also, thanks for taking so much time to work on this today.
 
Last edited:
Great addon, thank you! I'll post a review after we put this in production, but just from testing I can see you deserve far more than 1 star :LOL:

One request: wiki resource descriptions. We made a lot of tutorials as "resources" and would love to get some collaboration.
 
Great addon, thank you! I'll post a review after we put this in production, but just from testing I can see you deserve far more than 1 star :LOL:

One request: wiki resource descriptions. We made a lot of tutorials as "resources" and would love to get some collaboration.
Please do. Once he responded he did a great job of supporting it and if I could go back and modify the rating I definitely would. We are now using this without any issues, great addon.
 
Great addon, thank you! I'll post a review after we put this in production, but just from testing I can see you deserve far more than 1 star :LOL:
I'm glad you're liking it!
One request: wiki resource descriptions. We made a lot of tutorials as "resources" and would love to get some collaboration.
So, like WikiPost but instead of the resource thread, you could edit the resource itself?
 
it appears this might have a PHP 8 incompatibility? We are testing PHP 8 and get this error when initializing Xenforo:

[30-Sep-2021 18:10:38 UTC] PHP Fatal error: Declaration of Laneros\WikiPost\XF\Entity\Post::getWikiPostThread() must be compatible with Laneros\WikiPost\XF\Entity\WikiPostPermissionsTrait::getWikiPostThread(): XF\Entity\Thread in /home/macrumor/xenforo/src/addons/Laneros/WikiPost/XF/Entity/Post.php on line 75

edit: no, still happening
 
Last edited:
I just tried to merge a post into an existing Wikipost and got the following error:

Oops! We ran into some problems.
InvalidArgumentException: Attempted to convert NULL to string/binary [summary] in src/XF/Mvc/Entity/Entity.php at line 761
  1. XF\Mvc\Entity\Entity->_castValueToType() in src/XF/Mvc/Entity/Entity.php at line 639
  2. XF\Mvc\Entity\Entity->set() in src/XF/Mvc/Entity/Entity.php at line 741
  3. XF\Mvc\Entity\Entity->bulkSet() in src/addons/Laneros/WikiPost/XF/Repository/EditHistory.php at line 42
  4. Laneros\WikiPost\XF\Repository\EditHistory->insertEditHistory() in src/XF/Service/Post/Merger.php at line 389
  5. XF\Service\Post\Merger->finalActions() in src/XF/Service/Post/Merger.php at line 136
  6. XF\Service\Post\Merger->merge() in src/XF/InlineMod/Post/Merge.php at line 69
  7. XF\InlineMod\Post\Merge->applyInternal() in src/XF/InlineMod/AbstractAction.php at line 80
  8. XF\InlineMod\AbstractAction->apply() in src/XF/Pub/Controller/InlineMod.php at line 129
  9. XF\Pub\Controller\InlineMod->actionPerform() in src/XF/Mvc/Dispatcher.php at line 352
  10. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
  11. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
  12. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
  13. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2345
  14. XF\App->run() in src/XF.php at line 512
  15. XF::runApp() in index.php at line 20

Screenshot from 2021-10-07 08-34-18.webp
 
Top Bottom