dknelson
08-17-2016, 07:12 PM
I have a hack that automatically creates a welcome thread for new members. It works as it should. The following code will post something like:
Welcome newmember from Dallas, TX.
Of course "new members" is the actually new members username.
I would like the username to link to their profile though. I know it must be pretty easy for anybody who does coding but I haven't gotten it to work. Here is the code that results in the text above. Could somebody PLEASE re-write it so that the username is a link to their profile?
$title = "Welcome to the forum: " . $userinfo[username]. " from " . $userinfo[field2].", ". $userinfo[field19]; // The thread title
If it matters, I'm running 4.2.3 PL2
Welcome newmember from Dallas, TX.
Of course "new members" is the actually new members username.
I would like the username to link to their profile though. I know it must be pretty easy for anybody who does coding but I haven't gotten it to work. Here is the code that results in the text above. Could somebody PLEASE re-write it so that the username is a link to their profile?
$title = "Welcome to the forum: " . $userinfo[username]. " from " . $userinfo[field2].", ". $userinfo[field19]; // The thread title
If it matters, I'm running 4.2.3 PL2