-
AuthorPosts
-
phong nam Friend
phong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
Ing. Ervin Zatko EASY FriendIng. Ervin Zatko EASY
- Join date:
- September 2014
- Posts:
- 127
- Downloads:
- 406
- Uploads:
- 16
- Thanks:
- 19
- Thanked:
- 6 times in 1 posts
January 16, 2014 at 12:00 pm #518708Thank you in advance for your help
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
January 17, 2014 at 7:57 am #518818@easypc: Our development team shared the tip that they override the artist article layout with author group in templatesja_muzichtmlcom_contentarticle path:
– default.php at 78-114th lines:
//override author by ja templates
$author = $this->item->author;
$authorid = $this->item->created_by;
$authoruser = JFactory::getUser($authorid);if(in_array($artists_usergroup,$authoruser->groups)){
$db = JFactory::getDBO();
$query = 'SELECT ' .$db->quoteName('id'). ', ' .$db->quoteName('alias'). '
FROM #__contentWHERE created_by ='.(int) $authorid.' AND catid='.(int) $artists_category;
$db->setQuery($query);
$authoritem = $db->loadObject();
if($authoritem):
$authoritem->slug = $authoritem->alias ? ($authoritem->id . ':' . $authoritem->alias) : $authoritem->id;$link = JRoute::_(ContentHelperRoute::getArticleRoute($authoritem->slug, $artists_category));
echo JText::sprintf('TPL_COM_CONTENT_WRITTEN_BY' ,
'<span>'.JHtml::_('link',$link,$author).'</span>');
endif;}else{
$author = ($this->item->created_by_alias ? $this->item->created_by_alias : $author);?>
<?php if (!empty($this->item->contactid ) && $params->get('link_author') == true):?>
<?php echo JText::sprintf('TPL_COM_CONTENT_WRITTEN_BY' ,
'<span>'.JHtml::_('link',JRoute::_('index.php?option=com_contact&view=contact&id='.$this->item->contactid),$author).'</span>'); ?>
<?php else :?>
<?php echo JText::sprintf('TPL_COM_CONTENT_WRITTEN_BY', '<span>'.$author.'</span>'); ?>
<?php endif;
}
?>
</dd>
<?php endif; ?>– default-artist.php at 36-63th lines:
//template params
$tplparams = JFactory::getApplication()->getTemplate(true)->params;$userauthor = JFactory::getUser($this->item->created_by);
$artists_category = $tplparams->get('artists_category');
//General Link
//override author by ja templates
$author = $this->item->author;
$authorid = $this->item->created_by;
$authoruser = JFactory::getUser($authorid);
$artists_usergroup = $tplparams->get('artists_usergroup',3);
if(in_array($artists_usergroup,$authoruser->groups)){
$db = JFactory::getDBO();
$query = 'SELECT ' .$db->quoteName('id'). ', ' .$db->quoteName('alias'). ', ' .$db->quoteName('title'). ',' .$db->quoteName('images'). ' FROM #__content WHERE created_by ='.(int) $authorid.' AND catid='.(int) $artists_category;
$db->setQuery($query);
$authoritem = $db->loadObject();
if($authoritem):
$authoritem->slug = $authoritem->alias ? ($authoritem->id . ':' . $authoritem->alias) : $authoritem->id;$link = JRoute::_(ContentHelperRoute::getArticleRoute($authoritem->slug, $artists_category));
$link_category['general'] = new stdClass();
$link_category['general']->url = $link;
$link_category['general']->catid = $artists_category;
endif;}
Ing. Ervin Zatko EASY FriendIng. Ervin Zatko EASY
- Join date:
- September 2014
- Posts:
- 127
- Downloads:
- 406
- Uploads:
- 16
- Thanks:
- 19
- Thanked:
- 6 times in 1 posts
January 17, 2014 at 4:33 pm #518868Sorry but these changes dont help:
Please if developers have any other tips send me it. I very need these correction for my site…
Ervin
Ing. Ervin Zatko EASY FriendIng. Ervin Zatko EASY
- Join date:
- September 2014
- Posts:
- 127
- Downloads:
- 406
- Uploads:
- 16
- Thanks:
- 19
- Thanked:
- 6 times in 1 posts
January 20, 2014 at 11:26 pm #519163Hello Leo
Any solution for this problem???
Arvind Chauhan ModeratorArvind Chauhan
- Join date:
- September 2014
- Posts:
- 3835
- Downloads:
- 74
- Uploads:
- 92
- Thanks:
- 1240
- Thanked:
- 1334 times in 848 posts
January 21, 2014 at 10:08 am #519242Hi easypc,
your thread is pending with the developers, since it wont be a easy solution, they need to see if there is anyway of helping you out. I have pinged them again to find a way. Since, the behaviour is mostly controlled by Joomla and JA Musiz is just a template mimicking the behaviour, give it sometime for them to research on this.
Since, you are a developer member, I have asked them to see if its possible to provide you with limited customization to get this done, if its easy to do, you will have a positive answer.Give the team a day or two to figure this out.
Regards
Arvind
Ing. Ervin Zatko EASY FriendIng. Ervin Zatko EASY
- Join date:
- September 2014
- Posts:
- 127
- Downloads:
- 406
- Uploads:
- 16
- Thanks:
- 19
- Thanked:
- 6 times in 1 posts
January 21, 2014 at 11:15 am #519252Thank you for your answer drarvindc.
Im waiting for a suliton…:)phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
January 22, 2014 at 4:01 am #519336Hi easypc,
Our template developer has already fixed the issue related to sub-category setting of Artists layout. Indeed, this is a really heavy customization when he had to edit all override layout (article, featured, category) of com_content on Muzic template.
By that reason, we would like to suggest you to backup this templates/ja_muzic/html/com_content/ to apply for later projects and prevent it from being overridden by updating the template.
In addition, there are some articles on Kiadvanyok menu not showing their author (artist name), you will need to do these:
– Move their category (i.e Könyv) to be a sub-category of Előadók parent category.
– Go to the profile of that article’s author (i.e CSEMADOK Csábi Alapszervezete), check the assigned user group called “Előadók”
The rest artist pages will display the correct layout with top left avatar image and home link on top bar.
* Our dev helped to edit the override layout of com_content directly on your site SO you will not need to extract the below attached folder to the template yet.
Note: The artist pages on your website now work properly for the articles of Előadók and its sub-categories.
I also attached the modified com_content folder so other JA Members having the same issue can benefit from it.-
Ing. Ervin Zatko EASY Friend
Ing. Ervin Zatko EASY
- Join date:
- September 2014
- Posts:
- 127
- Downloads:
- 406
- Uploads:
- 16
- Thanks:
- 19
- Thanked:
- 6 times in 1 posts
January 22, 2014 at 5:44 pm #519404Oh, thank you very much for correction 🙂 It is a good work…
But here is one problem, when I click to events (Események) of artist. In this menu is not work these correction.
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
January 24, 2014 at 9:49 am #519666@easypc: That avatar image of sub-category artist’s related events has been fixed by editing the templates/ja_muzic/html/com_content/category/event.php file. You can compare that file to know what our developer has changed. Please check the event page of sub-category artists again and let me know how it goes.
Note: Remember to backup the template/ja_muzic/html/com_content/ folder
1 user says Thank You to phong nam for this useful post
Ing. Ervin Zatko EASY FriendIng. Ervin Zatko EASY
- Join date:
- September 2014
- Posts:
- 127
- Downloads:
- 406
- Uploads:
- 16
- Thanks:
- 19
- Thanked:
- 6 times in 1 posts
February 4, 2014 at 11:23 am #521101Hi Leo
Thank you very much for your correction. It work well.
I think the last problem is with a menu point ROLUNK (General). When I use subcategories the menu point is not active (the class is not set to active). I try to find solution, but I’m not very well in php :-[Please If you have time send me solution for it.
Thank you very much.
PS: Sorry for slow reaction, but I’m was sick…
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
February 5, 2014 at 10:18 am #521298@easypc: The active class was defined again in our overridden com_content layout to display the active link with highlighted texts. You can check again now.
I also attached the full modification of com_content for others reference.
1 user says Thank You to phong nam for this useful post
Ing. Ervin Zatko EASY FriendIng. Ervin Zatko EASY
- Join date:
- September 2014
- Posts:
- 127
- Downloads:
- 406
- Uploads:
- 16
- Thanks:
- 19
- Thanked:
- 6 times in 1 posts
February 16, 2014 at 12:07 am #522845It work perfect…Thank you very much for your help guys…:)
AuthorPostsThis topic contains 29 replies, has 3 voices, and was last updated by Ing. Ervin Zatko EASY 10 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum