PDA

View Full Version : Usernote: view self's note if no userid


deathemperor
12-08-2005, 10:00 PM
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

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

Boofo
12-10-2005, 01:17 AM
Ok, thanks for explaining that. Since I have a hard time even remembering my name every so often (let alone any URLs), I won't be able to use this, but I'm sure there are plenty others that will be able to find a use for this. Good work. ;)