| 
Welcome, Guest

CBAuthorBot Hack - Show CB Avatar in articles
(1 viewing) (1) Guest

TOPIC: CBAuthorBot Hack - Show CB Avatar in articles

Re:CBAuthorBot Hack - Show CB Avatar in articles 5 years, 5 months ago #27568

  • KurtSteiner
  • KurtSteiner
  • OFFLINE
  • Platinum Boarder
    Platinum Boarder
  • Posts: 533
  • Karma: 24
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;"

 
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>";
}
 


I hope this helps!



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

sunny regards from Germany

BERND (Kurt Steiner)
------------------------------------------------------------
www.moveGreen.de
Business Club for renewable energy, mobility and environment


VOTE for my CB 1.2 + GroupJive driven website on Financial Times

Re:CBAuthorBot Hack - Show CB Avatar in articles 5 years, 5 months ago #27623

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/

Re:CBAuthorBot Hack - Show CB Avatar in articles 5 years, 5 months ago #27651

  • KurtSteiner
  • KurtSteiner
  • OFFLINE
  • Platinum Boarder
    Platinum Boarder
  • Posts: 533
  • Karma: 24
sorry

do you want the author NOT showing or to show it on another place?
sunny regards from Germany

BERND (Kurt Steiner)
------------------------------------------------------------
www.moveGreen.de
Business Club for renewable energy, mobility and environment


VOTE for my CB 1.2 + GroupJive driven website on Financial Times

Re:CBAuthorBot Hack - Show CB Avatar in articles 5 years, 5 months ago #27694

I want show.



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

Re:CBAuthorBot Hack - Show CB Avatar in articles 5 years, 4 months ago #28000

  • Nigelcopley
  • Nigelcopley
  • OFFLINE
  • Junior Boarder
    Junior Boarder
  • Posts: 38
  • Karma: 1
Great work thanks

karma - up up and away

Re:CBAuthorBot Hack - Show CB Avatar in articles 5 years, 3 months ago #30086

  • bjraines
  • bjraines
  • OFFLINE
  • Expert Boarder
    Expert Boarder
  • Posts: 156
  • Karma: 2
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:
$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>";

Step 2: Change it to this:
$row->created_by_alias="<a href=\"".sefRelToAbs('index.php?option=com_comprofiler&task=userProfile&user='.$row->created_by)."\">$row->author</a>";

That should work.
Time to create page: 1.07 seconds