Jump to content

Download: Shoutbox


Pete T

Recommended Posts

  • Replies 2.9k
  • Created
  • Last Reply

I don't design for third-party skins. My best guess is that you probably have a customized skin_shoutbox -> shout_row skin template, and when I added the @ feature and the code to that template to make it work, your skin didn't update to add those changes. Try doing a 'compare differences' report of that template to see what code you're missing.

Link to comment

All this is, I do not see what's missing everything is in place


<if test="$ajax==false"><tr class='row2' id='shout-{$d['_archive']}row-{$d['s_id']}'></if>

<if test="$this->settings['shoutbox_show_photos']"><td style='width: 1%; white-space: nowrap;'>{$d['photo']}</td></if>

<td style='width: 1%; white-space: nowrap;'>

  <if test="showAtTag:|:$this->settings['shoutbox_at_tag']">

   <a href="#" class="at_member" data-store="{$d['members_display_name']}" title="{$this->lang->words['insert_name']}">@</a>&nbsp;

  </if>

  <if test="$d['member_id']">

   {IPSMember::makeProfileLink($d['_members_display_name'], $d['member_id'], $d['members_seo_name'])}

  <else />

   <abbr title="{$d['members_display_name']}">{$d['_members_display_name']}</abbr>

  </if>

</td>

<td style='width: 1%; white-space: nowrap;'>:</td>

<td style='width: 98%;'>

  <span class='right desc' title='{$d['_date']}'>({$d['s_date']})<if test="$can_edit || ($this->registry->getClass('shoutboxLibrary')->moderator && $this->registry->getClass('shoutboxLibrary')->checkModeratorPerm('edit_shouts', true))">&nbsp;<a href='{parse url="app=shoutbox" seotitle="false" base="public"}#edit{$d['s_id']}' onclick='return ipb.shoutbox.editShout({$d['s_id']})' title='{$this->lang->words['mod_opt_edit']}'><img src="{$this->settings['img_url']}/comment_edit.png" alt="{$this->lang->words['macro__edit']}" /></a></if><if test="$this->registry->getClass('shoutboxLibrary')->moderator">&nbsp;<a href='{parse url="app=shoutbox" seotitle="false" base="public"}#shout{$d['s_id']}' onclick='return ipb.shoutbox.modOptsLoadShout({$d['s_id']})' title='{$this->lang->words['mmenu_load_mod_opts']}'>{parse replacement="edit_folder"}</a></if><if test="!$this->registry->shoutboxLibrary->checkModeratorPerm('delete_shouts', true) && $this->memberData['g_shoutbox_delete_own'] && $d['member_id'] == $this->memberData['member_id']">&nbsp;<a class="deleteMyShout" id="delete_{$d['s_id']}" href="#" title="{$this->lang->words['mod_opt_delete']}"><img src="{$this->settings['img_url']}/delete.png" alt="" /></a></if></span>

  <if test="$d['_ignored'] == 1">

   <span id='unhide_shout_{$d['s_id']}' class='desc'>{$this->lang->words['ignored_shouter']} <a href='#shout{$d['s_id']}' onclick='return ipb.shoutbox.showHiddenShout({$d['s_id']})' title='{$this->lang->words['ignored_shouter_view']}'>{$this->lang->words['ignored_shouter_view']}</a></span>

   <span id='hidden_shout_{$d['s_id']}' style='display:none'>{$d['s_message']}</span>

  <else />

   {$d['s_message']}

  </if>

</td>

<if test="$ajax==false"></tr></if>



I really do not understand :ph34r:

Link to comment

Michael, I don't remember if I ever asked you this before, but how do you edit the font size for the "Global" shoutbox as it appears at the top of the Board index? I haven't been able to find it in 3.3.x.




Same as it's always been, just drag and drop the slider bar at the bottom of the shouts.


All this is, I do not see what's missing everything is in place




<if test="$ajax==false"><tr class='row2' id='shout-{$d['_archive']}row-{$d['s_id']}'></if>

<if test="$this->settings['shoutbox_show_photos']"><td style='width: 1%; white-space: nowrap;'>{$d['photo']}</td></if>

