Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Inline Usernote Adder Details »»
Inline Usernote Adder
Version: 1.0, by Alan @ CIT Alan @ CIT is offline
Developer Last Online: Apr 2012 Show Printable Version Email this Page

Category: Moderators Functions - Version: 3.5.4 Rating:
Released: 05-16-2006 Last Update: Never Installs: 12
Uses Plugins Template Edits
Additional Files  
No support by the author.

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>
</div> 
<!-- / post $post[postid] popup menu -->

(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))">
<td class="vbmenu_option"><a href="#" onClick="post_note($post[userid]); return false;">$vbphrase[inline_usernote_add_usernote]</a>
</if>
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!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 05-18-2006, 04:33 AM
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Posts: 625
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cybertims
Then were do you see this note??
You can view Usernotes as normal under the users profile.

Thanks to everyone who's installed, and thanks to Danny for letting me steal his hack ideas

Thanks,
Alan.
Reply With Quote
  #13  
Old 05-18-2006, 04:36 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way top make the script box more than one line for longer notes?
Reply With Quote
  #14  
Old 05-18-2006, 04:56 AM
rmxs rmxs is offline
 
Join Date: Apr 2006
Posts: 419
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

iNSTLLED

Very good we save time with this
Im going to drink coffee now LOL
Reply With Quote
  #15  
Old 05-18-2006, 05:49 AM
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Posts: 625
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #16  
Old 05-18-2006, 06:37 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alan @ CIT
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.
Ok, no problem, sir.

This will be good for quick notes on the fly, though. I can still use the full editor later if I need to.
Reply With Quote
  #17  
Old 05-18-2006, 07:45 AM
projectego's Avatar
projectego projectego is offline
 
Join Date: Feb 2006
Location: UK
Posts: 724
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great idea Alan, I will certainly use this. Cheers!
Reply With Quote
  #18  
Old 05-18-2006, 10:49 AM
tei727's Avatar
tei727 tei727 is offline
 
Join Date: Feb 2006
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I performed the install but there's nothing added...
Reply With Quote
  #19  
Old 05-18-2006, 11:01 AM
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Posts: 625
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #20  
Old 05-18-2006, 02:33 PM
ngontran ngontran is offline
 
Join Date: Mar 2006
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #21  
Old 05-18-2006, 06:26 PM
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Posts: 625
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:48 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04744 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete