KevinMc Posted October 10, 2011 Posted October 10, 2011 Hello, Michael. Is there any way to minify the shoutbox.ajax.js file?
Michael Posted October 11, 2011 Posted October 11, 2011 If you have minify enabled, does that file not get minified too?
KevinMc Posted October 11, 2011 Posted October 11, 2011 If you have minify enabled, does that file not get minified too? No.
Michael Posted October 11, 2011 Posted October 11, 2011 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.
edwardjiang7 Posted October 12, 2011 Posted October 12, 2011 How can I remove the "Shoutbox" tab from my theme but still be accessible if the have the URL?
Michael Posted October 12, 2011 Posted October 12, 2011 In the Manage Applications & Modules page, edit this app, go to Tab Permissions and choose to hide the tab.
edwardjiang7 Posted October 13, 2011 Posted October 13, 2011 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,
KevinMc Posted October 13, 2011 Posted October 13, 2011 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.
edwardjiang7 Posted October 13, 2011 Posted October 13, 2011 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
KevinMc Posted October 13, 2011 Posted October 13, 2011 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">
Michael Posted October 13, 2011 Posted October 13, 2011 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.
KevinMc Posted October 13, 2011 Posted October 13, 2011 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?
Michael Posted October 13, 2011 Posted October 13, 2011 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.
KevinMc Posted October 13, 2011 Posted October 13, 2011 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?
Michael Posted October 13, 2011 Posted October 13, 2011 You can do whatever customization you want to it, yes.
KevinMc Posted October 13, 2011 Posted October 13, 2011 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.
Michael Posted October 13, 2011 Posted October 13, 2011 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.
KevinMc Posted October 13, 2011 Posted October 13, 2011 As you can see, I actually went away from "removing" it. I was simply asking about the simple display:none edit, which doesn't remove anything.
Michael Posted October 13, 2011 Posted October 13, 2011 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.
KevinMc Posted October 13, 2011 Posted October 13, 2011 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.
KevinMc Posted October 13, 2011 Posted October 13, 2011 ACP --> Manage Applications & Modules --> Click the pencil next to the Shoutbox Application --> Click the "Tab Permissions" tab
The Old Man Posted October 14, 2011 Posted October 14, 2011 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.
DeRealDeano Posted October 14, 2011 Posted October 14, 2011 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?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.