Additional Settings For Custom Profile Fields [1.2]
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #35
RE: Additional Settings For Custom Profile Fields
(05-07-2012 07:18 AM)brad-t Wrote:  
(05-03-2012 05:09 AM)RateU Wrote:  You need to "load" the non custom profile fields manually. Just add the code in the plugin attached to this post.

Can you clarify what you mean here? Sorry!
I mean you need to add your own code into the plugin file for displaying and processing the non custom profile fields input (Date of Birth, Website, Notification and etc - depends on whatever input fields you want to be displayed there).

(05-07-2012 07:18 AM)brad-t Wrote:  Maybe you could share the template for the profile you created there? I could learn from that.
Do you mean the usercp template? It is a standard usercp template. I just add some variable for displaying the custom profile fields there:

HTML Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<html>
<head>
<title>{$lang->user_cp}</title>
{$headerinclude}
<script src="{$mybb->settings['bburl']}/jscripts/sbbeditor.js" type="text/javascript"></script>
</head>
<body>
{$header}
<table width="100%" border="0" align="center">
<tr>
{$usercpnav}
<td valign="top">
<form action="usercp.php" method="post" name="input">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
{$errors}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="3"><strong>{$lang->account_summary}</strong></td>
</tr>
<tr>
<td class="tcat smalltext" style="text-align:center"><strong>Avatar</strong></td>
<td class="tcat smalltext" style="text-align:center"><strong>Account Info</strong></td>
<td class="tcat smalltext" style="text-align:center"><strong>Additional Info</strong></td>
</tr>
<tr>
<td class="trow2" style="width:1px">{$avatar}</td>
<td class="trow2">
<span class="largetext">{$username}</span><br />
<strong>{$lang->postnum}</strong> <a href="search.php?action=finduser&amp;uid={$mybb->user['uid']}">{$mybb->user['posts']}</a> {$lang->posts_day}<br />
{$reputation}
<strong>{$lang->email}</strong> {$mybb->user['email']}<br />
<strong>{$lang->registration_date}</strong> {$regdate}<br />
<strong>{$lang->primary_usergroup}</strong> {$usergroup}<br />
{$referral_info}
{$xtpf_minp['fid1']}
</td>
<td class="trow2">
	<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" style="width:100%">
		{$xtpf_minp['fid3']}
		{$xtpf_minp['fid5']}
		{$xtpf_minp['fid6']}
		{$xtpf_minp['fid7']}
	</table>
</td>
</tr>
<tr>
	<td class="tcat smalltext" colspan="3"><strong>Options</strong></td>
</tr>
<tr>
	<td class="trow1" colspan="3" style="text-align:center">
		<strong>Threads Per Page: </strong>{$threadperpage} &nbsp;
		<strong>Posts Per Page: </strong>{$postperpage}
	</td>
</tr>
</table>
<br />
{$xtpf_minp['fid2']}{$xtpf_minp['fid9']}{$xtpf_minp['fid10']}{$xtpf_minp['fid4']}
<br />
<div style="text-align:center">
	<input type="hidden" name="action" value="do_update_xt_proffields" />
	<input type="submit" class="button" value="Update Profile" />
</div>
</form>
{$latest_subscribedx}
{$latest_threadsx}
{$latest_warningsx}
{$user_notepadx}
</td>
</tr>
</table>
{$footer}
</body>
</html>


@Lee: Thanks for the links, Lee Smile

@Sama34: At least we can add our own MyCode buttons there Biggrin


05-08-2012 06:57 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Additional Settings For Custom Profile Fields - RateU - 05-08-2012 06:57 AM

 Standard Tools
Forum Jump: