Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
gom
Regular
Regular


Joined: Apr 26, 2007
Posts: 89

PostPosted: Tue May 12, 2009 11:40 am Reply with quote

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 ?
 
View user's profile Send private message
horrorcode
Involved
Involved


Joined: Jan 17, 2009
Posts: 272
Location: Missouri

PostPosted: Tue May 12, 2009 3:39 pm Reply with quote

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?
 
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Tue May 12, 2009 4:17 pm Reply with quote

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. 
View user's profile Send private message
gom
PostPosted: Tue May 12, 2009 5:40 pm Reply with quote

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... Shocked but rely when it was thought of to add this option, what was the reason behind it?
 
gom
PostPosted: Tue May 12, 2009 7:28 pm Reply with quote

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]
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©