Get started with PHP-Fusion

Start a New Thread

Users Participated

  • Falk
    Post made: 2
  • razin
    Post made: 4

  1. PHP-Fusion Support Forums
  2. PHP-Fusion 7 Support
  3. Site & Forum Issues

Location in viewtopic

General issues related to site and forum management

5 Replies 576 Views Last Updated on 5 months ago

razin


Junior Member

#1

Posted 6 months ago

Hello,

How add "Location" in viewtopic after register date.

Posts: 36

Joined: 20/08/2010

razin


Junior Member

#2

Posted 6 months ago

How to change it on location.

Code Gist: Download source  

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

Posts: 36

Joined: 20/08/2010

Falk


Super Admin

#3

Posted 6 months ago

Try,
Code Gist: Download source  

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

Posts: 3741

Joined: 27/09/2005

razin


Junior Member

#4

Posted 6 months ago

Hi

I add this code

Code Gist: Download source  

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


Nothing is displayed.

Posts: 36

Joined: 20/08/2010

Falk


Super Admin

#5

Posted 5 months ago

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
Code Gist: Download source  

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
Code Gist: Download source  

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,

Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Please read and comply with the Code of Conduct

(¯`·._.·(¯`°·._.·°º*[ Project Manager ]*º°·._.·°´¯)·._.·´¯)

Posts: 3741

Joined: 27/09/2005

razin


Junior Member

#6

Posted 5 months ago

Thanks.

Happy New Year.

Posts: 36

Joined: 20/08/2010

Jump to Forum:
10 users are online
0 member and 10 guests