Author |
Message |
gom
Regular
![Regular Regular](modules/Forums/images/ranks/2stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Apr 26, 2007
Posts: 89
|
Posted:
Tue May 12, 2009 11:40 am |
|
Hello all,
I have made a new Custom Field in the ACP/Edit User/Custom Fields
ID=2, Field Name*=Xfire, Default value**=left blank, Size=25, Status=Active, Order=1, Public=Public[/b]
I see this field in my RNYACP and can add data to it, very nice it is. When I go to Viewing profile :: XXX I do not see my Xfire information. Do I need to edit [usercp_viewprofile.php] to get this new field to show up for members and or visitors to see ?
If not what must be done to get this to show under the Viewing profile :: XXX ie. [name=Forums&file=profile&mode=viewprofile&u=3]
Thank you for any help that can be offered...
PS.
Or does this have to do with integration between the RNYA profile and the forums profile ? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
horrorcode
Involved
![Involved Involved](modules/Forums/images/ranks/4stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Jan 17, 2009
Posts: 272
Location: Missouri
|
Posted:
Tue May 12, 2009 3:39 pm |
|
The forums profile is seperate from rnya. The field you created is only going to show in the RNYA profile.
From whats been said I think the forums profiles are to remain seperate, maybe an htaccess rewrite rule would work to redirect from the forums profile to the rnya profile? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
Site Admin
![](modules/Forums/images/avatars/Dilbert/Dilbert_-_Dogbert_King.gif)
Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania
|
Posted:
Tue May 12, 2009 4:17 pm |
|
horrorcode, is correct.
If you want to show it in the forum profile you will need to edit usercp_viewprofile.php to query the new field. Then you will have to also pas it to the template.
You then need to edit the template for the profile page, can't remember what it is called, to display it.
If you need more help that let me know I will try to look into it more, but I'm not sure when I will get to it. |
_________________ "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
gom
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue May 12, 2009 5:40 pm |
|
Palbin wrote: | horrorcode, is correct.
If you want to show it in the forum profile you will need to edit usercp_viewprofile.php to query the new field. Then you will have to also pas it to the template.
You then need to edit the template for the profile page, can't remember what it is called, to display it.
If you need more help that let me know I will try to look into it more, but I'm not sure when I will get to it. |
Yes, I do think I will need a little more help on this as I am not a guru by any means with php. I will however take a look at the code and see if I can work it out, and let you all see if I am headed in the right direction.
On another thought, if the custom field is only visible to the registered user and admin, whats the main reason for this option? I know I am slow... but rely when it was thought of to add this option, what was the reason behind it? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
gom
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue May 12, 2009 7:28 pm |
|
Palbin I think it would be this file I need to edit [profile_view_body.tpl] ?
I took a look at this and saw at line 84 Code: <tr>
<td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_MESSENGER}:</span></td>
<td class="row1" valign="middle"><span class="gen">{MSN}</span></td>
</tr>
|
So I did the same above it with this
Code: <tr>
<td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_XFIRE}:</span></td>
<td class="row1" valign="middle"><span class="gen">{XFIRE}</span></td>
</tr>
|
Is this all that needs to be done with the [profile_view_body.tpl], or is this not the right file ?
I also see in [profile_add_body.tpl] line 77
Code: <tr>
<td class="row1"><span class="gen">{L_ICQ_NUMBER}:</span></td>
<td class="row2">
<input type="text" name="icq" class="post" style="width: 100px" size="10" maxlength="15" value="{ICQ}" />
</td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_AIM}:</span></td>
<td class="row2">
<input type="text" class="post" style="width: 150px" name="aim" size="20" maxlength="255" value="{AIM}" />
</td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_MESSENGER}:</span></td>
<td class="row2">
<input type="text" class="post" style="width: 150px" name="msn" size="20" maxlength="255" value="{MSN}" />
</td>
</tr>
|
I would also guess that I need to add my XFIRE like this as well ?
Code: <tr>
<td class="row1"><span class="gen">{L_XFIRE}:</span></td>
<td class="row2">
<input type="text" class="post" style="width: 150px" name="xfire" size="20" maxlength="30" value="{XFIRE}" />
</td>
</tr>
|
Sorry for the noob questions, and I hope that I am headed in the right direction. Now on the the [usercp_viewprofile.php] |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|