Remove completely Ajax shoutbox by Paul999

Here you'll find some basic tips about phpBB 3.0.x (AKA Olympus).
Forum rules
Please note: there's NO SUPPORT for conversion from phpBB beta to latest 3.0.x

Remove completely Ajax shoutbox by Paul999

Postby Juanm on Saturday August 9th, 2008 22h39:01

Well, that MOD was abandoned time ago.
As for all abandoned MODs, asking for support is useless.

Some people asked for its removal ... here there are detailed instructions
(reference: instruction for 1.0.3 dloaded somewhere)

DELETE

Code: Select all
ajax.php
js.php
static.js
includes/functions_shoutbox.php
language/en/mods/shout.php
styles/prosilver/template/shout_body.html (repeat for every template)


OPEN

index.php

FIND
Code: Select all
$user->add_lang('mods/shout');


REPLACE WITH
(void line)
Code: Select all



OPEN
includes/constant.php
FIND
Code: Select all
define('SHOUTBOX_TABLE', $table_prefix . 'shoutbox');


REPLACE WITH
(void line)
Code: Select all


OPEN
includes/functions.php
FIND
Code: Select all
      'U_SHOUT'      => append_sid("{$phpbb_root_path}js.$phpEx"),
      'U_SHOUT_STATIC'   => append_sid("{$phpbb_root_path}static.js"),


REPLACE WITH

(delete them)
Code: Select all



OPEN
styles/prosilver/template/editor.js

FIND
Code: Select all
try
{
for (sel_start = 0; range_all.compareEndPoints('StartToStart', range) < 0; sel_start++)


REPLACE WITH

Code: Select all
for (sel_start = 0; range_all.compareEndPoints('StartToStart', range) < 0; sel_start++)


FIND

Code: Select all
    // we ignore the end value for IE, this is already dirty enough and we don't need it
    caretPos.start = txtarea.sel_start;
    caretPos.end = txtarea.sel_start;
   }
   catch(e)
   {
   }



REPLACE WITH

Code: Select all
    // we ignore the end value for IE, this is already dirty enough and we don't need it
    caretPos.start = txtarea.sel_start;
    caretPos.end = txtarea.sel_start;



OPEN
styles/prosilver/template/index_body.html

FIND

Code: Select all
<!-- INCLUDE shout_body.html -->


REPLACE WITH
(delete it)
Code: Select all


OPEN
styles/prosilver/template/overall_header.html

FIND

Code: Select all
   <script type="text/javascript" src="{U_SHOUT_STATIC}"></script>
   <script type="text/javascript" src="{T_TEMPLATE_PATH}/editor.js"></script>
   <script type="text/javascript" src="{U_SHOUT}"></script>


REPLACE WITH
(REMOVE IT)
Code: Select all

And then ....

Code: Select all
DROP TABLE phpbb_shoutbox;


The shoutbox is gone
Juanm

Phpbb related: looking 4 a MOD? :: phpBB bugtracker :: phpBBsecurity tracker :: phpBB knowledge base

D-Off @ MobileReview wrote:who cares about WAP anymore? :)
Try google and search for content
User avatar
Juanm
Site developer
Site developer
 
Posts: 763
Joined: Thursday March 25th, 2004 21h45:21
Location: Behind YOU



Ad
Bot
 


Similar topics

[FIX]bug in Niels shoutbox
Forum: MODs related
Author: Juanm
Replies: 0

Return to Olympus tip & tricks

Who is online

Users browsing this forum: No registered users and 1 guest

cron

Rate this site