This was a problem in the language file. future versions will be updated with the following warning:Dansimati wrote:When I click on the "unlink" button, the page refresh, but nothing changes, and the two accounts are still linked. Alike in the MCP.
Code: Select all
// Note that it is very important that you use actual letters here. If you use HTML entities it will break the mod // For example: use é not é
function change_poster(&$post_info, $userdata). This does the rest for you, even adding an mcp log entry (which could be removed with a bit of copy&paste):
IMO this has two disadvantages: you just changed user accounts (and may need to switch back) and it would probably involve copying large portions of code from the UCP module to posting.php, giving me a THIRD chance to miss updating code (I already have duplicate code for MCP and UCP)Simon Dechain wrote:1) Change the session of the user to the posting account as soon as possible in the posting.php and let the code do it's work
This is how some people manage it now on a board I help out on... all the GMs are also moderators, so it's works... but it's inconvenient. On that particular board, however, it causes problems because we use a RPG stats mod that grabs data from another table at posting time, based on the user posting. This, of course, does not update when the poster is changed. I imagine other RPG-style mods may have similar issues (Cash, stats, etc.)Simon Dechain wrote:2) Change the owner of the post after it has been submitted. Basically, it's a call to the mcp function
function change_poster(&$post_info, $userdata).
Users browsing this forum: oBot and 17 guests