vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do I display a userid in a post (https://vborg.vbsupport.ru/showthread.php?t=147452)

sys4096 05-17-2007 11:35 AM

How do I display a userid in a post
 
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/showthrea...hlight=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.


All times are GMT. The time now is 01:01 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.01074 seconds
  • Memory Usage 1,719KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete