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)

J82980BA3E43 11-28-2005 04:12 PM

is there anyway to make this that only admins/mods can see it!

Onimua 11-28-2005 04:24 PM

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?

noonespecial 11-28-2005 05:38 PM

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.

Ig@r 11-29-2005 05:01 PM

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....

J82980BA3E43 11-29-2005 06:09 PM

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:

noonespecial 11-30-2005 08:03 AM

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.

Ig@r 11-30-2005 01:48 PM

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.

J82980BA3E43 12-14-2005 12:28 PM

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:

J82980BA3E43 12-21-2005 10:50 AM

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 https://vborg.vbsupport.ru/external/2005/12/4.gif

Xplorer4x4 12-21-2005 11:36 AM

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.


All times are GMT. The time now is 08:37 AM.

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.01426 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_php_printable
  • (5)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