vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Display Member Number In Postbit (https://vborg.vbsupport.ru/showthread.php?t=260425)

dieselpowered 03-15-2011 02:56 PM

Display Member Number In Postbit
 
I would like to display the member number of a member in the postbit, I have it displaying, however, I do not want it to show my member number I want it to show theirs.

Any idea how I can do that?

Thanks in advance!

kh99 03-15-2011 03:03 PM

I think you'd want to use $post[userid].

dieselpowered 03-15-2011 03:21 PM

Thanks I will give it a try!

--------------- Added [DATE]1300209436[/DATE] at [TIME]1300209436[/TIME] ---------------

Thanks a lot that worked...

Maybe you can answer this. Instead of editing the template, I was going to just do it by creating a plugin.

I see this hook listed in the template, however, do not see it as an hook location when creating a plugin?

Code:

{vb:raw template_hook.postbit_userinfo_right_after_posts}
Am I missing something?

Thanks in advance!

BirdOPrey5 03-15-2011 05:36 PM

There are template hooks and there are php hooks. In your plugin manager you can attach php code to php hooks.

Template hooks work different, you have to use php code in a plugin to add HTML code to the template hook.

However this is different between VB3 and VB4, and you're code you posted is from VB4 and this is the VB3 section. If you want more info best to search or post in the VB4 section. There's also an article in the VB4 articles section dealing with templates and registering variables that should be of help.

But in the end the best way to do this is by a template edit.

Also $post[userid] won't work in VB4, I believe in a VB4 template it would be {vb raw post.userid}.


All times are GMT. The time now is 06:56 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.01043 seconds
  • Memory Usage 1,711KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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