vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Usernote In Postbit v.2.0 (https://vborg.vbsupport.ru/showthread.php?t=101088)

tnguy3n 11-17-2005 10:00 PM

Usernote In Postbit v.2.0
 
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>


nexialys 11-18-2005 04:30 PM

please mention that this hack will add a query for each post displayed on page... so if you have 20 posts per page, you will have an overhead of 20 new db queries...

Diana Notacat 11-18-2005 05:13 PM

I love this idea if it weren't for a whole load of extra queries. Maybe there's a way to fix?

What about being able to add this to the same location as the new PM messages? At least the user can see when they have usernotes, and it (hopefully) shouldn't add too many extra queries?

Snake 11-18-2005 05:17 PM

Very nice!

tnguy3n 11-18-2005 09:06 PM

Quote:

Originally Posted by nexialys
please mention that this hack will add a query for each post displayed on page... so if you have 20 posts per page, you will have an overhead of 20 new db queries...

you're sure a criticizing bug :p but nice catch thou.
okie, I've changed the hook to showthread_postbit_create

RMS-Chef 11-19-2005 05:11 AM

Quote:

Originally Posted by tnguy3n
you're sure a criticizing bug :p but nice catch thou.
okie, I've changed the hook to showthread_postbit_create

Was that supposed to limit the queries?
I just tried and a page of 15 posts with 11 jumped to 26 after install.

FleaBag 11-19-2005 03:47 PM

Very nice! Been looking for a way to draw attention to usernotes. People don't take much notice generally.

Iceburg22 11-21-2005 01:00 PM

Installed

noonespecial 11-28-2005 07:30 AM

If the query issue can be addressed I'll be installing this. However I don't think I can handle that many new queries per page.

Xplorer4x4 11-28-2005 09:53 AM

This could be done via template modification rather then plug in. ;) I believe. lol


All times are GMT. The time now is 12:55 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.01106 seconds
  • Memory Usage 1,737KB
  • 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_html_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