PDA

View Full Version : Personal Home Page details


shawno
07-11-2004, 07:39 AM
Hello,

I was told I should try posting this question here so here goes.

Under a users personal profile is a section which displays the users 'personal home page' address (which I think has the phrase name personal_home_page ). Currently this field is completed by a user when they update their profile information. As we are in the process of integrating our existing site (and the vB board) we would like for the home page details recorded in the existing SQL database to be transfered into the users profile in the vB boards automatically.

Is there an easy way for me to alter the script so this information is linked to this field from the existing database? In all cases the users home page details should be transferred from the existing database (that is - I do not want users to be able to change this themselves - whatever is recorded in the existing database will be what goes into this section everytime).

Hope I have explained that well enough - if not please let me know.

Thanks,

Shawno

shawno
07-17-2004, 11:25 AM
Okay,

I have been some doing more research and have found the code that I need to modify (in the modifyprofile template). I know I was pretty vague in my former post but any help would be muchly appreciated.

<fieldset class="fieldset">
<legend><label for="tb_homepage">$vbphrase[home_page_url]</label></legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
<tr>
<td>$vbphrase[let_other_visitors_know_url]</td>
</tr>
<tr>
<td>$vbphrase[home_page_url]:<br /><input type="text" class="bginput" name="homepage" id="tb_homepage" value="$bbuserinfo[homepage]" size="50" maxlength="200" /> </td>
</tr>
</table>
</fieldset>

I have modified this to be:
<td>$vbphrase[home_page_url]:<br /><input type="text" class="bginput" name="homepage" id="tb_homepage" value="http://www.abc.com/$bbuserinfo[username]" size="50" maxlength="200" /></td>
</td>

That works fine and will display "www.abc.com/username" is 'edit profile" in the Users CP section. However if I select 'member list' and try to click on any of the home pages it comes up only with "www."

Any ideas?

I feel so close, but yet so far!

I also wonder is I am modifying the right template as I don't even want users to be able to edit this field - I just to have the user home page by default to be "www.abc.com/username". This will never be modifable by the user.

Thanks

Shawno