Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Mambo Bridge Support => Topic started by: chadness on November 29, 2005, 01:32:16 AM

Title: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on November 29, 2005, 01:32:16 AM
OK, I think I've done what I can do for this version.

Here's what was added (aside from some little code improvements):

Description available here. (http://www.technoadvice.com/component/remository/Download/Joomla-and-Mambo/SMF-Discussbot-version-4.1-final/)

Download available here. (http://www.technoadvice.com/component/remository/download/5/chk,eebfb46c1696e4d8786a6c3269e2ffc6/)

I tried this out with the Joomlahacks version, and it seemed to work OK, but I had some little errors whether or not I had this installed, so it wasn't perfect.  I'd appreciate someone else testing this.

And, finally, for those just tuning in, what this is:
The purpose of this is to have discussions connected to your content items.  What it does is put a link in your article that will bring the user to a forum post for that specific article in the board you specified.  If the forum post doesn't exist yet, it will create it.

Usage : {mos_smf_discuss:Board Name} into any content item. Of course, replace "Board Name" with the actual name of the board in which you wish for the discussion to take place.

Other features include:
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: torkil on November 29, 2005, 02:44:26 AM
Great! Will it overwrite my old settings when I install it?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: hshan on November 29, 2005, 07:08:13 AM
Thanks Chadness for your work on this. This is a very useful mosbot (josbot) with great parameters. Great work!
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on November 29, 2005, 10:01:02 AM
Quote from: torkil on November 29, 2005, 02:44:26 AM
Great! Will it overwrite my old settings when I install it?
If you uninstall the old one, it erases your settings.  Just upload the new files over the old ones, and then go in to the mambot parameters and save them, and it will still have your old settings. 

The only new setting is for the "singular" post text, and I deliberately made it so that if that was blank, it would fall back to using the old link text parameter, so there wouldn't be any changes to people's configuration.

And, thanks hshan.  :)
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: LortGob on November 30, 2005, 11:31:36 AM
Quote from: chadness on November 29, 2005, 01:32:16 AM
I tried this out with the Joomlahacks version, and it seemed to work OK, but I had some little errors whether or not I had this installed, so it wasn't perfect.  I'd appreciate someone else testing this.

I just tried it and can confirm that it works! I however got some errors on the bottom of every page associated with news:

Quote
Databasefailure: No Database Selected
File: /nfs/home/energieportal/html/energieportal.nl/forum/Sources/Load.php
Line: 1877
Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0

I'm using Joomla 1.0.4, SMF 1.1 RC1 and the Joomlahacks bridge.

Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: LortGob on November 30, 2005, 12:15:25 PM
I've tested some more and that raised some questions ;)

- The post generated on the forum doesn't accurately take over the layout from the newspost. I guess this has something to do with the layout I use.

While this is minor, something else is more urgent. When there is more than one comment on the post, the newspage will not load properly anymore. It only seems to appear when you open the full post, this is the error:

Quote
Databasefout: No Database Selected
Bestand: /nfs/home/energieportal/html/energieportal.nl/forum/Sources/Subs.php
Regel: 2305Databasefout: No Database Selected
Bestand: /nfs/home/energieportal/html/energieportal.nl/forum/Sources/Load.php
Regel: 1877
Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0

Looks quite like the error I posted above, still haven't found a way to solve it.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on November 30, 2005, 12:30:55 PM
Quote from: LortGob on November 30, 2005, 12:15:25 PM
- The post generated on the forum doesn't accurately take over the layout from the newspost. I guess this has something to do with the layout I use.
Probably - you might need to play with the CSS more.

Quote
While this is minor, something else is more urgent. When there is more than one comment on the post, the newspage will not load properly anymore. It only seems to appear when you open the full post, this is the error:

Quote
Databasefout: No Database Selected
Bestand: /nfs/home/energieportal/html/energieportal.nl/forum/Sources/Subs.php
Regel: 2305Databasefout: No Database Selected
Bestand: /nfs/home/energieportal/html/energieportal.nl/forum/Sources/Load.php
Regel: 1877
Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0

Looks quite like the error I posted above, still haven't found a way to solve it.
I saw errors similar to those that seemed to go away on their own.  I might need to start over from scratch again with another joomlhacks install and see if I can nail that down.  Please let me know if it continues to do so?  You might try different discussbot settings and see if something sets it off.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: LortGob on November 30, 2005, 01:10:59 PM
Quote from: chadness on November 30, 2005, 12:30:55 PM
Probably - you might need to play with the CSS more.

The forum is 100% standard except for a Dutch language module so that is correct ;)

Quote
I saw errors similar to those that seemed to go away on their own.  I might need to start over from scratch again with another joomlhacks install and see if I can nail that down.  Please let me know if it continues to do so?  You might try different discussbot settings and see if something sets it off.

I played around but nothing seems to change. When I tried to change settings I once got the following error:

Quote
Fatal error: session_start(): Failed to initialize storage module: user (path: /nfs/sessions) in /nfs/home/energieportal/html/energieportal.nl/administrator/index2.php on line 34

I'm not sure where that comes from, didn't occur earlier and doesn't happen again under the same circumstances.
Unpublishing the mod solves the fatal error when I try to view news, but doesn't solve the error on the bottom of the page.

Looks like someone on this forum already encountered the same error btw:
http://www.simplemachines.org/community/index.php?topic=57753.msg402244
My German is kinda rusty, but it looks like they found a solution to fix the session or something.

Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: jorgen on November 30, 2005, 03:12:32 PM
A really cool bot, Chad!   ;D

But I didnt like the white background on the discuss.gif image. So I made it transparent. (http://www.inventorforum.net/mambots/content/discuss.gif)
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: jorgen on November 30, 2005, 03:21:22 PM
First question:
If I define a "(Optional) Custom text for link to forum with no posts", this only shows up in the article, not on the frontpage.
On the frontpage I see the default text.

Did I just find a bug or is this as designed?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on November 30, 2005, 03:33:18 PM
The codes the same either way.  Might be a bug, though it's working fine for me.  Do you have somewhere I can see that in action?

[edit]
Looks like it's working OK here - http://www.inventorforum.net/index.php - I can see the different message for 0 posts on the front page.  Maybe your browser had it cached from before you added that?
[/edit]
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on November 30, 2005, 03:40:30 PM
Quote from: jorgen on November 30, 2005, 03:12:32 PM
A really cool bot, Chad!   ;D

But I didnt like the white background on the discuss.gif image. So I made it transparent. (http://www.inventorforum.net/mambots/content/discuss.gif)

Good idea.  Mind if I use that in future releases?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: jorgen on November 30, 2005, 03:51:52 PM
Ehhhh. You're right. Must have been the cache. Working fine now   :-[

Of course anyone may use my modified discuss-picture! Thats why I posted it.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: jorgen on November 30, 2005, 04:04:54 PM
I'm having one more problem which I could not figure out.

When viewing formatted posts under an article, like this:
http://www.inventorforum.net/index.php?option=com_content&task=view&id=142&Itemid=2

I get an error saying

QuoteWarning: htmlentities(): charset `ANSI_X3.4-1968' not supported, assuming iso-8859-1 in /home/jorgen/public_html/mambots/content/geshi/geshi.php on line 1608

Warning: htmlentities(): charset `ANSI_X3.4-1968' not supported, assuming iso-8859-1 in /home/jorgen/public_html/mambots/content/geshi/geshi.php on line 1608

Warning: htmlentities(): charset `ANSI_X3.4-1968' not supported, assuming iso-8859-1 in /home/jorgen/public_html/mambots/content/geshi/geshi.php on line 1903

Warning: htmlentities(): charset `ANSI_X3.4-1968' not supported, assuming iso-8859-1 in /home/jorgen/public_html/mambots/content/geshi/geshi.php on line 1905

Is this some problem with the configuration on my web-server, or can I hack some file to make it better?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on November 30, 2005, 04:36:42 PM
Hmmm...geshi.php is the code highlighter built in to Mambo.  I wonder if it's having a problem with the code tags being brought over from the forums, combined with your sites character encoding?

A test you might try is embedding code in a normal content item, like a news article, and see if you have the same problem.

One thing that might help with this is to download the whole geshi package from http://qbnz.com/highlighter/ and upload various files to the geshi folder, \mambots\content\geshi\geshi - I'm not sure exactly what you would need, though.
(got that info from here http://help.mamboserver.com/index.php?option=com_content&task=view&id=683&Itemid=124 )

Digging a little more, I see this error elsewhere with geshi and ANSI_X3.4-1968.  ANSI_X3.4-1968 (essentially ASCII) is basically a locale or character set that is the default for if a program doesn't have whatever one you should be loading.  Beyond that I don't know much :)

Also, I don't know if it's siginifcant, but I don't see the error on that page in IE, only in Firefox.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: jorgen on November 30, 2005, 04:50:06 PM
Spot on, Chadness!

I replaced geshi.php with the one from the Geshi 1075 (http://sourceforge.net/project/showfiles.php?group_id=114997&package_id=124605&release_id=373158), and the problem dissapeared!

Thanks for your help  8)
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on November 30, 2005, 04:54:25 PM
Great!  I'll quit digging :)
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: LortGob on November 30, 2005, 05:00:10 PM
Quote from: jorgen on November 30, 2005, 03:12:32 PM
A really cool bot, Chad!   ;D
But I didnt like the white background on the discuss.gif image. So I made it transparent. (http://www.inventorforum.net/mambots/content/discuss.gif)

Heh, I didn't like the button as well but I just changed it in the reply button from SMF :)
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on November 30, 2005, 05:13:47 PM
Good idea.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: LortGob on November 30, 2005, 05:23:00 PM
After some searching without answers, the only thing that did really solve my errors (was getting some nasty fatals while logged in both in the front end and as admin as well) was deinstalling the discussbot.

I'll be trying to find a solution tho as I really would like to use this bot!

I could try the other bridge but still....this one works right now, so why change it? ;)
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on November 30, 2005, 05:29:22 PM
Quote from: LortGob on November 30, 2005, 05:23:00 PM
I could try the other bridge but still....this one works right now, so why change it? ;)
To use this discussbot?  ;)

Seriously, cowboy had said he was working on a discussbot that should do all of the same stuff.  You could check over there and see how he is coming.  I had pointed him to this one to use as a base.  If I could figure out what would make it work reliably, I'd try to make it compatible with both.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: LortGob on December 01, 2005, 04:54:14 AM
Yeah, but I don't want to wait so I'll keep trying until I get it working ;)
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: yellow1912 on December 01, 2005, 10:44:55 PM
What does it mean "The ability to automatically add links to all articles"? Sorry Im just kind of confused. Can it automatically add an article on the front page when a new thread posted on the board yet?

Thanks for your great job
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on December 02, 2005, 01:31:18 AM
Quote from: yellow1912 on December 01, 2005, 10:44:55 PM
What does it mean "The ability to automatically add links to all articles"? Sorry Im just kind of confused. Can it automatically add an article on the front page when a new thread posted on the board yet?
No, it's from Joomla to SMF.  It's the "Default discussion board" part - it adds a link to the forum from all of your Joomla content articles.

Quote
Thanks for your great job
Glad to help!
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chanh on December 02, 2005, 01:58:51 PM
This latest bot work very well!  However I have a question when I click on the link to do the discuss of the article it brings me to the forum and already created the post with "0" in the post.

Can it be setup so that I will let me enter something before I decide to post rather than the bot post "0" for my post?

Thanks
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on December 02, 2005, 02:04:01 PM
The simple answer is, yes.  Look for the option, "Would you like the discussion link to automatically start a reply, instead of viewing the topic?"  It can put you directly in to a reply, instead of automatically creating a post, by choosing either of the options "1st post only" or "Always".

I'm not sure where the "0" is coming from, though.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chanh on December 02, 2005, 02:12:08 PM
That works! 

Now it would be nice to get rid of that "0" in the message when I click on the link to post a message.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on December 02, 2005, 02:16:29 PM
What do you have in the field, "Custom text for link back to article from forum"?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chanh on December 02, 2005, 02:37:47 PM
This is what I have in that field: "Discuss this article on the forums."

Thanks
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on December 02, 2005, 02:49:20 PM
Really?  Are you sure that's not what you have in, "Default custom text for link to forum from an article"?  That is the text that shows up in your Joomla content to point to the forum.

"Custom text for link back to article from forum" should be the message that is put in the top of the forum post, that gives a link back to the Joomla article, so it should be something more along the lines of, "Read the orignal article."
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chanh on December 02, 2005, 02:55:03 PM
Default custom text for link to forum from an article: Discuss this article on the forums.

I copy and paste from my setup.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on December 02, 2005, 03:00:36 PM
OK, so please confirm for me what is in "Custom text for link back to article from forum"?  Do you have "Discuss this article on the forums." there, too?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chanh on December 02, 2005, 03:02:22 PM
This is what it shows on the article:
(0) Discuss this article on the forums.

Thanks


Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on December 02, 2005, 03:33:46 PM
No, what I'm looking for is in your Joomla administration, in the Mambot setting for the discussbot, what do you have written in the field for "Custom text for link back to article from forum".  The reason I'm wondering this is if you have "0" written in there, it will post that when you start a new article.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chanh on December 02, 2005, 03:36:43 PM
This is what I have in my Mambo setup screen:

Default custom text for link to forum from an article: Discuss this article on the forums.

Is this not what you are asking?

Thanks
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on December 02, 2005, 03:40:13 PM
No, I am asking for:
Custom text for link back to article from forum

What you keep telling me is:
Default custom text for link to forum from an article

See how the two are different?
"Custom text for link back to article from forum" is the one I want to know.  It should be 3 options below the one you are looking at.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chanh on December 02, 2005, 03:46:22 PM
Oh, I am sorry!  They are just look alike.

To answer your question there is nothing in there.

Thanks
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on December 02, 2005, 03:51:58 PM
No problem. :)

That's strange, with that blank, when you do the first post, it should put a full HTML link back to your article, and a quote of the first 700 characters (by default).  What does yours show?  Do you have a link to an example I could see?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chanh on December 02, 2005, 03:58:32 PM
Here is the link:
http://chanh.opensourcecms.com/mos/index.php?option=com_content&task=view&id=20&Itemid=42
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on December 02, 2005, 04:03:25 PM
Could you please create a test account for me so I can try creating an article?  You can PM me the info.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: jorgen on December 02, 2005, 04:28:46 PM
Chadness,

I love your enhanced discussbot. It has done wonders for my web-page. But do you want some suggestions for the next version?

1) When defining an "Custom text for link to forum with no posts", the "(0)" is often redundant, because the meaning might be implemented in the text. Could we make the post-count optional for that special case?

2) To make it easy for a user to start a discussion, I'd like to see the quick reply box in an article even if there is no comments yet. If a user enters a comment in the quick reply box, it would be appropriate to transfer the reply to the forum and show a preview of the reply. This will allow the user to edit the quote from the article before posting.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on December 02, 2005, 04:29:57 PM
OK, my best guess is that the problem with only a "0" showing up on the initial post is a Mambo 4.5.3 problem.  I'll have to install it myself to test.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on December 02, 2005, 04:34:49 PM
Quote from: jorgen on December 02, 2005, 04:28:46 PM
Chadness,

I love your enhanced discussbot. It has done wonders for my web-page. But do you want some suggestions for the next version?

1) When defining an "Custom text for link to forum with no posts", the "(0)" is often redundant, because the meaning might be implemented in the text. Could we make the post-count optional for that special case?

2) To make it easy for a user to start a discussion, I'd like to see the quick reply box in an article even if there is no comments yet. If a user enters a comment in the quick reply box, it would be appropriate to transfer the reply to the forum and show a preview of the reply. This will allow the user to edit the quote from the article before posting.

Great ideas!  As far as #1 goes, I was also thinking about making the parentheses around the number of posts optional, in case someone would prefer -4- or <===4===> or just plain 4.

For #2, if the option for taking someone to a reply instead of the forum thread is set to "no", I could probably have it make the initial post, and then a seperate 2nd post.  Hmmmm....intriguing.

I have another project I want to work on for a bit, but these are good ideas for a 4.2.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chanh on December 02, 2005, 04:36:42 PM
I just took out the from "Default custom text for link to forum from an article:" and put it in "Custom text for link back to article from forum
" and now I got just (0) instead of like before that I got the whole line of text: "(0) Discuss this article on the forums."

What am I missing?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on December 02, 2005, 04:40:42 PM
"Default custom text for link to forum from an article:" is where you want that text.  That is what shows up after the (0).

"Custom text for link back to article from forum" is where you would put text that will be posted in the SMF thread that is created that will link back to the Mambo content article.  However, for you, it is currently unimportant, since that information isn't making it over to SMF.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chanh on December 02, 2005, 04:42:58 PM
Ok, I got it now!

Thanks
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: jorgen on December 03, 2005, 07:12:32 PM
Chadness: It seems that when replying with the quick reply-box, the bot will not prefix RE: (should be customizable because of language).
Or am I missing something?  This should not happen in the first post, but in all subsequent posts.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on December 04, 2005, 08:44:48 PM
I hadn't noticed that.  I'm not at my regular computer with a version I can look at, but I suspect that would be right.  I'll have to fix that - easy enough.  I was actually thinking about putting in a subject option in the quick reply that defaults to the regular subject.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on December 04, 2005, 08:47:48 PM
Quote from: chadness on December 02, 2005, 04:29:57 PM
OK, my best guess is that the problem with only a "0" showing up on the initial post is a Mambo 4.5.3 problem.  I'll have to install it myself to test.
I haven't tested this, but I'm guessing this would fix that problem:
http://www.simplemachines.org/community/index.php?topic=59205.msg411146#msg411146
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: torkil on December 07, 2005, 02:31:37 PM
Hohoi! Found a bug!

I have been testing the bot and I'm ready to launch pretty soon, so I have deleted all the old testing discussions I made. Well: In SMF I have enabled the recycle bin, so the threads end up in the recycle bin forum. BUT: The discussbot is still showing that recycled discussion underneath my article!! :D

So: The DB query that locates the proper forum thread must take into account that the thread is not put in the recycle bin :) I think you first need to find out what board_id the recycle bin has, and the exclude that board from the select statement. Just a guess though.

Not a major bug though, I'll just clean out my recycle bin ;)
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on December 07, 2005, 03:37:12 PM
Thanks, torkil, I'll have to check that out!
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: digiSal on December 09, 2005, 01:51:29 PM
Two questions:

1. When does the Quick Reply Box supposed to show up? It showed up a few times because i posted about it before and shortly after i posted before the box showed up.

2. I was under the impression that if i have the default discussion set to Forum1 and then when I wrote and article and put {mos_smf_discuss:Forum2} it would post that article in Forum2 and not the default Forum1?

nonlive site is at

www.digisal.com/jl/

test/testing
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on December 09, 2005, 04:46:45 PM
Quote from: digiSal on December 09, 2005, 01:51:29 PM
Two questions:

1. When does the Quick Reply Box supposed to show up? It showed up a few times because i posted about it before and shortly after i posted before the box showed up.
It shows up only if there is at least one post besides the initial post (if the initial post is nothing but the quote and link back - if you have any comments below that initial bit, then it should show up).  This will be changed in the next version, so you can have it show up anyways.  It also won't show up if you are a guest and guests aren't allowed to post.
Quote
2. I was under the impression that if i have the default discussion set to Forum1 and then when I wrote and article and put {mos_smf_discuss:Forum2} it would post that article in Forum2 and not the default Forum1?
That is correct, that's how it should work.

One thing I noticed was that it seems like you have caching enabled at your site, which could account for the reply box taking a few tries to show up for you.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: digiSal on December 09, 2005, 10:17:43 PM
QuoteQuote
2. I was under the impression that if i have the default discussion set to Forum1 and then when I wrote and article and put {mos_smf_discuss:Forum2} it would post that article in Forum2 and not the default Forum1?

That is correct, that's how it should work.

One thing I noticed was that it seems like you have caching enabled at your site, which could account for the reply box taking a few tries to show up for you.

Ok, this does work. but i thought it worked different. If i put {mos_smf_discuss:Forum1} in the Main Text it wont change the link in the front page but its correct when you click Read More. On the front page it still takes you to the default forum BUT if i put the {mos_smf_discuss:Forum1} in the Intro Text it will change the link on the Front page but when you click Read More it puts the link in the middle of the article instead of at the end. I hope that makes sense.

as a workaround i put a no_discuss in intro and put the {mos_smf_discuss:Forum1} in the main, but would like for it to change both links since i would like to see how many replies are in there by looking at the front page without clicking read more.

still a great bot!
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: yellow1912 on December 10, 2005, 11:15:27 AM
Just 1 suggestion:
I always wanted to put newest post(s) of every room on the frontpage. It'd be great if the bot can do such thing automatically ^^.

We're gonna be free from updating the frontpage every now and then.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: torkil on December 10, 2005, 11:20:03 AM
This bot is for discussions. You're looking for a "latest posts" kind of module I think.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: cylonite on December 11, 2005, 01:59:52 AM
Quote from: LortGob on November 30, 2005, 05:23:00 PM
After some searching without answers, the only thing that did really solve my errors (was getting some nasty fatals while logged in both in the front end and as admin as well) was deinstalling the discussbot.

I'll be trying to find a solution tho as I really would like to use this bot!

I could try the other bridge but still....this one works right now, so why change it? ;)
same problem with me too.... i have joomla 1.0.3 smf 1.1rc1 and the MOS_SMF_bridge3.19a. i tried this discussbot and others but when i install them joomla gives an error which is solved only by deleting the bot. funny thing is that the bot does not even have to be published :( but still causes error :(
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Orstio on December 11, 2005, 02:04:26 AM
Something I noticed, Chadness, is that you call SSI.php from the bot.  If SSI.php is called from a bot, it can cause problems, ranging from strange layout issues to SQL errors, depending largely on the template and modules used.   :(
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on December 12, 2005, 10:01:56 AM
Ugh, that's depressing to hear.  You must have missed my reply about that being the way I accomplished the parseing on beta 6. :)  Any ideas as to what causes the problems?

I may have to either go to the old way I tried to do this, which was copying the functions (which is VERY difficult to do for the smileys), or maybe integrate the bot in with a component, which can maybe take care of some of that on the back end.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Orstio on December 12, 2005, 10:44:20 AM
I've been toying with the idea of using Joomla's new onStart or onAfterStart mambot events to include SSI in a bot rather than in the template.

Then it could simply do a quick check for if ($option !='com_smf'){ and then write in the code included in the Joomla template.

Unfortunately, this is a feature added to Joomla, and not to Mambo, so it would work only for Joomla.

This should technically allow you to use the functions from SMF pretty much anywhere in Mambo.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on December 12, 2005, 10:47:13 AM
I was thinking those would be handy for working this in.  Though, I hate to make this not work with Mambo.  But, between that or having to remove smiley parsing, that might be the way to go.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Orstio on December 12, 2005, 01:36:02 PM
QuoteI was thinking those would be handy for working this in.  Though, I hate to make this not work with Mambo.  But, between that or having to remove smiley parsing, that might be the way to go.

FWIW, I have made a suggestion to the Mambo dev team to include more bot events to make some third party add-ons easier. 
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: kamerek on January 09, 2006, 01:55:41 PM
Hello, I use mbt grey template  , joomla 1.0.5 and smf 1.1rc1 and bridge 3,19a -orstios, and when i install the discuss bot  I have problems with  Start menu item /front page . The 3rd column goes beyond layout and 2nd column with the "news , articles introductions" etc. is too wide.. any ideas why the bot makes such a issues?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on January 09, 2006, 01:57:08 PM
It's the issue being discussed at the end of this thread:
http://www.simplemachines.org/community/index.php?topic=58756.0
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: ChaosEnergy on January 13, 2006, 05:02:30 AM
after installing the bot i press continue..and result

Fatal error: session_start(): Failed to initialize storage module: user (path: /var/lib/php4) in /var/www/web/administrator/index2.php on line 34

clearing cache offline files and so on..
i get in admin login..

Fatal error: session_start(): Failed to initialize storage module: user (path: /var/lib/php4) in /var/www/web/administrator/index.php on line 84

added the template code behind the /body and behind the bridge code

i can t login to my joomla admin anylonger....
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on January 13, 2006, 09:44:09 AM
I've never heard of things crashing that hard.  You can delete the file /mambots/content/smf.discussbot.php and it should at least let you back in.

Also, you might try moving the code before the bridge code, though it shouldn't really matter.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: ChaosEnergy on January 13, 2006, 12:08:59 PM
ok, i m back in my system

it seemed to me, that something with cookie has been the reason, sometimes i was able to get a login and more than one page after the message and pressing f5..

also it has helped when logging out from forum(another account)

smf/joomla both have search engine friendly urls

i will try the bot on aother system on weekend
tnx
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on January 13, 2006, 12:10:47 PM
SEF URLs being turned on in SMF can mess things up in Joomla.  Generally you'll want to turn them on in Joomla and off in SMF.

That said, you might also try the beta 5 version of the discussbot - it seems to work better with some sites.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: ChaosEnergy on January 13, 2006, 01:13:58 PM
the only issue with double activated sef is that PM links get a double folder entry, anything else works fine...

and i assume that the double folder link is an issue somewhere in the smf code, cause any other party work perfectly
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: JohnLi on January 13, 2006, 04:15:09 PM
I installed your discussbot, and I encountered problems with the fonts' sizes. I suppose it's the issue you've been talking about with Orstio, so you can't help me fix it, right?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on January 13, 2006, 05:12:46 PM
Probably, as it doesn't load any CSS or anything that should affect sizes on its own.

Try two things - either turn off "Allow code, if enabled in SMF?", or downgrade to beta 5.

Just curious, but do you have any Recent Post or Recent Topic type modules running?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: exskacist on January 16, 2006, 09:13:10 AM
Hey, I'm running Joomla 1.05 stable with the 3.19a stable bridge. The moment I install discussbot the page throws up a load of mysql errors relating to themes, images, smilies, etc. I've inserted the code at the bottom of the template as requested, and I get the errors regardless of whether the mambot is published or not.

Any idea what could be causing this?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: exskacist on January 16, 2006, 09:23:01 AM
I noticed I hadn't filled in the database name because SMF was running from a seperate database, I've corrected this but the error messages are still there relating to:

Sources/Subs.php
Sources/Load.php
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on January 16, 2006, 10:36:06 AM
I haven't tested this with separate databases.  COuld you test beta 5 and see if it also has the problem?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: exskacist on January 16, 2006, 11:10:12 AM
It worked first time! :)

The discuss image isn't showing up but I'm sure I can fix that...
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on January 16, 2006, 11:19:40 AM
Great!
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: exskacist on January 16, 2006, 11:21:50 AM
I've got another question, would it be possible to post the new topic under a set username, for example if the site was run by "The News Team", could you create the topic with the username "The News Team" instead of the username of the person that clicked the Discuss link?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on January 16, 2006, 11:23:50 AM
That will be available in future versions.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: cferd on January 16, 2006, 05:12:25 PM
Joomla 1.07, SMF 1.1 RC2, Bridge 3.20 (with 1/13 update)

Joomla and SMF are in different databases.

I have the 'recent posts', 'smf online2' and 'showcal' installed, and discussbot 4.1 gives me errors with any of those mods published.

I'm trying the beta5 version and for the most part it's working fine. I did have to do some modifying to remove the (0) part out. It counted the first post, but then remained at (1), no matter how many replies.

Beta5 doesn't show the quick reply box below the article. So I disabled it in the parameters.
The 'Show topic under article' works, but in my case that would be overdoing it, so that's also disabled....for now  ;)

One question, I have option #4 selected (1st post only). Can that first post be with an empty quote box by default?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on January 16, 2006, 05:25:56 PM
If you enter 0 for the number of characters to be quoted, you will only have the link back to the article.  Is that what you are looking for?  If you want to remove the link back, you could cut out this part:

        if ($link_back_text==""){
           $message = "[url]".($mosConfig_sef ? "" : $mosConfig_live_site."/").sefRelToAbs("index.php?".($_REQUEST['option'] == "com_content" && isset($_REQUEST['task']) && $_REQUEST['task'] == "view" ? $_SERVER['QUERY_STRING'] : "option=com_content&amp;task=view&amp;id=".$row->id."&amp;Itemid=".$mainframe->getItemid( $row->id, 0, 0 )))."[/url]".$message;
        }else{
           $message = "[url=".($mosConfig_sef ? "" : $mosConfig_live_site."/").sefRelToAbs("index.php?".($_REQUEST['option'] == "com_content" && isset($_REQUEST['task']) && $_REQUEST['task'] == "view" ? $_SERVER['QUERY_STRING'] : "option=com_content&amp;task=view&amp;id=".$row->id."&amp;Itemid=".$mainframe->getItemid( $row->id, 0, 0 )))."]".$link_back_text."[/url]".$message;
        }


That's very strange that it would only ever show one post....
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: cferd on January 16, 2006, 06:29:17 PM
Removing that code still leaves a link, but this time to the ItemID.

And after further testing, the 'quick reply box' does show up below the article, but not when the article is on the frontpage.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on January 17, 2006, 12:42:00 AM
That's by design, since there are usually multiple news articles on the front page, it would be tough to make a quick reply box that would format correctly for all variations of one or two columns, etc.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: vibez on February 04, 2006, 08:04:07 PM
hi,

I tied installing discussionbot but get this error on the bottom of my website

Database Error: Table 'vibez_joomla.sessions' doesn't exist

Any ideas why?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Orstio on February 04, 2006, 08:12:11 PM
You didn't configure the bot.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: vibez on February 04, 2006, 08:26:18 PM
Quote from: Orstio on February 04, 2006, 08:12:11 PM
You didn't configure the bot.

Your right! Thanks
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: JustJa on February 14, 2006, 03:21:14 PM
Hi!
i have Mamabo 453h and SMF RC1.
I installed the bot but the gif file is showing as broke image on explorer and simply doesnt show at all on netscape.
Also, when I click on the broken image I am taken to the forum where this message shows:

The topic or board you are looking for appears to be either missing or off limits to you.
::)
Please help...
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: taucher on February 16, 2006, 02:49:41 AM
is it possible to use the discussbot without the bridge? i have joomla and smf in the same database.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: JustJa on February 16, 2006, 03:29:33 AM
I still have problems...
Any idea guys? Please help...
I created a board to be oppened to everybody but even if I am trying to comment an article from the portal I get An Error Has Occurred!

The topic or board you are looking for appears to be either missing or off limits to you. 
Plus the image that should show is with an X.
:-\
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on February 16, 2006, 09:23:47 AM
As far as the image goes, that means it either did not get loaded in the correct place, or is not searching the correct place for some reason.  In IE, right click the picture and click on properties and see where it is looking for it.  Make sure the file is in that directory.

Also, did you go in to the configuration and save it?

I haven't tested this with Mambo 4.5.3h so I don't know if it's a compatibility issue.

taucher - no, it needs the bridge.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: taucher on February 16, 2006, 10:38:31 AM
thanks a lot for your answer. is there a possibility to make the discussbot runing unbridged? ist there much code to change?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: JustJa on February 16, 2006, 11:02:19 AM
Hi Chadness,
I have saved the config and the picture is also there. When I rightclick it gives http://www.mysite/mambots/content/discuss.gif
:( How sad if I cannot have it working just because of mambo ;(
Please let me know if you find out anything
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on February 16, 2006, 11:39:57 AM
Quote from: taucher on February 16, 2006, 10:38:31 AM
thanks a lot for your answer. is there a possibility to make the discussbot runing unbridged? ist there much code to change?
The database calls all use references to the bridge.  It would be changing a lot of the core of it.  I would guess it could be done, but it would take some time.  If you're feeling ambitious, you might give it a try, though you might want to use beta 5 since that has less integration in with SMF.  Start with anywhere you see these lines:
mysql_select_db($db_name);

That's where it is switching over to using the SMF database.

Quote from: Grodden on February 16, 2006, 11:02:19 AM
Hi Chadness,
I have saved the config and the picture is also there. When I rightclick it gives http://www.mysite/mambots/content/discuss.gif
:( How sad if I cannot have it working just because of mambo ;(
Please let me know if you find out anything

Did you make sure that /mambots/content/discuss.gif exists?

I'm not sure if Mambo will make it not work - I just haven't tried it myself.

Unfortunately, I'm super busy these days and don't have much time to work on this.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: JustJa on February 16, 2006, 01:52:28 PM
I see where is the problem with the discuss.gif.
I have my portal on a subdirectory...
Actually it should be showing http://www.mysite/PORTAL/mambots/content/discuss.gif
If I write like this, the discuss.gif shows on the browser, but how to change the way it goes to the frontend?
I tried to modify on the backend and put portal before /mambots/content/discuss.gif  on URL of image to use for discussion link.:
But than it shows PORTAL/PORTAL/mambots/content/discuss.gif on the frontend  >:(
I am sure it might be a better way to solve this and hopefully this has also to do with the bot not working on SMF...
:D
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on February 18, 2006, 11:49:44 PM
Ah!

Do one of two things.  Either remove the / from in front of mambots, or put /PORTAL infront of it (with the forward slash).
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: JustJa on February 19, 2006, 09:36:57 AM
Cool!
That worked! (/portal) Now the gif is showing! very cute!

Now it only lasts that message problem :
The topic or board you are looking for appears to be either missing or off limits to you.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: lazereth on February 19, 2006, 11:36:59 PM
I am sorry but apprently I am little slow.

have fresh install of joomla 1.0.7 (stable) and smf 1.1 RC2.
I just installed discussbot 4.1 and it is in all the spots its supposed to be but apparently I can not figure out how to setup the board name part. I have been trying to put the board=# and it just says that it doesnt exist. So what is it that I am missing what do I put in that, I would really like to get this up and running on my site.

It doesnt creat any posts or anything. I want all the post from the discussbot to be placed in one of the child boards on my site. Please help!

Thank in advance.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: lazereth on February 20, 2006, 03:32:51 AM
So now I left the spot blank in smf.dicussbot (mambot) It created a catagory, 2 boards and one post.

the catagory is: Salvage Area
Board 1 : Salvaged Topics
Board 2 : Salvaged board

and it created one post from one item I posted on the front page.

But there is no dicussion button nothing, I am completely confused. Can someone help me.

Thanks in advance.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: taucher on February 20, 2006, 04:12:29 AM
thank you. i will try to run the bot without the bridge. as i dont know php and sql it will take some time, but i think it could be done (hope so)
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on February 20, 2006, 10:21:10 AM
Quote from: lazereth on February 20, 2006, 03:32:51 AM
So now I left the spot blank in smf.dicussbot (mambot) It created a catagory, 2 boards and one post.

the catagory is: Salvage Area
Board 1 : Salvaged Topics
Board 2 : Salvaged board

and it created one post from one item I posted on the front page.

But there is no dicussion button nothing, I am completely confused. Can someone help me.

Thanks in advance.

Shouldn't be able to do that.  There's nothing in the code that should enable it to make categories or boards - only topics.  Where would it even have gotten those names from?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on February 20, 2006, 10:26:56 AM
Quote from: Grodden on February 19, 2006, 09:36:57 AM
Now it only lasts that message problem :
The topic or board you are looking for appears to be either missing or off limits to you.


Which bridge version are you using?  Are the forum and Mambo in different databases?  Do the database users both have access to both databases?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: jzkiller on February 20, 2006, 08:21:32 PM
Pardon my ignorance but I need some simple advise on exactly where to add the required code to the bottom of my template's index.php

The code I am going to apply is as stated in the config section of my mambot smf.discussbot.4.1final

This is what is currently at the bottom of my template's index.php

</tr>
<tr>
<td colspan="<?php echo $collspan_offset+1; ?>">
<img src="<?php echo $mosConfig_live_site; ?>/templates/rhuk_planetfall/images/top_bar.jpg" width="798" height="9" alt="" />
</td>
</tr>
</table>
<?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' ); ?>
</div>
<?php mosLoadModules( 'debug', -1 );?>
</body>
<?php mysql_select_db($GLOBALS['db_name']); ?>
</html>


If I understand correctly I must.....
"Don't forget to add the following code to the bottom of your Mambo/Joomla template:"

<?php
ob_start
('output');
$buffer = ob_get_contents();
ob_end_clean();
$buffer = str_replace('<input type="hidden" name="sc" value="" />'
,'<input type=hidden name="sc" value="'.$sc.'">', $buffer);
echo
$buffer;
?>


My question is does it mean at the very bottom or should it be before the </body> or maybe before the </html>

Perhaps someone could help me with this?

EDIT: I tried placing it right at the bottom...result=No Good
I tried placing it just before the </html>, result = works fine
Trial and error gets you there eventually.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: JustJa on February 20, 2006, 09:32:57 PM
Quote

Which bridge version are you using?  Are the forum and Mambo in different databases?  Do the database users both have access to both databases?

MOS_SMF_BRIDGEv3.19a_SMF1.1b3
different databases but users has access on both databases yes...

Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: lazereth on February 20, 2006, 10:04:34 PM
What would be the proper way to setup the Mambot?

What do I put in the board name section of the Mambot.

Say I want the posts to be created in this board http://hibunderground.com/index.php?option=com_smf&Itemid=2&board=36.0. How would I go about setting up the Mambot so the articles would automaticly have the discuss button at the bottom of each article that was on the Joomla section and create a post in the board.

I really dont know why it would create the board or the names. I don't fully understand how it works. I am still quite new to php and all that good stuff.

I am using smf bridge 3.20 joomla 1.0.7 and smf 1.1 RC2

This is one of the only things I can not figure out. Sorry that I dont understand how this all works.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: HDH on February 21, 2006, 04:42:46 PM
I am having a few problems too - have tried a fair few versions today and have had various problems - mostly with errors when the mambot is loaded (regardless of whether it is published or not).

Ended up using beta 5 which has gotten me the closest to date.  Problems I am still having though:

1. Clicking on the Write Comments link in an article beings an error.  Url format after the JS link is:

index.php?option=com_smf&amp;Itemid=29&amp;topic=6.new#new

SMF error is: The topic or board you are looking for appears to be either missing or off limits to you.

2. Once number one has occured, (0) changes to (1) and the Url format changes to (SEF'ed this time - relevant?) /component/option,com_smf/Itemid,29/topic,6.top#top and we get the same error on SMF - The topic or board you are looking for appears to be either missing or off limits to you.

Forum stats show all these posts accruing somewhere but they do not show up anywhere.

3.  Small fry, but the write comments links only show in the full page articles themselves, whereas the others I have been experimenting with today show them on the Joomla front page after the intros.

I am using Joomla 1.1.0 Alpha, SMF 1.0.6 and MOS_SMF_BRIDGEv3.19a_stable.zip.

Using same database.  One thing I am not sure of and I think a chap above me mentioned this as a question, but in the field for default forum for discussions, do we put the board number like 16?  Or 16.0 or something different completely.

Almost there with a top mambot (thanks) - could I ask for a little more help?  :)
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on February 21, 2006, 06:05:49 PM
To everyone asking what you use for default board name: Use exactly that - the name of a board.  For instance, in my use of it, I have a board named "News Discussions".  All of the posts are then created in that board.  This field is only necessary if you want every news article to have a discussion link, without you manually putting one in.

To Grodden and HDH both (for question #1) - are you using SEF URLs?  If so, have you tried it with those off?

You're both using versions (Mambo 4.5.3h and Joomla 1.1) I haven't tested with at all, so if I get some time I'll try to install those and see if it works for me.  Actually, with the Joomla Alpha, I'm surprised the bridge works at all.  Grodden, your issue may be with the separate databases, but I'm still looking in to that.

HDH - for question #3, there is an option labeled: Do you want default discussion links to show on the front page? - is this set to Yes?  And, are you manually putting in the {mos_smf_discuss:Board Name} or are you using the default board setting?  If you are manually putting it in, you need to have it in the Intro section, not in the body of the news article, or it will never be loaded on the front page.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: ZowieZ on February 21, 2006, 07:13:24 PM
Hi -

Just installed this (using the latest version and also the latest of SMF and Bridge Mambo, Joomla SMF 1.1.2).  I get the text at the end of each article, but when I click on the link, SMF gives this error message:

"The board you specified doesn't exist"

I've checked the spelling, etc.  The board does exist and I have inserted its name in the "Default discussion board" field.

Can anyone help me get this configured correctly?  Thanks.  BTW:  I also don't get the discussBot image to display with the link.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: HDH on February 22, 2006, 06:20:56 AM
Quote from: chadness on February 21, 2006, 06:05:49 PM
To everyone asking what you use for default board name: Use exactly that - the name of a board.  For instance, in my use of it, I have a board named "News Discussions".  All of the posts are then created in that board.  This field is only necessary if you want every news article to have a discussion link, without you manually putting one in.

Thanks - that has solved it.

Quote from: chadness on February 21, 2006, 06:05:49 PM
To Grodden and HDH both (for question #1) - are you using SEF URLs?  If so, have you tried it with those off?
No I have not but the first issue has been solved.

Quote from: chadness on February 21, 2006, 06:05:49 PM
HDH - for question #3, there is an option labeled: Do you want default discussion links to show on the front page? - is this set to Yes?  And, are you manually putting in the {mos_smf_discuss:Board Name} or are you using the default board setting?  If you are manually putting it in, you need to have it in the Intro section, not in the body of the news article, or it will never be loaded on the front page.

I am using the default board setting and I missed that field - thanks!

The only problem now is that I cannot get rid of the orphaned topics/posts.  The SMF backend shows them under a maintainance run, but click Yes to agree to fix the problems returns the site hompepage (likely my 404 catcher).  I'll try it with SEF off.

[edit]SEF off does not help the issue (as SEF doesn't change the backend stuff).  I'll search the board.

Thanks :)

[/edit]
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on February 22, 2006, 09:46:57 AM
Try running that maintenance directly from SMF, instead of through the bridge.  If that doesn't work, you might need to access the database directly.

ZowieZ - what version of Mambo or Joomla and SMF are you running?  Are you in seperate databases or shared?  Are you using SEF?

For the missing picture, you need to set the path correctly in the mambot config.  It comes with a default setting, but that's not right for all sites - you need to set it yourself.

Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Felipe Koch on February 22, 2006, 11:38:50 AM
I cant make it work.

After I insert the code just before </html> at my template´s index.php the page simply wont open. It gives me a blank page. I tryed moving it arround a bit (before BSQ Sitestats, after </html>) and still no good.

I'm using SMF 1.1 RC2, Discussbot 4.1final, Joomla 1.0.7 and Orstios bridge 3.20 a little moded (but thats not the case here).

Here's some sysinfo that may help:
PHP built On:       Linux server 2.6.12-1-686-smp #1 SMP Tue Sep 27 13:10:31 JST 2005 i686
Database Version:    4.0.24_Debian-10-log
PHP Version:    4.3.10-16
Web Server:    Apache/1.3.33 (Debian GNU/Linux) PHP/4.3.10-16 mod_ssl/2.8.24 OpenSSL/0.9.7g mod_perl/1.29
WebServer to PHP interface:    apache
Joomla! Version:    Joomla! 1.0.7 Stable [ Sunburst ] 15-Jan-2006 20:00 UTC

If you need any other info just ask.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: HDH on February 22, 2006, 11:57:35 AM
Quote from: chadness on February 22, 2006, 09:46:57 AM
Try running that maintenance directly from SMF, instead of through the bridge.  If that doesn't work, you might need to access the database directly.

I ended up doing it in the db in the end - then refreshing the counts within SMF admin.  From what I have seen it would have done the trick bypassing the bridge.

Only issue I have now is when the bot creates the new threads, the formatting shows up as [ P ] Article intro [ /P ]  Odd one and I am sur I saw an option to stop this happening based on the SMF setting in anotehr bot version but cannot see it in the beta 5 config page.

Thanks :D
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on February 22, 2006, 12:59:08 PM
I hadn't coded in to parse the [ p ] tags.  Someone posted how to fix that - I'll see if I can find it.

Felipe - Do you have the other code at the top of index.php?  Have you configured and saved the bot yet?  Do you have access to the server logs so you can see what the error is that makes it fail to load the page?

If all else fails, tries beta 5.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Felipe Koch on February 22, 2006, 01:18:16 PM
Thats what my access log contains for this time:
200.135.242.3 - - [22/Feb/2006:15:12:25 -0300] "GET /administrator/index2.php?option=com_templates&client= HTTP/1.0" 200 5293
200.135.242.3 - - [22/Feb/2006:15:12:28 -0300] "GET / HTTP/1.0" 200 26812
200.135.242.3 - - [22/Feb/2006:15:13:19 -0300] "GET / HTTP/1.0" 200 26746

The first line is when I added the code to the template, the second and third ones are my atempts to reload the page.

This is me removing your code from the template and refreshing the page once:

200.135.242.3 - - [22/Feb/2006:15:14:42 -0300] "GET /templates/madeyourweb/template_thumbnail.png HTTP/1.0" 200 159503
200.135.242.3 - - [22/Feb/2006:15:14:44 -0300] "POST /administrator/index2.php HTTP/1.0" 200 3871
200.135.242.3 - - [22/Feb/2006:15:14:50 -0300] "POST /administrator/index2.php HTTP/1.0" 301 0
200.135.242.3 - - [22/Feb/2006:15:14:50 -0300] "GET /administrator/index2.php?option=com_templates&client= HTTP/1.0" 200 5293
200.135.242.3 - - [22/Feb/2006:15:14:56 -0300] "GET / HTTP/1.0" 200 6097
200.135.242.3 - - [22/Feb/2006:15:14:56 -0300] "GET /includes/js/joomla.javascript.js HTTP/1.0" 304 -
200.135.242.3 - - [22/Feb/2006:15:14:56 -0300] "GET /templates/mbt_simple/css/template_css.css HTTP/1.0" 304 -
200.135.242.3 - - [22/Feb/2006:15:14:56 -0300] "GET /templates/mbt_simple/images/indent1.png HTTP/1.0" 304 -
200.135.242.3 - - [22/Feb/2006:15:14:56 -0300] "GET /components/com_virtuemart/show_image_in_imgtag.php?filename=Scathe_Zombi$
200.135.242.3 - - [22/Feb/2006:15:14:56 -0300] "GET /templates/mbt_simple/images/header.png HTTP/1.0" 304 -
200.135.242.3 - - [22/Feb/2006:15:14:56 -0300] "GET /templates/mbt_simple/images/subhead_bg.png HTTP/1.0" 304 -
200.135.242.3 - - [22/Feb/2006:15:14:56 -0300] "GET /includes/js/overlib_mini.js HTTP/1.0" 304 -
200.135.242.3 - - [22/Feb/2006:15:14:56 -0300] "GET /templates/mbt_simple/images/menu_bg.png HTTP/1.0" 304 -
200.135.242.3 - - [22/Feb/2006:15:14:56 -0300] "GET /templates/mbt_simple/images/arrow.png HTTP/1.0" 304 -
200.135.242.3 - - [22/Feb/2006:15:14:56 -0300] "GET /components/com_virtuemart/show_image_in_imgtag.php?filename=Supreme_Inqu$
200.135.242.3 - - [22/Feb/2006:15:14:56 -0300] "GET /components/com_virtuemart/show_image_in_imgtag.php?filename=Bloodletter_$
200.135.242.3 - - [22/Feb/2006:15:14:56 -0300] "GET /templates/mbt_simple/images/contenthead.png HTTP/1.0" 304 -
200.135.242.3 - - [22/Feb/2006:15:14:56 -0300] "GET /components/com_virtuemart/show_image_in_imgtag.php?filename=Teferis_Puzz$
200.135.242.3 - - [22/Feb/2006:15:14:56 -0300] "GET /components/com_virtuemart/show_image_in_imgtag.php?filename=Fevered_Stre$
200.135.242.3 - - [22/Feb/2006:15:14:56 -0300] "GET /components/com_virtuemart/show_image_in_imgtag.php?filename=Mistform_Sky$
200.135.242.3 - - [22/Feb/2006:15:14:56 -0300] "GET /components/com_virtuemart/show_image_in_imgtag.php?filename=Legacy_Weapo$
200.135.242.3 - - [22/Feb/2006:15:14:56 -0300] "GET /components/com_virtuemart/show_image_in_imgtag.php?filename=Avenging_Ang$
200.135.242.3 - - [22/Feb/2006:15:14:56 -0300] "GET /includes/js/overlib_hideform_mini.js HTTP/1.0" 304 -
200.135.242.3 - - [22/Feb/2006:15:14:56 -0300] "GET /images/M_images/edit.png HTTP/1.0" 304 -
200.135.242.3 - - [22/Feb/2006:15:14:56 -0300] "GET /images/stories/chucknorris.jpg HTTP/1.0" 304 -


This is the top part of my index.php:

<?php
defined
( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = split( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php
global $sc, $context, $settings;

if (!
defined('SMF')){
session_write_close();
require (
"administrator/components/com_smf/config.smf.php");
require (
$smf_path."/SSI.php");
}

$sc = &$context['session_id'];

$_SESSION['USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];

mysql_select_db($mosConfig_db);

echo
'
<script language="JavaScript" type="text/javascript" src="'
, $settings['default_theme_url'], '/script.js?beta4"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
, $settings['theme_url'], '";
var smf_images_url = "'
, $settings['images_url'], '";
var smf_scripturl = "'
, $scripturl, '";
var smf_session_id = "'
, $context['session_id'], '";
// ]]></script>'
;

echo
'
<link rel="stylesheet" type="text/css" href="'
, $settings['theme_url'], '/style.css?rc1" />
<link rel="stylesheet" type="text/css" href="'
, $settings['default_theme_url'], '/print.css?beta4" media="print" />
<link rel="help" href="'
, $scripturl, '?action=help" target="_blank" />
<link rel="search" href="'
. $scripturl . '?action=search" />
<link rel="contents" href="'
, $scripturl, '" />';
?>
<?php mosShowHead(); ?>


Theres a little more underneath it, but thats just the usual j! stuff.

And the end part:

<?php mosLoadModules( 'debug', -1 );?>
</body>
<?php mysql_select_db($GLOBALS['db_name']); ?>
<?php
if(file_exists($mosConfig_absolute_path."/components/com_bsq_sitestats/bsqtemplateinc.php"))
{
       require_once(
$mosConfig_absolute_path."/components/com_bsq_sitestats/bsqtemplateinc.php");
}
?>
<?php
ob_start
('output');
$buffer = ob_get_contents();
ob_end_clean();
$buffer = str_replace('<input type="hidden" name="sc" value="" />'
,'<input type=hidden name="sc" value="'.$sc.'">', $buffer);
echo
$buffer;
?>
</html>


Any other info, just ask.

Thx for the fast reply...
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Felipe Koch on February 22, 2006, 02:14:49 PM
4.1 beta5 works fine, thx xD
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: ZowieZ on February 22, 2006, 03:29:17 PM
Quote from: chadness on February 22, 2006, 09:46:57 AM
ZowieZ - what version of Mambo or Joomla and SMF are you running?  Are you in seperate databases or shared?  Are you using SEF?

Using Joomla.  I'm using the most current versions of all.  SMF is in a separate database.  I have the SEF turned on -- using the default SEF mod shipping with Joomla.

Quote from: chadness on February 22, 2006, 09:46:57 AM
For the missing picture, you need to set the path correctly in the mambot config.  It comes with a default setting, but that's not right for all sites - you need to set it yourself.

Thanks.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: HDH on February 23, 2006, 04:56:13 AM
Quote from: chadness on February 22, 2006, 12:59:08 PM
I hadn't coded in to parse the [ p ] tags.  Someone posted how to fix that - I'll see if I can find it.

I have been having a look at the code below and have worked out where to replace "", with "[ br ][ br ]", on the 5th line of the replace array.  It seems to already do the required with the replace on the 4th line and modifying the 5th doubles the linebreaks but I am sure I can tweak it.  Images in the first post seem to have issues too.

Cheers! :)


        $search =  array(
                    "/\</",
                    "/\>/",
"/\\\"/",
"/\[p([^\]]*)\]{1}/",
"/\[\/p\]/",
"/\[div([^\]]*)\]{1}/",
"/\[\/div\]/",
"/\[font([^\]]*)\]{1}/",
"/\[\/font\]/",
"/\[img.*src\=http/",
"/\[img.*src\=/",
"/jpg([^\]]*)\]{1}/",
"/gif([^\]]*)\]{1}/",
"/png([^\]]*)\]{1}/",
"/jpeg([^\]]*)\]{1}/",
"/\[a.+?(href=\"?http){1}/",
"/\[a.+?(href=\"?){1}/",
"/target\=([^\]]*)\]{1}/",
"/\[\/a\]/",
"/\[table([^\]]*)\]{1}/",
"/\[tbody\]/",
"/\[\/tbody\]/",
"/\[td([^\]]*)\]{1}/",
"/\[strike\]/",
"/\[em\]/",
"/\[strong\]/",
"/\[ol\]/",
"/\[ul\]/",
"/\[\/em\]/",
"/\[\/strong\]/",
"/{mos_smf_discuss:.+?}/"
                        );
        $replace = array(
                    "[",
"]",
"",
"[br][br]",
"",
"",
"",
"",
"",
($quote_images=="1" ? "[img]http" : ""),
($quote_images=="1" ? "[img]".$mosConfig_live_site."/" : ""),
($quote_images=="1" ? "jpg[/img]" : ""),
($quote_images=="1" ? "gif[/img]" : ""),
($quote_images=="1" ? "png[/img]" : ""),
($quote_images=="1" ? "jpeg[/img]" : ""),
"[url=http",
"[url=".$mosConfig_live_site."/",
"]",
"[/url]",
"[table]",
"",
"",
"[td]",
"[s]",
"[i]",
"[b]",
"[list]",
"[list]",
"[/i]",
"[/b]",
""
);
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: rastamate on February 23, 2006, 03:43:07 PM
Hi.

Would be a nice thing to use.

Tried to get it work on Joomla 1.07, Orstio Bridge 3.20, SMF in separate DB.

But the bot wont give me a new thread. It says that the topic is missing or I don't have right to it.

Why?

I did fill out everything needed for sure correctly.

Would be glad if somebody could give me a hint.

Greetings
Peter
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on February 23, 2006, 04:19:02 PM
This must have something to do with multiple databases.  I'm not sure why it's failing.  Is it a problem with beta 5 (http://www.technoadvice.com/component/remository/Download/Joomla-and-Mambo/SMF-Discussbot-version-4.1-beta-5/) as well?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: rastamate on February 23, 2006, 04:25:30 PM
Didn't try the beta5 if a final exist.

You think should give the beta5 a try? Or beta6?

Why this shouldn't work in your final then?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on February 23, 2006, 04:27:41 PM
At the time it was released, the final seemed like it would be a good final.  However, some features added in beta 6 (allowing the parsing of BB code) seem to have problems with some setups, so beta 5 is a good test bed to see if that is causing the problem.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: rastamate on February 23, 2006, 04:29:37 PM
OK, thanks!

I will try it and post my experience here....
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: rastamate on February 23, 2006, 04:42:30 PM
Well... Beta5 didn't work out neither....
It still says 'Artikel not found'...

And nearby the bot causes about 100 errors on W3C Validation just when it is installed....

So we cannot use this unfortunately.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Felipe Koch on February 24, 2006, 03:48:25 PM
Badnews chadness...

With beta5 my com_smf_registration related sites wont open. I get that same blank page =/
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: MisterT on February 25, 2006, 04:50:16 PM
I installed it (beta 7) on my server and all worked fine...

Config:
======
Joomla 1.0.7
SMF 1.1RC2
Joomla-SMF bridge 1.1RC1

I made all my configuration with Firefox as web client.

And suddenly, I tried Internet Explorer
====> PANIC !  :o

All my site pages could never be displayed totaly... It was reloading, and reloading endlessly... :'(

After long investigation (and even unpublishing this bot: that didn't change my problem), it seems that the following code is not accepted by IE when initiated from my web server:
Quote<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_formSubmitted;
function submitonce(theform)
{
   smf_formSubmitted = true;
}

function send_form(form_id)
{
   document.getElementById(form_id).submit();
}

function submitThisOnce(item)
{
   // Hateful, hateful fix for Safari 1.3 beta.
   if (navigator.userAgent.indexOf('AppleWebKit') != -1)
      return !smf_formSubmitted;

   for (var i = 0; i < item.form.length; i++)
      if (typeof(item.form) != "undefined" && item.form.tagName.toLowerCase() == "textarea")
         item.form.readOnly = true;

   return !smf_formSubmitted;
}
// ]]></script>

I don't understand why...
I had to remove that wonderful bot (because 80% of my users are IE users), and that makes me sad...

Any suggestion ?

P.S.: it is quite strange that the fact of unpublishing the bot from the backend interface does not remove this code insertion in all pages... (I had to rename smf.discussbot.php file for that...)
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: JustJa on February 26, 2006, 10:14:25 AM
Quote from: chadness on February 21, 2006, 06:05:49 PM
To Grodden and HDH both (for question #1) - are you using SEF URLs?  If so, have you tried it with those off?
I had it on just on SMF. Turned off, but nothing changed...

QuoteYou're both using versions (Mambo 4.5.3h and Joomla 1.1) I haven't tested with at all, so if I get some time I'll try to install those and see if it works for me.  Actually, with the Joomla Alpha, I'm surprised the bridge works at all.  Grodden, your issue may be with the separate databases, but I'm still looking in to that.
I would be glad to provide you even more information, maybe an access to the backend?

Thank you!
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: GuNeR on February 27, 2006, 11:10:09 PM
My Config:
========
Joomla 1.0.7
SMF 1.1RC2
Joomla-SMF bridge 1.1RC2 ver 3.20
==========
when i upgraded from  Joomla 1.0.7 to 1.0.8
Discussbot has started to generate incorrect links to the new comment
"http://195.46.125.3/ravnovesie/guner/joomla/javascript:send_form(13)"
instead of "javascript:Xxwc();send_form(13)"
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: JustJa on February 28, 2006, 04:41:48 PM
Isn´t it anyone else that had the same troubles as I do? and got it fixed  :D??

Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: neonmech on March 03, 2006, 05:15:02 PM
Joomla 1.08
SMF RC1
Bridge, Not really sure how to check.. sorry :(

I get this error the second I install the mod:
Database Error: Table 'funkytaru.log_online' doesn't exist
File: /home/content/n/a/m/name/html/funkytaru/data_launch/Sources/Subs.php
Line: 2421Database Error: Table 'funkytaru.sessions' doesn't exist
File: /home/content/n/a/m/name/html/funkytaru/data_launch/Sources/Load.php
Line: 1877
Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0


It occurs in both the Recent posts, and who's online mods.

I tried installing a the previous version of this mod but I got 404 errors while I click the link to the comments.

Also, I know Im supposed to add a line of code to the end of my template but I just wanted to verify, where exactly do I add the code? Does it not really matter? Adding it right above the closing body tag of the index.php file is fine?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on March 03, 2006, 05:32:27 PM
If you have any SMF modules present that call SSI, such as recent posts, you will get those errors and need to use beta 5.

That line of code can go anywhere at the bottom - generally I put it between the </body> and the </html> tags.

I'm working on a re-write for this that will hopefully help with a lot of peoples' problems.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: neonmech on March 03, 2006, 06:53:57 PM
Quote from: chadness on March 03, 2006, 05:32:27 PM
If you have any SMF modules present that call SSI, such as recent posts, you will get those errors and need to use beta 5.

That line of code can go anywhere at the bottom - generally I put it between the </body> and the </html> tags.

I'm working on a re-write for this that will hopefully help with a lot of peoples' problems.

Thanks for the quick reply. one more quick question for you.

for refference my Joomla install can be found here:
http://www.angryoaf.com/funkytaru/data_touchdown/
Direct link to the forums here:
http://www.angryoaf.com/funkytaru/data_touchdown/index.php?option=com_smf&Itemid=28

Now when I used the Beta 5 version, I kept getting a 404 error when I clicked a comment link from a news item.
On my forum index there is a board called "announcments" and a child board called "Discussion".
I want the news topics to default to the Discussion board. Am I correct in assuming that I put "Discussion" in the default forum input field?
If not, please tell me what I should be putting there to get it to work.
If I am following the correct procedure, do you have any idea why I might be getting a 404 (file not found) error when I click a link in a news item?

(I think I should state for the record that I have no idea if the link would work if the discussion thread already existed. )

Thanks again for the help, Cheers~
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on March 06, 2006, 10:10:08 AM
Yes, you would put in Discussion, just like you are doing.

What URL is the link pointing to that isn't working?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: neonmech on March 06, 2006, 10:34:11 AM
It is posting to:
http://www.angryoaf.com/funkytaru/data_touchdown/javascript:send_form(107)


Go ahead and check the front page again:
http://www.angryoaf.com/funkytaru/data_touchdown/

I enabled the mambot so that you will be able to see what's happening.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on March 06, 2006, 10:58:56 AM
Strange - it should be running that javascript, not creating a link like that (you can disable it again now, thanks).  Does javascript work otherwise on your site?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: neonmech on March 06, 2006, 11:29:58 AM
Yes, it usually runs with no problem at all.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: JustJa on March 06, 2006, 12:41:51 PM
Hi Chadness  :D
Did you have time to look at my problem?
Quote from: chadness on February 21, 2006, 06:05:49 PM
You're both using versions (Mambo 4.5.3h and Joomla 1.1) I haven't tested with at all, so if I get some time I'll try to install those and see if it works for me.  Actually, with the Joomla Alpha, I'm surprised the bridge works at all.  Grodden, your issue may be with the separate databases, but I'm still looking in to that.
:D
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on March 07, 2006, 10:01:03 AM
Unfortunately, no. :(  I've been really pressed for time lately.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: JustJa on March 07, 2006, 12:28:12 PM
Ok I understand...
Its horrible that a day only has 24 hours isn´t it?   ;)


Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: magmf on March 13, 2006, 11:53:48 PM
I have problem with links after upgrade to joomla 1.0.8

the new comments link add http://underlinux.com.br/javascript:send_form(5827)

anyone knows how to resolve this problem ???
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: neonmech on March 13, 2006, 11:57:39 PM
I have almost the same exact problem.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: magmf on March 14, 2006, 12:29:14 AM
Temporary solution to joomla 1.0.8 problem

well i put back my old sef.php and resolved my problem

If you have problems with your joomla 1.0.8 just downgrade your includes/sef.php to joomla 1.0.7 version.

[]'s
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: magmf on March 14, 2006, 12:33:26 AM
Now i discover one problem with joomla cache system...

If cache is enable  discussbot create many topics in forum from same content.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on March 14, 2006, 10:25:52 AM
Strange, do they all have the same title?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: magmf on March 14, 2006, 10:48:55 AM
Chad can you test discussbot in a joomla 1.0.8 and see the problems ?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: magmf on March 15, 2006, 11:53:58 AM
my discussbot is working... but when i enable cache on joomla
they cache discussbot links .. and i really dont want this...
is there something i can do to joomla do not cache discussbot links ???
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: ReveEtrange on March 15, 2006, 01:22:52 PM
Hi,

For authorization errors with discussbot beta 5 and joomla 1.0.8, add sth like code below at line 56 in file "mambots\content\mossef.php":


// disable bot from being applied to JS tags
if (strpos($matches[1],'javascript:') === 0) {
return 'href="'. $matches[1] .'"';
}


HTH,

-RE
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: JustJa on March 15, 2006, 03:33:48 PM
I don´t have this file... mossef.php?!?!?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: ReveEtrange on March 15, 2006, 04:38:01 PM
Do you have joomla 1.0.8?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: JustJa on March 19, 2006, 02:11:01 AM
Nop it is Mambo...
000=====
By the way, I have SMF RC1 installed and the bot was having those problems I mentioned before, but now I got RC2 on another directory, with another database and it looks like it is working!
At least it created the posts i tryed before...
The only problem is that I don´t know wich steps should I take to make the RC2 take the place of RC1. Should I uninstall the bridge on the portal? (Hope not..)
Please help me  to solve this one  :D
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Kindred on March 19, 2006, 08:18:10 AM
change the directory for smf in the bridge config.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: JustJa on March 19, 2006, 02:28:51 PM
Oh it can´t be true...  :-[
Now that I chnaged the directory it came back to the old error:

An Error Has Occurred!
The topic or board you are looking for appears to be either missing or off limits to you. 
:'( :'(
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: JustJa on March 19, 2006, 03:05:37 PM
I have updated to the last bridge now.
I still cannot use the bot, plus, when it is unpublished, the background of my portal turns white?!?!
But if I publish it come normal again, but it comes that odd message  :'( :'( :'(
Helpppp!
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Mongoose on March 19, 2006, 03:42:44 PM
Quote from: magmf on March 15, 2006, 11:53:58 AM
my discussbot is working... but when i enable cache on joomla
they cache discussbot links .. and i really dont want this...
is there something i can do to joomla do not cache discussbot links ???
Same problem.
I set shorter Cahe time in Admin panel/General/Cache as temporary solution, but I don't like it.
Help!
Title: Updating
Post by: JustJa on March 21, 2006, 11:05:39 PM
Now I have the link working!
It is on each and every article on my forum, BUT:
The link is not showing on the first paragraph, only on the end of the article, and the gif file is not appearing.
Strange thing is that it is showing everywhere, even where I did not insert {discussobot:board}, also on a rating component... It is cool, but I would like to have control on the way it is being shown...
:-\
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Kindred on March 22, 2006, 08:15:42 AM
Grodden,

If you added a "default" board to the discussbot setup, it will insert into every content object.

you can either add the no_discuss code into each content object that you don't want discussed...  or you can leave the default board blank, and insert the specific discuss code into content that you do want discussed...

Chadness...

if you modify this bot again (like for the next birdge version), you might take a look at the AkoComment component to allow specification about what groups of content items get the bot...  (for example, the bot adds itself to the BookMark items... lol)
AkoComment allows you to define what sort of content gets the bot applied (i.e. news and FAQs, but nothing else...  etc)
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: JustJa on March 22, 2006, 08:47:15 AM
Now I have controll on where the bot should be, thanks!
How about the position? Why do you think it doesn´t show on the frontpage?
It just shows if you click on the read more, in the middle of the text...

Plus the gif.. it doesnt even show the broken image this time...
:-[
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Benson on March 23, 2006, 06:34:36 AM
When i click onto a Discuss-Link, i get an error:
The requested URL /portal/http://www.mydomain.com/portal/index.php was not found on this server.

The url in the addressbar of my browser looks like this after klicking on the discuss-link:
http://www.mydomain.com/portal/http://www.mydomain.com/portal/index.php?option=com_smf&Itemid=43

I'm using SMF 1.1rc2, Joomla 1.0.8 (with fix mentioned some posts above).

cheers,
Benson
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on March 23, 2006, 01:15:32 PM
Quote from: Grodden on March 22, 2006, 08:47:15 AM
Now I have controll on where the bot should be, thanks!
How about the position? Why do you think it doesn´t show on the frontpage?
It just shows if you click on the read more, in the middle of the text...

Plus the gif.. it doesnt even show the broken image this time...
:-[

Do you have these set to yes:
"Do you want to use an image in the discussion link in your content articles?"
"Do you want default discussion links to show on the front page?"

Also, for them to show up on the front page if you aren't using a default discussion board, the bot will need to be in the into section of your article, since that is the only part that shows up on the front page.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on March 23, 2006, 04:43:17 PM
Quote from: Kindred on March 22, 2006, 08:15:42 AM
Chadness...

if you modify this bot again (like for the next birdge version), you might take a look at the AkoComment component to allow specification about what groups of content items get the bot...  (for example, the bot adds itself to the BookMark items... lol)
AkoComment allows you to define what sort of content gets the bot applied (i.e. news and FAQs, but nothing else...  etc)
Good idea!  I thought I had already hda a check in there to make sure it is the right kind of content, but I guess not.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on March 23, 2006, 04:55:26 PM
Quote from: Benson on March 23, 2006, 06:34:36 AM
When i click onto a Discuss-Link, i get an error:
The requested URL /portal/http://www.mydomain.com/portal/index.php was not found on this server.

The url in the addressbar of my browser looks like this after klicking on the discuss-link:
http://www.mydomain.com/portal/http://www.mydomain.com/portal/index.php?option=com_smf&Itemid=43

I'm using SMF 1.1rc2, Joomla 1.0.8 (with fix mentioned some posts above).

cheers,
Benson
Very strange.  What is $mosConfig_live_site in your configuration.php file set for?  Does it have the http:// in front of it?

Are you running with SEF on or off?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: JustJa on March 23, 2006, 10:59:03 PM
Quote from: chadness on March 23, 2006, 01:15:32 PM
Do you have these set to yes:
"Do you want to use an image in the discussion link in your content articles?"
"Do you want default discussion links to show on the front page?"
:D What a shame!
Sorry for being blind! Thank you so much for your patience, it is working!
And I´m soooo happy  :D :D
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on March 24, 2006, 11:37:46 AM
I'm happy it was that easy!  :)
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Mongoose on March 24, 2006, 01:50:48 PM
Quote from: chadness on March 23, 2006, 04:55:26 PM
Quote from: Benson on March 23, 2006, 06:34:36 AM
When i click onto a Discuss-Link, i get an error:
The requested URL /portal/http://www.mydomain.com/portal/index.php was not found on this server.

The url in the addressbar of my browser looks like this after klicking on the discuss-link:
http://www.mydomain.com/portal/http://www.mydomain.com/portal/index.php?option=com_smf&Itemid=43

I'm using SMF 1.1rc2, Joomla 1.0.8 (with fix mentioned some posts above).

cheers,
Benson
Very strange.  What is $mosConfig_live_site in your configuration.php file set for?  Does it have the http:// in front of it?

Are you running with SEF on or off?

$mosConfig_live_site = 'http://operafan.net';

SEF enabled
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on March 24, 2006, 04:00:12 PM
That's very strange.  Why would it be adding the /portal/ to the end of that, if you have your site listed without it?  Do you know where that might be coming from?

Also, could you please try turning SEF off to see if it still happens?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Benson on March 25, 2006, 05:34:15 AM
Yes i already solved my problem with turning off SEF - seems like the new htaccess in joomla 1.0.8 is causing many problems. I tested it with the htaccess from 1.0.7 and with this older version it's working.

cheers,
Benson
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Mongoose on March 25, 2006, 11:24:39 AM
Quote from: chadness on March 24, 2006, 04:00:12 PM
That's very strange.  Why would it be adding the /portal/ to the end of that, if you have your site listed without it?  Do you know where that might be coming from?
Benson`s site URL contains /portal/ , not mine.

QuoteAlso, could you please try turning SEF off to see if it still happens?
All became fine, but I need SEF enabled.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Benson on March 26, 2006, 02:59:46 PM
Just found out that if i define a default Baord, it does set a link on every content item - i only need the discussion-links for my news-category. Can i define this anywhere or do i really have to call {mos_smf_discuss:News} everytime i need it?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: silentz on April 03, 2006, 11:22:44 AM
OK, I'm getting the following error:

Warning: main(): open_basedir restriction in effect. File(/SSI.php) is not within the allowed path(s):
(/home/{username}:/usr/lib/php:/usr/local/lib/php:/tmp) in
/home/{username}/public_html/{joomladir}/mambots/content/smf.discussbot.php on line 32


With J! 1.08
SMF 1.1 RC2
Bridge 1.13 (shiny and new :) )

My path to SMF in the bridge seems to be correct (it works!), yet it doesn't seem to be being added to the discussbot path (thus the basedir error I'm guessing).

Any ideas?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Kindred on April 03, 2006, 05:52:21 PM
no... it is likely that the discussbot will NOT work with 1.1.3 of the bridge. The bridge config file that it is looking for to find the variable values no longer exists...

I am in the process of updating the release dversions of mods and bots to properly use the new setup for the bridge.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: robbievk on April 06, 2006, 05:18:34 AM
Any news on the update kindred?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: iqapps on April 09, 2006, 05:14:05 PM
*folow up*  ???
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Benson on April 12, 2006, 04:45:05 PM
Any news about a version which will be compatible with Orstio's new bridge???
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on April 12, 2006, 05:14:56 PM
I hope to be able to work on this over the next couple of weeks.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: LazyBum on April 16, 2006, 10:50:09 PM
anyone know why my site's page goes blank after i put in the discuss bot code in the template? It won't even load...im pretty sure i put it in right. i put:
Quote<?php ob_start('output');$buffer = ob_get_contents();ob_end_clean();$buffer = str_replace('<input type="hidden" name="sc" value="" />','<input type=hidden name="sc" value="'.$sc.'">', $buffer);echo $buffer;?>
right after my </html>
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: kac on April 18, 2006, 03:24:40 PM
The problems some of you are seeing where your site links are broken (example: http://www.mysite.com/http://www.mysite.com/component/option,com_smf/Itemid,43/) is a known problem in joomla v1.0.8 that also effected mailto links.  It has been fixed for version 1.0.9.

There is a temporary fix found here:
http://forum.joomla.org/index.php?topic=41377.0

I have a problem too though.  If I publish this bot, my whole site scrambles.  I have three colums (left, user, right).  When this bot is published, everything from the left and right colums shows up under the user colum.

I've read a ton of posts trying to figure out why.

I'm using joomla v1.0.8 with SEF on (I tried off but no help)
Joomla-SMF bridge v1.1.02 (joomlahacks)

Any help would be appreciated.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: xenovanis on April 18, 2006, 05:32:26 PM
Quote from: Benson on April 12, 2006, 04:45:05 PM
Any news about a version which will be compatible with Orstio's new bridge???

Actually, it works with 1.1.3 and SMF 1.1RC2. However, it doesn't work with Joomla 1.0.8.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: meadwench on April 21, 2006, 11:46:33 AM
Sounds like a great mod, Chadness. However, when I click the download link, I get:
'Your session was not validated and anti-leach measures are in effect. ' Clicking the main Repository link gives me the same error.

Anywhere else I can get it? I'm running Orstio's shiny new 1.1.3 and Joomla 1.07.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: zimv20 on April 25, 2006, 03:33:47 AM
Quote from: Kindred on April 03, 2006, 05:52:21 PM
no... it is likely that the discussbot will NOT work with 1.1.3 of the bridge. The bridge config file that it is looking for to find the variable values no longer exists...
i managed to get it to work by hacking smf.discussbot.php. i commented out line 32:
/* require_once ($smf_path."/SSI.php"); */

my configuration:
- Mambo v4.5.3h
- SMF 1.1 RC2
- SMF/Mambo Bridge 1.1.4
- Mambo template Blue 247 Shock v453 (fwiw)

edit: i also had to comment out lines 332 and 333, as parse_bbc() was unknown:

/*
if ($discuss_parse_bbc == 1)
    $postmessage = parse_bbc($postmessage);
*/


if i'm missing the bigger picture here, someone please let me know.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Benson on April 27, 2006, 04:05:37 AM
That doesn't work, if you use e.g. the latest post module it will display errors after those changes - and at all, commenting out the line with SSI.php isn't a good idea...  ;)
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on April 28, 2006, 12:57:32 PM
Quote from: meadwench on April 21, 2006, 11:46:33 AM
Sounds like a great mod, Chadness. However, when I click the download link, I get:
'Your session was not validated and anti-leach measures are in effect. ' Clicking the main Repository link gives me the same error.

Anywhere else I can get it? I'm running Orstio's shiny new 1.1.3 and Joomla 1.07.
I just tested it and it's working fine.  Try again?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on April 28, 2006, 12:58:46 PM
Quote from: zimv20 on April 25, 2006, 03:33:47 AM
Quote from: Kindred on April 03, 2006, 05:52:21 PM
no... it is likely that the discussbot will NOT work with 1.1.3 of the bridge. The bridge config file that it is looking for to find the variable values no longer exists...
i managed to get it to work by hacking smf.discussbot.php. i commented out line 32:
/* require_once ($smf_path."/SSI.php"); */

my configuration:
- Mambo v4.5.3h
- SMF 1.1 RC2
- SMF/Mambo Bridge 1.1.4
- Mambo template Blue 247 Shock v453 (fwiw)

edit: i also had to comment out lines 332 and 333, as parse_bbc() was unknown:

/*
if ($discuss_parse_bbc == 1)
    $postmessage = parse_bbc($postmessage);
*/


if i'm missing the bigger picture here, someone please let me know.

Essentially what you are doing is making it like the Beta 5 version.  You can just install beta 5 if you are having layout problems.  It should only be an issue with people running other SMF mods such as recent topics.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Benson on May 03, 2006, 07:01:52 AM
*bump*

still missing this mod since my update to the latest bridge... if you don't have the time to fix it, could you at least lead us what to change or look for to make this mod working again?

cheers,
Benson
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Kindred on May 03, 2006, 07:12:59 AM
as I understand it, several people have vbeta5 working with bridge 1.1.4
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Mongoose on May 03, 2006, 11:49:32 AM
I have 4.1 final working with Bridge 1.1.4 here (http://operafan.net) with no problem.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: ChaosEnergy on May 03, 2006, 11:51:04 AM
how did you get it working?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Mongoose on May 03, 2006, 02:40:47 PM
I don`t now. :) I did`t do anything serious. Just install the new bridge.
And what kind of problems have you? Maybe I solved them, but it didn`t worth to me.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: ChaosEnergy on May 03, 2006, 02:57:50 PM
wrapped forum is gone

and main page looks like this

Warning: require_once(/SSI.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/web/mambots/content/smf.discussbot.php on line 32

Fatal error: require_once() [function.require]: Failed opening required '/SSI.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/web/mambots/content/smf.discussbot.php on line 32
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on May 03, 2006, 03:04:34 PM
As Kindred said, use beta 5.  The conifguration file that the final version needs i no longer there, as of version 1.1.3 of the bridge.If Mongoose upgraded from an earlier version, he still has that config file, so it might still be working for him because of that.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: ChaosEnergy on May 03, 2006, 03:57:01 PM
ok
used 4.1b5
now my site does not get broken
but

all the links on the webpage look lile this
http://chaosempire.info/web/javascript:send_form(81)

what did i missed in configuration?

Hwow to enter the default board, lin´k or board name
i used board name: News + Events

€ added joomla 1.08 fixes...
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Benson on May 04, 2006, 10:04:06 AM
Ok, so i tried beta5 - but this doesn't work if you have another module installed, e.g. in my case the latest topics module gives me a warning about another active session:

database error: Table 'portal.messages' doesn't exist
Datei: /var/www/www.mydomain.com/content/portal/smf/SSI.php
Zeile: 352database error: Table 'portal.sessions' doesn't exist
Datei: /var/www/www.mydomain.com/content/portal/smf/Sources/Load.php
Zeile: 1886
Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0


Sadly i need to run that module AND the discussbot at once, so using beta5 is no solution for me...


@ChaosEnergy: This is a knwon problem with Joomla 1.0.8, check this post:
http://www.simplemachines.org/community/index.php?topic=58578.msg512829#msg512829
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: ChaosEnergy on May 04, 2006, 12:26:42 PM
the discussbot works after the 2 joomla 108 patches..but when i m in forum, and click a personal message in mlink list..it doesnt go to message anylonger..already have had similiar things moth ago..after installing some smf modules

seems that this list is still somewhat critical..

Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: astrolabos on May 12, 2006, 03:53:58 PM
Hello there. I've installed the discussbot 4.1 final over my joomla - smf 1.1.4 bridge and after I commented two lines that someone said before, everything works just fine.
The only prob that i have is that when comments have taken place to some article, noone can comment that article. The url is all messed up.
e.g.
Quotehttp://www.theworld.gr/forum/http://www.theworld.gr/action=post&topic,%3Cimg%20border=
to just view the board concerning an article. When I try to reply to an article that it has already been answered the url i get is something like this
Quotehttp://www.theworld.gr/forum/action,post2
and after that when i hit reply I get this
Quotehttp://www.theworld.gr/forum,/www.theworld.gr/forum/action,post2/start,0/board,65
Any ideas? ::)
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on May 12, 2006, 05:24:59 PM
That's discussed three posts above the post you read that had you comment out a couple of lines.  Though I suggest using 4.1 beta 5 instead of commenting out those lines, but ah well.

The problem you are running in to is a Joomla problem - check here for a solution:
http://forum.joomla.org/index.php?topic=41377.0

I'm not sure, but this fix Orstio posted to solve the same problem in emails may resolve it as well:
http://www.simplemachines.org/community/index.php?topic=63187.msg570857#msg570857
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: astrolabos on May 13, 2006, 02:49:16 AM
Quote from: chadness on May 12, 2006, 05:24:59 PM
That's discussed three posts above the post you read that had you comment out a couple of lines.  Though I suggest using 4.1 beta 5 instead of commenting out those lines, but ah well.

The problem you are running in to is a Joomla problem - check here for a solution:
http://forum.joomla.org/index.php?topic=41377.0

I'm not sure, but this fix Orstio posted to solve the same problem in emails may resolve it as well:
http://www.simplemachines.org/community/index.php?topic=63187.msg570857#msg570857
I did tried that Chad, but there was a problem displaying the number of comments in the main page. (meaning while there were comments, under the article the number was still (0) )
As far as i can understand, you suggest to replace sef.php from 1.0.7 version of joomla (not the mossef.php), and/or run the query that Ostrio suggests, right?
Thanx in advance for your time :)

EDIT: I've replaced the sef.php file from 1.0.7 version and the problem persists: I commented an article and then the link in my main page was this
Quotehttp://www.theworld.gr/forum/http://www.theworld.gr/action=post&topic,<img%20border=
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Panagioths on May 13, 2006, 08:58:41 AM
Quote from: astrolabos on May 13, 2006, 02:49:16 AM
Quote from: chadness on May 12, 2006, 05:24:59 PM
Quotehttp://www.theworld.gr/forum/http://www.theworld.gr/action=post&topic,<img%20border=
Same problem here  :( :(
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Acirav on May 13, 2006, 09:17:35 AM
so I have tried every mosSEF patch i could found but still my discussbot links are like http://[website]/[joomla]/http://[website]/[joomla]/index.php?option=com_smf&Itemid=2
I have Joomla 1.0.8 and SMF 1.0.7
so it would be very nice if someone could outline why this can occur and all possible fixes in one post. because it is really annoying if you have to read through a 13 sites long topic with a lot of links to other topics and in these topics are also other links to possible solutions but in the end you don't get it fixed :o
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Kindred on May 13, 2006, 12:56:21 PM
for the last time...   there is no official path or code change that will get mosSEF working with the bridge...   especially not the 3.19a bridge.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: astrolabos on May 13, 2006, 02:11:50 PM
I finally figured out what's going on.
Inside smf.discussbot.php there is the code which defines the link that it must be created. This is :
'action=post&amp;topic,'
which generates a link
http://www.theworld.gr/forum/index.php?action=post&topic,1254.new#new
which is invalid, while in order for the discussbot to work properly, this must be
'action=post;topic='
which generates the proper url
http://www.theworld.gr/forum/index.php?action=post;topic=1255.new#new

I hope I helped
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: VTX on May 18, 2006, 06:13:19 AM
I am using joomla 1.0.8, SMF 1.1 RC2 and the beta5 discussbot.

Yesterday it seemed to work fine, but today I added some more news articles and the comment link doenst work?

Have a look here: http://t7r.bnext.nl and try to click the comment image on an article with 0 posts.

Anyone know whats going on here?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: astrolabos on May 18, 2006, 08:45:04 AM
Seems like a javascript problem. Why don't you try to reinstall the joomla patch for javascript links? I suppose that you have sef enabled in joomla and the forum's sef disabled, right?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: VTX on May 18, 2006, 08:51:26 AM
Yes, fix for javascript links? Gonna search for it! Thanks!
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: VTX on May 18, 2006, 09:01:01 AM
Sorry to ask, but can you point me to the fix you're talking about? I find several things, but I dont think I found the good fix?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: astrolabos on May 18, 2006, 09:01:50 AM
here you are

http://forum.joomla.org/index.php/topic,46681.0.html
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: VTX on May 18, 2006, 09:06:47 AM
Quote from: astrolabos on May 18, 2006, 09:01:50 AM
here you are

http://forum.joomla.org/index.php/topic,46681.0.html

Thanks, but this doesnt fix the problem.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: VTX on May 18, 2006, 09:09:38 AM
I just opened the javaconsole of firefox and I get this error when clicking the link:

Error: document.getElementById(form_id) has no properties
Source File: http://t7r.bnext.nl/
Line: 282

Any clue what's going wrong here?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: astrolabos on May 18, 2006, 09:11:55 AM
Can you try to post an article to check whether it works or not; I've noticed that you problem is on older articles, your most recent artcle works just fine
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: VTX on May 18, 2006, 09:48:08 AM
Im currently debugging, upgraded from beta 5 to final 4.1, now everything works, only it doens validate (xhtml), still working on that.

EDIT: All works OK now, only thing is that when there ar 0 comments its doenst validate as an ID cant start with a decimal. But it's no big deal, as soon as there is 1 reply the page validates again :)

Thanks for the help!
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: allegre on May 23, 2006, 11:10:46 AM
Hi everyone,

I have a fresh install of Joomla 1.0.8 (with two javascript patches installed), Orstio's bridge 1.1.14 and SMF 1.1 RC2.  My goal is to enable users responses on blog entries from the Joomla portal to be posted to SMF using discussbot.

I have tried all three available versions of the discussbot with the following results:

Discussbot 4.0.1
Joomla portal will display, but following warning appears where response link should be located:
Warning: preg_replace(): Unknown modifier '/' in /path/to/joomla/mambots/content/smf.discussbot.php on line 197

Discussbot 4.1 beta 5
Joomla portal will display, and response link appears with graphic.  Clicking on the link produces:
Not Found
The requested URL /http://my.url.com/index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

http://my.url.com/http://my.url.com/index.php?option=com_smf&Itemid=27

Additionally, if leading site name is removed and the latter URL is entered manually, the main forum page but not the message response box is loaded.

Discussbot 4.1 final
Home page fails to display, showing this error:
Warning: main(/SSI.php): failed to open stream: No such file or directory in /path/to/joomla/mambots/content/smf.discussbot.php on line 32

Fatal error: main(): Failed opening required '/SSI.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /path/to/joomla/mambots/content/smf.discussbot.php on line 32


I know these problems have been discussed before but after extensive searching of this forum, I can't find the solution.  It appears I am close with 4.1 beta 5, but it's still not working.  Any ideas?

Greg
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on May 23, 2006, 11:56:53 AM
I think the beta 5 problem you are having is a Joomla version 1.0.8 issue.  Have you tried the fixes mentioned a little earlier in this thread for that same problem?  For instance, astrolabs seems to have fixed that issue.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: allegre on May 23, 2006, 12:53:38 PM
Chad,

The problem is fixed.  I replaced the sef.php file from Joomla 1.0.8 with the version from 1.0.7.  I'm back at Discussbot 4.1 beta 5 (for those keeping score at home), but it also works with Discussbot 4.1 final if you comment out the call to SSI.php mentioned on a previous post in this thread.

Thanks for you help....

Greg
Title: Re: persistent session and db selection errors
Post by: Imago on May 27, 2006, 08:06:34 PM
Well, I have given up in the fight with wrong sessions and not selected database messages on the content pages, so reverted to smf.discussbot 1.3. It is far from the versatility of 4.1 final, but at least works without problems.

For those who cannot follow the entire discussion, could you please summarize the fix to these two issues, provided I have patched all files - mossef, sef (BTW, the new sef.php screwed up the forum), and login.

Or probably there is some new version of the advanced discussbot for 1.0.8, we are not aware of...
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Kindred on May 28, 2006, 08:38:21 AM
did you try using 4.1 beta5?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Imago on May 28, 2006, 01:25:14 PM
Yes, I did. Messages are being posted, but the bottom-line warning remains
Database Error: No database selected
File: /home/reklami/public_html/forum/Sources/Load.php
Line: 1886
Warning: Unknown: A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0

Warning: Unknown: A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0

http://www.reklami.org/content/view/1/1/

This is the error I get every two clicks in the Admin section:

Fatal error: session_start() [function.session-start]: Failed to initialize storage module: user (path: /tmp) in /home/account/public_html/administrator/index2.php on line 30

This site is UTF-8 based, could it be the reason why?...
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Imago on May 29, 2006, 09:34:57 AM
no more db error message BUT
line 1882-1886 commented in /forum/Sources/Load.php

// First try to update an existing row...
# $result = db_query("
# UPDATE {$db_prefix}sessions
# SET data = '" . addslashes($data) . "', last_update = " . time() . "
# WHERE session_id = '" . addslashes($session_id) . "'
# LIMIT 1", __FILE__, __LINE__);


Will this affect the functionality of the forum?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Benson on May 31, 2006, 11:40:45 AM
Quote from: Imago on May 29, 2006, 09:34:57 AM
no more db error message BUT
line 1882-1886 commented in /forum/Sources/Load.php

// First try to update an existing row...
# $result = db_query("
# UPDATE {$db_prefix}sessions
# SET data = '" . addslashes($data) . "', last_update = " . time() . "
# WHERE session_id = '" . addslashes($session_id) . "'
# LIMIT 1", __FILE__, __LINE__);


Will this affect the functionality of the forum?
Tried with that solution, but when i want to logout i get an session-error. So certainly not a fix.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on May 31, 2006, 12:07:50 PM
Quote from: Kindred on May 28, 2006, 08:38:21 AM
did you try using 4.1 beta5?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Imago on May 31, 2006, 08:35:49 PM
Yes, I did. See the first post on this page.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on June 01, 2006, 04:37:06 PM
I'm not sure.  You do have the required code at the bottom of your template?

You might also want to put this:

<?php mysql_select_db($db_name); ?>

At the bottom of your Joomla/Mambo template, right before the </body> tag.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: c2h5oh on June 02, 2006, 03:06:18 PM
There seems to be a javascript problem with joomla 1.08.
If 4.1 Final is installed (doesn't matter if it is published or if the code is at the end of the template) html is not generated correctly. I get a file containing single line:
<table class="blog" cellpadding="0" cellspacing="0"><tr><td valign="top">
and that happens to be the line just before the code generated by the bot.
Going back to beta 5 solves the problem (as you've said before).

It might be a joomla 1.08 problem, but I suspect it could also be me using javascript in template (3-column, div based layout with javascript-generated div height) - just like the previous person reporting problem with 1.08 + 4.1final. I'm not sure, but does 1.08 default template contain javascript?

Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on June 02, 2006, 04:52:20 PM
It's most likely that it's the code for it to load up the SSI.php file.  That's problematic in several situations.  That's why using beta 5, or commenting out the line loading up the SSI file (and the call to the function in it) will fix the problem.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: c2h5oh on June 02, 2006, 05:40:32 PM
OK.
Is it possible to have the link to discussion on frontpage?
If I put it in intro text I end up with a link in the middle of the article, and if I set default forum "no_discuss" and the correct {mos_discuss:forum name} at the end of main text I get dead links on frontpage (linking to board that does not exist)
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Kindred on June 02, 2006, 07:47:08 PM
it's not supposed to be {mos_discuss:forum name}

(a forum is the whole set of boards, a board is the individual part of a forum where the posts actually are)


it is supposed to be {mos_discuss:BOARD name}
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: c2h5oh on June 03, 2006, 04:13:59 PM
Quote from: Kindred on June 02, 2006, 07:47:08 PMit is supposed to be {mos_discuss:BOARD name}
And it is. My mistake here.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: komma on June 04, 2006, 01:23:44 PM
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?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Praedator on June 27, 2006, 09:59:39 AM
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 ;)
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on June 27, 2006, 11:11:42 AM
Thanks, Predator!
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: lemonlime on July 04, 2006, 10:52:50 PM
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'. 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 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?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: 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
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: 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
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Mongoose on July 06, 2006, 03:04:51 AM
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) . '">';
    }
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: jucream on July 06, 2006, 09:22:36 PM
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
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Mongoose on July 07, 2006, 03:22:03 AM
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 />';
            }
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: lemonlime on July 07, 2006, 09:48:04 AM
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?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: jucream on July 07, 2006, 06:33:36 PM
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
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: lordmenace on July 07, 2006, 06:44:14 PM
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.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: jucream on July 07, 2006, 07:00:21 PM
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
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: 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
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: iqapps on July 11, 2006, 05:18:19 PM
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
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: lordmenace on July 11, 2006, 10:14:25 PM
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.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: Kindred on July 11, 2006, 11:16:58 PM
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.)
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: audioindonesia on July 12, 2006, 01:58:45 AM
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
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: audioindonesia on July 13, 2006, 06:50:53 AM
need help please
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on July 13, 2006, 09:34:29 AM
It's trying to refer to a file that no longer exists.  Use the beta 5 (http://www.technoadvice.com/component/remository/Download/Joomla-and-Mambo/SMF-Discussbot-version-4.1-beta-5/) version instead - it did not have that reference.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: audioindonesia on July 13, 2006, 10:36:36 PM
Thx Chad, I'm installing the BETA5 version, but my event mod shows :

QuoteDatabase Error: Table 'audioind_joom1.calendar' doesn't exist
File: /home/audioind/public_html/modules/mod_smf_events.php
Line: 102Database Error: Table 'audioind_joom1.sessions' doesn't exist
File: /home/audioind/public_html/forum/Sources/Load.php
Line: 1886
Warning: Unknown: A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0

Warning: Unknown: A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0
Title: Discussbot returns (0) comments and creates a new post every click
Post by: silentz on July 13, 2006, 11:53:31 PM
Hey guys,

I have climbed the highest mountains, I have searched the longest posts, but to quoth mr Bono I still haven't found what I'm looking for which is the answer to this:

Discussbot is always returning (0) comments for each news story and when I click on the link, it adds a new post each time even if a post has been created from that news story already.

Here's the stats:

Joomla 1.0.10
SMF 1.1 RC2
Bridge 1.15
Discussbot 4.1 beta 5

Yes I am using other forum modules (recent topics and events).
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on July 14, 2006, 10:15:25 AM
Quote from: audioindonesia on July 13, 2006, 10:36:36 PM
Thx Chad, I'm installing the BETA5 version, but my event mod shows :

QuoteDatabase Error: Table 'audioind_joom1.calendar' doesn't exist
File: /home/audioind/public_html/modules/mod_smf_events.php
Line: 102Database Error: Table 'audioind_joom1.sessions' doesn't exist
File: /home/audioind/public_html/forum/Sources/Load.php
Line: 1886
Warning: Unknown: A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0

Warning: Unknown: A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0
Make sure you do the fix for Joomla 1.0.10 mentioned in the top post of the combined readme.  I'll repost the info here as well:

For Joomla 1.0.10 on systems using the dicussbot:
(Thanks to Predator)
Due to the lastest Joomla! Release (Version 1.0.10) the bot could add it's links into a MODULE display. To avoid this, you need to do the following in the function MOSBOT_add_smfforumlink():

Find:

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



Add after:

// Since Joomla! 1.0.10 also module can effect Bots, to avoid just return if it is a module.
if (@$row->content){
       return;
}
Title: Re: Discussbot returns (0) comments and creates a new post every click
Post by: chadness on July 14, 2006, 10:17:42 AM
Quote from: silentz on July 13, 2006, 11:53:31 PM
Hey guys,

I have climbed the highest mountains, I have searched the longest posts, but to quoth mr Bono I still haven't found what I'm looking for which is the answer to this:

Discussbot is always returning (0) comments for each news story and when I click on the link, it adds a new post each time even if a post has been created from that news story already.

Here's the stats:

Joomla 1.0.10
SMF 1.1 RC2
Bridge 1.15
Discussbot 4.1 beta 5

Yes I am using other forum modules (recent topics and events).
I don't know that the module fix I'm tlaking about in the last post is causing your problem, but I think the page can get messed up if you haven't done it.  So, have you done that fix?

You don't have boards with duplicate names, do you?
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: lemonlime on July 14, 2006, 02:58:59 PM
Has anyone been able to successfully use discussbot 4.1beta5 and Joomla 1.0.10?

I have:
Joomla 1.0.10
SMF 1.1RC2
Bridge 1.1.5
Discussbot beta5.

I am still plagued with that URL prepend bug that I can't seem to escape. I'm using bridge 1.1.5 and the 1.0.10 fix is applied. The bridge is working great, but I can't get discussbot working for the life of me.

If I click the (0), I get redirected to http://sitename.com/http://sitename.com/index.php?option=com_smf&Itemid=26

Does anyone know of any potential fixes for this problem? This bot looks awesome, and I am dying to get it working properly :)

Thanks in advance.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on July 14, 2006, 03:11:39 PM
Unfortunately, the only fix I've been able to find so far is to use the sef.php file from 1.0.7.  I'm extremely tight on time these days so I haven't been able to dig in to why this occurs or what a better solution would be.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: lemonlime on July 14, 2006, 03:27:42 PM
Quote from: chadness on July 14, 2006, 03:11:39 PM
Unfortunately, the only fix I've been able to find so far is to use the sef.php file from 1.0.7.  I'm extremely tight on time these days so I haven't been able to dig in to why this occurs or what a better solution would be.

Hi chadness,

Thanks for your reply. I tried the sef.php file from 1.0.7 before which corrected the URL issue, but I got an error telling me 'The topic or board you are looking for appears to be either missing or off limits to you.'. (See my post here for detail): http://www.simplemachines.org/community/index.php?topic=58578.msg633661#msg633661

Could this be caused by using the sef.php from 1.0.7? or is this some other issue. Btw, I don't use SEF urls in joomla. Is there a way to just strip out any SEF code from the bot?

Sorry for all the questions, I know you are very busy. Thanks again.



Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: chadness on July 14, 2006, 04:49:31 PM
Quote from: lemonlime on July 14, 2006, 03:27:42 PM
Hi chadness,

Thanks for your reply. I tried the sef.php file from 1.0.7 before which corrected the URL issue, but I got an error telling me 'The topic or board you are looking for appears to be either missing or off limits to you.'. (See my post here for detail): http://www.simplemachines.org/community/index.php?topic=58578.msg633661#msg633661
I've mostly noticed that when you have seperate databases and have not given them access to each other.  That doesn't seem to be the case for you, so I'm not sure what's causing the problem.  Have you tried changing your default board to a different one?
Quote
Could this be caused by using the sef.php from 1.0.7? or is this some other issue. Btw, I don't use SEF urls in joomla. Is there a way to just strip out any SEF code from the bot?

Sorry for all the questions, I know you are very busy. Thanks again.
That shouldn't be causing it.  The SEF code is worked pretty tightly in to it.  It would take some time to remove it, but theoretically it can be done.  Unfortunately, I'm about to drive off on vacation for a week.  I'll check back when I'm back in town and see what I can do.
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: lemonlime on July 15, 2006, 10:06:16 AM
Quote from: chadness on July 14, 2006, 04:49:31 PM

I've mostly noticed that when you have seperate databases and have not given them access to each other.  That doesn't seem to be the case for you, so I'm not sure what's causing the problem.  Have you tried changing your default board to a different one?


I tried several to no avail. There are no duplicates, or special characters. The primary one I have been trying is 'News'.

Quote
That shouldn't be causing it.  The SEF code is worked pretty tightly in to it.  It would take some time to remove it, but theoretically it can be done.  Unfortunately, I'm about to drive off on vacation for a week.  I'll check back when I'm back in town and see what I can do.

No worries, thanks again for your help. I hope you have a great vacation!  8)
Title: Re: Discussbot version 4.1 final (released 11-28-05)
Post by: skydig on July 17, 2006, 03:18:17 PM
For using SMF Discussbot v4.1 final with joomla 1.0.10 please see here as it may solve your problems :

http://www.simplemachines.org/community/index.php?topic=100089.0 (http://www.simplemachines.org/community/index.php?topic=100089.0)