The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Unregistered user post
Could someone tell me if this is a bug?
As an admin, I am unable to edit the post of a guest. All permissions have been made but still not able. . . Thanks. . . |
#2
|
|||
|
|||
It's been going on a long time and I am getting quite frustrated with it.
Here is the bug report: http://tracker.vbulletin.com/browse/VBV-12765 I don't get the feeling they are doing anything about it, anytime soon. --------------- Added [DATE]1455227399[/DATE] at [TIME]1455227399[/TIME] --------------- Oh, and please be sure to vote as well for this issue! http://tracker.vbulletin.com/browse/VBV-12765 |
Благодарность от: | ||
DemOnstar |
#3
|
||||
|
||||
Quote:
The file: /core/vb/api/node.php From the JIRA posted by Igor Arkadia Code:
The file: /core/vb/api/node.php The method: getCreatepermissionsForEdit() You check there if nodeid, channelid, userid etc are not defined and do "return array('createpermissions' => false);" if it's like this. The problem is how you do it: if ... OR empty($node['userid']) OR ... Posts of guests have userid = 0, the function empty() in PHP returns true if its argument is equal to 0. I agree it could be unexpected behavior of the function but it is how it works. I guess it could be patched changing this code to something like: ... OR (empty($node['userid']) && ($node['userid'] != 0)) OR ... Whether or not it has unexpected results is yet to be discovered. |
#4
|
||||
|
||||
Quote:
A user provides a solution and nobody does anything about it for months on end. . . There are many problems with un-registered and not logged on users. 1. Permissions don't work. 2. Attachments don't show up in quotes. 3. The option to change title from 'Guest' doesn't work. 4. When a guest makes a post, there is no acknowledgement shown. The screen just goes to the page not showing the post that has just been made. . When one relies on unregistered or not logged on guests, it renders the site useless basically. And then it becomes a recorded bug which lies there forever. . . Quote:
By the way. . . Quote:
Cheers. . . --------------- Added [DATE]1455274599[/DATE] at [TIME]1455274599[/TIME] --------------- Quote:
Code:
// This function is only meant to be called from the createcontent controller's actionLoadEditor() // It's not meant to be very versatile. if (!is_array($node) OR empty($node['nodeid']) OR empty($node['starter']) OR empty($node['channelid']) OR empty($node['userid']) OR empty($node['contenttypeid']) ) { return array('createpermissions' => false); } // if the user can't edit this node, then we're out. if (!vB_Library_Content::getContentLib($node['contenttypeid'])->getCanEdit($node)) { return array('createpermissions' => false); } |
#5
|
||||
|
||||
Change this line,
OR empty($node['channelid']) OR empty($node['userid']) to, OR empty($node['channelid']) OR (empty($node['userid']) && ($node['userid'] != 0)) |
#6
|
||||
|
||||
Quote:
Very good for all concerned. . . .:up: |
#7
|
|||
|
|||
Quote:
Working in the code makes my head spin. I'll play around with this later. Thanks again! |
#8
|
||||
|
||||
This change will not survive an upgrade. It will have to be reapplied every upgrade until they fix it.
|
#9
|
||||
|
||||
Quote:
Thanks for the reminder . . . |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|