OK, trying to revive this and make it compatible with Orstio's bridge 1.1.6 and SMF 1.1 RC3.
For discussing your Joomla content articles on designated SMF boards. These discussions can be displayed in the content article.
Install the same as any mambot, through the Administration mambot installer.
To upgrade from a previous version, the easiest way is to just upload the files in to your /mambots/content directory, overwriting the previous ones. Then go in to the mambot properties in Administration, and save the settings.
Here's the features I've added (though there may be some I forgot that I coded in a long time ago):
- Orstio bridge version 1.1.6 compatibility.
- Hopefully fixed the display problems when running on certain pages with other SMF modules.
- Added option for nofollow rel tag so Google's bot (and possibly others) will not follow links.
- Added option to choose whether or not to display in modules (apparently in Joomla 1.0.10 content mambots started to be able to display in modules).
- Added option to use SMF board numbers instead of name
So far I've only tested this with Joomla 1.0.11, SMF 1.1 RC3, and Orstio's bridge 1.1.6. I would appreciate feedback from testing any other configurations. This is an early beta - I wouldn't go throwing it on any important production sites!
Thanks! And thanks to Skydig and Orstio for various fixes!
Download here:
http://www.technoadvice.com/component/remository/Download/Joomla-and-Mambo/SMF-Discussbot-version-4.2-beta-1/
The following code should go at the end of your 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;
?>
Known Issues:
- There are problems if you have two separate databases for Joomla and SMF. The easiest workaround is to use the same database username and password for both your Joomla and your SMF database (both users should already have been set up with complete access to the other database to get the bridge to work). In the SMF Admin Server Settings, you can easily change the username and password that your site is using.
- Special characters such as ü do not seem to work. You will run in to problems with special characters if they are in the subject of you articles. When auto-generating the SMF thread, it will only make the subject up to the special character, then cut off the rest. The only work-around for this at the moment is to manually fill in the rest of the subject line - if you do this, the link from the article should find the correct post.
Any quoted articles will be cut off at any special characters as well.
Sorry to be an ignoramous here, but can you tell me what this (discussbot) mod does, or provide a link that does?
http://www.everything-science.com/sci/Frontpage/
Take a look at the end of each article. You'll see a speech balloon and link "(X) Comments posted about this in the forum".
If there is no topic started about the article, the bot creates one. If there is, it the link takes you to the discussion.
Chad added the ability to display the topic at the bottom of the article, complete with BBC and smiley parsing, along with a whole lot of other features.
4.2 is really looking good. ;D
Wow, thanks Orstio .. That's wicked!
Chad, nice work indeed -- Do you have to use the tag at the bottom if you want the item posted to the default forum category?
Quote from: chadness on October 06, 2006, 02:28:41 AM
Here's the features I've added (though there may be some I forgot that I coded in a long time ago):
- Orstio bridge version 1.1.6 compatibility.
- Hopefully fixed the display problems when running on certain pages with other SMF modules.
- Added option for nofollow rel tag so Google's bot (and possibly others) will not follow links.
- Added option to choose whether or not to display in modules (apparently in Joomla 1.0.10 content mambots started to be able to display in modules).
- Added option to use SMF board numbers instead of name
Excellent.
I'll be testing this, and post for results.
just installed on my joomla (x.11) with smf RC3 and the 1.6bridge
seems to work fine so far (just looking through the options)
but i have one problem:
adding the following lines to my template as it should be done, i only get a empty page in my joomla everywhere, if i leave the code out its working (as far as i tested so far)
<?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;?>
do i have to worry about that?
edit:
when leaving a comment it does not affect the discussbot, and everytime someone klicks on the link to the discussion it opens a new topic.
i have joomla and smf in seperate DBs but since there is a field in the config of the bot this should not be the matter.
and i dont get the topic to show up (and neither the quick reply box) under the article.
both problems may be because of the problem with the code inserting, so i dont want to say its a error.
i would be glad if you could give me a clue what is going wrong here
Quote from: Orstio on October 06, 2006, 06:14:07 AM
4.2 is really looking good. ;D
Thanks! That conditional statement for the SSI was the real key. :)
Quote from: M3g4d37h on October 06, 2006, 06:22:59 AM
Chad, nice work indeed -- Do you have to use the tag at the bottom if you want the item posted to the default forum category?
If you set up a default board for comments to be posted to, you do not have to add in the {mos_smf_discuss:board name} code to your articles - it will automatically add it to each one.
maxigs - where exactly were you putting the code?
Quote from: chadness on October 06, 2006, 09:19:08 AM
maxigs - where exactly were you putting the code?
at the very end of the index.php template file
but i think i found the error anyway already. in IE the page did not work when the output compression was turned on (while the code was inserted), in opera it did not make any problems.
now i turned the output compression of and the pages show up again, but still i have the other problems as described.
i have one more clue:
the board for the comments is yet only accessible from moderators since its only for testing purposes, would this affect the bot?
I wouldn't think so, as long as the person who is posting has access to it. I've done it on boards that aren't publicly accessible before.
It seems like it's not finding your post at all. Try changing line 173 from this:
$database->setQuery("SELECT ID_BOARD FROM {$db_prefix}boards WHERE name='$catid';");
to this:
$database->setQuery("SELECT ID_BOARD FROM {$db_prefix}boards WHERE name='" . $catid . "';");
If that doesn't work, try changing to using board numbers instead of board names.
i tried both ways, ids and name
with the id it at least finds the right board (i anyway used that front the beginning) and with the board name its just showing an error "the topic you want to view does not exist or you dont have the permission to view it" (permission definately should not be it since i'm properly logged in)
with the code change you gave me it did not work either.. :(
i really wonder whats going wrong. it can find the right board (the link leads to the right board and opens a topic in it) but it does not want to find a matching topic and always opens a new one.
OK, I'm kind of reaching here, but is your board using english? Also, are there any other topics or boards with the same name?
Quote from: chadness on October 07, 2006, 11:03:38 PM
OK, I'm kind of reaching here, but is your board using english?
no, both joomla and smf are in german :-[
Quote from: chadness on October 07, 2006, 11:03:38 PM
Also, are there any other topics or boards with the same name?
definately not
On some servers, when using SMF and Joomla in separate databases, you can't use the $database object to access the SMF database.
any good way to go around this, or do i really have to merge my databases again, after finally splittting them :'(
No. This:
$database->setQuery("SELECT ID_BOARD FROM {$db_prefix}boards WHERE name='$catid';");
$boardid=$database->loadResult();
Needs to be something more like this:
$query = mysql_query("SELECT ID_BOARD FROM {$db_prefix}boards WHERE name='$catid';");
list($boardid) = mysql_fetch_array($query);
hey all, im having problems with the bot.
once installed, when i access the forum, it kinda starts refreshing the page like crazy!
this happens on IE only.
does this sound familiar?
i cant keep the site with the bot installed as example, since 80% is using IE.
it might be handy to note that im using OPENSEF on the website too.
www.webturd.com
I have gone through the code of the discussbot and thought it could use a lot of cleanup. For starters, it is hard to tell what the bot is doing at any point because of the general lack of comments. Second, I have noticed many variables are declared as globals two or three—and in one case four—different times, some of which are not being used. Also, the bot's parameters could be passed from one function to another in a more eloquent manner then by using globals. And finally, the format of the code should be made much more consistent and readable.
All of these problems makes the discussbot far more difficult to modify then it should.
EDIT: One question I do have is what is the advantage of switching between the two databases (Joomla and SMF) using mysql_select_db() instead of opening a second connection for the SMF queries?
QuoteEDIT: One question I do have is what is the advantage of switching between the two databases (Joomla and SMF) using mysql_select_db() instead of opening a second connection for the SMF queries?
Two connections are open, but you still need to switch databases when Joomla and SMF tables are not installed in the same database.
Quote from: Orstio on October 10, 2006, 09:21:15 PM
Two connections are open, but you still need to switch databases when Joomla and SMF tables are not installed in the same database.
What I'm looking at is creating a new database object to handle the SMF calls. Something along the lines of:
global $mosConfig_host, $mosConfig_user, $mosConfig_password, $mosConfig_db, $db_name, $db_prefix;
if ( !empty( $db_name ) {
$smf_database = new database( $mosConfig_host, $mosConfig_user, $mosConfig_password, $db_name, $db_prefix );
} else {
$smf_database = new database( $mosConfig_host, $mosConfig_user, $mosConfig_password, $mosConfig_db, $db_prefix );
}
if ( $smf_database->getErrorNum() ) {
return "Error in opening SMF database. Please contact the administrator.";
}
Thoughts on this method
You'll still need to use mysql_select_db(), regardless.
Quote from: farix on October 10, 2006, 08:36:37 PM
I have gone through the code of the discussbot and thought it could use a lot of cleanup. For starters, it is hard to tell what the bot is doing at any point because of the general lack of comments. Second, I have noticed many variables are declared as globals two or three—and in one case four—different times, some of which are not being used. Also, the bot's parameters could be passed from one function to another in a more eloquent manner then by using globals. And finally, the format of the code should be made much more consistent and readable.
All of these problems makes the discussbot far more difficult to modify then it should.
EDIT: One question I do have is what is the advantage of switching between the two databases (Joomla and SMF) using mysql_select_db() instead of opening a second connection for the SMF queries?
Yeah, there are two major causes of the problems. First, it's been modified by a ton of different people. Second, I'm not really a programmer, so I haven't been the most effective at cleanup, or at following good practices in the stuff I've added. But, please feel free to do what you want with it. I can either incorporate work that you do (as I have with others) and continue to host files, or host anything you put together yourself, if you like.
Quote from: satcom on October 10, 2006, 06:41:30 PM
hey all, im having problems with the bot.
once installed, when i access the forum, it kinda starts refreshing the page like crazy!
this happens on IE only.
does this sound familiar?
i cant keep the site with the bot installed as example, since 80% is using IE.
it might be handy to note that im using OPENSEF on the website too.
www.webturd.com
Did you add the code to the bottom of your template?
You might also try adding the following code to the bottom of your template:
<?php mysql_select_db($GLOBALS['db_name']); ?>
Do you have a test site you can experiment with? If so, try a different Joomla template. I seem to recall seeing this problem before, but I can't for the life of me remember what it was.
Nice domain name. :)
Chadness is possible show avatar in your discussbot ???
On installing the discussbot it seems to conflict with the smf_online2 module as my webpage stops loading at the point where the online module should display and returns this error in its place.
QuoteDatabase Error: Table 'name_brj.smf_log_online' doesn't exist
File: /home/name/public_html/forum/Sources/Subs.php
Line: 2529Database Error: Table 'name8_brj.smf_sessions' doesn't exist
File: /home/name/public_html/forum/Sources/Load.php
Line: 1981
Any guidance?
EDIT: Ok on navigating away from the main frontpage this error changes to this:
QuoteWarning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/name/public_html/mambots/content/SMFAuthorBot.php on line 25
Which appears in a completely different area of the website and the online module works correctly.
At this point the bot also seems to conflict with the "Lastest posts" module and returns this error in it's place.
QuoteDatabase Error: Table 'name_brj.smf_messages' doesn't exist
File: /home/name/public_html/forum/SSI.php
Line: 259Database Error: Table 'name_brj.smf_sessions' doesn't exist
File: /home/name/public_html/forum/Sources/Load.php
Line: 1981
Any ideas :/ no errors etc on install or in the admin panel.
Does your Joomla database user have access to your SMF database?
Quote from: Orstio on October 11, 2006, 05:56:36 PM
Does your Joomla database user have access to your SMF database?
Yes.
update from my side:
since the splittet DBs only seemed to cause problems i mergend them again and yet the discussbot is working fine :-)
but i think i found another problem with my installation:
if the name of a article in joomla has special characters (like the german ones) the bot does not find a existing topic for it anymore.
in a german page this can be a little annoying since german tends to have a lot of its special chars.
both joomla and smf are running in utf-8 (smf native, the joomla "modded" through changing the charset in the language file). the DB is entirely in utf-8
it would be great to get this to work also, then this is definately a must have for every installation ;)
Quoth,
There may be a conflict with the authorbot. If you uninstall that, does it work?
maxigs - I've experienced that before and I'm not sure how to fix it.
Orstio, do you have any ideas?
Quote from: chadness on October 12, 2006, 10:20:35 AM
Quoth,
There may be a conflict with the authorbot. If you uninstall that, does it work?
editor mambot ?
if i only unpublish all of the editors it does not work yet
maxigs - that reply was for Quoth. He has a mambot called SMFAuthorBot loading in Joomla.
Quote from: magmf on October 11, 2006, 04:03:18 PM
Chadness is possible show avatar in your discussbot ???
OK, this is a bit of a messy hack, but it should start you in the right direction.
Find the lines (should be lines 352-354):
//Is there an avatar?
$avatar_query=mysql_query("SELECT avatar FROM {$db_prefix}members WHERE ID_MEMBER = '".$posts['ID_MEMBER']."';");
if (mysql_num_rows($avatar_query)>0) {
while ($disc_avatars = mysql_fetch_assoc($avatar_query)){
$disc_avatar = $disc_avatars['avatar'];
}
}
//What URL are avatars stored at?
$avatar_query=mysql_query("SELECT value FROM {$db_prefix}settings WHERE variable = 'avatar_url';");
if (mysql_num_rows($avatar_query)>0) {
while ($disc_avatars = mysql_fetch_assoc($avatar_query)){
$avatarurl = $disc_avatars['value'];
}
}
// Displays the avatar and name, with a link to the profile
if ($posts['ID_MEMBER'] > 0) {
$showlink .= '<a '.(($add_nofollow=="0") ? '' : 'rel="nofollow" ').'href="'.($mosConfig_sef == '1' ? sefRelToAbs($myurl . 'action=profile&u='.$posts['ID_MEMBER']) : $mosConfig_live_site . '/' . $myurl . 'action=profile&u='.$posts['ID_MEMBER']) . '"><img src="'.$avatarurl.'/'.$disc_avatar.'" alt="" class="avatar" border="0" /><span class="'.$class_discuss_name.'">'.$disc_displayName.'</span></a>';
I'm sure someone could find a better way to do that, but it will get the avatar to display for you.
With authbot removed i get the following error:
QuoteDatabase Error: Table 'name_brj.log_online' doesn't exist
File: /home/name/public_html/forum/Sources/Subs.php
Line: 2529Database Error: Table 'name_brj.sessions' doesn't exist
File: /home/name/public_html/forum/Sources/Load.php
Line: 1981
OK, you're using two separare databases? There must be something wrong with that. I'm going to have to dig further to see where that problem is.
Yes both SMF and Joomla have their own database, each user has access to the other database.
Quote from: chadness on October 11, 2006, 10:06:16 AM
Yeah, there are two major causes of the problems. First, it's been modified by a ton of different people. Second, I'm not really a programmer, so I haven't been the most effective at cleanup, or at following good practices in the stuff I've added. But, please feel free to do what you want with it. I can either incorporate work that you do (as I have with others) and continue to host files, or host anything you put together yourself, if you like.
I've gone though the code and think I have a grasp at what it is trying to do. I see a lot of redundancy and other cruft. I also see a few variables that could be better named ($myurl -> $baseurl, $db_name -> $smf_db, $db_prefix -> $smf_prefix).
I am in the process of cleaning things up. I still have the some ways go with the "new topic", "show topic", and "quick post" routines. I am taken aback by the number of SQL queries needed and would like to find some way to do multiple queries at once. Unfortunately, my knowledge of SQL is very limited.
farix... the problem with your "renaming" things is that all three of those variables come from ELSEWHERE in the code. They are globals that are used throughour joomla (myurl) and SMF (db_name and db_prefix)
db_name and db_prefix are settings from the mombat and are not global. As for myurl, it is not defined by Joomla and also isn't global where it is used by the bridge.
Quote from: chadness on October 12, 2006, 12:24:18 PM
Quote from: magmf on October 11, 2006, 04:03:18 PM
Chadness is possible show avatar in your discussbot ???
OK, this is a bit of a messy hack, but it should start you in the right direction.
Find the lines (should be lines 352-354):
//Is there an avatar?
$avatar_query=mysql_query("SELECT avatar FROM {$db_prefix}members WHERE ID_MEMBER = '".$posts['ID_MEMBER']."';");
if (mysql_num_rows($avatar_query)>0) {
while ($disc_avatars = mysql_fetch_assoc($avatar_query)){
$disc_avatar = $disc_avatars['avatar'];
}
}
//What URL are avatars stored at?
$avatar_query=mysql_query("SELECT value FROM {$db_prefix}settings WHERE variable = 'avatar_url';");
if (mysql_num_rows($avatar_query)>0) {
while ($disc_avatars = mysql_fetch_assoc($avatar_query)){
$avatarurl = $disc_avatars['value'];
}
}
// Displays the avatar and name, with a link to the profile
if ($posts['ID_MEMBER'] > 0) {
$showlink .= '<a '.(($add_nofollow=="0") ? '' : 'rel="nofollow" ').'href="'.($mosConfig_sef == '1' ? sefRelToAbs($myurl . 'action=profile&u='.$posts['ID_MEMBER']) : $mosConfig_live_site . '/' . $myurl . 'action=profile&u='.$posts['ID_MEMBER']) . '"><img src="'.$avatarurl.'/'.$disc_avatar.'" alt="" class="avatar" border="0" /><span class="'.$class_discuss_name.'">'.$disc_displayName.'</span></a>';
I'm sure someone could find a better way to do that, but it will get the avatar to display for you.
Chadness when avatar is attached link they are not working :(
After installing the Discussbot I get thie Error Message:
Datenbankfehler: Table 'xxx_portal.sessions' doesn't exist
Datei: /xxx/htdocs/Forum/Sources/Load.php
Zeile: 1981
Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0
The SMF and Joomla installation are installed in the same folder structure Joomla/SMF. But they are using different databases.
Any Idea
Thanks
http://www.simplemachines.org/community/index.php?topic=118310.msg763643#msg763643
I'm having a tad bit of a problem with this. I am working with a fresh install of Joomla 1.0.11, with SMF 1.1RC3 and SMF Bridge 1.1.6. I have installed the mambot, and then gone into Site Mambots and published smf.discussbot. However, where do I go to edit the settings for discussbot? When I click on smf.discussbot to edit it, I get a message box that says "Restricted Access". Did I mess up the install?
When the module had been installed, it came back with
QuoteSMF Discussbot
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.
You can also use {mos_smf_discuss:no_discuss} if you have set it up to auto insert and you don't want it to show in a particular item.
Please report any bugs on the forums, thanks.
Click here for a list of variables to use in the date and time format.
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;
?>
I put the code into the bottom of my index.php of my template (still using the solarflare template right now). But, if I click on a content item, I do not see the link at the bottom of the article. Am I supposed to enter {mos_smf_discuss:Board Name} manually for each article? Is there supposed to be a checkbox or anything in Parameters when I am creating a content item?
One more thing, the bottom of index.php of Solarflare looks like this:
<?php mysql_select_db($GLOBALS['db_name']); ?>
<?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;
?>
</body>
</html>
Unfortunately, I'm still getting the "Database Error: Table 'joomla.sessions' doesn't exist" at the bottom of pages. Both Joomla and SMF are in one database.
Any ideas?
Thanks.
Quote from: en_shua on October 22, 2006, 07:03:17 PM
I'm having a tad bit of a problem with this. I am working with a fresh install of Joomla 1.0.11, with SMF 1.1RC3 and SMF Bridge 1.1.6. I have installed the mambot, and then gone into Site Mambots and published smf.discussbot. However, where do I go to edit the settings for discussbot? When I click on smf.discussbot to edit it, I get a message box that says "Restricted Access". Did I mess up the install?
That's due to an error in the original package of Joomla 1.0.11. Go to this page:
http://forum.joomla.org/index.php/topic,89865.0.html
And download the replacement file at the bottom of the post.
Quote from: chadness on October 23, 2006, 10:06:33 AM
Quote from: en_shua on October 22, 2006, 07:03:17 PM
I'm having a tad bit of a problem with this. I am working with a fresh install of Joomla 1.0.11, with SMF 1.1RC3 and SMF Bridge 1.1.6. I have installed the mambot, and then gone into Site Mambots and published smf.discussbot. However, where do I go to edit the settings for discussbot? When I click on smf.discussbot to edit it, I get a message box that says "Restricted Access". Did I mess up the install?
That's due to an error in the original package of Joomla 1.0.11. Go to this page:
http://forum.joomla.org/index.php/topic,89865.0.html
And download the replacement file at the bottom of the post.
Excellent. That cleared that up, as well as my second problem.
Do you have any ideas as to why I would be getting the "Database Error: Table 'joomla.sessions' doesn't exist" error even though my template has the suggested code in it? Is it a problem with Solarflare, and another template won't have that problem?
Sadly, the new discuss bot works only for forum IDs but not with forum names, any ideas? I'd really like to avoid editing 16.000 content items.. ;-) If I click on start discussion link I get 'board does not exists' error.
I'm using Joomla 1.0.11, SMF 1.1RC3, Bridge 1.16, Discuss Bot 4.2 beta1. I've got forum and Joomla in separate databases, both database users can access both databases.
Extra info:
If DiscussBot 4.2b1 is set to use board names it:
1. fails to retrieve forum:
<form id=1228 action="index.php?option=com_smf&Itemid=28&" method ="post"><input type=hidden name="board" value=""> [....]
input type=hidden name="board" value=""
Seems to be wrong
2. fails to get number of comments/posts for the content item (these two are related)
If it is set to use board names it:
1. fails to get number of comments/posts
2. fails to detect existing topic resulting in creating new ones
Is there any process on the problem with special chars i reported? i would take a look by myself but i'm way not enought into the joomla/smf code yet so i can find any problem.
I would really appreciate it ;-)
Are there any plans to have an option in Parameters for an article a checkbox for whether or not to have discussbot on for the article?
Thanks.
Quote from: c2h5oh on October 27, 2006, 09:25:27 AM
Extra info:
If DiscussBot 4.2b1 is set to use board names it:
1. fails to retrieve forum:
<form id=1228 action="index.php?option=com_smf&Itemid=28&" method ="post"><input type=hidden name="board" value=""> [....]
input type=hidden name="board" value=""
Seems to be wrong
2. fails to get number of comments/posts for the content item (these two are related)
If it is set to use board names it:
1. fails to get number of comments/posts
2. fails to detect existing topic resulting in creating new ones
Same problem over here, appearently maxigs solved that problem by putting the two DB's together, so I might go for that solution....
Yeah, I had to put both in one database.. which is not exactly what I want security-wise at least - I want to bridge ~50 Joomla based sites with one SMF installation and since I'll be taking care of just one of them I cannot guarantee someone will not get hacked..
QuoteI want to bridge ~50 Joomla based sites with one SMF installation
Yikes! You realize the bridge won't work across seperate servers, right?
Quote from: c2h5oh on November 06, 2006, 07:49:27 PM
Yeah, I had to put both in one database.. which is not exactly what I want security-wise at least - I want to bridge ~50 Joomla based sites with one SMF installation and since I'll be taking care of just one of them I cannot guarantee someone will not get hacked..
Well, let's hope that bug get's fixed as soon as possible and then we can move the DB's again ... :-)
Quote from: Orstio on November 06, 2006, 07:59:04 PM
Yikes! You realize the bridge won't work across seperate servers, right?
Yeah, I am fully aware of that. All the sites are on the same server and it will remain that way for a loooong time.
Please add avatars in you'r bot! It's possible?
What about the layout of the topic under an article? Is it normal that it's almost completely lost, i.e. that it doesn't automatically takes the forum-layout?
best, and thanks for this great plugin,
annunaki
i have joomla 1.0.11, smf rc3(wrapped) and bridge 1.1.6 installed on the same db. i've installed this bot and added the given code to my template's index.php just before the closing <body> tag but when i try to enter the site, i get a completely blank page. This is strange because it works on the local. I'd be glad if you could help me. Thanks in advance.
Quote from: oSa on November 07, 2006, 04:32:51 PM
i have joomla 1.0.11, smf rc3(wrapped) and bridge 1.1.6 installed on the same db. i've installed this bot and added the given code to my template's index.php just before the closing <body> tag but when i try to enter the site, i get a completely blank page. This is strange because it works on the local. I'd be glad if you could help me. Thanks in advance.
strange, I got a blank page on my local server but working fine on my production site :)
do you have access to your php error logs to see what's going wrong? in my case I had probs with the smf_header_include (or something like that) system mambot (which had a trailing slash too much)
where can i see those error logs?
Edit: I've tried this bot without adding the suggested codes and it works, is this normal?
Quote from: oSa on November 07, 2006, 05:16:50 PM
where can i see those error logs?
Edit: I've tried this bot without adding the suggested codes and it works, is this normal?
The bit of code specific to the discussbot is there only for the quick reply option.
sorry, could you explain it a little more? is there a way to make it work?
maby someone help me about user avatars in comments? Please!
I may or may not have installed the Discussbot correctly, but here goes...
on all of my topics where I have added the discussbot link, I get this error:
Warning: Invalid argument supplied for foreach() in /home/tcpadmin/public_html/mambots/content/smf.discussbot.php on line 35
Any idea what the problem is?
Joomla 1.0.11
SMF 1.1 RC3
Joomla-SMF version 2.0RC1
97
I've been salivating for a working discussbot since last spring. Like many others, I think, I went through a HUGE runaround of bot versions and tweaks, forum searches here and elsewhere, always picking up snippets of questions and answers that almost worked for me, but, you know, didn't work.
Late last night I took my site offline, determined to come out of my holiday weekend with a working discussbot. This is my story.
I started off with:
Joomla 1.0.11
SMF 1.0.9
Bridge 3.19a
discussbot 4.1 beta 5
Try as I might I couldn't get that configuration to work. A lot of the threads I found in my search seemed to involve using 1.1RC3. There are tons of useful threads discussing the pros and cons of upgrading but in my case (and because I really wanted that bot!)I opted to bite the bullet and upgrade.
1.0.9 to 1.1RC3, with the usually backing up of files first, was painless. Installing the new 1.16 bridge was a snap too. Discussbot, unfortunately, still didn't work. I tried skydig's version. I tried Orstio's version
I got errors from: "The topic you want to view does not exist or you dont have the permission to view it."
to the broken template error:
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
Eventally I came across this current thread and chadness' 4.2 beta 1 discussbot.
My SMF and Joomla initial installs were all done through CPanel's Fantastico. I had two seperate databases. After installing the 4.2 beta 1 bot I got the closest yet to a working discussbot....but, I was also having a problem of each click to the "discuss" link creating a new topic in the forum (instead of the first click creating a topic and each subsequent click adding a reply). Also, the post count wasn't advancing. Despite feeling 99.99% sure I was entering all the correct parameters in Joomla Admin>mambots>smf.discussbot, and changing out database query lines of code, I was still getting nowhere.
What I was getting was somehow SMF and Joomla weren't reading each other's DB. So my next step was to go ahead and combine my SMF and Joomla databases into one (versus the shared users method I'd been using since earlier this year. To combine the databases I opened up my joomla database then imported in a backup of my smf database.
My problem still wasn't solved (still getting multiple individual comment posts and no advancing comment count). More board reading, more following snippets of help until I'd pieced together enough to make another stab at the database angle.
The next bit of problem solving involved going into my SMF Admin and editing the server settings. I changed the db username and db name to direct to my new combined "joomla" database. That change broke the site, "SMF could not connect to the databse" error.
I fixed the settings through my filemanager (so I could get back into the website), then tried it again. This time, leaving the db username as "myhost_smf1" and only changing the db name to "myhost_joom1" and that was the fix.
Ending setup:
Joomla 1.0.11
SMF 1.1RC3
Bridge 1.1.6
combined database
Obviously, this is not a techie explaination, more one person's steps to a working discussbot. Much love to chadness, orstio, kindred and everyone who ever asked a question on this mambot and to the many wonderful people who answered those question. All of you helped this chica solve her problem. Maybe my write up will help someone else work out theirs.
Ok this is seems to be something that I want and I checked out that science website that used it, I just have one question! When I click on the link to the comments it takes me to the main category sections not a certain topic/thread! Why is this and how can I make it take me to a certain thread about the article?
Sorry, I missed the discussions in this thread for a bit. I'm going to try to catch up, so please bear with me.
Hey can anyone help me out a bit? I was just looking at that science website again and I made an account to see if that was causing the weird problem! The issue is that whenever I click on the comments button it takes me to the main SMF forum page but not the exact topic thread! Why is it doing this, and if it was programmed to do this it should be changed so it redirects to the comment thread!
One question, when the bot created the thread, under which username does it create it?
The current user logged in?
Can the bot create the link when the article is published?
Quote from: BioGene on December 29, 2006, 06:15:35 PM
Hey can anyone help me out a bit? I was just looking at that science website again and I made an account to see if that was causing the weird problem! The issue is that whenever I click on the comments button it takes me to the main SMF forum page but not the exact topic thread! Why is it doing this, and if it was programmed to do this it should be changed so it redirects to the comment thread!
It should not do that - it should bring you to the thread. Are you using separate databases at the moment? Currently, the discussbot does not seem to work if Joomla and SMF are in separate databases.
Quote from: AlbertA on January 03, 2007, 05:19:59 PM
One question, when the bot created the thread, under which username does it create it?
The current user logged in?
Can the bot create the link when the article is published?
The current user who first clicks the link. At the moment, it cannot make the link when the article is published - it needs the interaction of someone clicking the link.
A best practice at this point might be to have your authors always click the link after they publish their articles.
Thanks for the info chadness!
Quote from: chadness on October 06, 2006, 09:18:19 AM
If you set up a default board for comments to be posted to, you do not have to add in the {mos_smf_discuss:board name} code to your articles - it will automatically add it to each one.
How do I do that ?
I'm still getting some errors creating a thread (after a successful install), but I would prefer an automatically added discussbot link.
Am i doing something wrong? When i installed discuss bot in my test server... this is in PC, messages show smilies in joomla, but when online in my website smilies are only text.
Here an example. http://www.anizeen.com/index.php?option=com_content&task=view&id=2752&Itemid=2
Thought i might done something wrong when editing CSS, but i tested with original file and it looks the same.
Haven't seen if it's the same with quotes, but they also look strange in joomla.
The paramter "Number of characters to quote from article" is very good and i really want to use it, but:
Everytime the quotes having the complete html-code in it?! >:( >:(
for example something like that:
Quote[span style=color: #000000]://www.it-info.org/images/stories/willkommen-klein.j.
And also including parts of image-tags from the original Article.....
That is really bad, so how to change that?
Quote from: maxigs on October 30, 2006, 10:10:15 AM
Is there any process on the problem with special chars i reported? i would take a look by myself but i'm way not enought into the joomla/smf code yet so i can find any problem.
I would really appreciate it ;-)
I have the same problem, my forum is in Spanish, and if I write articles in joomla with special chars, the copy at the forum are uncomplete.
Sorry for my bad english :p
Can someone PLEASE help with this, I can't get it to work even after uninstall/re-install a few times.
In my article I just get the (0) but when I click on it, the discussbot doesn't understand what forum to post in.
I get this error in SMF :
An Error Has Occurred!
The topic or board you are looking for appears to be either missing or off limits to you.
Because the URL is this :
/index.php?option=com_smf&Itemid=27&topic=7.new#new
Please help, I'm on IM if that helps, and I can give complete login details for my site.
OK, there must a bug in something somewhere (in the software or me). Due to the overwhelming level of support here (i.e ziltch, nada, nothing, zero), this is what I have done :
- create a brand new database
- upload and install Joomla! 1.0.12
- SMF 1.1.1
- Bridge 1.1.6 (Wrapped & using SMF registration)
- tested all the over, and working fine
- install the discussbot
- turn ON the discussbot
- add the {mos_smf_discuss:General Discussion} tag to a Joomla article
- test : ERROR : as mentioned before
- add the {mos_smf_discuss:1.0} tag to a Joomla article
- test : ERROR : as mentioned before
The error in both cases was :
An Error Has Occurred!
The topic or board you are looking for appears to be either missing or off limits to you.
So can someone PLEASE tell me what I've done wrong ?
Here is the URL : http://www.miniandmoke.com/testing/
I've left the Discussbot setting on {mos_smf_discuss:1.0} if you're interested.
have you add that one part to the bottom(important outside of body-tag) of your template?
Ooops .... yes it was there but I forgot to include that in my steps. The bottom of my template looks like this :
<?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' ); ?>
<?php mosLoadModules( 'debug', -1 );?>
</body>
</html>
<?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;
?>
GOT IT :) :) :) :) :)
On the real site that I'm setting up, I'm running Joomla 1.0.11 which has a bug where you can't setup the mambot properly (Fix : http://forum.joomla.org/index.php/topic,89866.msg455550.html#msg455550)
Actually the real site is still using RC3 so I'm upgrading both Joomla & SMF tomorrow.
I think I need to uninstall the Bridge first, is that correct ?
no, there are no smf code changes in either the Orstio bridge or the discussbot... no need to uninstall the bridge if you are upgrading either smf or joomla.
Quote from: myuption on January 15, 2007, 12:00:12 PM
Am i doing something wrong? When i installed discuss bot in my test server... this is in PC, messages show smilies in joomla, but when online in my website smilies are only text.
Here an example. http://www.anizeen.com/index.php?option=com_content&task=view&id=2752&Itemid=2
Thought i might done something wrong when editing CSS, but i tested with original file and it looks the same.
Haven't seen if it's the same with quotes, but they also look strange in joomla.
This may seem silly, but did you remember to turn this feature on in the discussbot's configuration?
There are a number of things the discussbot strips out of posts, but it's not at all complete. I'll look at adding span tags in.
Quote from: GabberMan on January 25, 2007, 06:00:34 AM
Quote from: maxigs on October 30, 2006, 10:10:15 AM
Is there any process on the problem with special chars i reported? i would take a look by myself but i'm way not enought into the joomla/smf code yet so i can find any problem.
I would really appreciate it ;-)
I have the same problem, my forum is in Spanish, and if I write articles in joomla with special chars, the copy at the forum are uncomplete.
Sorry for my bad english :p
I need to set up a test site to try to work through this, and haven't had the time. Hopefully soon?
To anyone experiencing this problem: Please let me know what sort of language changes you made when you encountered this. Just loading another language pack, or using Joomfish or any other details? Did you change the DB collation to UTF-8 or anything like that? I just want to make sure I can duplicate this.
Quote from: laser on January 27, 2007, 08:47:21 AM
GOT IT :) :) :) :) :)
On the real site that I'm setting up, I'm running Joomla 1.0.11 which has a bug where you can't setup the mambot properly (Fix : http://forum.joomla.org/index.php/topic,89866.msg455550.html#msg455550)
Actually the real site is still using RC3 so I'm upgrading both Joomla & SMF tomorrow.
I think I need to uninstall the Bridge first, is that correct ?
Sorry I didn't get back to you sooner. I'll add a note about that to the download page.
I finally got an opportunity to reproduce the problem with separate databases. While I'm working on a fix, here's a workaround.
You already are granting all of the privileges for your Joomla user to your SMF database, and vice versa. Well, one easy way to make this work is to change your SMF config to use the Joomla database's username and password. That way the same user is controlling both databases. (Alternately, you could change your Joomla config to use the SMF database's username and password, but it's a little more complicated because you can't do that in Joomla's back end - you have to change the password in the configuration.php file.)
Quote from: chadness on February 12, 2007, 02:30:44 PM
Quote from: myuption on January 15, 2007, 12:00:12 PM
Am i doing something wrong? When i installed discuss bot in my test server... this is in PC, messages show smilies in joomla, but when online in my website smilies are only text.
Here an example. http://www.anizeen.com/index.php?option=com_content&task=view&id=2752&Itemid=2
Thought i might done something wrong when editing CSS, but i tested with original file and it looks the same.
Haven't seen if it's the same with quotes, but they also look strange in joomla.
This may seem silly, but did you remember to turn this feature on in the discussbot's configuration?
OMG! You know... i think if was using a previous version of the xml file, cause i was unable to see the Use SMF code tag... now it's fixed, thanks for answering.
Quote from: myuption on February 13, 2007, 10:10:51 PM
OMG! You know... i think if was using a previous version of the xml file, cause i was unable to see the Use SMF code tag... now it's fixed, thanks for answering.
I'm glad it was that easy. :)
All right, i figured out the database problem, thanks to this post (http://www.simplemachines.org/community/index.php?topic=150291.msg958604#msg958604). :) Expect a "beta 2" version soon.
Still working on the special characters problem. I have been able to reproduce it.
Quote from: chadness on February 14, 2007, 10:53:01 PM
All right, i figured out the database problem, thanks to this post (http://www.simplemachines.org/community/index.php?topic=150291.msg958604#msg958604). :) Expect a "beta 2" version soon.
Still working on the special characters problem. I have been able to reproduce it.
That isn't going to work in all cases. In fact, it might just screw things up in
most cases. I didn't use mysql_query instead of $database->setQuery out of ignorance. I did it because $database->setQuery doesn't work in all cases after switching to the SMF database and back for multiple database installations. You also have to understand that in that topic, wedge states:
Quotewe're using a little hack in the database.php file to redirect all request to the users and core tables to the same one.
Which means it is not a stock Joomla installation. As I have said before, the bridge is designed only to work with Joomla as downloaded from joomla.org. You also need to understand that wedge is using a single database, and that code will work fine in a single database, but as I stated, not necessarily in a multiple database environment.
I'm not saying it won't work, but I am saying you'll need to test it under several different conditions to make sure.
I should have been clearer in what I meant. In the discussbot, there are several points where it uses $database->setQuery instead of mysql_query when getting data from the SMF database. Like you said, that can mess things up in a multiple database environment. So, I rewrote those to use mysql_query instead.
The post I referenced actually just gave me a clue as to where to look, but I'm doing the opposite of what he asked for. I should really say that Kindred's reply is what got me on the correct path.
It was really interesting that it would use the correct database if both Joomla and SMF used the same database username and password, but wouldn't if they didn't, even both users had complete access to each others' databases. Being more of a hacker than a coder, I'm completely ignorant as to why that happens.
Quote from: chadness on February 14, 2007, 10:53:01 PM
Expect a "beta 2" version soon.
And anything new about that?
Regards, Christian
I think I've worked through everything, but want to test it some more before a full release. If you want to try it out, send me a PM with your email.
Is the full release going to allow separate database users, or will both the Joomla and SMF database users need to be the same?
beta 2 will fix the two database and two users issue (well, theoretically).
Hey chadness,
Did you have any luck with my double urls issue?
http://www.simplemachines.org/community/index.php?topic=152437.0
Thanks :)
Not yet....
Okay... I'll stay tuned
Please, before you release this new bot, just include the possibility to show the users Avatars, even in a smaller Version (around 50px?).
Regards, Christian
That was the one last thing I was trying to squeeze in. :) I don't think I'm going to be able to fix the mambo thing any time soon.
Quote from: chadness on March 01, 2007, 04:10:44 PM
That was the one last thing I was trying to squeeze in.
Sounds really good! I have some questions/feedback to it. If you can do some on the following, i would gladly test it for you on my Live-Site:
1. I found a bug with joomla caching: When caching is enabled and you posting a comment, it will only show up after the caching time is "over" (i mean like you set it in default configuration in joomla-backend) - so there must be a fix to disable caching for this mambot
2. a good suggestion or beter a "need" in design:
In default it looks like this:
(http://img239.imageshack.us/img239/5320/discussbotuglywb4.th.jpg) (http://img239.imageshack.us/my.php?image=discussbotuglywb4.jpg)
which is pretty, pretty ugly!
Is there a way to get it more "standart-simple" with some colored-boxes around it? I don't know how to explain, just a bit simple as it is here(ok colors can everybody change via css):
(http://img465.imageshack.us/img465/5889/discussbotideasv3.th.jpg) (http://img465.imageshack.us/my.php?image=discussbotideasv3.jpg)
What do you think?
Regards, Christian
Hi !
I running Discussbot on my site and this bot working very well.
SMF 1.1.2
Bridge 1.1.7
J! 1.0.12
I installed Jevents and Discussbot pick up events to dissuction...I won't to Discuss my events in my forum.
How to disable this..Is it some user which have do that or some tip is welcome?
Regards
IQAPPS
I get this
Database Error: Table 'blazer_joom1.blazer_sessions' doesn't exist
File: /home/blazer/public_html/forum/Sources/Load.php
Line: 2022
my site is
http://www.blazed-up.com/
help?:)
g-c - that looks pretty good, it will probably end up similar to that.
iqapps - Do you have it disabled to show the discussbot in modules? If that doesn't fix it, you'll need to either add {mos_smf_discuss:no_discuss} to each of your events (there's another mambot you can download here (http://www.technoadvice.com/remository/Download/Joomla-and-Mambo/SMF-Discussion-button/) that will make a button by your editor to add that quickly. Or, you'll have to turn off default discussions and manually add them to each of you articles.
BlaZer - do you have separate databases? If so, you'll need to either use the same database user for both Joomla and SMF, or wait for 4.2 beta 2.
Hi
Thanks for your reply...but
QuoteDo you have it disabled to show the discussbot in modules?
How to do this!? :-[
Regards
IQAPPS
It's the 8th option, labeled "Do you want discussion links to show in modules?".
Quote from: chadness on March 05, 2007, 09:25:36 AM
g-c - that looks pretty good, it will probably end up similar to that.
Hi i found something really good-looking Comments-thing for joomla. Maybe you can have some Impressions from it, because it looks so extremly good IMHO - Simple but good and exactly what i personally would love to have. Heres a picture:
(http://img301.imageshack.us/img301/4475/screencommentset6.th.jpg) (http://img301.imageshack.us/my.php?image=screencommentset6.jpg)
Live Preview is here (under the article):
http://www.joomlaprodigy.com/content/view/58/71/
Well i don't know yet whats the name of this "component" might be, but i'll found out.
Edit: its name is "joscomment" aka "JoomlaComment" and here is the Website: http://cavovweb.ca.funpic.de/index.php?option=com_content&task=view&id=37
Maybe you take some impressions from, related to the design.
Keep the good work on....
Regards, Christian
I just installed the latest discussbot from the technoadvice site. I'm running SMF 1.1.2, Joomla 1.0.12, and CB 1.0.2... I noticed that all my discussion counts were too high. It was reporting one more Comment than what I actually had. In smf.discussbot.php around line 383 there is a $replies++;
I commented out this line and all is good. :) Thought you'd like to know.
Another tip. I couldn't get the discuss icon to display at first. I removed the leading slash and it worked fine (Joomla is installed inside a directory on my site). That could be changed in the smf.discussbot.xml line 22, though it is easy to change after installing.
Hopefully this helps... excellent product!
EDIT: Another note... If you have a 'list' element that started and was truncated before the end '/list' tag, SMF seems to put the closing list tag after the closing quote tag. This makes it end "/quote /list" whic doesn't match the rules for identifying if it is a first post.
Perhaps some logic to look for any started "list" tags and then close them at the end... or just strip them completely.
When I publish the discussbot, my site goes down (Mambo 4.5.5) with:
Fatal error: Cannot redeclare ssi_shutdown() (previously declared in /home/riverwes/public_html/forum/SSI.php:186) in /home/riverwes/public_html/forum/SSI.php on line 188
It looks like a great bot -- I'd really like to get it running.
Quote from: brianjd2 on March 12, 2007, 01:32:12 AM
I just installed the latest discussbot from the technoadvice site. I'm running SMF 1.1.2, Joomla 1.0.12, and CB 1.0.2... I noticed that all my discussion counts were too high. It was reporting one more Comment than what I actually had. In smf.discussbot.php around line 383 there is a $replies++;
I commented out this line and all is good. :) Thought you'd like to know.
The count you were getting was the number of posts, including the original post. Commenting out that line makes it not include the original post, so it's only the number of replies.
I think I'll make it so that if you have the option "Would you like the discussion link to automatically start a reply, instead of viewing the topic?" set to Yes, it will count the original post, otherwise it won't.
Quote
Another tip. I couldn't get the discuss icon to display at first. I removed the leading slash and it worked fine (Joomla is installed inside a directory on my site). That could be changed in the smf.discussbot.xml line 22, though it is easy to change after installing.
Yeah, I had caught that on my testing server, and removed it for beta 2.
QuoteHopefully this helps... excellent product!
Quite a bit, thanks!
QuoteEDIT: Another note... If you have a 'list' element that started and was truncated before the end '/list' tag, SMF seems to put the closing list tag after the closing quote tag. This makes it end "/quote /list" whic doesn't match the rules for identifying if it is a first post.
Perhaps some logic to look for any started "list" tags and then close them at the end... or just strip them completely.
There's probably a few tags like this that could be a problem. You're noticing it on the list tag, because SMF will auto-close that one, I believe. Maybe in the next version I'll try to clean that up more.
Quote from: dpk on March 12, 2007, 11:46:41 PM
When I publish the discussbot, my site goes down (Mambo 4.5.5) with:
Fatal error: Cannot redeclare ssi_shutdown() (previously declared in /home/riverwes/public_html/forum/SSI.php:186) in /home/riverwes/public_html/forum/SSI.php on line 188
It looks like a great bot -- I'd really like to get it running.
Do you have a link to your site? Are you using Orstio's bridge? Do you have anything else loaded besides the bridge, such as recent topics modules or anything?
Hiya,
I've installed the Discussbot (see below for versions) and added the footer to the template, but the Discuss bot isn't replacing the {mos_smf_discuss:no_discuss} tag with a forum link.
As far as I can tell the output buffer is working but the string replace is not working. I've searched through the forums here for solutions, but none were applicable. I am wondering whether it might be a php 5.2.0 issue.
You can see an example here:
http://www.modus-operandi.co.uk/index.php?option=com_docman&task=cat_view&gid=19&Itemid=26
Any ideas?
What versions am I running?
- Joomla 1.0.12
- SMF 1.1.2
- SMF Bridge 1.1.7
- Discussbot 4.2 beta 1 - Joomla 1.0.X
- PHP 5.2.0-10
(its on a Debian install running apache2)
Cheers,
Gobion
Ok this is weird it has started working on the non docman pages... *sigh*!
It only works with things that are considered content items. Docman probably doesn't act like a content item, so it won't work with content mambots.
Hi Chadness, any news about beta2 and/or design changes........
It would still be a favour for me to test your component before public opening.
Regards, Christian
hello, i installed this discuss bot bot and i managed to work whit it, but it does'nt what i was thinking:
Why the post generated in the board look like a quote of joomla content? it's possible to make it look like a normal post instead?
Quote from: Ghiacciolo on March 25, 2007, 05:53:08 AM
hello, i installed this discuss bot bot and i managed to work whit it, but it does'nt what i was thinking:
Why the post generated in the board look like a quote of joomla content? it's possible to make it look like a normal post instead?
Yes is also think there should be a option to choose how the "opening post" will look like.
And a good thing would be to choose a default-user which is the one who creates the opening-post automatically.
Anyway this is the greatest "extension-component" for a bridged "enviroment"
Regards, Christian
Well, looking forward to the next version as well, since I have all of the mentioned problems documented within this thread and I'm very much open for testing the pre-beta code if possible.
And to be mentioned - great work with the discussbot as well!
hello, just installed bridge 1.1.7 + SMF 1.1.2 + J! 1.0.12 + DiscussBot 4.2 Beta 1
i would like to report one bug, that i found - on line 386 of the smf.discussbot.php there is no "> at the end of $link_string, and comment links are displayed incorrectly... minor bug i think, but can be hard for newbies to find out what is wrong ....
With a little delay but i finally found time to make some more tests for the unicode error.
Freshly installed Joomla (1.0.12) and SMF (1.1.2) as well as the 1.7 version of the bridge and the newest beta1 discussmod.
SMF is running as utf-8 as well as Joomla (in Joomla the charset in the language file is changed to utf-8)
It still does not work to discuss any content-items that have special chars in their title, and in detail it looks like this:
when writing content with special chars in the title this happens:
-> the special chars are displayed correctly in Joomla
-> when opening a discussion the title is correctly forwarded to SMF for the topic title
-> the discussbot however does not find the generated topic anymore and keeps trying to create new ones
a look in the (also utf-8) database shows the problem - at least i think so.
in the content table from joomla:
the "Ü" in the frontend is saved in the database as "Ü" (which seems to be the utf-equivalent) which seems to be a unnessasary translation from the joomla when storing.
Quote from: palik on April 11, 2007, 05:42:00 AM
hello, just installed bridge 1.1.7 + SMF 1.1.2 + J! 1.0.12 + DiscussBot 4.2 Beta 1
i would like to report one bug, that i found - on line 386 of the smf.discussbot.php there is no "> at the end of $link_string, and comment links are displayed incorrectly... minor bug i think, but can be hard for newbies to find out what is wrong ....
Thanks! I'm surprised no one has pointed this out.
OK, all, sorry for the delay - my wife had a baby, which consumed all my free time.
I think I have things finalized for beta 2. I'm loading it on one more test site. Send me a PM with your email address if you want an early copy to test with as well.
Here's the changes:
Overhauled the display of the discussion. For further tweaking, you should define your own CSS classes in your Joomla template, and list them in the bot configuration.
You now have the option to include avatars. If you have changed your attachments directory from the default, you will need to set that in the bot settings, or it won't be able to find uploaded avatars.
Strips span tag from article to SMF post.
Fixed problem with multiple databases.
Fixed problem with using board numbers and a default discussion board.
Fixed problem with special characters when SMF is in a UTF-8 collated database.
Fixed an old problem that caused the register link in the login module to stop working.
Fixed a problem with an unclosed link tag.
Added a prefix before the subject of quick reply (for example, "Re: ").
Tried to make it a little more accurate in guessing the correct board to post to. In order of precedence:
1) Use the explicitly written board in a {mos_smf_discuss:} tag.
2) Use a post with a matching title in the default discussion board.
3) Use a post with a matching title in another discussion board.
4) Use the default discussion board.
Changed the behavior of whether the bot includes the first post in it's count and when displaying replies.
-Before, it always counted the first post in the post count.
-Now, it only counts the first post in the post count when "Would you like the discussion link to automatically start a reply, instead of viewing the topic?" is set to "Always".
-Before, in the discussion display, it wouldn't include the first post if it started with [url and ended with [/quote] or [/url] (basically, it was guessing that that meant it was simply a link back to the original article, and possibly a quote from it).
-Now, in the discussion display, it only includes the first post when "Would you like the discussion link to automatically start a reply, instead of viewing the topic?" is set to "Always". This will make it consistent with the post count number.
Quote from: Ghiacciolo on March 25, 2007, 05:53:08 AM
hello, i installed this discuss bot bot and i managed to work whit it, but it does'nt what i was thinking:
Why the post generated in the board look like a quote of joomla content? it's possible to make it look like a normal post instead?
The first post can be a quote of the article, so you know what is being referenced. You can change this behavior in the mambot's settings - it's the very first setting. Enter '0' there if you don't want the article to be quoted.
OK, 4.2 beta 2 is posted (http://www.simplemachines.org/community/index.php?topic=164812.0).
Question regarding the possibility of overriding the default settings to automatic include the comments button to a default category. In my case I have couple of categories that I want to post comments to other boards than the "standard" defined within the discussbot. From what I can figure out there is no way to override the standard settings with an alternative board within the posts, for example I had my hopes to that I could use {mos_smf_discuss:otherboard} to point to other boards. But wouldn't this be quite easy upgrade since {mos_smf_discuss:no_discuss} works fine to remove the comment option within posted articles.
It should already do that. I'll have to test it and make sure I didn't mess that up.
I tried to add {mos_smf_discuss:31}, {mos_smf_discuss:Open_Bounties} and {mos_smf_discuss:Open Bounties} where Open Bounties are the board name with board id 37, but none of them works.
I can confirm this.
I just tried it with beta 3 (http://www.technoadvice.com/remository/Download/Joomla-and-Mambo/SMF-Discussbot-version-4.2-beta-3/) and it worked fine. Which version are you running, beta 1? If so, please upgrade to beta 3. The easiest way is to just upload the files to your /mambots/content directory, then go in to your discussbot config and save it.
Alrighty, I've missed out that there was a beta3 now available and updating to this version everything works fine. Are there any kind of mailinglist available be notified about new releases?
Not right now. Maybe some day... :)
chadness, I am running the beta 3 version. Before I updated, someone reacted on this article (http://www.taxibalk.net/content/category/1/74/135/), which is pointed at a different board as the default board. Now, if you hit the discusslink, it wants to open a new topic in the default board, even though a discussion was started here (http://www.taxibalk.net/component/option,com_smf/Itemid,173/topic,1523.msg16085#new).
Ah, I found one way I could reproduce this! If you have a default discussion board set up, and the {mos_smf_discuss:} link is in the main text instead of the intro, it won't see that on the front page. This is because only the intro text is parsed when showing on the front page.
The easiest solution is to put the link in the intro text, however, that will put the discussion link and forum posts in the middle of your article. I'll have to fix that in the next version.
In the mean time, what you'll have to do is put the discussion link in both the intro AND the main text, and in the parameters for that article, you'll have to choose to hide the intro text so that it won't show when you are reading the full article. You will also need to duplicate the text in the intro in the full article. Does that make sense?
It makes sense, but I think I'll roll back to beta 2 until you fixed this. Call it .. umm .. laziness ;D
Thanks for looking in to it, and I'll look forward to the next release ;)
This doesn't happen in beta 2? That's strange, I didn't think anything I did should affect that.
No, sure it worked in Beta 2.
On my test system, beta 2 is doing the same thing. *shrug*
Chadness, the check on line 130 for an 'id' is what is causing this. If I comment it out (and the subsequent enclosing bracker further down) the link appears on the frontpage and the sections and categories like I want. It also, does not show on the first page of a multiple page article that is including the intro text, but does show on the last page of the same multiple page article. I haven't tested it in other configuration, though.
That would mess up other configurations, but it gives me a good idea of how to fix it.
Thanks!
I'm thinking there should just be more to the condition of the if statement. Isn't there a check you can do for ['fulltext'] or ['introtext'] in one of the objects. Hmmm....
found a little bug on this one...
It adds a:
~ ">
On the top of the page, if the mambot is used with jReviews.
Quote from: al0000 on June 21, 2007, 06:00:51 PM
found a little bug on this one...
It adds a:
~ ">
On the top of the page, if the mambot is used with jReviews.
Have you tried Discussbot 4.2 beta
3 (http://www.simplemachines.org/community/index.php?topic=166111.0)
Quote from: Aravot on June 22, 2007, 12:38:06 AM
Quote from: al0000 on June 21, 2007, 06:00:51 PM
found a little bug on this one...
It adds a:
~ ">
On the top of the page, if the mambot is used with jReviews.
Have you tried Discussbot 4.2 beta 3 (http://www.simplemachines.org/community/index.php?topic=166111.0)
Yes, that's what i have installed:
4.2 beta 3 - Joomla 1.0.X
Quote from: al0000 on June 23, 2007, 09:58:00 PM
Yes, that's what i have installed:
4.2 beta 3 - Joomla 1.0.X
Well than, you posted in the wrong place, correct -> http://www.simplemachines.org/community/index.php?topic=166111.0
Quote from: ninety7 on November 16, 2006, 10:02:07 PM
I may or may not have installed the Discussbot correctly, but here goes...
on all of my topics where I have added the discussbot link, I get this error:
Warning: Invalid argument supplied for foreach() in /home/tcpadmin/public_html/mambots/content/smf.discussbot.php on line 35
Any idea what the problem is?
Joomla 1.0.11
SMF 1.1 RC3
Joomla-SMF version 2.0RC1
97
i have same problem. how i can solve it?
So what will happen with this mod when there's no more Orstio's bridge?
it will go away for Joomla, same as the bridge.
it will hopefully continue development on the mambo bridge.
curses -_-
Well, I tried it to set it up the best I could but had this error:
QuoteWarning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/cpfools/public_html/mambots/content/smf.discussbot.php on line 137
Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/cpfools/public_html/mambots/content/smf.discussbot.php on line 156
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/cpfools/public_html/mambots/content/smf.discussbot.php on line 215
Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/cpfools/public_html/mambots/content/smf.discussbot.php on line 220
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/cpfools/public_html/mambots/content/smf.discussbot.php on line 223
Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/cpfools/public_html/mambots/content/smf.discussbot.php on line 228
And this at bottom of page:
QuoteDatabase Error: No database selected
File: /home/cpfools/public_html/forum/Sources/Load.php
Line: 2055
I unpublished it for now.
Did you complete the database info in the mambot parameters?
Oh, wait, are you on Mambo 4.6.2?
Yes, sorry Mambo 4.6.2.
There's an updated version for Mambo 4.6.2 here:
http://www.simplemachines.org/community/index.php?topic=195079.msg1242542#msg1242542
I installed it and got less errors:
QuoteWarning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/cpfools/public_html/mambots/content/smf.discussbot.php on line 57
Did you complete the database info in the mambot parameters?
I think so bud. I can post or you are welcome to have a look.
Crap, I just installed this on my site.. and it seems to have broken it. Blank page. I have even uninstalled it and it is still broken. I am desperate for advice, thanks.