Skip to Content Skip to Menu

CBAuthorBot Hack - Show CB Avatar in articles

17 years 9 months ago #27568 by KurtSteiner
Replied by KurtSteiner on topic Re:CBAuthorBot Hack - Show CB Avatar in articles
ok,
i was visiting the homepage from ccdog, found it already implemented, browesed through the thread again and found the answer:

ccdog wrote:

In the following code, you can change the line that says "$avatarlink = $mosConfig_live_site.'/images/comprofiler/tn'.$avatar;" and change the path to your thumbnail images.

Going by your example, you would change it to "$avatarlink = $mosConfig_live_site.'/images/comprofiler/tngallery/'.$avatar;"

[code:1]
if ( $avatar ) {
$avatarlink = $mosConfig_live_site.'/images/comprofiler/tn'.$avatar;
$txt = "<a href=\"".sefRelToAbs('index.php?option=com_comprofiler&task=userProfile&user='.$row->created_by)."\"><img src=\"$avatarlink\" border=\"0\" align=\"left\" class=\"authorimg\" /></a>";
}
[/code:1]

I hope this helps!



Many thanks (and following Karma improvement)to all of you helping with this Hacks improving my content:woohoo:

:woohoo: :woohoo:

sunny regards from Germany

BERND (Kurt Steiner)

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

17 years 9 months ago #27623 by toplumdusmani
Replied by toplumdusmani on topic Re:CBAuthorBot Hack - Show CB Avatar in articles
Hi.
I want to author info block near/in the article.
(Author avartar, mail,private message, latest article)
What can I do.?


example: www.joomlaturkiye.org/content/view/131/

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

17 years 9 months ago #27651 by KurtSteiner
Replied by KurtSteiner on topic Re:CBAuthorBot Hack - Show CB Avatar in articles
sorry

do you want the author NOT showing or to show it on another place?

sunny regards from Germany

BERND (Kurt Steiner)

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

17 years 9 months ago #27694 by toplumdusmani
Replied by toplumdusmani on topic Re:CBAuthorBot Hack - Show CB Avatar in articles
I want show.



Post edited by: toplumdusmani, at: 2006/12/26 20:03
Attachments:

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

17 years 9 months ago #28000 by Nigelcopley
Replied by Nigelcopley on topic Re:CBAuthorBot Hack - Show CB Avatar in articles
Great work thanks

karma - up up and away

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

  • bjraines
  • bjraines
  • OFFLINE
  • Posts: 87
  • Thanks: 0
  • Karma: 2
17 years 8 months ago #30086 by bjraines
I am trying to get this small modification to work and it doesn't. I want to display the username not the real name. Thanks!


ccdog wrote:

Hello, everyone...

It's been a while since I've checked this thread. Sorry about the delay in response.

Now, to answer some questions:

Gabe

...is it possible to get under the avatar the name of the author ???

The short answer is yes, but it'll take some work. I'll look into it.



Manoxtra

Is this like a 'stable' hack? I mean is it 'bugfree´ and/or does it work appropiatly?

I have been using this hack without any problems at LoveLearnLive.com .



damiendownload

How would i go about showing the users, user name NOT real name ?

Step 1: Find the following code:
[code:1]$row->created_by_alias="<a href=\"".sefRelToAbs('index.php?option=com_comprofiler&task=userProfile&user='.$row->created_by)."\">".($row->created_by_alias!='' ? $row->created_by_alias : $row->author)."</a>";[/code:1]
Step 2: Change it to this:
[code:1]$row->created_by_alias="<a href=\"".sefRelToAbs('index.php?option=com_comprofiler&task=userProfile&user='.$row->created_by)."\">$row->author</a>";[/code:1]
That should work.

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

Moderators: beatnantkrileon
Powered by Kunena Forum