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

Reply
 
Thread Tools
Usernote In Postbit v.2.0 Details »»
Usernote In Postbit v.2.0
Version: 1.00, by tnguy3n tnguy3n is offline
Developer Last Online: Sep 2010 Show Printable Version Email this Page

Version: 3.5.1 Rating:
Released: 11-17-2005 Last Update: Never Installs: 23
Uses Plugins
 
No support by the author.

Modded by tnguy3n

Port of my Usernote In Postbit v.1.2 for vb3.0

This mod shows number of usernote in postbit. It only shows when the user has a note.

Installation time: 1-2 mins
Plugin: 1
Tempate mod: 1

#--------------
INSTALLATION:

1. Upload plugin-usernote.xml in Plugin Manager

2. Open postbit (or postbit_legacy) template,

FIND:
HTML Code:
				<div>
					$vbphrase[posts]: $post[posts]
				</div>
BELOW, ADD:
HTML Code:
				<if condition="$post[usernote]"><div>
					Usernote: <a href="usernote.php?$session[sessionurl]u=$post[userid] title="see $post[username]'s usernotes">$post[usernote]</a>
				</div></if>

Show Your Support

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

Comments
  #12  
Old 11-28-2005, 04:12 PM
J82980BA3E43 J82980BA3E43 is offline
 
Join Date: May 2005
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there anyway to make this that only admins/mods can see it!
Reply With Quote
  #13  
Old 11-28-2005, 04:24 PM
Onimua Onimua is offline
 
Join Date: Apr 2005
Location: Florida
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by J82980BA3E43
is there anyway to make this that only admins/mods can see it!
I would assume adding conditional tags around the code in the template would do it.

Would install, but from people talking about the extra queries... no thanx. Excellent idea though.

Maybe cache the usernotes and update them hourly or something?
Reply With Quote
  #14  
Old 11-28-2005, 05:38 PM
noonespecial noonespecial is offline
 
Join Date: Nov 2002
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xplorer4x4
This could be done via template modification rather then plug in. I believe. lol
Well, if you didn't want the # of usernotes to show.
Reply With Quote
  #15  
Old 11-29-2005, 05:01 PM
Ig@r's Avatar
Ig@r Ig@r is offline
 
Join Date: Feb 2002
Location: MN
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks!
Install.

Still this hack produced lots of extra querys.... :speechless:
I think it would be much better use JOIN with post table instead of running extra query for each post....
Reply With Quote
  #16  
Old 11-29-2005, 06:09 PM
J82980BA3E43 J82980BA3E43 is offline
 
Join Date: May 2005
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Onimua
I would assume adding conditional tags around the code in the template would do it.

Would install, but from people talking about the extra queries... no thanx. Excellent idea though.

Maybe cache the usernotes and update them hourly or something?
how I do that ! :ermm:
Reply With Quote
  #17  
Old 11-30-2005, 08:03 AM
noonespecial noonespecial is offline
 
Join Date: Nov 2002
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any one going to take a shot at reducing the queries? I want to install this on my board ... I may do it if no one else does.
Reply With Quote
  #18  
Old 11-30-2005, 01:48 PM
Ig@r's Avatar
Ig@r Ig@r is offline
 
Join Date: Feb 2002
Location: MN
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by noonespecial
Any one going to take a shot at reducing the queries? I want to install this on my board ... I may do it if no one else does.
noonespecial, please do, I'm sure everyone will really appreciate it.
Reply With Quote
  #19  
Old 12-14-2005, 12:28 PM
J82980BA3E43 J82980BA3E43 is offline
 
Join Date: May 2005
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how make this that only admins/mods can see if a member have a usernote and no one else can't see it!!
please :nervous:
Reply With Quote
  #20  
Old 12-21-2005, 10:50 AM
J82980BA3E43 J82980BA3E43 is offline
 
Join Date: May 2005
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by J82980BA3E43
how make this that only admins/mods can see if a member have a usernote and no one else can't see it!!
please :nervous:
nobody whom can help me please
Reply With Quote
  #21  
Old 12-21-2005, 11:36 AM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

NOT TESTED but try:
PHP Code:
<if condition="$post[usernote]AND "is_member_of($bbuserinfo, array(1,2,3))"><div>
                    
Usernote: <a href="usernote.php?$session[sessionurl]u=$post[userid] title="see $post[username]'s usernotes">$post[usernote]</a>
                </div></if> 
And replace 1,2,3 with the porper usergroup ids.
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:33 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.05114 seconds
  • Memory Usage 2,308KB
  • 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_html
  • (1)bbcode_php
  • (5)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