-
AuthorPosts
-
missioneyes Friend
missioneyes
- Join date:
- October 2010
- Posts:
- 51
- Downloads:
- 1
- Uploads:
- 7
- Thanks:
- 8
- Thanked:
- 1 times in 1 posts
March 20, 2011 at 7:19 am #161678I am also having the problem that the link for the author name is showing up as html when this is enabled in the articles parameters. I just want the author name to show up there or “written by: author name” with the hyperlink to their jomsocial profile.
I see this discussed but no solution is provided: http://www.joomlart.com/forums/topic/author-link-in-articles-is-showing-as-html/
Please help as we are going live within a day.
Thanks,
Stan
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
March 20, 2011 at 3:56 pm #382348Hi,
– Open <joomla url>templatesja_socialhtmlcom_contentfrontpagedefault_item.php file
– Replace
<dd class="createdby">
<?php JText::printf(($this->item->created_by_alias ? $this->escape($this->item->created_by_alias) : $this->escape($this->item->author)) ); ?>
</dd>
with
<dd class="createdby">
Written by: <?php JText::printf(($this->item->created_by_alias ? $this->escape($this->item->created_by_alias) : $this->escape($this->item->author)) ); ?>
</dd>
– What hyperlink like? Do you give me a example?missioneyes Friendmissioneyes
- Join date:
- October 2010
- Posts:
- 51
- Downloads:
- 1
- Uploads:
- 7
- Thanks:
- 8
- Thanked:
- 1 times in 1 posts
March 20, 2011 at 8:23 pm #382371Thanks
I have done this but I am still having the same issue without any apparent change.
http://missioneyes.net/test/index.php?option=com_content&view=section&layout=blog&id=1&Itemid=100423
The issue is on the blog layout for sections or categories and also for individual articles
Thanks for your quick help!!
Stan
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
March 21, 2011 at 8:02 am #382457Hi,
You try this way:
– Open <joomla url>templatesja_socialhtmlcom_contentfrontpag edefault_item.php file, replace
<dd class="createdby">
<?php JText::printf(($this->item->created_by_alias ? $this->escape($this->item->created_by_alias) : $this->escape($this->item->author)) ); ?>
</dd>
with
<dd class="createdby">
Written by:<a href="index.php?option=com_community&view=profile&userid=<?php echo $this->item->userid;?>"><?php JText::printf(($this->item->created_by_alias ? $this->escape($this->item->created_by_alias) : $this->escape($this->item->author)) ); ?>
</a>
</dd>
– Open <joomla url>componentscom_contentmodelsfrontpage.php file, replace
'u.name AS author, u.usertype, g.name AS groups, u.email as author_email, cc.title AS category, s.title AS section, s.ordering AS s_ordering, cc.ordering AS cc_ordering, a.ordering AS a_ordering, f.ordering AS f_ordering'.
with
' u.id AS userid, u.name AS author, u.usertype, g.name AS groups, u.email as author_email, cc.title AS category, s.title AS section, s.ordering AS s_ordering, cc.ordering AS cc_ordering, a.ordering AS a_ordering, f.ordering AS f_ordering'.
–> My way affects to front page. I checked your home page, and it works perfectly
– If you want to change section blog. You do same things to <joomla url>componentscom_contentmodelssection.php and <joomla url>pluginssystemjat3base-themesdefaulthtmlcom_contentsectionblog_item.php filemissioneyes Friendmissioneyes
- Join date:
- October 2010
- Posts:
- 51
- Downloads:
- 1
- Uploads:
- 7
- Thanks:
- 8
- Thanked:
- 1 times in 1 posts
March 22, 2011 at 4:43 am #382614First of all, thanks for giving much help!
Second, I have tried both of these code changes to no avail. Are you working with my testsite http://www.missioneyes.net/test?
Thirdly, isn’t this a bug for the tempate? I don’t understand why not many others are complaining of this. I am just trying to use the section and frontpage blog and also this shows up in the article if author is enabled. I’m sure many others use the author enabled.
I have sent ftp and backend access for the moderators if someone could please make the changes and let me know what fixes it.
Stan
thuanlq Friendthuanlq
- Join date:
- October 2010
- Posts:
- 528
- Downloads:
- 0
- Uploads:
- 29
- Thanks:
- 8
- Thanked:
- 121 times in 99 posts
March 22, 2011 at 8:15 am #382660Hi Missioneyes,
To resolve this problem, please do as following:
– Open the file “blog_item.php”, in the folder “/templates/ja_social/local/themes/men_custom/html/com_content/category”, Find code:
<?php JText::printf(($this->item->created_by_alias
? $this->escape($this->item->created_by_alias)
: $this->escape($this->item->author)) ); ?>
Replace to:
<?php JText::printf( ( $this->item->created_by_alias
? $this->item->created_by_alias
: $this->item->author) ); ?>
– Open file “default.php” in the folder “/templates/ja_social/local/themes/men_custom/html/com_content/article”, find code:
<?php $this->escape(JText::printf(($this->escape($this->article->created_by_alias) ? $this->escape($this->article->created_by_alias) : $this->escape($this->article->author)) )); ?>
Replace to:
<?php echo JText::_("Written by: "); JText::printf(($this->escape($this->article->created_by_alias) ? $this->article->created_by_alias : $this->article->author) ); ?>
( i changed this file in your site, view this link to see updated http://www.missioneyes.net/test/index.php?option=com_content&view=article&id=12:impact-on-jungle-occupations&catid=75:patient-stories&Itemid=100109 )
– Open the file “default_item.php”, in the folder “/templates/ja_social/local/themes/men_custom/html/com_content/frontpage”, find code:
Written by: <?php JText::printf(($this->item->created_by_alias ? $this->escape($this->item->created_by_alias) : $this->escape($this->item->author)) ); ?>
Replace to:
Written by: <?php JText::printf(($this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author) ); ?>
Note: your site use theme is “men_custom”, so all file in this folder was called first.
Regardsm
-
AuthorPosts
This topic contains 6 replies, has 3 voices, and was last updated by thuanlq 13 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum