Adding More Profile Contact Field > Invisionize.eu - IP.Board (IPB) News
Kanał Rss Kanał Rss
Kanał Atom Kanał Atom

Adding More Profile Contact Field

wersja drukowalna wersja Microsoft Word wersja HTML

This tutorial will show you how to add extra contact fields to members profiles. This is an amalgamation of a few other tutorials I have seen that show how to add each one separately I just thought it would be easier to add them all at one time so wrote this tutorial with that in mind

ScreenShot:-

Posted Image



Compatability :-
These were all added during IPB 3.1.2 and still work perfectly in IPB 3.1.3

Uploads :-
First off lets upload all the icons we will need!

Posted Image Posted Image Posted Image Posted Image


Thats the easy bit done

-----------------------------------------------------------------------------------------------------------------------------------------------------

Adding The Custom Fields



Facebook :-


Twitter :-


MySpace

Steam
Now you have setup the profile Fields just the skin edits left to do.

------------------------------------------------------------------------------------------------------------

Skin Edits

login to your ACP and Navigate to the Look & Feel tab
Select the skin you want.
Under the Templates Tab select Profiles
Select "customFieldGroup_contact"
*IMPORTANT* Take a copy of the info in the template and save it on notepad in case of problems.

Find :-
								<else />
									{$f->parsed}
								</if>


Replace with :-
 								<else />
                	<if test="cf_twitter:|:$f->raw_data['pf_key'] == 'twitter'">
                	<a class='url' href='http://www.twitter.com/{$f->parsed}'>{$f->parsed}</a>
 								<else />
			<if test="cf_facebook:|:$f->raw_data['pf_key'] == 'facebook'">
			<a class='url uid' rel="me" href='http://www.facebook.com/{$f->parsed}'>{$f->parsed}</a>
 				<else />
			<if test="cf_myspace:|:$f->raw_data['pf_key'] == 'myspace'">
			<a class='url' href='http://www.myspace.com/{$f->parsed}'>{$f->parsed}</a>
      				<else />
			<if test="cf_steam:|:$f->raw_data['pf_key'] == 'steam'">
			<a class='url' href='steam://friends/add/{$f->parsed}'>{$f->parsed}</a>
   				<else />     							
                                	{$f->parsed}
 							</if>
   					</if>
 				</if>
   		</if>
 	</if>


And thats all the skin edits that are required. Remember to do this for each skin you use on your forum.

I hope this tutorial has been of help!

nie, 31 październik 2010

Komentarze:

Brak komentarzy

Imię/Nick:

Adres email:

Strona WWW:

Treść Komentarza: