Skip to Content Skip to Menu

CBAuthorBot Hack - Show CB Avatar in articles

  • ccdog
  • ccdog
  • OFFLINE
  • Posts: 21
  • Thanks: 0
  • Karma: 21
18 years 5 months ago #11027 by ccdog
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.

  • ccdog
  • ccdog
  • OFFLINE
  • Posts: 21
  • Thanks: 0
  • Karma: 21
18 years 5 months ago #11028 by ccdog
Gabe

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


Try this:

Step1: Find this code.
[code:1]
$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]

Step2: Change it to this code.
[code:1]
$txt = "<div class=\"authorhack\"><a href=\"".sefRelToAbs('index.php?option=com_comprofiler&task=userProfile&user='.$row->created_by)."\"><img src=\"$avatarlink\" border=\"0\" align=\"left\" class=\"authorimg\" /><br />".($row->created_by_alias!='' ? $row->created_by_alias : $row->author)."</a></div>";
[/code:1]

Step3: Modify your CSS file until you are satisfied. You will need to add styles for div.authorhack. For my site, I would set text-align: center, float: left, and some value for width, padding, and margin.

Let me know if that works.

Post edited by: ccdog, at: 2006/04/26 20:19

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 #11628 by Gabe
HI ccdog,

thanks for your help.

I solved in a little bit other way

[code:1] $txt .= "<a href=\"".sefRelToAbs('index.php?option=com_comprofiler&amp;task=userProfile&amp;user='.$row->created_by)."\">".($row->created_by_alias!='' ? $row->created_by_alias : $row->author)."</a></br>";
[/code:1]

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

18 years 5 months ago #11636 by damiendownload
Replied by damiendownload on topic Re:CBAuthorBot Hack - Show CB Avatar in articles
I would also like to query a users city (cb_city) under their photo how would i do this?

or is this even possible ?

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

  • ccdog
  • ccdog
  • OFFLINE
  • Posts: 21
  • Thanks: 0
  • Karma: 21
18 years 5 months ago #11641 by ccdog
Gabe wrote:

HI ccdog,

thanks for your help.

I solved in a little bit other way

[code:1] $txt .= "<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></br>";
[/code:1]


That's great. I'm glad you found a solution that works for you. :)

damiendownload wrote:

I would also like to query a users city (cb_city) under their photo how would i do this?

or is this even possible ?


This is possible, but I'll have to get back to you on the specifics of how to do it.

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

18 years 5 months ago #11688 by damiendownload
Replied by damiendownload on topic Re:CBAuthorBot Hack - Show CB Avatar in articles
cheers, im really wanting to do this and any help you can give would be great :)

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

Moderators: beatnantkrileon
Powered by Kunena Forum