There's an option in settings to put it at the top of the board

There's an update with fixes to a few bugs and a few minor improvements

There's 1 security fix and 1 breaking change (previous shouted links will look funny)

3

(49 replies, posted in Supported extensions)

Yes, // would be a more generic solution!

Thanks

4

(49 replies, posted in Supported extensions)

If you run your forum over HTTPS this won't work with the latest chrome - it refused to include HTTP youtube iframes. I had to go through and change all of the FancyMediaService URLs to be https:// rather than http://

Yes, I've noticed this. Part of me thinks it perhaps should be tied in with some better handling and a 'timeout' - I don't like the idea of people hitting the server forever just from leaving the browser window open.

I think a fix would be to pass back a new CSRF token in the XML, perhaps each time, and update this with javascript in the DOM. This should solve the problem.

I'm not sure what your plan/workflow is but it'd be really useful for the project for you to pass these fixes you're making back as pull requests on github

Thanks
Andy

helliax wrote:

I've managed to implement username links, but I'm trying to figure out the best way to go about tying it to an option, so it can be turned on and off through the forum settings.

Right now, the link is generated in the javascript. Specifically, the getHTMLFromMessage() function in shoutbox-pun.js. So in other words, I can't access the PHP config values directly. One way I figure I can do it, is to create a hidden <input /> that has the value, and grab that value from javascript. But that seems really hackish. Does anyone have any suggestions, or just other mods to check out, to see how they did it?

I forked andrew's project so I can work on it without messing up his project, so you can look at the code I have now: https://github.com/helliax/shoutbox_pun. Preferably, all my major changes will get turned into options, so we end up with one mod instead of two with just minor differences.

Why not add the option in the XML output in data.php? getShouts could have an additional <options> bit.

Please feel free to submit a pull request once the changes are done

Trace wrote:

Don't forget to implement BBCode too! smile

I think that's kinda tricky! BBCode wasn't intended for single line 'shouts'. I can see the URL tag being useful but aside from that I think it's just going to give people power to annoy smile

Hey

Thanks for the suggestions.

I like the idea of emoticons and that's definitely on the TODO.

I should note though that I'm pretty busy and have other projects on the go - I encourage anyone out there to contribute themselves! The project is very basic and is on github. If anyone makes the effort to send a pull request I'll definitely find the time to merge it!

saurus wrote:

Hi ams, i love u extension. I have it installed on my punbb site.

I have the same question on this topic (post). Do you have any message limit? Although not launched my site, I want to ensure that the extension will not fail. Are you available to help me?

i hope u response!

There is no hard limit, I have run this on a quiet forum for many years without issue.

We didn't get to the bottom of Francisco FR's issue but I would like to.

10

(23 replies, posted in Supported extensions)

Ah yes, just found in the source..

/**
 * Adds karma/reputation to posts.
 *
 * @copyright (C) 2008-2009 PunBB
 * @license [url]http://www.gnu.org/licenses/gpl.html[/url] GPL version 2 or higher
 * @package pun_karma
 */

11

(23 replies, posted in Supported extensions)

Hi Slavok

I was wondering what license this was released under (if any)?

Cheers

antonio wrote:

ams: The extension works well till I add define('FORUM_DEBUG', 1); in config.php, then the chat-window is empty and its content is shown after adding a "shout", however nor after that the content (time and username) is displayed properly.

Thanks for the report, I've raised this as an issue here: https://github.com/andrewmichaelsmith/s … n/issues/8

13

(115 replies, posted in Supported extensions)

So I'm trying this out, I logged out and when I try to log back in I get the message:

Sorry, but we think you are bot. You cant login on this forum.

I'm using Lastpass to login - I suspect this is the cause. When I type out my username and password it works fine.

update

Yes, looks like this is due to enabling Enable honeypot protection on the Login form. I'm guessing last pass is filling in some hidden input tags which is causing the problem!

OK, i'll see if I get the time to take a look at this but I'm unfortunately quite busy at the moment. Thanks for all the information.

It can be quite a hit on the server - each person with the shoutbox open will poll the server every second - so if you have a large number of concurrent users on your forum it could cause something of a strain.

