Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard Spread FireBoard!
Discussbot used in own component (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Discussbot used in own component
#43804
Discussbot used in own component 9 Months, 3 Weeks ago  
i would like to use the plugin in my own component, it creates the Thread in the forum if i select autodiscusslink

The output from the Debug:

[FBDISCUSSBOT DEBUG:Searching for {mos_fb_discuss:#} tag in article text... Found one! ][FBDISCUSSBOT DEBUG:Found the FB threadId in the cross reference table(#__fb_discussbot). ][FBDISCUSSBOT DEBUG:Counted 1 posts in this thread. ][FBDISCUSSBOT DEBUG:Showing Last posts in the thread in Ascending order. ]{mos_fb_discuss:2}

it dont show the Link to the Forum in my own Compontent content. Does anybody know what id did wrong?
luethsim (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#43822
Re:Discussbot used in own component 9 Months, 3 Weeks ago  
What events did you call from your own component? Compare it to com_content.

-M
4umfreak (User)
Senior Boarder
Posts: 248
graphgraph
User Offline Click here to see the profile of this user
ObjectClarity.com
Logged Logged
 
The administrator has disabled public write access.  
#43829
Re:Discussbot used in own component 9 Months, 3 Weeks ago  
This are the variables i defined before:

if ($_REQUEST['option'] == 'com_chemdb' ) {
// Make this appear to be a 'normal' content item by setting up the section, category, title and intro-text.
$row->catid = 2; // Is already set by JEvents
$row->title = 'dumm23421234';
$row->sectionid = 1;
$row->introtext = "adsasd";
$row->section = "The News";
$row->author = Administrator;
$row->category = "Latest News";
$row->groups = "Public";
$row->sec_id = 1;
//$row->text = "asdasdasd";
$row->Itemid=1;
$row->id=15;
$row->title_alias="aa";
}

The site: deletet
Think there is a problem with the $row->id
luethsim (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/02/12 01:59 By luethsim.
 
The administrator has disabled public write access.  
#43833
Re:Discussbot used in own component 9 Months, 3 Weeks ago  
Make sure that your custom component includes:

[code:1]
// process the new bots
$_MAMBOTS->loadBotGroup( 'content' );
$results = $_MAMBOTS->trigger( 'onPrepareContent', array( &$row, &$params, $page ), true );

// Note: $results is never printed to the page for this call...
[/code:1]

And

[code:1]
$results = $_MAMBOTS->trigger( 'onAfterDisplayContent', array( &$row, &$params, $page ) );
echo trim( implode( "n", $results ) );
[/code:1]
4umfreak (User)
Senior Boarder
Posts: 248
graphgraph
User Offline Click here to see the profile of this user
ObjectClarity.com
Logged Logged
 
The administrator has disabled public write access.  
#43840
Re:Discussbot used in own component 9 Months, 3 Weeks ago  
Thanks a lot for your Help. it works now. i have now the link to the forum.

The solution was as you wrote before.

Thanks again
luethsim (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#43842
Re:Discussbot used in own component 9 Months, 3 Weeks ago  
Excellent - glad to help.
4umfreak (User)
Senior Boarder
Posts: 248
graphgraph
User Offline Click here to see the profile of this user
ObjectClarity.com
Logged Logged
 
The administrator has disabled public write access.  
#44922
Re:Discussbot used in own component 9 Months, 2 Weeks ago  
Hi luethsim and everyone,

Are you using J1.5?, I'm also trying to integrate 4umfreak's cool discussbot into another component (EventList).

Cheers.
nhudell (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
Go to top