News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Discussbot version 4.1 final (released 11-28-05)

Started by chadness, November 29, 2005, 01:32:16 AM

Previous topic - Next topic

c2h5oh

"The day Microsoft makes something that does not suck is probably the day they start making vacuum cleaners"

komma

Hello, thanks to all.

After lots of hours finally i got it working.

Now there is only a little thing:

If there is an article without posts and i click the discussbot link, the forum appears unwrapped. After going back to the article (using the browsers backbutton) and click the link again, everything is fine and it forwards to th wrapped forum.

Does anybody know this problem and is there any workaround for it?

Praedator

#222
Due to the lastest Joomla! Release (Version 1.0.10) it could happen by using "user modules" that the discussionbot also add a link an those modules, to avoid this you need to add in the function MOSBOT_add_smfforumlink()  after the   


if (strpos($row->text,"{mos_smf_discuss:") === false && $default_discuss == "") {
       // No - just leave
       return;
}


this


// Since Joomla! 1.0.10 also module can effect Bots, to avoid just return if it is a module.
if (@$row->content){
       return;
}


This is not a Joomla! Bug it is a feature ;)
Predator

- Time is a created thing. To say, "I don't have time" is like saying "I don't want to."
- Lao-Tzu......

chadness


lemonlime

#224
Hello, I'm having some trouble getting the discussbot to work properly on my site. I'd really appreciate some assistance. It looks like an awesome bot that I'd love to get working  :)

I have:
Joomla 1.0.10
SMF 1.1 RC2
Orstio's Bridge 1.1.4
discussbot beta 4.1b5

The bridge is working perfectly (awesome piece of work ;)) but I've encountered two problems with the discussbot. I followed all instructions I could find (including the 1.0.10 compatibility fix listed above). I added all necessary template code. I also included the >1.0.9 compatibility code for the bridge (bridge is working great and I tested it thoroughly). Compression is turned off in SMF and Joomla.

Problem #1:
When I click on the (0) or the icon for discussion, the url appears to be invalid. It prepends an 'http:' to the beginning of the url, rendering it invalid. so it becomes something like 'http:http//www.sitename.com [nofollow]'. I have corrected the problem by using the SEF.PHP file from Joomla 1.0.7, but I wanted to see if there is a 'proper' fix for this using Joomla 1.0.10. I am not using SEF urls. Any ideas on this one?

Problem #2: Upon clicking the discussion link, I am greeted in SMF with the following message: 'The topic or board you are looking for appears to be either missing or off limits to you.' I did notice that my forum post count increments and I was able to verify that there is indeed posts added to the mysql database (I see them in phpMysqlAdmin). The board name I used is valid. The posts do not appear anywhere in the forum even though they appear to be in the database. Guests do have access to this board. Could this problem be due to the SEF.php I copied from Joomla 1.0.7? Kind of confused on this one..

I'd really appreciate any assistance you could offer, the functionality that discussbot offers is just what I am looking for. Site url is www.theiojournal.com [nofollow] if you'd like to see it first hand (its a pretty fresh install with the default templates etc).

Thanks very much for your time.

EDIT: When I run SMF forum maintenance, it does find all of those ghost posts, with board ID '0' and dumps them in a 'salvage' section for bad posts.. very odd.. Any ideas how to fix this?

jucream

Hello,

I am running Joomla 1.0.10
Discuss Bot: 4.1 beta 4
SMF Bridge: 1.1.4
SMF Forums: 1.1RC2
at the site: hxxp:www.collaborativeproject.org/index.php [nonactive]

If I try to use the Discuss Bot 4.1 final I get nothing by a white screen when I go to the site.

Using 4.1 beta 4 (which I am currently using) I get the link at the bottom of the article no Problem, but if I click on it I get: hxxp:www.collaborativeproject.org/http:/ [nonactive]/www.collaborativeproject.org/index.php?option=com_smf&Itemid=5

which leads to a 404 error.  I have changed all the necessary code for the discuss bot and bridge and the bridge is working completly fine. 

Any ideas on what may be causing this???

Thank you in advance for your help;

Justin

lemonlime

Quote from: jucream on July 05, 2006, 04:03:56 PM
Hello,

I am running Joomla 1.0.10
Discuss Bot: 4.1 beta 4
SMF Bridge: 1.1.4
SMF Forums: 1.1RC2
at the site: www.collaborativeproject.org/index.php [nofollow]

If I try to use the Discuss Bot 4.1 final I get nothing by a white screen when I go to the site.

Using 4.1 beta 4 (which I am currently using) I get the link at the bottom of the article no Problem, but if I click on it I get: http://www.collaborativeproject.org/http:/ [nofollow]/www.collaborativeproject.org/index.php?option=com_smf&Itemid=5

which leads to a 404 error.  I have changed all the necessary code for the discuss bot and bridge and the bridge is working completly fine. 

Any ideas on what may be causing this???

