vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Usernote: view self's note if no userid (https://vborg.vbsupport.ru/showthread.php?t=102578)

deathemperor 12-08-2005 10:00 PM

Usernote: view self's note if no userid
 
very very simple:

Import the plugin.

you may find this useful, cuz my site needs it :) , I coded this simple thing for my lazy admins when they want to view themself's notes but dont want to input their userid.


*Thanks to Andreas to upgrade this hack to a plugin.*

Andreas 12-09-2005 06:13 AM

global_start
PHP Code:

if (THIS_SCRIPT == 'usernote' AND !$_REQUEST['userid'])
{
    
$_REQUEST['userid'] =& $vbulletin->userinfo['userid'];



deathemperor 12-09-2005 06:29 AM

my bad, I didn't know there is a hook call global_start

deathemperor 12-09-2005 06:34 AM

please move it to plugin forum.

//off-topic: auto merged double post removed ?

Marco van Herwaarden 12-09-2005 06:58 AM

Moved.

Automerge was never active in the release forums.

Boofo 12-09-2005 07:23 AM

I guess I'm confused here. Can't they just click on the usernote link in their profile? Where would you use this? And how? ;)

Snake 12-09-2005 08:13 AM

Nice addition there!

deathemperor 12-09-2005 08:29 AM

Quote:

Originally Posted by Boofo
I guess I'm confused here. Can't they just click on the usernote link in their profile? Where would you use this? And how? ;)

it's annoying if you have to view your own profile to get to your usernote, mostly they type the url and remember their userid is hard...

Boofo 12-09-2005 11:59 PM

So there is no link anywhere for this. You must type the url, right?

deathemperor 12-10-2005 01:10 AM

Quote:

Originally Posted by Boofo
So there is no link anywhere for this. You must type the url, right?

yeah, I think so, the link in the profile is for posting new usernote.


All times are GMT. The time now is 10:03 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.00986 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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