vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Memberinfo Php script (https://vborg.vbsupport.ru/showthread.php?t=197347)

darkblade25 11-27-2008 02:02 AM

Memberinfo Php script
 
I have a php script that I store the output to a variable. I want to display that variable in the memberinfo template. Is there a way to call the script so that I can use the variable in Memberinfo template?

*edit: I a figured to use a plugin, but what is the best hook location to run the script?

Dismounted 11-27-2008 03:33 AM

Most likely, member_complete, would be the best option.

Bilderback 11-27-2008 03:36 AM

It depends on where you want to hook the memberinfo for your variable to display.
...as a block?
within a tab?

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

darkblade25 11-27-2008 03:43 AM

Thank you, I set it to member_complete, but now I have another problem, how can I get the userid of the member page, not your userid. I cant get userid from the url because I am using a url rewrite.

Bilderback 11-27-2008 03:46 AM

$this->profile->userinfo[$userid];
possibly
edit- that may only be for blocks

$vbulletin->userinfo['userid'] doesnt work?

darkblade25 11-27-2008 04:00 AM

I got to work with $vbulletin->GPC['userid']. Thanks for everything.


All times are GMT. The time now is 08:54 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.01090 seconds
  • Memory Usage 1,714KB
  • 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
  • (6)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