Thank you in advance for your help;

Justin

Hi there, I have the same versions as you and am having similar problems (see the message just before yours). I was able to correct the url prepend issue by replacing SEF.php with the one from Joomla 1.0.7. It fixed that issue, but I get some weird 'ghost posting' in SMF as a result. I'm hoping that there is a 'proper' fix to get the discussbot working in Joomla 1.0.10.

I'm curious if using the SEF.php from 1.0.7 will lead to similar issues in your situation.

Good luck

Mongoose

To solve this problem find this code in smf.discussbot.php:
    if ($discuss_reply == 2) {
        $link_string = '<a class="link_pos" href="'.$myurl . sefRelToAbs($mosConfig_sef ? 'action=post&amp;topic,' : '&amp;action=post&amp;topic=');
    } else {
        $link_string = '<a class="link_pos" href="'.$myurl . sefRelToAbs(($mosConfig_sef ? 'topic,' : '&amp;topic=') . $resultid . '.' . $smf_location) . '">';
    }

and change it to...
    if ($discuss_reply == 2) {
        $link_string = '<a class="link_pos" href="' . sefRelToAbs($mosConfig_sef ? $myurl . 'action=post&amp;topic,' : $myurl . '&amp;action=post&amp;topic=');
    } else {
        $link_string = '<a class="link_pos" href="' . sefRelToAbs(($mosConfig_sef ? $myurl . 'topic,' : $myurl . '&amp;topic=') . $resultid . '.' . $smf_location) . '">';
    }

jucream

Mongoose -

I couldnt find this code, only thing close I could find is:

if ($discuss_reply == 2) {
                $showlink .= '<a class="link_pos" href="'.$myurl . sefRelToAbs(($mosConfig_sef ? 'action=post&amp;topic,' : '&amp;action=post&amp;topic=') . $resultid . '.' . $smf_location) . '"><img border="0" src="'.$discuss_image.'" /> ('.$replies.') '.$link_text.'</a>';
                    } else {
                $showlink .= '<a class="link_pos" href="'.$myurl . sefRelToAbs(($mosConfig_sef ? 'topic,' : '&amp;topic=') . $resultid . '.' . $smf_location) . '"><img border="0" src="'.$discuss_image.'" /> ('.$replies.') '.$link_text.'</a>';
            }   
       } else {
                    if ($discuss_reply == 2) {
               $showlink .= '<a class="link_pos" href="'.$myurl . sefRelToAbs(($mosConfig_sef ? 'action=post&amp;topic,' : '&amp;action=post&amp;topic=') . $resultid . '.' . $smf_location) . '"> ('.$replies.') '.$link_text.'</a>';
                    } else {
               $showlink .= '<a class="link_pos" href="'.$myurl . sefRelToAbs(($mosConfig_sef ? 'topic,' : '&amp;topic=') . $resultid . '.' . $smf_location) . '"> ('.$replies.') '.$link_text.'</a>';
            }   
               }
               $showlink .= '<br />';
            }



Is this the same? (Sorry PHP isn't quite my thing, so unless it matches perfectly I am hesistant to change anything).

Thank you for your help.
Justin

Mongoose

#229
Yes. You have another version of discussbot, not the 4.1 final.
Try to change it to:

if ($discuss_reply == 2) {
                $showlink .= '<a class="link_pos" href="'. sefRelToAbs(($mosConfig_sef ? $myurl . 'action=post&amp;topic,' : $myurl . '&amp;action=post&amp;topic=') . $resultid . '.' . $smf_location) . '"><img border="0" src="'.$discuss_image.'" /> ('.$replies.') '.$link_text.'</a>';
                    } else {
                $showlink .= '<a class="link_pos" href="'. sefRelToAbs(($mosConfig_sef ? $myurl . 'topic,' : $myurl . '&amp;topic=') . $resultid . '.' . $smf_location) . '"><img border="0" src="'.$discuss_image.'" /> ('.$replies.') '.$link_text.'</a>';
            }   
       } else {
                    if ($discuss_reply == 2) {
               $showlink .= '<a class="link_pos" href="' . sefRelToAbs(($mosConfig_sef ? $myurl . 'action=post&amp;topic,' : $myurl . '&amp;action=post&amp;topic=') . $resultid . '.' . $smf_location) . '"> ('.$replies.') '.$link_text.'</a>';
                    } else {
               $showlink .= '<a class="link_pos" href="' . sefRelToAbs(($mosConfig_sef ? $myurl . 'topic,' : $myurl . '&amp;topic=') . $resultid . '.' . $smf_location) . '"> ('.$replies.') '.$link_text.'</a>';
            }   
               }
               $showlink .= '<br />';
            }

lemonlime

Hi Mongoose,

Thanks very much for your suggestion, however replacing that code did not change the behavior in discussbot with Joomla 1.0.10. I just upgraded to version 1.1.5 of the bridge as well, and this issue still persists. Any other  suggestions?

