Home arrow Forum Solved: Discussion Bot breaks my site
  Welcome, Guest. Please login or register.
Did you miss your activation email?
December 01, 2008, 12:13:49 PM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 1.0.x (Moderators: -Wolverine, kai920)
| | | |-+  Solved: Discussion Bot breaks my site
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 Go Down Print
Author Topic: Solved: Discussion Bot breaks my site  (Read 4622 times)
Tanathka
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 34


View Profile
Solved: Discussion Bot breaks my site
« on: December 09, 2005, 12:34:30 PM »

Hehe, back again.

When I activate dicsussion bot 1.0.1 I get these errors.

Code:
Notice: Undefined property: stdClass::$num_chars in /var/www/html/fres/mambots/content/smf.discussbot.php on line 29

Notice: Undefined property: stdClass::$discuss_image in /var/www/html/fres/mambots/content/smf.discussbot.php on line 30

Notice: Undefined property: stdClass::$quote_images in /var/www/html/fres/mambots/content/smf.discussbot.php on line 31

Notice: Undefined property: stdClass::$begin_end in /var/www/html/fres/mambots/content/smf.discussbot.php on line 32

Notice: Undefined property: stdClass::$link_text in /var/www/html/fres/mambots/content/smf.discussbot.php on line 33

Notice: Undefined property: stdClass::$default_discuss in /var/www/html/fres/mambots/content/smf.discussbot.php on line 34

Notice: Undefined property: stdClass::$title_prefix in /var/www/html/fres/mambots/content/smf.discussbot.php on line 35

Notice: Undefined variable: row in /var/www/html/fres/mambots/content/smf.discussbot.php on line 37

Notice: Trying to get property of non-object in /var/www/html/fres/mambots/content/smf.discussbot.php on line 37
« Last Edit: December 17, 2005, 06:29:01 PM by Tanathka » Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Discussion Bot breaks my site
« Reply #1 on: December 09, 2005, 02:21:59 PM »

I don't have specific experience with this module but I can take a look at it this weekend.  Your site obviously has erroring set to a higher level than usual.  What version of php is your site running?
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Tanathka
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 34


View Profile
Re: Discussion Bot breaks my site
« Reply #2 on: December 09, 2005, 02:43:36 PM »

Its a Fedora Core 4 box.

PHP: 5.0.4
MySQL: 4.1.15
Logged
Tanathka
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 34


View Profile
Re: Discussion Bot breaks my site
« Reply #3 on: December 12, 2005, 04:55:14 PM »

Do you need the php.ini file?
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Discussion Bot breaks my site
« Reply #4 on: December 12, 2005, 06:48:54 PM »

I took a look at this and I think there are a few things that need reworked on this mambot.  I'm going to try and complete that tonight.

Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Discussion Bot breaks my site
« Reply #5 on: December 12, 2005, 08:17:20 PM »

I rewrote alot of this mambot without a good knowledge of everything it is doing.  So can you be my guinea pig and test it out?  This is version 1.1.  I did some initial testing and it seems to be working well, but since I have not used it before I need to make sure I didn't break any functionality. 

Anyone who wants to test it please do, just let me know the results.  If they are good I will add it to the downloads.

Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Tanathka
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 34


View Profile
Re: Discussion Bot breaks my site
« Reply #6 on: December 13, 2005, 06:25:41 PM »

Feedback time:
  • Ok, doesn't appear to cause any errors directly. (php based ones)
  • When you link through to the forum, it quotes the original news story.
    However it gives a [ b ][ /strong ] at the end of the story just before [ /quote ]
  • The default board entry doesn't appear to work.
  • Other code comes through that should be stripped away like headers and div.
  • SMF prefix doesn't work eg: if you wanted 'Articles:' to appear before the forum post, it doesn't happen
  • If its set to be used by only registed members, then the code shows up when no one is logged in
« Last Edit: December 13, 2005, 06:40:46 PM by Tanathka » Logged
kai920
Moderator
Joomla Expert
*****

Karma: +14/-2
Offline Offline

Posts: 275



View Profile
Re: Discussion Bot breaks my site
« Reply #7 on: December 13, 2005, 09:47:57 PM »

Have you guys looked at the new discussbot from Chadness? It's got some nice features:

    * The ability to automatically add links to all articles.  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.
    * The ability to have the link only show on the full article, not on the intro only front page.
    * The ability to see the posts from the forum at the bottom of the article, with optional parseing of the BB code and smileys.
    * The ability to have a quick reply box at the bottom of the article to add posts to the forum.

It isn't currently compatible with cowboy's bridge. I talked to chad and he said it only works with joomla-smf some of the time. I tried installing the bot locally through JSAS but no go either... gonna try it on a 'fresh' installation of Joomla.

Link here: http://www.simplemachines.org/community/index.php?topic=58578.0
« Last Edit: December 13, 2005, 09:51:03 PM by kai920 » Logged

-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Discussion Bot breaks my site
« Reply #8 on: December 13, 2005, 10:46:25 PM »

Feedback time:
  • Ok, doesn't appear to cause any errors directly. (php based ones)
  • When you link through to the forum, it quotes the original news story.
    However it gives a [ b ][ /strong ] at the end of the story just before [ /quote ]
  • The default board entry doesn't appear to work.
  • Other code comes through that should be stripped away like headers and div.
  • SMF prefix doesn't work eg: if you wanted 'Articles:' to appear before the forum post, it doesn't happen
  • If its set to be used by only registed members, then the code shows up when no one is logged in

thanks, I'll try and get a new version up tomorrow.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Discussion Bot breaks my site
« Reply #9 on: December 14, 2005, 09:11:12 AM »

  • Ok, doesn't appear to cause any errors directly. (php based ones)good
  • When you link through to the forum, it quotes the original news story.
    However it gives a [ b ][ /strong ] at the end of the story just before [ /quote ]I think this is specific to whatever article you were trying to use, maybe the num_chars variable cut the article right in the middle of a [ b ] stmt?
  • The default board entry doesn't appear to work.Should work now, I was importing the parameters wrong
  • Other code comes through that should be stripped away like headers and div.I didn't see this, are you looking at the source of the page?
  • SMF prefix doesn't work eg: if you wanted 'Articles:' to appear before the forum post, it doesn't happenWorks now, just like the other parameters
  • If its set to be used by only registed members, then the code shows up when no one is logged inI didn't get a chance to look at this.  I will do it tomorrow

[/quote]
« Last Edit: December 14, 2005, 10:07:43 AM by -Wolverine » Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Tanathka
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 34


View Profile
Re: Discussion Bot breaks my site
« Reply #10 on: December 14, 2005, 04:09:48 PM »

  • When you link through to the forum, it quotes the original news story.
    However it gives a [ b ][ /strong ] at the end of the story just before [ /quote ]I think this is specific to whatever article you were trying to use, maybe the num_chars variable cut the article right in the middle of a [ b ] stmt?Could it be that its mixing up the B and STRONG statements?  But there was B in the article I was testing.
  • The default board entry doesn't appear to work.Should work now, I was importing the parameters wrong Fixed
  • Other code comes through that should be stripped away like headers and div.I didn't see this, are you looking at the source of the page?I tested it using a multipage FAQ.  With the results giving DIV's
  • SMF prefix doesn't work eg: if you wanted 'Articles:' to appear before the forum post, it doesn't happenWorks now, just like the other parametersWorks, but needs a space char inserted after it for cosmetic reasons.
  • If its set to be used by only registed members, then the code shows up when no one is logged inI didn't get a chance to look at this.  I will do it tomorrow
  • This ones new:  When you discuss an article for the first time.  It creates a link back to the original article in the for of a [ url= ] set of bb codes.  the mosmsg part needs stripped away, and secondly, you need a parameter to have a more sensible link text in pace of the actual link itself.  eg [ url=http://...../ ] Back to article [ /url ] withe the Back to article being the text in the paramter of the bot.  Is that do-able?


Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Discussion Bot breaks my site
« Reply #11 on: December 15, 2005, 03:46:15 PM »

  • [ b ][ /strong ] at the end of the article in topic
    • This was an issue where end tags for elements such as strong, em, strike, ul, and ol were not replaced correctly.  This is resolved.
  • breaks at top of quote
    • This problem has been resolved.  There should be no blank space at top of quoted block anymore.
  • SMF Title Prefix
    • Title prefix is appended with ': ' in this version
  • Discussbot needs to follow permission settings
    • The bot does follow permissions but when the bot is set to registered or special the string replacement doesn't happen for the {mos_smf_discuss} string.  This causes the string to be seen by unregistered users.  An unwanted side effect of joomla permissions.  I am not sure there is anything that we could do about that.
  • Return link to article should use Article Title and link name
    • I added a variable to the configruation to append a given prefix to the link.  In the code I use this prefix and the name of the article to construct a readable link back to the article.

Let me know how the testing of this goes.  I think we are just about finished.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Tanathka
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 34


View Profile
Re: Discussion Bot breaks my site
« Reply #12 on: December 15, 2005, 07:52:38 PM »

Thats a wrap for this one  Grin
Logged
LortGob
Joomla Newbie
*

Karma: +0/-1
Offline Offline

Posts: 9


View Profile
Re: Discussion Bot breaks my site
« Reply #13 on: December 17, 2005, 05:49:05 AM »

I just stumbled across this topic and was wondering if you have seen the great improvements chadness has made to the discussbot. I wonder how these features can be made compatible with the joomlahacks bridge. Does anyone know how to solve this?

http://www.simplemachines.org/community/index.php?topic=58578.0
Logged

Tanathka
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 34


View Profile
Re: Discussion Bot breaks my site
« Reply #14 on: December 17, 2005, 06:28:38 PM »

All I know is the one Wolverine re-wrote works with the joomlahacks version of the bridge.

Some of those features from Chads version are very interesting (like the auto discuss and its opt out option), however I'll stick with this version because I know it works.
Logged
Pages: [1] 2 Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login