Log in

View Full Version : How do I display a userid in a post


sys4096
05-17-2007, 11:35 AM
Hi There,

I would like to display the user's ID in a post, something like :

Hello there, you are user number : $userid -

e.g it would display for whichever user is reading the post in question.

I'm told there's a mod that enables me to do this but I just can't find it despite searching quite a bit here

Can anyone please help?

Cheers,
Paul.

as7aab
05-17-2007, 11:50 AM
I think you will have to do the whole mod yourself, because I haven't seen one but i know that its possible to make one.

sys4096
05-17-2007, 01:49 PM
From a response I had on the vbulletin.com forum there is a mod out there, I've also seen it working on a site. Digging some more into my other responses I think this is the mod being used:

https://vborg.vbsupport.ru/showthread.php?t=97073

Now i'm just trying to figure out how I can change the hook location or details to get it working. No joy so far, but i have a dynamic announcement under the navbar working, just not in a post.

In the response to my thread on vbulletin.com, someone has posted an example of their site doing it :

http://www.vbulletin.com/forum/showthread.php?t=229461

Dismounted
05-18-2007, 11:39 AM
Put $bbuserinfo[userid] where you want the id to display.

sys4096
05-22-2007, 08:32 AM
Hi,

This just gets echoed back in the body of the post as $bbuserinfo[userid] and not replaced with the userid unfortunately, must be something I am not doing or an option I have not enabled but for the life of me I can't find it.

Cheers,
Paul.

Dismounted
05-22-2007, 09:17 AM
Can you post up your template?

sys4096
05-22-2007, 11:25 AM
Apologies, I display my ignorance here. I installed the Dynamic annoucnement mod which I believe gave me this functionality.
( https://vborg.vbsupport.ru/showthread.php?t=97073&highlight=dynamic )

I then tried to point the hook location to vbulletin:show post : show_post so it would display the variables. I haven't actually modified any templates.

Cheers,
Paul.