Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Mambo Bridge Support => Topic started by: chr!x on August 25, 2006, 12:34:36 PM

Title: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: chr!x on August 25, 2006, 12:34:36 PM
Hi !

Here is my config :

* Joomla 1.0.10 FR
* SMF 1.1 RC3
* SMF DiscussBot 4.1 beta 4 - Joomla 1.0.3

With Bridge 1.1.5, any problem. When I install Bridge 1.1.6, this bug rise up :

Quote
Warning: main(/home/httpd/vhosts/dungeon-keeper.net/httpdocs/administrator/components/com_smf/config.smf.php): failed to open stream: No such file or directory in /home/httpd/vhosts/dungeon-keeper.net/httpdocs/mambots/content/smf.discussbot.php on line 30

Apparently, file /administrator/components/com_smf/config.smf.php doesn't exist anymore.

What can I do ?  :-[
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: smylo on August 25, 2006, 01:01:19 PM
I have the same problem...   >:(
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: chr!x on August 25, 2006, 01:12:59 PM
Don't you have Bridge 1.1.5 anywhere on you PC ?
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: Orstio on August 25, 2006, 01:20:50 PM
Why not try the discussbot here from Skydig:

http://www.simplemachines.org/community/index.php?topic=100089.msg649303#msg649303
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: smylo on August 25, 2006, 01:44:02 PM
i tryed also the discussbot from Skydig, but with no success..

the bug is also the same, file not found.

Warning: main(/www/htdocs/xxxx/xxxx/xxxxx/administrator/components/com_smf/config.smf.php): failed to open stream: No such file or directory in /www/htdocs/xxxx/xxxx/xxxxx/mambots/content/smf.discussbot.php on line 30

Warning: main(/www/htdocs/xxxx/xxxx/xxxxx/administrator/components/com_smf/config.smf.php): failed to open stream: No such file or directory in /www/htdocs/xxxx/xxxx/xxxxx/mambots/content/smf.discussbot.php on line 30

Fatal error: main(): Failed opening required '/www/htdocs/xxxx/xxxx/xxxxx/administrator/components/com_smf/config.smf.php' (include_path='/www/htdocs/xxxx/xxxx/xxxxx/administrator/components/com_sef:/www/htdocs/w006986b/sites/stiger/administrator/components/com_sef/includes:.:/usr/share/php:..') in /www/htdocs/xxxx/xxxx/xxxxx/mambots/content/smf.discussbot.php on line 30
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: Orstio on August 25, 2006, 01:53:41 PM
Remove this line from Skydig's bot:

require($mosConfig_absolute_path."/administrator/components/com_smf/config.smf.php");

It is useless anyway.
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: chr!x on August 25, 2006, 02:30:53 PM
I've just remove it... and also the same code on line 59... It seems working  :)
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: smylo on August 25, 2006, 02:39:38 PM
thanks for your fast answer.

its also seems to be working by me, but now i have the problem that the link back to the article is wrong... (index.php?option=com_content&task=view&id=2&Itemid=36)
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: chr!x on August 25, 2006, 03:28:15 PM
Same for me ! Wrong link !
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: Orstio on August 26, 2006, 12:42:27 AM
Try the one attached to this post.
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: smylo on August 26, 2006, 06:29:44 AM
it's unbelievable...  ;D

but now there is the problem that the post is generated automatically and you have to click on the modify button to write your comment...
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: Orstio on August 26, 2006, 09:26:52 AM
Quotebut now there is the problem that the post is generated automatically and you have to click on the modify button to write your comment...

I think you can change that in the bot params...
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: smylo on August 26, 2006, 10:34:47 AM
you are right! this was my mistake   :-X , thanks a lot for your fantastic support!  :D
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: chr!x on August 30, 2006, 05:20:57 AM
Sorry to open again this topic  :-[

I've update Joomla from 1.0.10 to 1.0.11 (perhaps not the reason of this problem ?). So here is my new conf :

* Joomla 1.0.11 FR
* SMF 1.1 RC3
* SMF DiscussBot 4.1 beta 7.

The DiscussBot you gave me (http://www.simplemachines.org/community/index.php?topic=108680.msg699248#msg699248) works fine, except {mos_smf_discuss:no_discuss} still display instead of being invisible...

Here is code on line 130 :


            if ($mos_smf_discuss_match == "no_discuss"  || ($show_discuss_front_page == 0 && $_REQUEST['option'] !="com_content" )){
                $showbottext = "";
            } else {
                $showbottext = make_smfforumlink( $mos_smf_discuss_match, $row);
            }


On line 131, if I put $showbottext = "HELLO"; nothing append. So I think this piece of code is never run...

I don't understand why  ??? ::)
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: chr!x on August 30, 2006, 07:50:03 AM
I've the solution :

Previously, discussbot need {mos_smf_discuss:no_discuss} into modules where I display text. With this version, It's not case. So I just need to remove {mos_smf_discuss:no_discuss} into modules display, and it's work :)

{mos_smf_discuss:no_discuss} run perfectly into articles.
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: elfishtroll on September 05, 2006, 09:51:23 AM
very good of you to respond to your post wit your fix!!
:) many people not do! 8) :D
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: ahwoogamac on September 06, 2006, 01:31:33 PM
I've installed the version on this thread, however, I'm getting a "The board you specified doesn't exist" again, like some of the older versions.  My url is missing the board id.  It only says:

index.php?option=com_smf&Itemid=84&

I have Joomla! 1.0.11, SMF 1.1 RC3, and (like I said) this newest discussbot file that is available in this thread. I have the databases set up with their correct permissions.  In fact, did work for a while, with SMF 1.1 RC2 and the older discussbot, but when I upgraded both, this started to happen.
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: ormuz on September 07, 2006, 08:39:58 AM
This solutions doesn't work for me

I have this error mensagens in my live site...

Table 'aopostec_futebol.sessions' doesn't exist
Ficheiro: /home/aopostec/public_html/forum/Sources/Load.php
Linha: 1981


Table 'aopostec_futebol.log_online' doesn't exist
Ficheiro: /home/aopostec/public_html/forum/Sources/Subs.php
Linha: 2506


And in the admin mambots menu the discussbot appears as checked out!

EDIT: forget to configure de bot... lol
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: shinbushi on September 14, 2006, 01:19:05 PM
Quote from: ahwoogamac on September 06, 2006, 01:31:33 PM
I've installed the version on this thread, however, I'm getting a "The board you specified doesn't exist" again, like some of the older versions.  My url is missing the board id.  It only says:

index.php?option=com_smf&Itemid=84&

I have Joomla! 1.0.11, SMF 1.1 RC3, and (like I said) this newest discussbot file that is available in this thread. I have the databases set up with their correct permissions.  In fact, did work for a while, with SMF 1.1 RC2 and the older discussbot, but when I upgraded both, this started to happen.
I am having the same problem.  Did you, has anyone else solved this?
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: ahwoogamac on September 14, 2006, 01:26:00 PM
Since I hadn't mentioned the bot as an option to my client, I have uninstalled it until somebody fixes it or can let me know what's going wrong.
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: ormuz on September 14, 2006, 02:20:58 PM
nothing going wrong, the bot works just fine!
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: ahwoogamac on September 14, 2006, 02:34:31 PM
I must seeing things on my website then....  ::) 

Maybe some constructive help might come in a little handier than telling me my problem doesn't exist.
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: ormuz on September 14, 2006, 03:36:55 PM
if u insert the code in your template, that just can be a configuration problem...

You can see it in action in many sites...
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: shinbushi on September 14, 2006, 03:45:35 PM
Go to my site www.taijutsu.com/content
register and try to click on any of the discuss article links and tell me what you get.

BTW in the default template I have the <?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;?>
at the bottem.
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: ahwoogamac on September 14, 2006, 03:49:17 PM
My code is correct.  Configuration is correct.  I have already had the bot working correctly on my site.  But with the new Bridge update came a new bot update.  That's where the problem started. 

I am not denying that it is working on sites.  I congratulate you for getting it to work on yours.  However, as shinbushi has just posted the exact problem, this isn't an isolated incident.  All I'm asking is that if somebody has run into this problem and found the solution, they would be so kind to share it.
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: Orstio on September 14, 2006, 06:35:33 PM
In the bot params, it asks for your SMF database name and the SMF database prefix.  You will need to enter those.
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: ahwoogamac on September 14, 2006, 06:46:43 PM
They had already been entered correctly.

Quote from: ahwoogamac on September 06, 2006, 01:31:33 PM
I have Joomla! 1.0.11, SMF 1.1 RC3, and (like I said) this newest discussbot file that is available in this thread. I have the databases set up with their correct permissions.  In fact, did work for a while, with SMF 1.1 RC2 and the older discussbot, but when I upgraded both, this started to happen.

I'm not dealing with a fact that I missed a step in setup, because it DID work correctly before I upgraded.  I can't go back to the older versions because of the forum upgrade, but this keeps giving me a truncated url.

index.php?option=com_smf&Itemid=84&
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: shinbushi on September 14, 2006, 07:11:49 PM
With me I set the default to Article Discussion which is http://taijutsu.com/content/index.php?option=com_smf&Itemid=27&board=17.0
When I click on the link in my article it goes to http://taijutsu.com/content/index.php?option=com_smf&Itemid=27&topic=106.new#new
I double check my DB name taijutsu_smf1 and prefix is smf_
any ideas?
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: Orstio on September 14, 2006, 07:36:36 PM
Try this code at the vottom of your template instead of what you have:

