vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=323281

How to link Username to Profile in Welcome Thread
by dknelson
17 Aug 2016 21:12

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?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

If it matters, I'm running 4.2.3 PL2

Dragonsys 18 Aug 2016 15:08

You can't use a link in a thread title. You could use it in the post body though.
You would need to change:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to something like this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


dknelson 18 Aug 2016 16:44

Thanks. I'll give it a try. Much appreciated.

--------------- Added 18 Aug 2016 at 20:57 ---------------

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.

dknelson 20 Aug 2016 10:44

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.


All times are GMT. The time now is 16:46.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.