Author Image Include - Question | JoomShaper

Author Image Include

J

J

General 1 year ago

Hi Is there a way to include our authors portrait image in the articles automatically that they post? like you have in your blog articles https://www.joomshaper.com/blog/sp-page-builder-4-0-alpha-1-a-fully-visual-joomla-page-builder

Thanks J

0
6 Answers
J
J
Accepted Answer
1 year ago #67730

In the example on https://demo.joomshaper.com/?template=newsberg It seems to be embedded into the "article-info" tag

Is this been done into the php or are you using a plugin?

<div class="article-info">
<span class="createdby" itemprop="author" itemscope="" itemtype="schema.org/Person" title="Written by Kawshar Ahmed">
<img class="img-responsive author-img" src="/2019/newsberg/media/com_spauthorarchive/users/376-author-6.jpg" alt="Kawshar Ahmed">
<div class="info-block-title">By </div>
<a href="/2019/newsberg/index.php/authors/author/kawshar" itemprop="url">
<span itemprop="name">Kawshar Ahmed</span> </a>
</span>
<span class="category-name" title="Category: Food">
<a href="/2019/newsberg/index.php/food">Food</a>
</span>
<span class="published" title="Published: 21 November 2019">
<time datetime="2019-11-21T11:46:55+00:00" itemprop="datePublished">
2019-11-21  </time>
</span>
<span class="hits">
<span class="fa fa-eye-o" aria-hidden="true"></span>
<meta itemprop="interactionCount" content="UserPageVisits:2185">
Hits: 2185</span>
</div>
0
J
J
Accepted Answer
1 year ago #67731

Is it this component controlling this ? SP Author Archive Component (v2.0.0)

But is it compatibile with SPPB Pro most recent version & Joomla 4 ?

Do we need to have a Gravatar plugin also? There seems to be little information in your documents.

Thanks J

0
J
J
Accepted Answer
1 year ago #67840

So a Gravatar account needs to be made for this to work by associating the email address of the Author and targeting the url of the website.

NOW to move the Gravatar avatar to before the content? How do we do this? Do we need to modify a php script to get the class="article-author-information" next to the class="article-info" ?

Thanks for a speedy reply...

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 year ago #68002

Hi there,

Thanks for contacting us. Sorry for the inconvenience. The Author Archive extension is compatible for some specific Template (Newskit, Newsberg).

-Thanks

0
J
J
Accepted Answer
1 year ago #68034

Ok, Do you know what php file I would need to overide? so I dont have to track it down?

The Newsberg template is using "Helix Ultimate Framework" so I need to know the php file to modify.

thx J

1
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 year ago #68065

Here is the article details file location

templates/your_template/html/com_content/article/article.php

templates/your_template/html/html/layouts/joomla/content/info_block/author.php

0