| 
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 4 years, 2 months ago #51078

  • Posts:
  • Karma:
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=...p;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?

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

  • Posts:
  • Karma:
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!

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

  • Posts:
  • Karma:
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

Re:CBAuthorBot Hack - Show CB Avatar in articles 4 years, 1 month ago #53268

  • Posts:
  • Karma:
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/...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?

Re:CBAuthorBot Hack - Show CB Avatar in articles 4 years, 1 month ago #53843

  • Posts:
  • Karma:
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/...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=co...oticias&Itemid=2
I have mxcomment 1.0.6, CB 1.1 and Joomla 1.5

Re:CBAuthorBot Hack - Show CB Avatar in articles 4 years, 1 month ago #53872

  • Posts:
  • Karma:
Hi Rasttix,

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

$_MAMBOTS->registerFunction( 'onBeforeDisplayContent', 'CBAuthorBot');
Time to create page: 0.89 seconds