The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to link Username to Profile in Welcome Thread
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? PHP Code:
|
#2
|
||||
|
||||
You can't use a link in a thread title. You could use it in the post body though.
You would need to change: Code:
" . $userinfo[username]. " Code:
<a href='./member.php?" . $userinfo[userid]. "-" . $userinfo[username]. "'>" . $userinfo[username]. "</a> |
#3
|
|||
|
|||
Thanks. I'll give it a try. Much appreciated.
--------------- Added [DATE]1471553857[/DATE] at [TIME]1471553857[/TIME] --------------- OK...thank you so much. Here's the thing though, you are correct that it works in the body of the welcome thread but it also works in the title of the thread. That is fine but just though I would let you know. |
#4
|
|||
|
|||
Well, I have to recant. You seem to be correct about the link in the title. After I did that, it seemed to affect the sending of the confirmation emails. Sometimes they were delivered and sometimes not. It is the only thing I had changed so I assume that is what was causing it. Is it possible that some email provides block emails with links in the title and some don't? Like I said, it seemed to work about 60% of the time. I've changed it back now so will see if that was the problem but I suspect it was. I'm not sure why that welcome script would affect the confirmation email though.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|