Discuss Bot 4.2 b1 error

Started by mickyd2006, February 21, 2007, 05:06:58 AM

Previous topic - Next topic

mickyd2006

when I publish the smf.discussbot mambot I get this error


Warning: Invalid argument supplied for foreach() in /xxxxxxxxxxx/xxxxxxxxxx/xxxxxxxxxx/xxxxxxxxxxxxx/mambots/content/smf.discussbot.php on line 35

Warning: require(/SSI.php) [function.require]: failed to open stream: No such file or directory in /xxxxxxxxxxxx/xxxxxxxxxx/xxxxxxxxxxxxxx/xxxxxxxxxxxxx/mambots/content/smf.discussbot.php on line 42

Fatal error: require() [function.require]: Failed opening required '/SSI.php' (include_path='.:') in /xxxxxxxxxx/xxxxxxxxx/xxxxxxxxxx/xxxxxxxxxxx/mambots/content/smf.discussbot.php on line 42


I have placed the peice of code in my mambo template at the bottom.

Any ideas anyone??
High Quality Low Cost CMS Installations - Just-Installs.com

SOHK: School Of Hard Knox - Hard Hitting Lessons In Life


I Wonder:

What Exactly Did The Man Who Invented The Drawing Board Go Back To?
Why Are Disasters Always Described As Great?
What Platform Was Windows Designed On?

Orstio

Discussbot 4.2b1 is designed to work with Mambo 4.5.x and Joomla 1.0.x, which means that it won't work with Mambo 4.6.x.  Mambo 4.6.x is too different for that.

I have attached a discussbot that should work with Mambo 4.6.x.

mickyd2006

I tried the attatched discuss bot buddy, it threw this error up....


Warning: require_once(/xxxxxxxxxxx/xxxxxxxxx/xxxxxxxxx/xxxxxxxxxxx//administrator/components/com_smf/config.smf.php) [function.require-once]: failed to open stream: No such file or directory in /xxxxxxxxxxx/xxxxxxxxxxxx/xxxxxxxxxxx/xxxxxxxxxxxxx/mambots/content/smf.discussbot.php on line 60

Fatal error: require_once() [function.require]: Failed opening required '/xxxxxxx/xxxxxxxxx/xxxxxxxxxxxxx/xxxxxxxxxxxxxxxxx//administrator/components/com_smf/config.smf.php' (include_path='.:') in /xxxxxxxxx/xxxxxxxxx/xxxxxxxxxxx/xxxxxxxxxx/mambots/content/smf.discussbot.php on line 60


In the first line of the first and second error, should there be a double // before administrator/   :?
High Quality Low Cost CMS Installations - Just-Installs.com

SOHK: School Of Hard Knox - Hard Hitting Lessons In Life


I Wonder:

What Exactly Did The Man Who Invented The Drawing Board Go Back To?
Why Are Disasters Always Described As Great?
What Platform Was Windows Designed On?

mickyd2006

I have tried some tweaks but not managed to cure it yet...
High Quality Low Cost CMS Installations - Just-Installs.com

SOHK: School Of Hard Knox - Hard Hitting Lessons In Life


I Wonder:

What Exactly Did The Man Who Invented The Drawing Board Go Back To?
Why Are Disasters Always Described As Great?
What Platform Was Windows Designed On?

Orstio

Sorry about that.  You can delete line 60 altogether.

mickyd2006

#5
Thanks That worked great, the only problem now is that it places the discuss bot link right in the middle of the write comments link like below:

Write (0) Discuss This Article In Our Forums
Comment (0) Comments

Read More.......


Where as It shoul look like this


Write Comment (0) Comments

(0) Discuss This Article In Our Forums

Read More.......


Also found the following errors:

some of the links that this bot provides are incorrect.

one set of links will be double ie:

http://xxxxxxxxxxxxxxx.com/http://xxxxxxxxxxxxxxxxx.com/index.php?option=com_smf&Itemid=39&topic=98.top#top

and the next item will be

javascript:send_form(59)

the next item will be double

the item after that will be javascript:send_form(58) then javascript:send_form(57) then a double might occour then back to normal

The links that display correctly (javascript:send_form) takes me to this error message
The topic or board you are looking for appears to be either missing or off limits to you.
And also the link itself always shows
(0) Discuss This Article In Our Forums
but the links that are double url as mentioned above always show as
(1) Discuss This Article In Our Forums
High Quality Low Cost CMS Installations - Just-Installs.com

SOHK: School Of Hard Knox - Hard Hitting Lessons In Life


I Wonder:

What Exactly Did The Man Who Invented The Drawing Board Go Back To?
Why Are Disasters Always Described As Great?
What Platform Was Windows Designed On?

mickyd2006

High Quality Low Cost CMS Installations - Just-Installs.com

SOHK: School Of Hard Knox - Hard Hitting Lessons In Life


I Wonder:

What Exactly Did The Man Who Invented The Drawing Board Go Back To?
Why Are Disasters Always Described As Great?
What Platform Was Windows Designed On?

Orstio

What is the code you are putting in your articles?

mickyd2006

Code in articles? I dont put any code in the articles... I didnt know I had to... I pasted that code in the bottom of my template but thats all.

I didnt know I needed any other code in my article becasue there was a link in every article automatically, the link I configured in smf.discussbots configuration, the link that appears below write comment..


(0) Discuss this article in our forums


Have I missed something???
Do I have to have a {mos forum post tag} <<a bit like this one??

High Quality Low Cost CMS Installations - Just-Installs.com

SOHK: School Of Hard Knox - Hard Hitting Lessons In Life


I Wonder:

What Exactly Did The Man Who Invented The Drawing Board Go Back To?
Why Are Disasters Always Described As Great?
What Platform Was Windows Designed On?

chadness

You shouldn't have to, if you put in a default discussion board, which is what it sounds like you are doing.  For testing purposes, you might try removing the default discussion board, and put in a tag like this:
{mos_smf_discuss:board name}
where "board name" is the name of your discussion board.

Are you using this with another comment system?  It sounds like they may be stepping on each other a little.  I'm not sure how much that is related.

To help you troubleshoot, the links that are javascript code are ones where it does not find a post already in SMF, and the "double" ones are occurring when it does find a related post.

I haven't used the newer versions of Mambo, so I don't know what else might need to be done.  I'll try to compare against Orstio's code to see what I can do.

mickyd2006

Hey, thanks for your reply..

I followed your advice and removed the default board, you were correct in you assumption that I was indeed trying to use the default board feature.

I also followed you advice and placed the mos smf dicsuss bot code manually in my article introduction section {mos_smf_discuss:3.0}
I use board numbers instead of names (I have tried names with still the same result)
But unfortunately it still does the double url thing

http://xxxxxxxxxxxxxxxx.com/http://xxxxxxxxxxxxx.com/index.php?option=com_smf&Itemid=39&topic=100.top#top
High Quality Low Cost CMS Installations - Just-Installs.com

SOHK: School Of Hard Knox - Hard Hitting Lessons In Life


I Wonder:

What Exactly Did The Man Who Invented The Drawing Board Go Back To?
Why Are Disasters Always Described As Great?
What Platform Was Windows Designed On?

Advertisement: