Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

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
  #22  
Old 05-18-2006, 08:50 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll check this out later. Thanks.
Reply With Quote
  #23  
Old 06-01-2006, 04:55 AM
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
Location: Black Lagoon
Posts: 1,090
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is brilliant Allan, thanks!
Reply With Quote
  #24  
Old 06-01-2006, 07:11 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

HTML Code:
 <if condition="in_array($bbuserinfo[usergroupid], array(5,6,7))">
<tr><td class="vbmenu_option"><a href="#" onClick="post_note($post[userid]); return false;">$vbphrase[inline_usernote_add_usernote]</a></td></tr>
</if>
Reply With Quote
Reply

Thread Tools

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 08:53 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.07616 seconds
  • Memory Usage 2,235KB
  • Queries Executed 20 (?)
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_html
  • (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
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)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_postinfo_query
  • fetch_postinfo
  • 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