Skip to Content Skip to Menu

CBAuthorBot Hack - Show CB Avatar in articles

  • Rasttix
  • Rasttix
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
16 years 10 months ago #53874 by Rasttix
Filho wrote:

Hi Rasttix,

It's defined in the mambot file, on line 12:

[code:1]$_MAMBOTS->registerFunction( 'onBeforeDisplayContent', 'CBAuthorBot');[/code:1]


Thanks for the reply, but I still don't get it, I mean, I do have that line in my file, but it doesn't solve anything, what should I do or what file should I edit?
Thanks again

EDIT: Nevermind, I found the problem. I had to change this line:

[code:1]$_MAMBOTS->registerFunction( 'onBeforeDisplayContent', 'CBAuthorBot');[/code:1]

With this one:

[code:1]$_MAMBOTS->registerFunction( 'onPrepareContent', 'CBAuthorBot');[/code:1]

Thanks Filho for the tip

Post edited by: Rasttix, at: 2008/01/08 18:33

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

  • higome
  • higome
  • OFFLINE
  • Posts: 1
  • Thanks: 0
  • Karma: 0
16 years 10 months ago #54050 by higome
merdok wrote:

This is more or less what I would like to do as well... I would like my articles to look like this:


I wonder if someone knows how to do just like this example above... I want this way too.

All I need is avatar on the left side and title and date on the right side.

'Cause I didn't get this $row thing...

Can someone help me?

Post edited by: higome, at: 2008/01/11 00:08

Post edited by: higome, at: 2008/01/11 02:38

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

  • Filho
  • Filho
  • OFFLINE
  • Posts: 11
  • Thanks: 0
  • Karma: 3
16 years 9 months ago #55214 by Filho
Hey guys, for a long time I look for a bot to display the category image of a content in its begin. Now, after implementing this great CBAuthorBot Hack, I image that the first think can be done with a similar hack. Am I right?

To simplify: the point is use the CBAuthorBot Hack to display the category image despite the author avatar.

Can anyone help me? :dry:

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

16 years 9 months ago #55716 by wreckchick
Replied by wreckchick on topic Re:CBAuthorBot Hack - Show CB Avatar in articles
I'm actually working on this right now. I have successfully put the avatar in the left 'pane' of a table, and created two rows on the row, the top one to hold the title and the bottom one to show the author and date created. I have even gotten the "Written by: BlahBlah" to show up correctly with a functioning link. I can't figure out how to get the title and date to put in the table cells and to suppress the title, author and date created information that is displayed on the page automatically.

If anyone can help me out, I'll post it when I'm done!

R

edit: I'm replying to higome's post from a few days ago about reformatting the article header.

Post edited by: wreckchick, at: 2008/02/01 04:41

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

  • darb
  • darb
  • OFFLINE
  • Posts: 65
  • Thanks: 0
  • Karma: 2
16 years 9 months ago #55729 by darb
Well thats nice that this progressing bcs I want to use this in future too. Is anyone knowing if this should work in J 1.5 with CB ?

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

16 years 9 months ago #55794 by wreckchick
Replied by wreckchick on topic Re:CBAuthorBot Hack - Show CB Avatar in articles
I'll be lucky if I get it working for 1.0.13!

If I do though, it shouldn't be that hard to modify, I hope.

R

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

Moderators: beatnantkrileon
Powered by Kunena Forum