Quote:
Originally Posted by Tralala
That works a treat, great, thanks.
The new user registration now prompts our "WelcomeBot" account to make a post in our WelcomeThread.
However... $username doesn't work in the post body (or I can't seem to get it to work.)
The actual post reads "This is an automated message announcing the arrival of $username to our forums. Say hi!"
Anyway to get that $username variable to actually work, and insert the name of the new registrant?
I'm so close, I can taste it! :nervous:
|
I'm using flypaper's edit to have a "WelcomeBot" user create a post inside a pre-established Welcoming thread. Alas, I still can't get the final piece of the puzzle in place: to insert the name of the new member in the post's text.
Code:
$postpagetext = 'This is an automated message announcing the arrival of $username!';
Obviously, it leaves $username as $username. I know I am missing something basic. Any assistance on how to edit the text properly would be appreciated.
And if all of these edits have morphed this hack into a totally seperate and annoying concoction, that's cool. Just let me know and I'll scurry along. :nervous: