Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Location in viewtopic

Hello,

How add "Location" in viewtopic after register date.
How to change it on location.

CodeDownload  
echo "<span class='small'><strong>".$locale['504']."</strong> ".showdate("shortdate", $data['user_joined'])."</span><br />\n";

Try,
CodeDownload  
echo "<span class='small'><strong>".$locale['504']."</strong> ".$data['user_location']."</span><br />\n";

Hi

I add this code

CodeDownload  
echo "<span class='small'><strong>".$locale['uf_location']."</strong> ".$data['user_location']."</span><br />\n";



Nothing is displayed.
There have been some busy months lot´s of topics slip.

The .$data['user_location'] need 3 things to work,
1 That the user field exists
2 That user field is also populated with data, under Edit Profile
3 That the $result for $data include user_location in the query.

I am guessing you lack that line on 3.
Open forum/viewthread.php
Find
CodeDownload  
u.user_id, u.user_name, u.user_status, u.user_avatar, u.user_level, u.user_posts, u.user_groups, u.user_joined,


Change to
CodeDownload  
u.user_id, u.user_name, u.user_status, u.user_avatar, u.user_level, u.user_posts, u.user_groups, u.user_joined, u.user_location,

Thanks.

Happy New Year.
Thread Information
Author
Replies
6 posts
Views
1,802 times
Last Post
Last updated on 3 years ago
Related Threads
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Falk, razin