Skip to Content Skip to Menu

CBAuthorBot Hack - Show CB Avatar in articles

  • swetti81
  • swetti81
  • OFFLINE
  • Posts: 1
  • Thanks: 0
  • Karma: 0
18 years 6 months ago #9175 by swetti81
Hello,

thanks a lot but i have one question. The images must be in the folder tngallery. I don´t have this one and i build a new one. Only my image (from admin) have the right point: www.website.de/images/comprofiler/tn62_43f220dd06300.jpg

All the others f.e. www.website.de/images/comprofiler/tngallery/joshua-mini.jpg


Hmmm, can i make it that all images put in the folder "comprofiler" and not in the tngallery?

Thanks a lot, swetti

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

  • ccdog
  • ccdog
  • OFFLINE
  • Posts: 21
  • Thanks: 0
  • Karma: 21
18 years 6 months ago #9197 by ccdog
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!

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

  • Gabe
  • Gabe
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
18 years 5 months ago #10767 by Gabe
THanks for the nice hack.

I have only one little question is it possible to get under the avatar the name of the author ???

I'am really a sql noob, but I hope someone can help me.

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

  • Manoxtra
  • Manoxtra
  • OFFLINE
  • Posts: 7
  • Thanks: 0
  • Karma: 0
18 years 5 months ago #10770 by Manoxtra
Is this like a 'stable' hack? I mean is it 'bugfree´ and/or does it work appropiatly?

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

  • Gabe
  • Gabe
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
18 years 5 months ago #10776 by Gabe
I just use this hack and it function on my site without any problems

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

18 years 5 months ago #10784 by damiendownload
Replied by damiendownload on topic Re:CBAuthorBot Hack - Show CB Avatar in articles
How would i go about showing the users, user name NOT real name ?

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

Moderators: beatnantkrileon
Powered by Kunena Forum