Jump to content


- - - - -

IP.Board 2.3: Separate custom profile fields in Topic View


8 replies to this topic

#1 Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts
  • Location:Columbus, OH
  • Real Name:Michael McCune
  • IPB Version:v3.1.x
Contributor

Posted 03 July 2008 - 05:51 PM

This is the support topic for the tutorial Separate custom profile fields in Topic View. Please post here if you have any questions or feedback.

#2 emoney

    I'll do graffiti if you sing to me in french

  • Modders
  • PipPipPipPipPipPipPipPip
  • 1,265 posts
  • Real Name:Eric
  • IPB Version:v3.1.x
Contributor

Posted 04 July 2008 - 12:52 AM

wow, I've always wanted a way to separate them, thanks for the awesome tut!

#3 Hello29

    Novice

  • Members
  • PipPip
  • 16 posts
  • IPB Version:v2.3.x

Posted 21 July 2008 - 01:59 AM

Is there a image to show what it looks like when done?

#4 Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts
  • Location:Columbus, OH
  • Real Name:Michael McCune
  • IPB Version:v3.1.x
Contributor

Posted 21 July 2008 - 11:15 AM

It's going to vary depending on what custom profile fields you have.
Michael McCune - IPS Marketplace Moderator

My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter

#5 Adriano Faria

    ...a curious guy...

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,262 posts
  • Location:Brazil
  • Real Name:Adriano
  • IPB Version:v3.1.x
Contributor

Posted 21 July 2008 - 11:36 AM

View PostHello29, on Jul 20 2008, 10:59 PM, said:

Is there a image to show what it looks like when done?
Supposing you have STATE and CITY as Custom Profile Fields, you can print only CITY.

IP.Board would print all of them.

#6 Th3N@tive

    Novice

  • Members
  • PipPip
  • 18 posts
  • IPB Version:v2.3.x
Contributor

Posted 31 July 2008 - 08:15 PM

Hmm I followed the tut just as posted but it isn't working for me. Can anyone lend a hand?


.:UPDATE:.

Well after toying around with it i figured it out. First off you cannot place the new variabel where the original custom fields was as it wont show well atleast for me it didn't. I also noticed that its better to use

{$author['custom_fields2']}


instead of

$author['custom_fields2']

;)

Edited by Th3N@tive, 31 July 2008 - 08:53 PM.


#7 DJFireCFR

    Member

  • Members
  • PipPipPip
  • 22 posts
  • Real Name:Fire
  • IPB Version:v2.3.x

Posted 27 February 2009 - 07:15 AM

I tried this out, and it works fine using {$author['custom_fields1']} {$author['custom_fields2']}.. up to 9 But after getting into double digits {$author['custom_fields10']} it doesnt show the info... anyone happen to know why ? =\

#8 Twallden

    Member

  • Members
  • PipPipPip
  • 45 posts
  • Location:Sweden
  • Real Name:Tony
  • IPB Version:v3.1.x

Posted 12 May 2010 - 04:18 PM

Will this work in profile view?

How do i set it up, this is how it looks now in "personal_portal_main" template:
			<!-- Custom Fields -->
			<if="is_array( $member['custom_fields'] ) AND count( $member['custom_fields'] )">
				<div class='pp-header'>{$this->ipsclass->lang['m_other_info']}</div>
				<foreach="$member['custom_fields'] as $data">
					<div class='row1' style='padding:6px; margin-bottom:1px; padding-left:10px'>{$data['name']}: {$data['data']}</div>
				</foreach>
			</if>
			<!-- / Custom Fields -->

And also, i would like to set it up for the old Profile View ("show_profile" template). I have seen it so i know it is doable.
This is my code in the old personal portal:
<td width="50%" valign="top" style="padding-right: 0;">
			<table cellspacing="1" width='100%' class="borderwrap">
				<tr>
					<td align="center" colspan="2" class="maintitle">{$this->ipsclass->lang['head_addit']}</td>
				</tr>
				<!--{CUSTOM.FIELDS}-->
			</table>
		</td>


#9 Twallden

    Member

  • Members
  • PipPipPip
  • 45 posts
  • Location:Sweden
  • Real Name:Tony
  • IPB Version:v3.1.x

Posted 30 May 2010 - 02:13 AM

Nevermind my post above, going over to IPB 3.1 now.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users