Closed avril-gh closed 11 years ago
That sounds like a great update for PM box. Cheers!
I'll get these changes done when I have time or you can just fork this repo, make the changes and send a pull request.
Either way, thanks a lot. Can't wait to check it out. :)
Done. :+1:
@avril-gh thanks so much
you can just fork this repo, make the changes and send a pull request.
i know. Just didnt figured out yet how to implement github into my IDE and its workflow.
Done. :+1:
It is.
There was fiew things in inc / plugins / adv_sidebox / modules / private_messages / adv_sidebox_module.php
Line 82, did not work. For eg. when user is logedin and administrator disable pm's then user will get message that he 'should register to view' (while he is registered and logedin) ect ect. Line 107 to 110 caused strange outcome where if forum is installed in folder and not root, then link within this message for some unknown reason is invalid and lead to non exsisting page. ( if it would be root/foldername/something then output was root/something and fodlername just magically vanished)
There was also fiew other things, which made me decide to update this module.
Line 107 to 110 removed and its functionality has moved to line 82 and below) Line 82 changed and new lines added to properly handle possible situations, Line 100 to 103, shortened into one line with same functionality.
Language file changes : In PM's section - removed arrays, standarised format, messages added. All pm box messages are 100% customisable within language file pm's block (including text which appear as links, "login", "register", "control panel")
Functionality : When user is loged in, he will receive standard output from pm's module.
When user is not logedin he will receive message : 'Please login or register to use this functionality.' (where "login" and "register" are links)
When user is logedin but disabled pm's in usercp he will receive message : 'You have disabled this functionality in control panel.' (where "control panel" is link)
When user is loged in but group cant use pm's or its disabled globaly he will receive message : 'You dont have privileges to access this functionality, or it has been disabled by administrator. You may contact administrator for assistance.'
Code : inc / plugins / adv_sidebox / modules / private_messages / adv_sidebox_module.php Lines 82 to 110 has been removed and replaced with this :
inc / languages / english / adv_sidebox.lang.php Line 62 to 63 removed and replaced with this :