Variable

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Locked
William959
Registered User
Posts: 15
Joined: Wed Jun 28, 2017 1:03 pm

Variable

Post by William959 » Thu May 16, 2019 5:20 pm

Hello everyone!

I have a foot behind the ear, I have a doubt I believe it is easy to solve but I am not trying results in the solution, much less in the researches to solve my doubt.
I need a variable, I want this variable to enter the username of who is reading, if it is logged in, if it is not logged in, it appears as a visitor. I'll show you some practical examples and simple to understand, come on!
Examples:
Welcome William959
or
Welcome visitant


Yes, when the user is logged in I want the variable to take its name and display it along with the link to your profile.
I would like the variable to look like this: {USERNAME}
I currently use the phpBB version: 3.2.7


Thank you all from now on!

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3989
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: Variable

Post by HiFiKabin » Thu May 16, 2019 6:26 pm

This might be what you are looking for viewtopic.php?f=616&t=2488531

User avatar
eeji
Jr. Style Validator
Posts: 1074
Joined: Fri Dec 12, 2008 9:08 pm
Location: Manchester, UK
Contact:

Re: Variable

Post by eeji » Thu May 16, 2019 6:48 pm

Code: Select all

Welcome <!-- IF S_USER_LOGGED_IN --><a href="{U_USER_PROFILE}" title="{L_READ_PROFILE}">{S_USERNAME}</a><!-- ELSE -->{L_GUEST}<!-- ENDIF -->

William959
Registered User
Posts: 15
Joined: Wed Jun 28, 2017 1:03 pm

Re: Variable

Post by William959 » Thu May 16, 2019 6:55 pm

Thank you, but I do. I want to use a variable in topics, posts. I want to post for example, welcome to my topic {USERNAME}, I'm presenting you with a tutorial, etc., etc. How can I do this?

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 50510
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Variable

Post by stevemaury » Thu May 16, 2019 7:19 pm

This belongs either in Extension requests, or, if you want to pay someone to do this, the WANTED forum.

I will close this and you can report in either or both of those forums.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

Locked

Return to “[3.2.x] Support Forum”