News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Mosbot Problem

Started by legolas, August 07, 2005, 02:20:05 AM

Previous topic - Next topic

legolas

Hi,
I am having problems with mosbot. I have read through the included readme file, but I still can't get it to work. I installed the mambot (and published it) and when I insert the code {mos_smf_discuss:boardname} , it only displays the code. Someone recommended using the "smf_mosbot_help.php", but the file doesn't exist!! Pls help!! Thank you.


(Can someone pls give me an example , using this forum  ;))

Orstio

In the bot params, enter "no_discuss" as the default discussion board.

legolas

#2
Hi Orstio,
I just did what you told me,but I am getting an error message:-

Table \'mysite_mambo.mos_menu\' doesn\'t exist SQL=SELECT m.* FROM mos_menu AS m\nWHERE menutype=\'topmenu\' AND published=\'1\' AND access <= \'2\' AND parent=\'0\'\nORDER BY ordering

------------------------------------


Instead of entering "no_discuss" as the default discussion board, I used one of my boards, but when I click on the the Comment button, I am directed to reply page, and I get this error message

The following error or errors occurred while posting this message:
Your session timed out while posting. Please try to re-submit your message.


I am still able to post the message, but the error message may confuse people.

And is it possible to disable,  commenting for the older articles?? Currently I am able to open a new thread for the older articles (even though I didn't insert the the code  ???)

Orstio

#3
QuoteTable 'mysite_mambo.mos_menu' doesn't exist

???

You have no mos_menu table?

QuoteInstead of entering "no_discuss" as the default discussion board, I used one of my boards, but when I click on the the Comment button, I am directed to reply page, and I get this error message

You need to add the session-starting code to your Mambo template in order for the posting to work properly:

QuoteYou will need to add a bit of code to the bottom of your Mambo 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;
?>

QuoteAnd is it possible to disable,  commenting for the older articles?? Currently I am able to open a new thread for the older articles (even though I didn't insert the the code  )

This is because you entered a default discussion board other than no_discuss.  The bot displays a link to that board, regardless of whether or not you put the bot code into the article (Thus, the term "default", as in "automatically chosen").  It is possible, but you will then need to go to each of those articles, and enter {mos_smf_discuss:no_discuss} as the bot code.

Let's keep in mind that the bot is not psychic.  It does not know when you want to discuss an article, or not, unless you tell it.  If you tell it there is a default discussion board, it assumes you want to discuss every article there, unless told otherwise for each individual article.

legolas

Hi orstio,
I checked the database, and there is a mos_menu table. ???

I tried entering {mos_smf_discuss:no_discuss} in the articles, but it only worked in 1 of the articles. The other articles still display the link.

Is it possible to use an image instead of text (check out this link)

(BTW I hope that future versions will include a psychic bot!! :D )


Orstio

QuoteI tried entering {mos_smf_discuss:no_discuss} in the articles, but it only worked in 1 of the articles. The other articles still display the link.

Are you saying you put the code in an article, yet a link is still displayed?  Do you have a URL so I can see?

QuoteIs it possible to use an image instead of text (check out this link)

I see Ilir has done some modifications.  :D  You might want to contact him to see what he did.

Quote(BTW I hope that future versions will include a psychic bot!!  )

LOL, yeah, me too. :D


Orstio

Thanks.

It's doing this, because it is not displaying the code on that page, so it is not really finding it, either.

Take this article, for example:

http://www.mykereta.net/myvi2/index.php?option=com_content&task=view&id=16&Itemid=2

On the article page, it works fine, but on the main page it does not see the code.

Move the code to just below the image in the article, and you'll see what I mean.

legolas

Thanks Orstio,
You are a genius!!  :D

Advertisement: