Skip to Content Skip to Menu

CBAuthorBot Hack - Show CB Avatar in articles

  • darb
  • darb
  • OFFLINE
  • Posts: 65
  • Thanks: 0
  • Karma: 2
16 years 11 months ago #51078 by darb
ccdog wrote:

ffaabbss wrote:

simi wrote:

Is there any way to make a module like here (at the right)?
hxxp://www.kimyamuhendisi.com/index.php?option=com_content&task=view&id=52&Itemid=1

Post edited by: simi, at: 2007/07/13 13:14

that would be really interesting indeed? How is that done?


Hi guys,

Here's how I think you would do this.

1) Create a module. In that module, do the following:
2) Test to see if you are on a content item page (check the GET parameters from the URL for option=com_content and task=view)
3) Get the content id from the URL (it should say "id=x" where x is some number)
4) Get the data from the #_content table in the database where id is equal to the content id you found in step 3
5) Check that data for the author id
6) Use the author id to generate a link to the author's profile and get the thumbnail image of the author.
7) Only publish the module on pages that have content items.

If someone feels like coding this, that would be great. I'm sure it would be most appreciated by the community! :)


yeah this is good idea! anyone know if this is doable?

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

  • darb
  • darb
  • OFFLINE
  • Posts: 65
  • Thanks: 0
  • Karma: 2
16 years 11 months ago #51081 by darb
toplumdusmani wrote:

yes, it's automatic depend the content and show author info.

Post edited by: toplumdusmani, at: 2007/11/13 10:07


can you share this ? looking great!

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

  • Filho
  • Filho
  • OFFLINE
  • Posts: 11
  • Thanks: 0
  • Karma: 3
16 years 11 months ago #52097 by Filho
Great Hack, congratulations! And the support is great too! You all deserv a Karma! ;)

Hey toplumdusmani, the module showed in page 14 is up to use or did you make any change since that time?

Post edited by: Filho, at: 2007/12/11 00:48

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

16 years 10 months ago #53268 by RafaelReinehr
Replied by RafaelReinehr on topic Re:CBAuthorBot Hack - Show CB Avatar in articles
I'm having a problem that, despite lots of trials, i'm unable to solve:

Look at the page: opensadorselvagem.org/pt/estilo-de-vida/aventura/le-parkour-a-arte-do-deslocamento.html

There you can see the Avatar showing UNDER the following links and text

Estilo de Vida - Aventura
Por Rafael Reinehr
29 de dezembro de 2007

But, I want to put them AT THE RIGHT of the
Estilo de Vida - Aventura
Por Rafael Reinehr
29 de dezembro de 2007

Any ideas?

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

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

I'm having a problem that, despite lots of trials, i'm unable to solve:

Look at the page: opensadorselvagem.org/pt/estilo-de-vida/aventura/le-parkour-a-arte-do-deslocamento.html

There you can see the Avatar showing UNDER the following links and text

Estilo de Vida - Aventura
Por Rafael Reinehr
29 de dezembro de 2007

But, I want to put them AT THE RIGHT of the
Estilo de Vida - Aventura
Por Rafael Reinehr
29 de dezembro de 2007

Any ideas?


Excuse me, how did you solve this? Because I have the same problem, my photo is showing at the end of the article and after the comments :(
Here it is:
www.hanabilyrics.com/index.php?option=com_content&view=article&id=34:test&catid=20:ultimas-noticias&Itemid=2
I have mxcomment 1.0.6, CB 1.1 and Joomla 1.5

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

  • Filho
  • Filho
  • OFFLINE
  • Posts: 11
  • Thanks: 0
  • Karma: 3
16 years 10 months ago #53872 by Filho
Hi Rasttix,

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

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

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

Moderators: beatnantkrileon
Powered by Kunena Forum