Custom Profile Fields - Ordering and Display

Guides & Snippets for phpBB3. Try the Snippets here and share Your own Snippets
There is no support here! Only Read Access!
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Custom Profile Fields - Ordering and Display

Post by Stoker »

[center]Custom Profile Fields - Ordering and Display[/center]

Moved: viewtopic.php?f=45&t=1297
Board rules! No PM support
Caldazar
BBCoder I
BBCoder I
Posts: 2
Joined: 02 Apr 2010, 22:36

Re: Custom Profile Fields - Ordering and Display

Post by Caldazar »

Does not seem to work on the version im using.....

Nothing shows up, tho i do have different options to what you show in your screen shot with this, on phpbb 3.0.7 (+stargate 1.0.5)
User avatar
Fire-Fox
BBCoder IV
BBCoder IV
Posts: 275
Joined: 22 Mar 2010, 13:24
Location: Denmark

Re: Custom Profile Fields - Ordering and Display

Post by Fire-Fox »

working great on my phpBB 3.0.7-PL1

Post what you have done so fare :)
Last edited by Fire-Fox on 02 Apr 2010, 23:02, edited 1 time in total.
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Custom Profile Fields - Ordering and Display

Post by cisco007 »

Caldazar » 02 Apr 2010, 22:46 wrote:Does not seem to work on the version im using.....

Nothing shows up, tho i do have different options to what you show in your screen shot with this, on phpbb 3.0.7 (+stargate 1.0.5)
whichever CPF you are using you must do the edits exactly the same and make sure the name in the are the same otherwise they will not show up!
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Custom Profile Fields - Ordering and Display

Post by Stoker »

and also enable display of cpf in acp
Board rules! No PM support
Caldazar
BBCoder I
BBCoder I
Posts: 2
Joined: 02 Apr 2010, 22:36

Re: Custom Profile Fields - Ordering and Display

Post by Caldazar »

Yes, thank you, thats done the trick, seems i missed an option in another area, once i'd turned that on it all started to show up, thanks.
User avatar
Fire-Fox
BBCoder IV
BBCoder IV
Posts: 275
Joined: 22 Mar 2010, 13:24
Location: Denmark

Re: Custom Profile Fields - Ordering and Display

Post by Fire-Fox »

Nice going :)
User avatar
Oliver
BBCoder III
BBCoder III
Posts: 120
Joined: 07 Mar 2010, 11:55

Re: Custom Profile Fields - Ordering and Display

Post by Oliver »


YouTube Favourite
Lets add our YouTube Favourite, but only in profile.
First you need to create the custom profile field in ACP

Open styles/prosilver/template/memberlist_view.html
Find:

Code: Select all

<!-- IF SIGNATURE -->
Before add:

Code: Select all

<!-- BEGIN custom_fields -->
<!-- IF custom_fields.PROFILE_FIELD_NAME eq "YouTube Favourite" -->
<div class="panel bg1">
	<div class="inner"><span class="corners-top"><span></span></span>

		<h3>{custom_fields.PROFILE_FIELD_NAME}</h3>

		<div style="text-align:center;"><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/{custom_fields.PROFILE_FIELD_VALUE}"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/{custom_fields.PROFILE_FIELD_VALUE}" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></div>

	<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->
<!-- END custom_fields -->
Here you go, your favourite youtube video in your profile:
youtube.png

What i write to the box? Youtube bbcode?
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Custom Profile Fields - Ordering and Display

Post by cisco007 »

you would write the video id found on the youtube video url!
apnaitaly
BBCoder II
BBCoder II
Posts: 28
Joined: 05 Mar 2010, 23:09
Contact:

Re: Custom Profile Fields - Ordering and Display

Post by apnaitaly »

how i can enable Youtube AutoPlay in favourite youtube custom Profile Field..

i mean when any one view my profile autometicllly youtube video which i have addes play with out Click on Play button ,


Thanks
Locked