PDA

View Full Version : default homepage link


Wordplay
11-13-2008, 09:12 AM
is there a way to have the homepage link be the link to the user's profile for new registers? instead of just being blank?

Lynne
11-13-2008, 02:49 PM
What home page link and what do you mean by being blank? A link to this page and a better explanation would help.

Wordplay
11-13-2008, 05:52 PM
sorry, i thought that was self explanatory.

i meant on the user profiles where it says under contact: Home Page! the link there is usually by default blank, i was wondering if it was possible to set that to their profile link, by default.

Lynne
11-13-2008, 07:59 PM
There isn't something to set in vb that would do that. You'd have to write some plugin that hooks into a location during the registration process. It would have to be one that occurs after a userid is assigned but before the end of the registration process. Then you'd have to insert the link there - member.php?u=$userid . And, you'd have to run a query to do this for all your current users also.

Where do you plan to have users 'see' this homepage link? You could just change it in the templates - <if homepage is blank> show member.php?u=$userid <else /> show what they input </if> Also, if I recall, if the field is blank, no one sees that link so it isn't even available to people to see/click on so why worry about it?

Wordplay
11-13-2008, 08:20 PM
actually i'm starting up a completely new community. just going through a couple of points in my head that i thought would make the forum a little sweeter.

the if else function sounds nice, i think i'll do it that way.

thanks for the help!