<?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;

mysql_select_db($GLOBALS['db_name']);
?>
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: shinbushi on September 14, 2006, 07:58:34 PM
Same error.
On the template I am doing it in Joomla edit template HTML and I have tried it both before and after the </HTML> tag
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: Orstio on September 14, 2006, 10:38:20 PM
Does your Joomla database user have access to your SMF database?
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: shinbushi on September 15, 2006, 09:02:25 AM
Users in smf1
taijutsu_joom1 (Privileges: ALL PRIVILEGES)
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: ahwoogamac on September 15, 2006, 10:37:04 AM
Here's a link to the page I'm have the issue with: http://www.e3students.com/index.php?option=com_content&task=view&id=25&Itemid=81

When you click on the discussbot link, it goes to the forum with a "The board you specified doesn't exist" and the ever annoying url: http://www.e3students.com/index.php?option=com_smf&Itemid=84&

For recap:

1) Again, I went in a checked and the users of both databases have full permissions to the other database.
2) The correct SMF database is listed in the config page and the default SMF_ prefix is correct in my situation.
3) I inserted Orstio's newest code at the bottom of my template.

I'm also still getting the error on the front page:

Database Error: Table 'e3stud_joom1.smf_sessions' doesn't exist
File: /home/e3stud/public_html/forum/Sources/Load.php
Line: 1981


I'm usually one to exhuast all forum posts for solutions before I even post at all.  But this has one really has me stumped.
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: jonblazn on September 27, 2006, 02:06:23 AM
I'm not sure what's different between me and everyone else but I'm getting the following error:
Database Error: Table 'mysite_joomla.messages' doesn't exist
File: /home3/mysite/public_html/forum/SSI.php
Line: 259

Can anyone help. I'm using:
* Joomla 1.0.10
* SMF 1.1 RC3
* SMF DiscussBot as downloaded from this thread
*Bridge 1.1.6

Thanks in advance-
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: Orstio on September 27, 2006, 06:03:53 AM
Go to your Joomla admin panel, and edit the params of the discussbot.

Make sure to enter both the database name and prefix into their respective textboxes.

Make sure to click Save.
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: jonblazn on September 28, 2006, 12:18:32 AM
Thanks. Now I'm getting this error though:
Database Error: Table 'mysiteDBprefix_smf.mysiteDBprefix_messages' doesn't exist
File: /home3/mysite/public_html/forum/SSI.php
Line: 259

Any ideas?
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: Orstio on September 28, 2006, 05:54:03 AM
Your database prefix and database name are two different things.
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: jonblazn on September 28, 2006, 09:45:11 AM
I think I had been including the db prefix in my db name. Thanks. However I'm now getting this message:
Database Error: Table 'elitetra_mambo.[color=red]elitetr[/color]_messages' doesn't exist
File: /home3/elitetra/public_html/forum/SSI.php
Line: 259

Incidentally, my joomla db name is elitetra_mambo. I don't know why this is showing up in the error code. I'm also unsure why the highlighted red text would be elitetr instead of elitetra.

Thanks again-
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: Kindred on September 28, 2006, 03:24:41 PM
I think you are incorrect.

your SMF database name is elitetra_smf
your smf database prefix (if you did not alter it during installation) would default to be smf_

the default board is the NAME of the default board to put the discussions in... like: General Discussion
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: jonblazn on September 29, 2006, 12:52:43 AM
Thanks you were helpful as usual.
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: jonblazn on September 29, 2006, 03:07:54 AM
Sorry to reopen but when I set my default discussion links to NOT show on the front page nothing shows up even though I've entered in the appropiate code {mos_smf_discuss:Blog Discussion}. The odd thing is that the mos code doesn't even show up in the joomla blog entry....it's as if it isn't even there....but it is. When I set my links to show on the front page it works great. The only problem is that I want to limit the option for discussion to only a couple categories.
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: jonblazn on September 30, 2006, 04:01:19 PM
Never mind....I had a misunderstanding....all I had to do was turn on the front page links but leave the default board blank. I thought that turning on the front page links would put the discussion on ALL content on the front page rather than just where I put the moscode.
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: X-Ception on November 18, 2006, 11:58:55 PM
everything works fine, till i add

<?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;
?>

ive also tried:

mysql_select_db($GLOBALS['db_name']);

added to the template as you suggest to another user about 4 posts up nothing wrong with the bot, works fine but i assume this updates info - problem is with:
Quote
PHP_FLAG display_errors On
in .htaccess i get a white page everytime :(

using php 5.0.x
Title: Re: [Bridge 1.1.6] Problem with SMF DiscussBot
Post by: chadness on November 20, 2006, 10:10:03 AM
If it's working without the code, don't worry about adding it.