The only thing that can really be done about this is implementing a time out (if someone leaves your forum open for an hour - chances are they wandered off and don't care about the shoutbox). This is definitely a feature I'd be keen to add but as I've said I'm quite busy and unfortunately  this isn't too high on my list of priorities smile

Thanks SuperMag, what version are you running?

SuperMAG wrote:

The shoutbox not working on my site, i tried reinstalling few times, nothing works, its just shows a box and when i write and enter it justs posts nothing.

http://supermag.heliohost.org

Have you modified your forum more than just installing plugins? The data being returned from the server appears to be:

1 requests  ❘  1.15KB transferred
data.php
/extensions/shoutbox_pun
512ms0

HeadersPreviewResponseCookiesTiming
<br />
<b>Warning</b>:  ob_start() [<a href='ref.outcontrol'>ref.outcontrol</a>]: output handler 'ob_gzhandler' cannot be used twice in <b>/home/supermag/public_html/include/common.php</b> on line <b>49</b><br />
<?xml version="1.0" encoding="UTF-8"?>
<response>
<iserror>0</iserror><br />
<b>Notice</b>:  Undefined variable: forum_user in <b>/home/supermag/public_html/extensions/shoutbox_pun/data.php</b> on line <b>148</b><br />
    <forumuser></forumuser>
    <newones>4</newones>
    <lastid>4</lastid>
    <message>
        <id>1</id>
        <userid><br />
<b>Notice</b>:  Undefined variable: forum_user in <b>/home/supermag/public_html/extensions/shoutbox_pun/data.php</b> on line <b>176</b><br />
</userid>
        <username>SuperMAG</username>
        <date><br />
<b>Notice</b>:  Undefined variable: timediff in <b>/home/supermag/public_html/extensions/shoutbox_pun/data.php</b> on line <b>184</b><br />
1347283021</date>
        <text>hello</text>
    </message>
    <message>
        <id>2</id>
        <userid><br />
<b>Notice</b>:  Undefined variable: forum_user in <b>/home/supermag/public_html/extensions/shoutbox_pun/data.php</b> on line <b>176</b><br />
</userid>
        <username>SuperMAG</username>
        <date><br />
<b>Notice</b>:  Undefined variable: timediff in <b>/home/supermag/public_html/extensions/shoutbox_pun/data.php</b> on line <b>184</b><br />
1347283088</date>
        <text>...</text>
    </message>
    <message>
        <id>3</id>
        <userid><br />
<b>Notice</b>:  Undefined variable: forum_user in <b>/home/supermag/public_html/extensions/shoutbox_pun/data.php</b> on line <b>176</b><br />
</userid>
        <username>SuperMAG</username>
        <date><br />
<b>Notice</b>:  Undefined variable: timediff in <b>/home/supermag/public_html/extensions/shoutbox_pun/data.php</b> on line <b>184</b><br />
1347283244</date>
        <text>hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhheeeeeeeeeeey</text>
    </message>
    <message>
        <id>4</id>
        <userid><br />
<b>Notice</b>:  Undefined variable: forum_user in <b>/home/supermag/public_html/extensions/shoutbox_pun/data.php</b> on line <b>176</b><br />
</userid>
        <username>test</username>
        <date><br />
<b>Notice</b>:  Undefined variable: timediff in <b>/home/supermag/public_html/extensions/shoutbox_pun/data.php</b> on line <b>184</b><br />
1347292065</date>
        <text>test</text>
    </message>
<br />
<b>Notice</b>:  Undefined variable: ext_info in <b>/home/supermag/public_html/extensions/shoutbox_pun/data.php</b> on line <b>194</b><br />
<blah></blah></response>
antonio wrote:

Well, it will be fine have an option to delete old (useless) post, lets say older than 500 rows. I reckon deleting them manually in MySQL would not harm anything.

Agreed - feel free to delete the old posts. Though if that does fix it I would like to know because that's clearly a bug!

Interesting - I've not run this on busy forums but have been running it for a few years on a small forum without difficulty.

How many posts do you think you get made to the shoutbox before it crashes? Would you be able to share the shoutbox database table with me?

Is there anything in your server error logs?

Thanks

I'd quite like to improve the look and feel of this shoutbox, are there any designers/css people out there who fancy a pop?

If you don't want to bother with forking it on github then if you send me a new CSS i'll happily integrate the change

hoang83vu wrote:

What I meant is that new chat lines should appear at the bottom. In this current version, they appear at the top. That would greatly improve reading experience. Thanks

aha, but that only makes sense for yours where you've modified it smile

I can look in to make the orientation opposite though

hoang83vu wrote:

I noticed of the new version. What are the changes? or it was only in manifest.xml?

Changes are in first post of this thread

I used a hook - check the manifest.xml

For my punbb shoutbox I want to be able to show the shoutbox in different places depending on options.

Is there a nice way to do this in the manifest file?

Ideally I want to define a method 'showShoutbox()' and call it in various hooks depending on what options the user has set.

Is this possible?

By popular demand..

Just released

Version 8.3: Added option to show shoutbox on the top of the forum

https://github.com/downloads/andrewmich … ox_pun.zip (same as in main post)

hoang83vu wrote:

Suggestion:

New chat posts should appear at the bottom to avoid scrolling for new messages.

How do you mean exactly? Here they show at the top but the box is scrolled to the top automatically. You shouldn't need to scroll to see new posts.

Thanks for the feedback and the suggestion toni0, I'll look in to this as a priority as so many people have requested it now