Jump to content

Download: Shoutbox


Pete T

Recommended Posts

  • Replies 2.9k
  • Created
  • Last Reply
Posted

Then it's likely not possible, especially since this app does it's javascript very weirdly. It would definitely not ever be possible with the Global Shoutbox hook. The only things you can minify are those that get loaded with the {parse js_module} calls, and those don't work in hooks.

Posted

Okay thanks! Okay now also, at the board index footer where it says "0 active user(s) On the shoutbox (in the past 15 minutes)"... how can I remove that part? Thanks,



Should just have to disable that hook.

ACP --> Manage Hooks --> Installed Hooks (tab) --> Shoutbox (Active Users)

Hook Description: "This adds a list of active users in the shoutbox on your board index"

Click the red "x" for that hook to disable it.
Posted

Should just have to disable that hook.



ACP --> Manage Hooks --> Installed Hooks (tab) --> Shoutbox (Active Users)



Hook Description: "This adds a list of active users in the shoutbox on your board index"



Click the red "x" for that hook to disable it.



Thank you so much! :D
Posted

Michael, I was looking at something and wanted to know if it was necessary? Is it?

<img height="6px" style="cursor:n-resize;width:100%" alt="Resize Shouts Area" id="shouts-global-resizer" src="www.whatever.com/forums/public/style_images/tctc91_pulse/spacer.gif">

Posted

Michael, I was looking at something and wanted to know if it was necessary? Is it?



<img height="6px" style="cursor:n-resize;width:100%" alt="Resize Shouts Area" id="shouts-global-resizer" src="www.whatever.com/forums/public/style_images/tctc91_pulse/spacer.gif">




That's an object that is used to allow you to resize the Shoutbox. You can remove it if you want, but you'll likely get javascript errors, and you won't be able to resize the Shoutbox.
Posted

That's an object that is used to allow you to resize the Shoutbox. You can remove it if you want, but you'll likely get javascript errors, and you won't be able to resize the Shoutbox.


Oh wow, I just noticed that it can be re-sized. The re-sizer isn't very prominent and i never even use it anyway. What part of the JS can I throw out so I can get rid of the entire object without getting any errors?
Posted

You'd have to delete all of the code out of the resizeGlobalShouts and resizeShouts functions in /public/shoutbox.js. These resizers exist in several templates too.

Posted

You'd have to delete all of the code out of the resizeGlobalShouts and resizeShouts functions in /public/shoutbox.js. These resizers exist in several templates too.



Hmm...sounds like more work than necessary. What about if I just added the inline styling "display:none" to its associated template?
Posted

You can do whatever customization you want to it, yes.



Understood, yes. But wouldn't that be just as efficient? I mean, it wouldn't display it, I wouldn't get any JS conflicts and I wouldn't have to modify anything with the exception on that one inline edit.
Posted

The most efficient thing to do would be to leave it. Is it causing any issues right now? If you do remove it, then that means customizing the skin templates, and then when I release an update you might not see those changes in your customized skin template.

If you really want to remove it, then you can do that in whatever fashion you feel is best. But doing that is all on you to do it in a way that doesn't break things. If you want to try setting a display: none property on that and see if it helps, then you are free to do so. Or you can do more invasive methods. It's up to you. I'm not going to give advice on what method I think is best to remove it, because I don't feel it should be removed.

Posted

And if that works for you, then that's good. Just remember that doing this can lead to issues later if you upgrade this app. It seems to me like you're fixing a problem that's not really a problem.

Posted

It seems to me like you're fixing a problem that's not really a problem.



Well, it's not a problem at all, really. For me, though, it's quite annoying seeing the reserved empty space at the bottom of the shoutbox rows. Especially, since I didn't even realize it was there for resizing in the first place. No doubt it's a handy function. For me though, it's wasted real estate.
Posted

It has been looked at to try and make it more resource friendly, yes, but that's not to say it still doesn't use a lot of resources. There's no way to have it not use a lot of resources if you're going to show it to every user on every page, and have it automatically refreshing all the time.



I can't tell you what auto refresh setting you want. You'll have to experiment and figure out what is best for you.




Thanks Michael I understand. Although I had the global hook showing on the index and forum topic pages (not Gallery, blogs etc), I only had the Global Shoutbox visible to members who are logged in which would be at most 15 a day or so.
The hook didn't show for Guests and I even had the time-out for inactive members set to 5 mins, so I thought I was doing my bit to aid resources.

Since I disabled the global hook and have the Shoutbox main page only visible to logged in members, my members are confirming that the performance when navigating the board has now noticeably increased.
What confuses me is that the Shoutbox never used to cause any slowdown on my site until recent versions of the application or recent versions of the board, I'm not sure which.

Perhaps its unique to my board.
Posted

Hey Michael, here is what I found out and I notice it on all three browsers I use, firefox, chrome and IE. For all groups when ever I set the "can use the shoutbox" to yes it disappears and we have to click on the shoutbox tab in order to access it. Any ideas please?

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...