Autopost Kunena with Shoutbox pro

Kobytoo
Topic Author
Posts: 2
3 years 6 days ago #3857 by Kobytoo
Autopost Kunena with Shoutbox pro was created by Kobytoo
I installed the shoutboxkunena plug in which is supposed to inset the title of new topics posted in Kunena. Firstly, it's very limited in as much as you can't choose which Topic categories you want to use this functionality. In addition, all I see in the shoutbox is JJ_SHOUTBOXKUNENA_NOTIFY_MESSAGE and nothing of the actual topic. I installed this with Shoutbox 9.4.2.

Please Log in or Create an account to join the conversation.

Lodder
Lodder's Avatar
Posts: 1181
3 years 6 days ago #3858 by Lodder
Replied by Lodder on topic Autopost Kunena with Shoutbox pro
Hi Kobytoo,

Thank you for reporting your issue.

I will fix the language string bug and also add supoort to choose a topic tomorrow.

Regards,
Lodder

Please Log in or Create an account to join the conversation.

Lodder
Lodder's Avatar
Posts: 1181
3 years 5 days ago #3859 by Lodder
Replied by Lodder on topic Autopost Kunena with Shoutbox pro
Hi Kobytoo,

I've released an update for the plugin which now fixes the language strings and also adds an option to select the Kunena category.

If you have any more suggestions or bug reports, please feel free to post another message.

Regards,
Lodder

Please Log in or Create an account to join the conversation.

Kobytoo
Topic Author
Posts: 2
3 years 5 days ago #3860 by Kobytoo
Replied by Kobytoo on topic Autopost Kunena with Shoutbox pro
That is super good service.

Please Log in or Create an account to join the conversation.

zmx
Posts: 3
10 months 3 weeks ago - 10 months 3 weeks ago #4268 by zmx
Replied by zmx on topic Autopost Kunena with Shoutbox pro
I have edited "my" Kunena plugin to check if the post is published or not

(useful if the post needs approval by an admin
- and yes, I know that no message will be shown after the approval,
but better than a 404 in the shoutbox if the post is not published yet :)

it's easy and may be you will add this option to an update .

you just have to check weather $data->hold == 0

or if you also add a setup option to select this you may add this line:
$public = (int)$data->hold && $this->params->get('hiddenpost') ? 0 : 1;

and just include it to the following "cat" query: if($public && $catId !== 0....)
.
just an idea

____________________

additional a question if you select "post and topic" in setup:

is it normal or intended that the notifications come up 2 times on new topics?
(1st for the topic, and 2nd for the post, but both with the same forum link)

? or may be I have done something wrong with some of my editations ...

I think kunena reacts 2 times by saving the new topic and then saving the new message,
so the plugin will be called 2 times also, but is it possible to prevent this?

(I could stop the 2nd by saving the $uri as static - it works - but not shure if this is a good solution)
Last edit: 10 months 3 weeks ago by zmx.

Please Log in or Create an account to join the conversation.

Lodder
Lodder's Avatar
Posts: 1181
10 months 3 weeks ago #4269 by Lodder
Replied by Lodder on topic Autopost Kunena with Shoutbox pro
Hi zmx,

Thanks for your suggestion.
I'll release an update in the next couple of days to check if:

1. The post is published
2. The post is public

As for the notifications appearing twice, this is most likely because the "onKunenaAfterSave" event if triggered twice by Kunena. I'll see if there is a way to overcome this.

Regards,
Lodder

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum