| 
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 6 years ago #11027

  • ccdog
  • ccdog
  • OFFLINE
  • Junior Boarder
    Junior Boarder
  • Posts: 23
  • Karma: 21
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.

Re:CBAuthorBot Hack - Show CB Avatar in articles 6 years ago #11028

  • ccdog
  • ccdog
  • OFFLINE
  • Junior Boarder
    Junior Boarder
  • Posts: 23
  • Karma: 21
Gabe
...is it possible to get under the avatar the name of the author ???


Try this:

Step1: Find this code.
 
$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>";
 


Step2: Change it to this code.
 
$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>";
 


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

Re:CBAuthorBot Hack - Show CB Avatar in articles 6 years ago #11628

  • Gabe
  • Gabe
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 9
  • Karma: -
HI ccdog,

thanks for your help.

I solved in a little bit other way

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

Re:CBAuthorBot Hack - Show CB Avatar in articles 6 years ago #11636

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

or is this even possible ?

Re:CBAuthorBot Hack - Show CB Avatar in articles 6 years ago #11641

  • ccdog
  • ccdog
  • OFFLINE
  • Junior Boarder
    Junior Boarder
  • Posts: 23
  • Karma: 21
Gabe wrote:
HI ccdog,

thanks for your help.

I solved in a little bit other way

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


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.

Re:CBAuthorBot Hack - Show CB Avatar in articles 6 years ago #11688

cheers, im really wanting to do this and any help you can give would be great
Time to create page: 1.32 seconds