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


Print Track
Hello,

How add "Location" in viewtopic after register date.

5 replies

How to change it on location.

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

I add this code

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
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
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.
author razin
forumSite & Forum Issues - 8
replies6 posts
viewed1685 times
activeLast updated on 3 years ago

Related

Show location on forum posts
Started by
0
0biwan - 3 posts
Problem with document.location.href=
Started by
S
Sieja1 - 3 posts
User Location User Field Update
Started by Ankur Ankur - 4 posts
User_fields Numb User Location?
Started by hervan hervan - 1 post
Modify Sites Search Location List
Started by
M
Mezzanotte13 - 1 post

Hot Questions

0
C
W3LSH
Error Messages
W3LSH - 13 posts
foc_in_gaura
Bug when attaching files
foc_in_gaura - 6 posts
M
User checking
Marius L T - 13 posts
smokeman
Votes gone away in Addon DB ?
smokeman - 21 posts
You can view all discussion threads in this forum.
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.
Users who participated in discussion: Falk, razin