<td style='width: 1%; white-space: nowrap;'>

  <if test="showAtTag:|:$this->settings['shoutbox_at_tag']">

   <a href="#" class="at_member" data-store="{$d['members_display_name']}" title="{$this->lang->words['insert_name']}">@</a>&nbsp;

  </if>

  <if test="$d['member_id']">

   {IPSMember::makeProfileLink($d['_members_display_name'], $d['member_id'], $d['members_seo_name'])}

  <else />

   <abbr title="{$d['members_display_name']}">{$d['_members_display_name']}</abbr>

  </if>

</td>

<td style='width: 1%; white-space: nowrap;'>:</td>

<td style='width: 98%;'>

  <span class='right desc' title='{$d['_date']}'>({$d['s_date']})<if test="$can_edit || ($this->registry->getClass('shoutboxLibrary')->moderator && $this->registry->getClass('shoutboxLibrary')->checkModeratorPerm('edit_shouts', true))">&nbsp;<a href='{parse url="app=shoutbox" seotitle="false" base="public"}#edit{$d['s_id']}' onclick='return ipb.shoutbox.editShout({$d['s_id']})' title='{$this->lang->words['mod_opt_edit']}'><img src="{$this->settings['img_url']}/comment_edit.png" alt="{$this->lang->words['macro__edit']}" /></a></if><if test="$this->registry->getClass('shoutboxLibrary')->moderator">&nbsp;<a href='{parse url="app=shoutbox" seotitle="false" base="public"}#shout{$d['s_id']}' onclick='return ipb.shoutbox.modOptsLoadShout({$d['s_id']})' title='{$this->lang->words['mmenu_load_mod_opts']}'>{parse replacement="edit_folder"}</a></if><if test="!$this->registry->shoutboxLibrary->checkModeratorPerm('delete_shouts', true) && $this->memberData['g_shoutbox_delete_own'] && $d['member_id'] == $this->memberData['member_id']">&nbsp;<a class="deleteMyShout" id="delete_{$d['s_id']}" href="#" title="{$this->lang->words['mod_opt_delete']}"><img src="{$this->settings['img_url']}/delete.png" alt="" /></a></if></span>

  <if test="$d['_ignored'] == 1">

   <span id='unhide_shout_{$d['s_id']}' class='desc'>{$this->lang->words['ignored_shouter']} <a href='#shout{$d['s_id']}' onclick='return ipb.shoutbox.showHiddenShout({$d['s_id']})' title='{$this->lang->words['ignored_shouter_view']}'>{$this->lang->words['ignored_shouter_view']}</a></span>

   <span id='hidden_shout_{$d['s_id']}' style='display:none'>{$d['s_message']}</span>

  <else />

   {$d['s_message']}

  </if>

</td>

<if test="$ajax==false"></tr></if>



I really do not understand :ph34r:



If you have the default code for the template and it doesn't show, then I don't know what else to tell you. Like I said, I don't develop for third party skins, I don't know what they may do differently than the default skins.
Link to comment

Sorry, Michael. I didn't understand. I know about dragging the Shoutbox to expand the window and the preferences options for the Shoutbox. I'm referring to the actual font size of the shouts and usernames as they are displayed/posted inside the shoutbox. I want to change the font size from "14" to around "12". I know it's possible, I just can't find the option/code for it in the skin or shoutbox settings in the admin control center.

I tried to search the code for the "font size", but I couldn't find it.

Link to comment

when i go to edit the SHOuT REFRESH RATE it defaults to 30 and has red writing underneath that says due to resourse issues this cannot be set lower then 30 seconds. but before i updated shoutbox to the newest version i had it set to 10 seconds...is there a way to go around this and set it back to 10 seconds....maybe in the coding....

Link to comment

Sorry, Michael. I didn't understand. I know about dragging the Shoutbox to expand the window and the preferences options for the Shoutbox. I'm referring to the actual font size of the shouts and usernames as they are displayed/posted inside the shoutbox. I want to change the font size from "14" to around "12". I know it's possible, I just can't find the option/code for it in the skin or shoutbox settings in the admin control center.



I tried to search the code for the "font size", but I couldn't find it.




You could add something like this to your stylesheet:

#shoutbox-shouts-table td { font-size: 14px; }




when i go to edit the SHOuT REFRESH RATE it defaults to 30 and has red writing underneath that says due to resourse issues this cannot be set lower then 30 seconds. but before i updated shoutbox to the newest version i had it set to 10 seconds...is there a way to go around this and set it back to 10 seconds....maybe in the coding....




It is set up this way because this app is very resource intensive when it refreshes too much, and can cause your site to bring down a server if it's doing this too frequently for too many of your members. I'm not going to give any instructions on how to remove or lower this default value.


Is there a way to add a ping or sound of some sort when a message is sent on the shoutbox. I tried searching here and the tracker but find no answer. Thank you for the great add-on!




There's nothing built-in to this app to do that, no.
Link to comment

Is possible to install Shoutbox and instead of showing it in the index board, show it only in one forum?



Thanks!



Go into the settings, Hook: Global Shoutbox.
Go down to location settings and choose include on in specified pages listed below, then add your url's in the box below.
Link to comment

Michael, after i upgraded my 3.3.0 forums to 3.3.1, right after, i uploaded the new files for 1.3.2 (i was using 1.3.1). When going to the ACP, i got an unusual prompt, where instead of the ACP, i was greeted with the same upgrade screen when making IPB upgrades. Except that it was indeed telling me to upgrade your app. So, i did what it wanted me to. I ran the upgrader and it was progressing nicely, when suddenly it all stopped and it showed this error:

Fatal error: Call to undefined method output::getAsMobileSkin() in /home/user/public_html/forums/admin/sources/classes/editor/composite.php on line 247

Now, i'm not sure if the upgrade completed, but i doubt it. I reloaded my main forum page and the shoutbox was missing from the main index page, however the shoutbox tab was still there and when i clicked on the latter, the shoutbox did load. So, how do i make sure that the upgrade process completed 100%? And why did i get that error when upgrading from shoutbox 1.3.1 to 1.3.2 on IPB 3.3.1?

I believe i found another bug, which reset some settings on the shoutbox after upgrading from 1.3.1 to 1.3.2 (it shouldn't change any settings). In order to make the shoutbox appear on the main index page again, i had to go to Display on? in the Settings: Hook: Global Shoutbox menu and changed it back to Board Index Page. It was reset to Every Page.

Link to comment

Go into the settings, Hook: Global Shoutbox.


Go down to location settings and choose include on in specified pages listed below, then add your url's in the box below.



Hi Gaffney,
Thanks for your answer, it's working like a charm!

One last question: Is there a possibility of removing the "tab" Shoutbox from the forum? It's being shown for everyone I want this tool only for staff.
Link to comment

Michael, after i upgraded my 3.3.0 forums to 3.3.1, right after, i uploaded the new files for 1.3.2 (i was using 1.3.1). When going to the ACP, i got an unusual prompt, where instead of the ACP, i was greeted with the same upgrade screen when making IPB upgrades. Except that it was indeed telling me to upgrade your app. So, i did what it wanted me to. I ran the upgrader and it was progressing nicely, when suddenly it all stopped and it showed this error:



Fatal error: Call to undefined method output::getAsMobileSkin() in /home/user/public_html/forums/admin/sources/classes/editor/composite.php on line 247



Now, i'm not sure if the upgrade completed, but i doubt it. I reloaded my main forum page and the shoutbox was missing from the main index page, however the shoutbox tab was still there and when i clicked on the latter, the shoutbox did load. So, how do i make sure that the upgrade process completed 100%? And why did i get that error when upgrading from shoutbox 1.3.1 to 1.3.2 on IPB 3.3.1?



http://invisionfocus.com/tracker/issue-569-installing-132-on-ip-board-331/


I believe i found another bug, which reset some settings on the shoutbox after upgrading from 1.3.1 to 1.3.2 (it shouldn't change any settings). In order to make the shoutbox appear on the main index page again, i had to go to Display on? in the Settings: Hook: Global Shoutbox menu and changed it back to Board Index Page. It was reset to Every Page.




I can't reproduce any such issue.



Hi Gaffney,


Thanks for your answer, it's working like a charm!



One last question: Is there a possibility of removing the "tab" Shoutbox from the forum? It's being shown for everyone I want this tool only for staff.




Go to the Manage Applications & Modules page in the Admin CP, edit the Shoutbox app, and click on the 'Tab Permissions' tab to set this.
Link to comment

I don't know maybe its just me... But I just noticed this...

When you goto "Edit" shout... it works fine, does what its suppose to do, and edits fine... however if you click on

Load moderator tools and edit a shout that way... It goes through its little process, but does "not" edit the shout... The "edit shout" does... But the "Load Moderator Tools > Edit shout" Doesnt ...

is it just me that has noticed this? Or did I break something again?

Link to comment

I don't know maybe its just me... But I just noticed this...



When you goto "Edit" shout... it works fine, does what its suppose to do, and edits fine... however if you click on



Load moderator tools and edit a shout that way... It goes through its little process, but does "not" edit the shout... The "edit shout" does... But the "Load Moderator Tools > Edit shout" Doesnt ...



is it just me that has noticed this? Or did I break something again?


Mine edits the shout but leaves the popupbox open so I have to click the x to close.
Link to comment

I noticed a few mistakes...

1. In the template the opening tag is H4 but the closing is H2. Shouldn't the closing tag be H4?

<br />


<h4 class='statistics_head'>


<div id='shoutbox-active-total' class='left<if test="$this->settings['shoutbox_active_ajax']"> ajax_update</if>'>{$stats['TOTAL']}</div> {$this->lang->words['active_users_text']} {$this->lang->words['on']} <a href="{parse url="app=shoutbox" seotitle="false" base="public"}" title='{$this->lang->words['view_main_shoutbox']}'>{$this->settings['shoutbox_title']}</a> <span>{$this->lang->words['active_users']}</span><br />


<span class='desc'><span id='shoutbox-active-member'>{$stats['MEMBERS']}</span> {$this->lang->words['members']}, <if test="hideGuestCount:|:$this->caches['group_cache'][ $this->settings['guest_group'] ]['g_shoutbox_view']"><span id='shoutbox-active-guests'>{$stats['GUESTS']}</span> {$this->lang->words['guests']}, </if><span id='shoutbox-active-anon'>{$stats['ANON']}</span> {$this->lang->words['anon_users']}</span>


</h2>


<p id='shoutbox-active-names'>


<if test="count($stats['NAMES'])">


{parse expression="implode( ", ", $stats['NAMES'] )"}


</if>


</p>



2. Also, I have enabled the 'Active Users' hook in 'Boards Stats'. When nobody is in the shoutbox, the 'active users' box is blank. How to get rid of that blank box and keep the '0 active user(s) (in the past 15 minutes)' line?

I tried to put <if test="count($stats['NAMES'])"> above <p id='shoutbox-active-names'> but nothing happened.

3. Hook 'Online Tab' doesn't work. I enabled it, went on the shoutbox, opened a new tab, loaded my website, looked at that shoutbox tab in the nav menu, nothing.
Link to comment

I noticed a few mistakes...



[color=#ff0000]1[/color]. In the template the opening tag is H4 but the closing is H2. Shouldn't the closing tag be H4?



That's not the code I see, it's already got both an opening and closing <h4> tag, no <h2> tags are visible. I'm assuming you're referring to the skin_shoutbox -> shoutbox skin template, since you don't specify.


[color=#ff0000]2[/color]. Also, I have enabled the 'Active Users' hook in 'Boards Stats'. When nobody is in the shoutbox, the 'active users' box is blank. How to get rid of that blank box and keep the '0 active user(s) (in the past 15 minutes)' line?



I tried to put <if test="count($stats['NAMES'])"> above <p id='shoutbox-active-names'> but nothing happened.



It's not designed to disappear. If you'd like to request that, the feature suggestion tracker is linked in the first post.


[color=#ff0000]3[/color]. Hook 'Online Tab' doesn't work. I enabled it, went on the shoutbox, opened a new tab, loaded my website, looked at that shoutbox tab in the nav menu, nothing.




It works fine for me in both my live site and my development board. Based on your first issue above, I doubt you have a good copy of this app installed, so that's probably why this hook doesn't work.
Link to comment

Archived

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

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...