Sigsiu.NET Forum
04. July 2009, 13:40:39 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: SOBI2 RC2.9.2 released
Sigsiu.NET Download Demo Home Help Search Login Register
Anzeige:

SOBI2 Featured Listings Plugin
Featured Listings
SOBI2 Radius Distance Search Plugin
Radius Distance Search
SOBI2 Import & Backup Plugin
SOBI2 Import & Backup
SOBI2 Search Module
Search Module
SOBI Donation/Spende
Pages: [1] 2   Go Down
Print
Author Topic: Feature request: Fireboard discussbot  (Read 8948 times)
0 Members and 1 Guest are viewing this topic.
pietrogallo
Full Member
***

Thanx from users: 3
Offline Offline

Reviews:

What is it?

Posts: 36

OS:
Windows XP
Browser:
Firefox
Country:
Italy Italy


View Profile WWW
« on: 12. June 2007, 10:35:24 »

I think it will be a great addition for users to be able to discuss sobi2 entries in Forums.

What do you think?

Pietro
Logged
Happy with SOBI2? Let us, and other Joomla users know about this. Write review or just vote for SOBI2.
undoIT
Gold Sponsor
Sr. Member
*

Thanx from users: 4
Offline Offline

Reviews:

What is it?

Posts: 177


OS:
Linux (Ubuntu)
Browser:
Firefox 2.0.0.11
Country:
United States United States


View Profile WWW
« Reply #1 on: 10. January 2008, 10:19:58 »

It would be a great feature if Sobi2 could be integrated with Fireboard.
Logged

Free Joomla Templates - Themebot
HP Coupons & Lenovo Coupons - laptop deals for the wiser miser
Linux Compatibility - "Free your computer and your mouse will follow"
neo
SOBI2 Team Member
Globaler Moderator
Hero Member
*****

Development Team

Thanx from users: 327
Offline Offline

Reviews:

What is it?

Posts: 6630


OS:
Linux (Ubuntu)
Browser:
Firefox 2.0.0.11
Country:
Germany Germany


View Profile
« Reply #2 on: 10. January 2008, 20:01:08 »

There is already a discussions bot for fireboard.
It works with content and JEvent. Maybe the author will be also willing to implement it for SOBI2.
I think You should ask him.

Regards,
Neo
Logged

Do you want continued ongoing development, new features, and active support?
Your positive feedback is the part of the answer.
Please write a review for SOBI2 now: Extensions.Joomla.org - Sigsiu  Online Business Index 2 (S   ҉BI2)
It costs nothing but a little of your time, but it means a lot to us.
You can vote for all the add-ons you are using too.
Happy with SOBI2? Let us, and other Joomla users know about this. Write review or just vote for SOBI2.
kenmcd
Moderator
Hero Member
*****

SOBI Team Member

Thanx from users: 112
Offline Offline

Reviews:

What is it?

Posts: 1563

OS:
Windows XP
Browser:
Firefox 2.0.0.11
Country:
United States United States


View Profile
« Reply #3 on: 11. January 2008, 04:04:16 »

 
JED - ObjectClarity Fireboard Discussbot
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,3609/Itemid,35/
 
The DiscussBot developer added the JEvents support after some urging from a particular user.
Perhaps some requests regarding SOBI2 would help. Zwinkernd
The developers support forum:
http://www.objectclarity.com/index.php?option=com_fireboard&Itemid=30&func=showcat&catid=6
The Fireboard DiscussBot forum:
http://www.bestofjoomla.com/component/option,com_fireboard/Itemid,38/func,showcat/catid,16/


I took a short look at this, but do not know exactly how to do this.

In DiscussBot file fbdiscussbot.php:
Starting at Line 35 there is some code to limit which components are processed:
// Don't register the bot functions if we're not rendering a content item.
if ($_REQUEST['option'] == 'com_content'
      || $_REQUEST['option'] == 'com_frontpage'
      || $_REQUEST['option'] == 'com_events' ) {
   $_MAMBOTS->registerFunction( 'onPrepareContent', 'botfbDiscuss' );
   $_MAMBOTS->registerFunction( 'onAfterDisplayContent', 'botfbReadMore' );
}


I assume SOBI2 (com_sobi2) would need to be added here, like this:
// Don't register the bot functions if we're not rendering a content item.
if ($_REQUEST['option'] == 'com_content'
      || $_REQUEST['option'] == 'com_frontpage'
      || $_REQUEST['option'] == 'com_events' )
      || $_REQUEST['option'] == 'com_sobi2' ) {
   $_MAMBOTS->registerFunction( 'onPrepareContent', 'botfbDiscuss' );
   $_MAMBOTS->registerFunction( 'onAfterDisplayContent', 'botfbReadMore' );
}

 
Starting at Line 242 the content title, etc. is collected (for JEvents)
   // The following is an example integration using JEvents
   if ($_REQUEST['option'] == 'com_events' ) {
      // Make this appear to be a 'normal' content item by setting up the section, category, title and intro-text.
      //$row->catid = 1;     // Is already set by JEvents
      // $row->title = 'dummy';     // Is already set by JEvents
      $row->sectionid = 999;
      $row->introtext = $row->content;
   }


This is where I get lost.
It checks to see if the component is JEvents, and then pulls the needed info.
A section like this would need to be added for SOBI2 to pick-up the needed variables.

I think these are the only two things needed to add support for SOBI2!
Anyone able to duplicate this snippet for SOBI2?

Thanks.
 
KM


p.s. . . .
Also at Line 251 there is another note:
/* 
//    The following is useful when using this bot with components other than the Joomla Content and JEvents components.
   echo "<fieldset><legend>params</legend>";
   print_r($params);
   echo "</fieldset>";

   echo "<fieldset><legend>row</legend>";
   print_r($row);
   echo "</fieldset>";
*/

I know this is just a comment, but have no idea what this is about, or if needed at all.

 
Logged

50 SOBI2 Joomla Web Sites - New Publication Available Now - Free!
A showcase of 50 SOBI2 websites with screenshots and descriptions of add-ons used.
Direct download (22MB): 50-SOBI2-Joomla-Web-Sites.2008-11-10.CHM.zip
View online: www.sigsiu.net/50-sobi2-sites/index.html
undoIT
Gold Sponsor
Sr. Member
*

Thanx from users: 4
Offline Offline

Reviews:

What is it?

Posts: 177


OS:
Linux (Ubuntu)
Browser:
Firefox 2.0.0.11
Country:
United States United States


View Profile WWW
« Reply #4 on: 11. January 2008, 04:47:56 »

Thanks for checking it out Ken! I submitted requests at both of the forums. Looks like it might be simple and perhaps the maintainer could be persuaded to add support for this. There is obviously a lot of value for having Sobi2 compatibility.

http://www.objectclarity.com/index.php?option=com_fireboard&amp;Itemid=30&func=view&catid=6&id=270#270
http://www.bestofjoomla.com/component/option,com_fireboard/Itemid,38/func,view/catid,16/id,38446/#38446
Logged

Free Joomla Templates - Themebot
HP Coupons & Lenovo Coupons - laptop deals for the wiser miser
Linux Compatibility - "Free your computer and your mouse will follow"
Happy with SOBI2? Let us, and other Joomla users know about this. Write review or just vote for SOBI2.
kai920
Sponsor
Hero Member
*

Thanx from users: 27
Offline Offline

Reviews:

What is it?

Posts: 349

OS:
Windows Vista
Browser:
Firefox 2.0.0.12
Country:
Hong Kong Hong Kong


View Profile
« Reply #5 on: 03. March 2008, 08:19:26 »

Has any one (self-)debated on the pros & cons of Fireboard vs. Jomcomment for discussion of entries?
Logged

Useful Sobi2 links
1. Template Commands
2. F.A.Q.
   Other useful links
1. Firebug
2. Firebug
3. Firebug
undoIT
Gold Sponsor
Sr. Member
*

Thanx from users: 4
Offline Offline

Reviews:

What is it?

Posts: 177


OS:
Linux (Ubuntu)
Browser:
Firefox 2.0.0.12
Country:
United States United States


View Profile WWW
« Reply #6 on: 03. March 2008, 09:43:14 »

My debate has been sobi2 reviews plugin vs. fireboard discussbot (once it is made compatible for sobi2). I'd like to get more discussions going in the forums, but I like how sobi2 reviews sends and email to the person who created the listing to let them know that there was a comment on their listing. Does jomcomment integrate with sobi2?
Logged

Free Joomla Templates - Themebot
HP Coupons & Lenovo Coupons - laptop deals for the wiser miser
Linux Compatibility - "Free your computer and your mouse will follow"
Happy with SOBI2? Let us, and other Joomla users know about this. Write review or just vote for SOBI2.
kai920
Sponsor
Hero Member
*

Thanx from users: 27
Offline Offline

Reviews:

What is it?

Posts: 349

OS:
Windows Vista
Browser:
Firefox 2.0.0.12
Country:
Hong Kong Hong Kong


View Profile
« Reply #7 on: 03. March 2008, 11:08:27 »

Does jomcomment integrate with sobi2?

Almost there -> LINK

but I like how sobi2 reviews sends and email to the person who created the listing to let them know that there was a comment on their listing.

Jomcomment has this feature as well, I think it should work without any hacks.

My debate has been sobi2 reviews plugin vs. fireboard discussbot (once it is made compatible for sobi2). I'd like to get more discussions going in the forums,

What options will the fireboard discussbot have? Does it create a new forum thread for each SOBI2 entry? Can it point all sobi2 entries in a certain category to a specific forum category on fireboard? The discussbot seems to be working at this site, assuming that is indeed a bot.

Thinking about sobi2 reviews plugin (rp) vs. jomcomment (jc)...
  • jc looks like it has more options, but i haven't used rp enough to be sure
  • rp obviously has the 5-star rating system which jc doesn't have. i just wish there is something compatible with sobi2 that can review multiple criteria.
  • rp has built in option to allow users to only submit one review. jc would need a hack of some sort to allow only one comment
Logged

Useful Sobi2 links
1. Template Commands
2. F.A.Q.
   Other useful links
1. Firebug
2. Firebug
3. Firebug
undoIT
Gold Sponsor
Sr. Member
*

Thanx from users: 4
Offline Offline

Reviews:

What is it?

Posts: 177


OS:
Linux (Ubuntu)
Browser:
Firefox 2.0.0.12
Country:
United States United States


View Profile WWW
« Reply #8 on: 03. March 2008, 20:21:04 »

The thing I really like about the sobi2 reviews plugin, is that it will send notification to the author of a listing when a review is left, regardless of whether they created a comment or a forum post. I am using sobi2 more as a download repository, so it is useful to have authors notified when there are comments on their listing.

However, there is no way for the author of a listing to turn this off. Also, the review plugin still sends out the notification email even if I set reviews to be moderated before being published. This might become a problem if the listings start getting spammed. I've already seen a bit of spam and I don't want to annoy the members of my site with the spam comments in their email. I wish it would only send out the email notification once the review has been published. I'd also like to see the Vote count next to the stars. Probably should submit these as feature requests. I just don't want to overwhelm the developers with all of my feature requests 

I'm thinking about integrating the discussbot in addition to the reviews plugin. Since I already have a forum anyways, I'd rather use the discussbot than add another component. It integrates users' forum avatar and looks really good. Here is a list of the features with discussbot:

http://www.objectclarity.com/index.php?option=com_content&task=view&id=22&Itemid=46

So, there is 5 star rating and email notification to author provided by the review plugin. And then there is the option for more lengthy discussions in the forums by members with the discussbot (when it is made compatible with sobi2). Actually, I'd be just fine with the review plugin only for sobi2 if it were improved some and could maybe integrate with either fireboard or community builder for displaying avatars etc.
Logged

Free Joomla Templates - Themebot
HP Coupons & Lenovo Coupons - laptop deals for the wiser miser
Linux Compatibility - "Free your computer and your mouse will follow"
infoman
Newbie
*

Thanx from users: 1
Offline Offline

Reviews:

What is it?

Posts: 6


OS:
Windows XP
Browser:
Firefox 3.0.2
Country:
Russian Federation Russian Federation


View Profile
« Reply #9 on: 30. September 2008, 04:35:32 »

Big hi from Russia
im russ hacker (joomla hack)

it's work!

in componentscom_fireboardtemplatedefaultpost.php (условие если запрос пришел из  компонента sobi2 то меняем 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("/\'/"'&#38;#039;'$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 componentscom_sobi2templatesdefaultsobi2.details.tmpl.php здесь добавляем параметры необходимые для инициализации бота:

<?
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 здесь вносим несколько изменений ищите строки:

741 строка - если это sobi2 то меняем 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 строка добовляем правило && $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 строка добавляем параметр &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 ); 
you may download file change and Screenshot on page of our forum http://avlab.ru/component/option,com_fireboard/Itemid,78/func,view/id,23/catid,5/
Logged

www.AvLab.ru web-studio
Pages: [1] 2   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP
Powered by SMF 1.1.4 | SMF © 2006, Simple Machines LLC
Valid XHTML 1.0! Valid CSS!
Google visited last this page Today at 05:15:30
Page created in 0.283 seconds with 29 queries.
Impressum | Imprint | AGB | Terms