Page 1 of 1

how to remove the shoutbox and calendar

PostPosted: Sat May 06, 2006 1:16 am
Author: TheJT
hi
on the forum there is {from the the installation on} a calendar and a shout box [not on the im portal but on the forum]
how can i remove the calendar and the shout box.
can i configure it so that only a special groupe can see them?

PostPosted: Sat May 06, 2006 8:41 am
Author: Master Dwarf
Funny, I forgot what file gets modified to take out the shoutbox. I had done it before. I even went to integramod.com and saw that I was the last one to comment on shoutbox removal thread, but that thread is now coming up with a parsing error.

Anyone want to mention the file that needs to be tweaked?

As for setting permissions on each, not sure about that.

PostPosted: Sat May 06, 2006 12:06 pm
Author: Adrian Rea
for the shoutbox:
The shoutbox is a great instant messenger on some site, yet for others, it adds queries, auto refreshes and has a limited level of control for some forums. The block is hard coded into the templates folders at templates/your_template/index_body.tpl

When I remove the shoutbox I go a little wider of the actual MOD and take out a little either side to line it up with the calendar.

FIND
Code: Select all
<tr><td><BEGIN><Start>

DELETE
Code: Select all
<tr><td><BEGIN><Start><table> <tr> <td><span><a>{L_SHOUTBOX}</a></span></td> </tr> <tr><td> <iframe></iframe> </td> </tr> </table><table><tr><td><img></td><td><img></td><td><img></td></tr></table><End><END></td></tr><BEGIN><tr><td> </td></tr><tr><td>


In addittion to this Tekime suggested Removing this from the template will reduce the number of queries, because the shoutbox is an iframe element which is loading shoutbox_view.php, which is in turn running at least two queries. It also includes a number of other scripts (extension.inc, common.php, lang files, bbcode, template, database classes, etc.).

Basically with the shoutbox enabled you're getting two hits for every one. If your shoutbox is busy I imagine the queries could get noticeable over time.

To remove completely I did the following]Open templates/your_template/index_body.tpl[/b]

Find, and remove:
Code: Select all
<tr><td><BEGIN><Start><table> <tr> <td><span><a>{L_SHOUTBOX}</a></span></td> </tr> <tr><td> <iframe></iframe> </td> </tr> </table><table><tr><td><img></td><td><img></td><td><img></td></tr></table><End><END></td></tr>


Open index.php

Find, and remove]// Start add - Fully integrated shoutbox MOD         'U_SHOUTBOX' => append_sid("shoutbox.$phpEx"),         'L_SHOUTBOX' => $lang['Shoutbox'],         'U_SHOUTBOX_MAX' => append_sid("shoutbox_max.$phpEx"),// End add - Fully integrated shoutbox MOD[/code]
A

PostPosted: Sat May 06, 2006 12:12 pm
Author: Adrian Rea
Configuring a group is more dificult, the above is how to remove it completely.

A

Re: how to remove the shoutbox and calendar

PostPosted: Mon May 08, 2006 5:18 pm
Author: Master Dwarf
Thanks A! I think this is something for the Knowledge Base, IMO.

PostPosted: Tue May 09, 2006 2:35 am
Author: Adrian Rea

PostPosted: Tue May 23, 2006 5:29 am
Author: kiwi
ok, this is how to remove the shoutbox but how can i remove the calendar and the "who is online" next to it too?

PostPosted: Tue May 23, 2006 11:08 am
Author: Dragonsys
"kiwi";p="6988" wrote:ok, this is how to remove the shoutbox but how can i remove the calendar and the "who is online" next to it too?


Do you want to remove them completely or only from the forum index page?

Re: how to remove the shoutbox and calendar

PostPosted: Thu May 25, 2006 1:49 am
Author: ihammo
Hi

I too want to remove the shoutbox and calendar from the forums page only. Can I check that the suggestions posted above will only remove it from the forums page?

As a side note, how come the forum page was not integrated to the IM portal page management?

Re: how to remove the shoutbox and calendar

PostPosted: Thu May 25, 2006 3:45 am
Author: Dragonsys
OPEN templates/{your_template}/index_box.tpl
FIND: (Who's Online Box)
Code: Select all
<tr><td><table><tr><td><table>  <BEGIN><tr><td> </td></tr><tr><td><table><tr><td><a>{L_WHO_IS_ONLINE}</a></td></tr><tr><td><img></td><td><span>{TOTAL_POSTS}<br>{TOTAL_USERS}<br>{NEWEST_USER}</span></td></tr><tr><td><span>{L_ONLINE_EXPLAIN}</span></td></tr></table><table><tr><td><img></td><td><img></td><td><img></td></tr></table></td></tr><END><BEGIN><tr><td> </td></tr><tr><td><table><tr><td><span>{L_HAPPY_BIRTHDAY}</span></td></tr><tr><td><img></td><td><span> {HAPPY_BIRTHDAY_FELLOWS} </span></td></tr></table><table><tr><td><img></td><td><img></td><td><img></td></tr></table></td></tr><END></table></td></tr></table></td></tr></table>


REPLACE WITH]</table>[/code]

FIND & REMOVE: (Mini Calendar)
Code: Select all
<td>{MINI_CAL_OUTPUT}</td><td><img></td>  

Re: how to remove the shoutbox and calendar

PostPosted: Thu Apr 17, 2008 10:52 pm
Author: XHIBIT
Ok guys, I've removed my useless shoutbox since I have my own embedded chat in the portal and the shoutbox served no purpose.
I have a new query.
If I now remove the Calendar can I resize the "who is online" box, wider without it conflicting in ie and firefox ?

Re: how to remove the shoutbox and calendar

PostPosted: Fri Apr 18, 2008 6:39 pm
Author: XHIBIT
Just clearing up a typo.
In the post by dragonsys he said to delete the mini calendar you go to index_box.tpl

Its actually index_body.tpl...I know cause I searched for the code to omit for close to 30 minutes.

However...to remove the shoutbox its index_box-tpl