vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   [How-to] Add more tabs to the vB 3.7 profile pages (https://vborg.vbsupport.ru/showthread.php?t=165554)

Code Monkey 05-28-2008 04:54 PM

Quote:

Originally Posted by XTF (Post 1533959)
I've simplified the following code fragment a bit.
Code:

$blocklist['mymodification'] = array
(
        'class' => 'MyModification',
        'title' => 'My Modification',
        'hook_location' => 'profile_left_last'
);

How do I access for example $userinfo inside prepare_output()? I've used global $userinfo, but that doesn't seem to do the trick.

Presuming you are referring to the user info of the profile and not the viewer.
Code:

$this->profile->userinfo

XTF 05-31-2008 12:10 PM

Thanks. Do I have to use $block_data to pass variables to the template or can I use arbitrary variable names?
This code seems to be more complex than needed.

Code Monkey 06-02-2008 05:43 AM

Quote:

Originally Posted by XTF (Post 1536996)
Thanks. Do I have to use $block_data to pass variables to the template or can I use arbitrary variable names?
This code seems to be more complex than needed.

I'm still working all that out. It appears that you can use variables when you eval your own templates but you need to use the $this->block_data array for passing things to the main template.

Wired1 06-09-2008 05:37 AM

Has anyone using a custom tab stumbled upon the bit of code that allows you to link directly to a tab, like so:

http://www.domain.com/member.php?u=1&tab=contactinfo

I'm thinking there's some java code somewhere doing it (I believe the tabs are AJAX), but haven't found the right bit just yet.

intrigue 06-09-2008 09:04 AM

Quote:

Originally Posted by Wired1 (Post 1544733)
Has anyone using a custom tab stumbled upon the bit of code that allows you to link directly to a tab, like so:

http://www.domain.com/member.php?u=1&tab=contactinfo

I'm thinking there's some java code somewhere doing it (I believe the tabs are AJAX), but haven't found the right bit just yet.

funnily enough i need to do the same thing.

Matt

ruhrpottforum 07-10-2008 06:00 PM

For some hours I try to get photopost pro latest addition to members gallery into a new tab but for some reason (a hook?) it didn't work - it will only work if I place the code in that MEMBERINFO template ...

MissKalunji 08-06-2008 10:20 AM

how would that work if i want to add a varibable like for ishop?

$ishop example? that's the code below

Quote:

<!-- show inventory -->
<fieldset><legend><a href="ishop.php?do=ViewMember&id=$userinfo[userid]" title="$userinfo[username]'s Inventory">$userinfo[username]'s Inventory</a></legend>
<div>
$userinfo[invrow]
<br>
</div>
</fieldset>
<!-- /show inventory -->

yingzhou 08-06-2008 11:04 AM

Quote:

Originally Posted by MissKalunji (Post 1592511)
how would that work if i want to add a varibable like for ishop?

$ishop example? that's the code below

can't do this! :mad:

MissKalunji 08-06-2008 09:12 PM

i can't?

MissKalunji 08-10-2008 04:15 PM

Got it working! thanks


All times are GMT. The time now is 10:31 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.03287 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete