Quote:
Originally Posted by Yorixz
Sir, you're a genious  Doing so indeed fixed it on the first sight, you're my hero.
Little addition; combined with the two lines of '$vbulletin->bf_ugp_forumpermissions['canpostnew']' removed from the code (handling that with LDM) it's working perfectly as I want it to, thanks once again.
Addition two; one drawback has been spotted though; the creation of the thread isn't delayed until the link/file has been approved but is generated instantly. And the last addition; when a user hits 'Add entry' in a certain category but decides to pick another one before submitting, the topic is still generated in the category first chosen, again a minor issue that I've fixed by removing the forum selector but perhaps it could be fixed in a new version later on - if you plan on having one.
The final edit, a little bug report; when you choose to moderate entries in the queue, select them and choose to delete an error occurs (or at least for me); 'Fatal error: Call to undefined function delete_ldm_entry() in /home/user/html/local_links_actions.php on line 584'.
|
I'll note the suggestions for improvement - the logic may need rethinking in order to address these points.
As far as the bug is concerned, the call to delete_ldm_entry() should be a call to delete_link(). I'm gradually renaming all the functions to avoid clashes with other hacks - delete_ldm_entry will be the new name in due course and it somehow got included in one place in this release.