CuteNews

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Is there any way to make {username} for template?
jspark295
post Jul 30 2012, 01:40 AM
Post #1


Newbie
*

Group: Members
Posts: 2
Joined: 30-July 12
Member No.: 78,451



Is there any way to modify show.inc.php to make {username}? I need it to make member pages for my website and it seems like CuteNews doesn't have that tag yet. They only have {author} or {author-name}, when I need the username, not the full name of the author. Does anyone know how to do this? Thanks a lot in advance.
Go to the top of the page
 
+Quote Post
Support_Team
post Jul 30 2012, 07:11 AM
Post #2


Advanced Member
***

Group: Admin
Posts: 268
Joined: 17-January 12
Member No.: 74,486



This problem can be solved by adding after the line (it's in two places at show.inc.php)
CODE
$output = str_replace("{author}", $my_author, $output);

this one:
CODE
$output = str_replace("{username}", $news_arr[1], $output);


--------------------
Best regards,

Support_Team
Go to the top of the page
 
+Quote Post
jspark295
post Jul 30 2012, 08:09 AM
Post #3


Newbie
*

Group: Members
Posts: 2
Joined: 30-July 12
Member No.: 78,451



QUOTE (Support_Team @ Jul 30 2012, 07:11 AM) *
This problem can be solved by adding after the line (it's in two places at show.inc.php)
CODE
$output = str_replace("{author}", $my_author, $output);

this one:
CODE
$output = str_replace("{username}", $news_arr[1], $output);


Thank you!
Go to the top of the page
 
+Quote Post

Fast ReplyReply to this topicStart new topic

 



RSS Lo-Fi Version Time is now: 25th May 2013 - 06:32 AM