Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
Faytal
Newbie
Newbie



Joined: Feb 21, 2012
Posts: 60

PostPosted: Sat May 04, 2013 11:40 pm Reply with quote

Is there a "username" variable for Nuke that I can use in .tpl files?
Since I'm trying to edit all of the bbtonuke profile page links, and edit them to /{username}, I require a variable for the current logged in username.

If there isn't one, how would I make one? Using functions.php?
 
View user's profile Send private message
nuken
Newbie
Newbie



Joined: Mar 12, 2007
Posts: 24

PostPosted: Sun May 05, 2013 6:37 pm Reply with quote

You would have to look in the php file that the tpl file references. The username should already have a variable assigned for it. Just search for username in the php file. It could be as simple as using {USERNAME} in the .tpl file.

_________________
Tricked Out News 
View user's profile Send private message
Faytal
Newbie
Newbie



Joined: Feb 21, 2012
Posts: 60

PostPosted: Sun May 05, 2013 8:16 pm Reply with quote

nuken wrote:
You would have to look in the php file that the tpl file references. The username should already have a variable assigned for it. Just search for username in the php file. It could be as simple as using {USERNAME} in the .tpl file.

Since a user's Your_Account profile is /{their_username}, would it be safe for me to change all of the links to the forum profiles like this:

<a href="/{USERNAME-VARIABLE}"</a>

Or is there a more secure way of linking to my ShortLink'd Your_Account viewprofile?
 
View user's profile Send private message
nuken
Newbie
Newbie



Joined: Mar 12, 2007
Posts: 24

PostPosted: Sun May 05, 2013 8:42 pm Reply with quote

I have no idea. I have never been concerned enough with the url formating to even consider all the things that would need to be modified to change them.

_________________
Tricked Out News 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©