OS Property support center

SOLVED!!! -- alias error

  • Herb Trevathan
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 5 months ago - 10 years 5 months ago #59737 by Herb Trevathan
SOLVED!!! -- alias error was created by Herb Trevathan
when users reguster on the front end, the alias created is

--

two dashes...this does not resolve. If I go under manage agents, I can easily see who has alias (--) and then simply delete the alias field, save the profile and it will generate a correct alias of [firstname]-[lastname]

how can I fix the issue of the alias of -- being created, or where is the alias built in the code?
Last edit: 10 years 5 months ago by Dang Thuc Dam.

Please Log in or Create an account to join the conversation.

  • Dang Thuc Dam
  • Online
  • Administrator
  • Administrator
More
10 years 5 months ago #59760 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic -- alias error
Hi Herb,
To solve the problem, please follow these steps
1. Open file: components > com_osproperty > classes > agent.php
2. find
$agent->name = $user->name;
and add this line bellow
$agent->alias = strtolower(str_replace(" ","",$agent->name));
The issue will be solved
Thanks
Dam
The following user(s) said Thank You: Herb Trevathan

Please Log in or Create an account to join the conversation.

  • Herb Trevathan
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 5 months ago #59771 by Herb Trevathan
Replied by Herb Trevathan on topic -- alias error
Dam,

This is awesome!!

Much Appreciation for this fix : )

-Herb

Please Log in or Create an account to join the conversation.

Moderators: Dang Thuc DamNguyen Phu Quan