Author Topic: Feature request: Fireboard discussbot  (Read 16547 times)

0 Members and 1 Guest are viewing this topic.

Offline Akua

Re: Feature request: Fireboard discussbot
« Reply #10 on: 18. November 2008, 11:26:10 »
Is there a possibility to translate comments to English? i would like to know if someone has this discussbot working...

Thank You
Country: Portugal Portugal |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile


Offline infoman

Re: Feature request: Fireboard discussbot
« Reply #11 on: 19. November 2008, 10:04:32 »
in components/com_fireboard/template/defaultpost.php (condition if request came from component sobi2 that changes url):

$parentid 0;
$replyto = (int)$replyto;
$setFocus 0;
$resubject base64_decode(strtr($resubject"()""+/"));
$resubject str_replace("%20"" "$resubject);


$resubject preg_replace('/%32/''&'$resubject);
$resubject preg_replace('/%33/'';'$resubject);
$resubject preg_replace("/\'/"'''$resubject);
$resubject preg_replace("/\"/"'"'$resubject);
$fromBot 1;
$authorName htmlspecialchars($my_name);
$rowid mosGetParam($_REQUEST'rowid'0);
$rowItemid mosGetParam($_REQUEST'rowItemid'0);
$comp mosGetParam($_REQUEST'comp'0);
if (
$rowItemid) {
if (empty(
$comp)){
$contentURL sefRelToAbs('index.php?option=com_content&task=view&Itemid=' $rowItemid '&id=' $rowid);
}else{
$contentURL sefRelToAbs('index.php?option=com_sobi2&sobi2Task=sobi2Details&sobi2Id=' $rowid '&Itemid=' $rowItemid);
}


in components/com_sobi2/templates/default/sobi2.details.tmpl.php (here we add the parameters required for initializing the bot:)

<?
php
/////to mambot fb_db :)
global $_MAMBOTS;
$_MAMBOTS->loadBotGroup'content' );
$fakeRow "";
$fakeRow->id=$sobi2Id;
$fakeRow->title =$mySobi->title;
$fakeRow->title_alias =$mySobi->title;
$fakeRow->introtext ="/{///mos_fb_discuss:2///}/".$fieldsFormatted['field_description'];
$fakeRow->sectionid ="1";
$fakeRow->catid ="1";
$fakeRow->created_by ="62";
$fakeRow->author ="Administrator";
$fakeRow->usertype ="Super Administrator";
$fakeRow->text ="{////mos_fb_discuss:2///}"; (убрать ///)
$fakeRow->component ="sobi2";
/////////params
$fakeParams = new mosParameters('');
$fake = new stdClass();
$fake->intro_only "0";
$fakePage "0";
$results $_MAMBOTS->trigger'onPrepareContent', array( &$fakeRow, &$fakeParams$fakePage ), true );

$results $_MAMBOTS->trigger'onAfterDisplayContent', array( &$fakeRow, &$fakeParams$fakePage ) );
echo 
trimimplode"\n"$results ) );
?>



in mambots/content/fbdiscussbot.php here we contribute several changes search for the line:

741 lines - if this sobi2 that changes url

       
if (FBDB_JOOMLA_1_0_X) {
            
// $prefix = sefRelToAbs('index.php?option=com_content&task=view&id=' . $row->id . '&Itemid=' . ($rowItemid?$rowItemid:1));
            
if (empty($row->component)){
            
$prefix $mosConfig_live_site 'index.php?option=com_content&task=view&id=' $row->id '&Itemid=' . ($rowItemid?$rowItemid:1);
            }
            else{
            
/////for sobi2
            
$prefix $mosConfig_live_site 'index.php?option=com_sobi2&sobi2Task=sobi2Details&sobi2Id=' $row->id '&Itemid=' . ($rowItemid?$rowItemid:1);
            }
        } else {
            
// $prefix = sefRelToAbs('index.php?option=com_content&view=article&id=' . $row->id . '&catid=' . $row->catid . '&Itemid=' . ($rowItemid?$rowItemid:1));
            
if (empty($row->component)){
            
$prefix $mosConfig_live_site 'index.php?option=com_content&view=article&id=' $row->id '&catid=' $row->catid '&Itemid=' . ($rowItemid?$rowItemid:1);
            }
///for sobi2
            
else{
            
$prefix $mosConfig_live_site 'index.php?option=com_sobi2&sobi2Task=sobi2Details&sobi2Id=' $row->id '&catid=' $row->catid '&Itemid=' . ($rowItemid?$rowItemid:1);
            }
        }


111 lines add rule && $option != "com_sobi2


function fbdbIncludeIntegrationFile() {
    global $mosConfig_absolute_path, $botCopyContent;
   
    $path = $mosConfig_absolute_path.'/'.(FBDB_JOOMLA_1_0_X ? "
mambots" : "plugins").'/content/fbdiscussbot/integration/';
    $option = fbdbCheck($_REQUEST['option']);
    if ($option && $option != "
com_content" && $option != "com_sobi2" ) {
   


857 lines add parameter &comp=".$row->component

    // If there is no result from the first query let the link open a new reply possibility
    $showlink = "";
    echo $showlink;
    if ($resultid == ""){
        $showlink = sefRelToAbs("
index.php?option=com_fireboard&Itemid=" . $Itemid
                                . "
&func=post&do=newFromBot&resubject=".strtr(base64_encode($row->title), "+/", "()")."&catid=".$catid
                                . "
&rowid=".$row->id."&rowItemid=".$rowItemid."&comp=".$row->component ); 
« Last Edit: 19. November 2008, 10:09:11 by infoman »
www.AvLab.ru web-studio www.rrcat.ru - russian regional catalog
Country: Russian Federation Russian Federation |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Do you want continued ongoing development, new features and active support?
Please write a review or just vote for SOBI on JED.

Offline Akua

Re: Feature request: Fireboard discussbot
« Reply #12 on: 23. November 2008, 13:36:16 »
Hello,

sent you a PM:

Regards
RV
Country: Portugal Portugal |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline infoman

Re: Feature request: Fireboard discussbot
« Reply #13 on: 05. December 2008, 09:51:25 »
ups ;)

in components/com_fireboard/template/default/post.php

$resubject = base64_decode(strtr($resubject, "_", "/"));

in mambots/content/fbdiscussbot.php
                             
 . "&func=post&do=newFromBot&resubject=".strtr(base64_encode($row->title), "/", "_")."&catid=".$catid
www.AvLab.ru web-studio www.rrcat.ru - russian regional catalog
Country: Russian Federation Russian Federation |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline leven

  • SOBI Team
  • Moderator
  • Sobi Experte
  • *
  • Posts: 456
  • Reviews:

    What is it?

Re: Feature request: Fireboard discussbot
« Reply #14 on: 08. April 2009, 01:17:29 »
Althought fireboard is on it's way out...


Has anybody implemented this hack?
{The Difference Between Sobi2 and SobiPRO}

"Everything that irritates us about others can lead us to an understanding of ourselves." Carl Jung
Country: Greece Greece |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile Greek guide to free internet access

Offline infoman

Re: Feature request: Fireboard discussbot
« Reply #15 on: 15. April 2009, 09:03:05 »
my english not very good, not has quite understood, tell;narrate on detailed
www.AvLab.ru web-studio www.rrcat.ru - russian regional catalog
Country: Russian Federation Russian Federation |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline Brooker

Re: Feature request: Fireboard discussbot
« Reply #16 on: 25. April 2009, 17:22:49 »
Hello,

Is there a solution for the new Kunena Forum ?

Cheers Mark
Country: Switzerland Switzerland |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline leven

  • SOBI Team
  • Moderator
  • Sobi Experte
  • *
  • Posts: 456
  • Reviews:

    What is it?

Re: Feature request: Fireboard discussbot
« Reply #17 on: 25. April 2009, 21:20:28 »
hi infoman,

I only asked if this hack has been tried by others.
{The Difference Between Sobi2 and SobiPRO}

"Everything that irritates us about others can lead us to an understanding of ourselves." Carl Jung
Country: Greece Greece |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile Greek guide to free internet access

Offline infoman

Re: Feature request: Fireboard discussbot
« Reply #18 on: 22. September 2009, 08:23:21 »
hi infoman,
I only asked if this hack has been tried by others.
this hack in www.gde-eda.ru
this post in fireboard http://www.gde-eda.ru/component/option,com_fireboard/Itemid,43/func,view/catid,2/id,9/#9
from sobi - http://www.gde-eda.ru/component/option,com_sobi2/sobi2Task,sobi2Details/sobi2Id,1209/Itemid,29/

Hello,

Is there a solution for the new Kunena Forum ?

Cheers Mark
no i do't do this )  ) have no money have no time )
www.AvLab.ru web-studio www.rrcat.ru - russian regional catalog
Country: Russian Federation Russian Federation |  OS: Windows XP Windows XP |  Browser: Firefox 3.0.14 Firefox 3.0.14 | View Profile

Tags: