-
AuthorPosts
-
luke riverstone Friend
luke riverstone
- Join date:
- May 2011
- Posts:
- 9
- Downloads:
- 0
- Uploads:
- 1
- Thanked:
- 1 times in 1 posts
May 4, 2011 at 5:05 am #163558We have Joomla and Ja Jobs installed. Because of some integration we have made joomla use the email address as the Username. (Members are synced between Joomla and JA Jobs)
When a user clicks on the profile link for the JA Jobs the Username (which is email) shows up in the URL.
I would like to know what file I can edit to make the url use their companyname or Employer ID in the URL
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
May 4, 2011 at 8:38 am #389757Could you give me a link to your page has profile link?
luke riverstone Friendluke riverstone
- Join date:
- May 2011
- Posts:
- 9
- Downloads:
- 0
- Uploads:
- 1
- Thanked:
- 1 times in 1 posts
August 16, 2011 at 8:09 pm #406589<em>@luke riverstone 238491 wrote:</em><blockquote>Thank you for your prompt reply,
One of our developers figured it out.</blockquote>
Hi! Could you help us how to do this? We would like to change the url from the username to company name.
Thanks in advance for the reply.
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
August 17, 2011 at 7:46 pm #406776Could you give me a snapshot with your annotation?
luke riverstone Friendluke riverstone
- Join date:
- May 2011
- Posts:
- 9
- Downloads:
- 0
- Uploads:
- 1
- Thanked:
- 1 times in 1 posts
November 29, 2011 at 2:00 am #427030<em>@luke riverstone 238491 wrote:</em><blockquote>Thank you for your prompt reply,
One of our developers figured it out.</blockquote>
I was comparing the code in the some of the templates and I think I have found what they did. I AM NOT A DEVELOPER SO MAKE A BACKUP OF ANY FILES THAT YOU MODIFY.
Problem:
We integrated Joomla users with the jobboard and made the username = email address. When you click on a company profile link the username was showing up in the url. As a result the email address was part fo the url.
Solution: (using JA 1.4.7)
from the root directory find componentscom_jajoboardviewsjajobstmplthemesinlinejalist-item.php (change the theme to whatever theme you are using)
find the following code:
<a href="<?php echo JRoute::_( 'index.php?option='. JBCOMNAME .'&view=japrofiles&layout=jaview&cid[]='.$temp_user->username."&profile_id=".$temp_user->username); ?>" class="<?php echo $class;?>">
and replace with:
<a href="<?php echo JRoute::_( 'index.php?option='. JBCOMNAME .'&view=japrofiles&layout=jaview&employerid='.$temp_user->id.'&Itemid='.'98'); ?>" class="<?php echo $class;?>">
It was around line 223 and 227 for me. You are basically changing $temp_user->username to $temp_user->id
It would be great if one of the mods could confirm that what I have said is correct.
Hope this helps.
-
AuthorPosts
This topic contains 6 replies, has 3 voices, and was last updated by luke riverstone 12 years, 12 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum