Welcome, Guest
Username: Password: Remember me

TOPIC: Changing all ads by this user heading

Changing all ads by this user heading 2 years 7 months ago #2400

When clicking on the view all ads by this user link on an advert you are directed to another page with a heading of Ads by username - on our site the username is a supplier code, where (What file) would I change to change the value of username
The administrator has disabled public write access.

Changing all ads by this user heading 2 years 7 months ago #2401

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2763
  • Thank you received: 292
  • Karma: 40
Hi,

Open the view.html.php file from the below path,
Root-->components-->com_jomclassifieds-->views-->userads

In this file, search the following code,
$title = JText::_('ADS_BY').' '.$user->username;

and change it as below,
$title = JText::_('ADS_BY').'  francois';

Hope this help you.

Thanks.
The administrator has disabled public write access.
The following user(s) said Thank You: Francois Watson

Changing all ads by this user heading 2 years 7 months ago #2402

Awesome thanks for the help,

If I wanted to pull the name from a different table where would I find the .php file with the query to adjust? Would this adjustment affect anything else?
The administrator has disabled public write access.

Changing all ads by this user heading 2 years 7 months ago #2403

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2763
  • Thank you received: 292
  • Karma: 40
You can write a query in the same file and get the name from any table in the same file view.html.php

Thanks.
The administrator has disabled public write access.
Time to create page: 0.192 seconds