vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Moderators Functions - Inline Usernote Adder (https://vborg.vbsupport.ru/showthread.php?t=115910)

Alan @ CIT 05-16-2006 10:00 PM

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>
</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! :D


Alan @ CIT 05-17-2006 07:55 PM

Known Bugs: None!

eNforce 05-17-2006 08:55 PM

Slick! Works fine here...

Cybertims 05-17-2006 09:35 PM

Then were do you see this note??

tei727 05-17-2006 09:36 PM

I've got nada when I install it.

Guest190829 05-17-2006 11:39 PM

Wow Alan, this modification saved my marriage! *clicks install*

Stop 05-17-2006 11:52 PM

Nice one.
Installed.

Boofo 05-18-2006 12:18 AM

So this doesn't use the editor for the note, right? Interesting idea. ;)

Guest190829 05-18-2006 01:05 AM

Quote:

Originally Posted by Boofo
So this doesn't use the editor for the note, right? Interesting idea. ;)

Yes, very interesting idea. How do you come up with this stuff? :D

Boofo 05-18-2006 01:37 AM

Quote:

Originally Posted by Danny.VBT
Yes, very interesting idea. How do you come up with this stuff? :D

I'm very astute (and it's killing me!) :cross-eyed:


All times are GMT. The time now is 03:51 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
  • Page Generation 0.01225 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete