Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 15 May 2010, 10:14
Wired1's Avatar
Wired1 Wired1 is offline
Join Date: Nov 2003
Building a ProfileBlock within a New Tab in Member Profile

Source Articles:
[HOW TO - vB4] Adding a New Tab in Member Profile
[HOW TO - vB4] Rendering templates and registering variables - a short guide
[How-to] Add more tabs to the vB 3.7 profile pages (I know, but some of it still applies when you look at the current 4.03 code)

Note: attached (as well as at the bottom of this post) is my current test project to get more acquainted with the new vB 4.0 code and template system. Yes, I'm fully aware of the junk code that's still in there. No worries, it's commented out!

As an exercise I'm trying to build a new member profile tab with a profile block inside of it. Using the articles above I've managed to create the tab and output basic variables and array data, however I can't output variables from within the ProfileBlock class. I've been looking over the code in class_profileblock.php and member.php for a clue, but I can't figure out what's calling the class itself, so there's a gap in the logic path I'm trying to follow to figure it out!

Any idea how to get the data from block_data['mymodification'] within the ProfileBlock out to the template? I've gotta be missing something basic Yes, there's a couple of lines of test code still in there that probably don't make sense anymore lol

Also as a side question: Do you need to pre-register templates for templates that are within a Product? (don't think so, but can't hurt to ask!)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Attached Files
File Type: xml backup - using default code2.xml (3.6 KB, 4 views)
Admin of the Corsair Memory Forum (AKA the House of Help from back in the day)
Admin of Petri's IT Forum / Moderator at
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 12:14.

Layout Options | Width: Wide Color: