![]() |
Inline Usernote Adder
Inline Usernote Version 1.0 What does it do? This little mod allows you to add Usernotes directly from the postbit when browsing a thread. It uses Ajax to post the usernote, so your page isn't refreshed at all. You can post the note then carry on reading the thread without being disturbed. Great! How do I install? To install, follow these steps: Step 1) Upload the contents of the upload folder to your forum (2 files) Step 2) Import the Product XML as normal Step 3) Edit the postbit template as follows: Find Code:
</table> (hint, it's a few lines up from the very bottom) ABOVE the </table>, add the following: Code:
<if condition="in_array($bbuserinfo[usergroupid], array(5,6,7))"> Now save the template. Step 4) All done! All done! How do I use it? When you view a thread, click on the users name to being up the dropdown menu. You should now see a "Add Usernote" option there. Clicking this will bring up a prompt allowing you to enter the note you wish to add. Click OK on this, and it will confirm that the usernote was entered (or give you an error). That's it! Important: Unfortunately, my leased vBulletin licence has now expired, and I won't be renewing it until September which means I will be unable to reply to this thread, or update this mod until then. I'm hopeful that the great vBulletin.org community will step in to answer any questions in my absence though :) See you all in early September! :D |
Known Bugs: None!
|
Slick! Works fine here...
|
Then were do you see this note??
|
I've got nada when I install it.
|
Wow Alan, this modification saved my marriage! *clicks install*
|
Nice one.
Installed. |
So this doesn't use the editor for the note, right? Interesting idea. ;)
|
Quote:
|
Quote:
|
Quote:
Thanks to everyone who's installed, and thanks to Danny for letting me steal his hack ideas :D Thanks, Alan. |
Is there any way top make the script box more than one line for longer notes?
|
iNSTLLED
Very good we save time with this :) Im going to drink coffee now LOL |
Boofo: Not that I can find. It's a standard Javascript prompt() box, and despite my searching, it seems it can only be 1 line.
Thanks, Alan. |
Quote:
This will be good for quick notes on the fly, though. I can still use the full editor later if I need to. ;) |
Great idea Alan, I will certainly use this. Cheers! ;)
|
I performed the install but there's nothing added...
|
tei727: What do you mean "there's nothing added" - do you mean the Add Usernote option doesn't appear? or that the usernote isn't added? if so, do you get any javascript or PHP errors? any popup boxes, etc?
Thanks, Alan. |
Sorry for being a dummy! ;p
If any one can tell me what is the usernote use for ?! Is it for members commencing each other personally? thanks in advance |
Usernotes are little text notes that Admins/mods can add to user accounts. For example, if a user is constantly picking fights with other users, a mod could add a note to his account saying "Known trouble maker - look at thread history - 1 more warning then ban?" - only other mods/admins could read this note.
Another example - an admin might see the good work a user is doing in helping his fellow members, so will put a usernote on his account saying "Helpful user, possible new moderator". It's just easier than writing things on post-it-notes, plus all other mods/admins can see the notes (if you give them permission to) :) Thanks, Alan. |
I'll check this out later. Thanks.
|
this is brilliant Allan, thanks!
|
Not to nitpic here, but I think you forget the TR tags and the cloing TD tag in your postbit edit. ;)
This: HTML Code:
<if condition="in_array($bbuserinfo[usergroupid], array(5,6,7))"> HTML Code:
<if condition="in_array($bbuserinfo[usergroupid], array(5,6,7))"> |
All times are GMT. The time now is 06:29 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|