jucream

That created a blank screen on mine when I went to the homepage. Maybe Ill try moving to 4.1 final and applying the change you mentioned previous to see what results I get.

Thanks for your help, look forward to any other suggestions you may have to get me and lemonline unstuck!

Justin

lordmenace

I am running
SMF 1.1rc2
Orstio's Bridge 3.19
Joomla! 1.0.8

I had SMF and Joomla! in the same database in the beginning and everything worked fine. Then there was an issue because together, they were taking up space on the database (I only have 100mb) So to save space, I moved them into different databases. Now, that they are in different databases, the bridge works fine, but whenerv I click a link I get:

QuoteThe topic or board you are looking for appears to be either missing or off limits to you.

Guests have access to post replies in my board. What happened? I have the same issue as the last user. Thanks in advance.

jucream

I had that problem at some point when I had an earlier version working.  Try directing the {mos_smf_discuss:Board Name} to a different board and see if that fixes your problem in one of your content items.  Other than that, only thing I could think of is to make sure that the mambot for your smf.discuss reflects the new database if you used that prior (name and suffix).

Justin

Kindred

try using the right version of the bridge?
Quote from: lordmenace on July 07, 2006, 06:44:14 PM
I am running
SMF 1.1rc2
Orstio's Bridge 3.19
Joomla! 1.0.8

You should be using bridge v1.1.5 with SMF 1.1rc2. I don't even know how you got 3.19a workign properly with smf 1.1
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

iqapps

Hi

It's somebody wich fix this problem...I have exact same problem..I tryed all fixes in this topic but no luck.

Q. Package/File smf[1][1].discussbot.4.1b5 and smf[1].discussbot.4.1b5 what is difference? One package "working" om my site but another get many sql errors!
In both files is folowing  * @version $ID: smf.discussbot.php 4.1 beta 4 2005-10-17 chadness $
Is this beta5 or beta4?

Quote from: lemonlime on July 05, 2006, 07:53:04 PM
Quote from: jucream on July 05, 2006, 04:03:56 PM
Hello,

I am running Joomla 1.0.10
Discuss Bot: 4.1 beta 4
SMF Bridge: 1.1.4
SMF Forums: 1.1RC2
at the site: www.collaborativeproject.org/index.php

If I try to use the Discuss Bot 4.1 final I get nothing by a white screen when I go to the site.

Using 4.1 beta 4 (which I am currently using) I get the link at the bottom of the article no Problem, but if I click on it I get: http://www.collaborativeproject.org/http://www.collaborativeproject.org/index.php?option=com_smf&Itemid=5

which leads to a 404 error.  I have changed all the necessary code for the discuss bot and bridge and the bridge is working completly fine. 

Any ideas on what may be causing this???

Thank you in advance for your help;

Justin

Hi there, I have the same versions as you and am having similar problems (see the message just before yours). I was able to correct the url prepend issue by replacing SEF.php with the one from Joomla 1.0.7. It fixed that issue, but I get some weird 'ghost posting' in SMF as a result. I'm hoping that there is a 'proper' fix to get the discussbot working in Joomla 1.0.10.

I'm curious if using the SEF.php from 1.0.7 will lead to similar issues in your situation.

Good luck

lordmenace

Quote from: Kindred on July 07, 2006, 07:46:54 PM
try using the right version of the bridge?
Quote from: lordmenace on July 07, 2006, 06:44:14 PM
I am running
SMF 1.1rc2
Orstio's Bridge 3.19
Joomla! 1.0.8

You should be using bridge v1.1.5 with SMF 1.1rc2. I don't even know how you got 3.19a workign properly with smf 1.1

I see everyone talking about a 1.1.5 bridge, what is that? I only know of 1 bridge and that is Orstio's bridge it is on version 3.19 for 1.1rc2, thag is the one I'm using.

Kindred

no. 3.19a_stable is for the 1.0.x series of SMF
3.19a_for1.1 is for 1.1rc1 and previous

3.20 (1.1.1), v1.1.2, v1.1.3, v1.1.4 and v1.1.5 have been released for SMF 1.1RC2.

1.1.5 is the current bridge for 1.1RC2. if you are running 1.1RC2, you should be using bridge 1.1.5 (attached to the first post in the 1.1.5 thread in this board.)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

audioindonesia

Chad, I believe this bot will very usefull for my site, so I Installed it, but it came up when I accessing my site:

QuoteWarning: main(/SSI.php) [function.main]: failed to open stream: No such file or directory in /home/audioind/public_html/mambots/content/smf.discussbot.php on line 32

Fatal error: main() [function.require]: Failed opening required '/SSI.php' (include_path='.:/usr/lib/php') in /home/audioind/public_html/mambots/content/smf.discussbot.php on line 32

I'm using Joomla 1.0.8, Bridge 1.1.5 and CB 1.0

What's wrong?And How To Fix This? Thx


Advertisement: