Advertisement:

Navigation

SMF Mod Site

Mod Name:
PageEar (Pagepeel)
Created By:
KiLLuMiNaTi-7-
Type:
New Feature
First Created:
July 24, 2008, 05:45:28 PM
Last Modified:
June 12, 2011, 06:50:49 PM
Latest Version:
2.1
Compatible With:
1.1.10, 2.0 RC2, 2.0
Total Downloads:
33001

Download this mod

PageEar.zip (48kB) [1988]
Manual Install Instructions for SMF


Below are some preview images of what the mod looks like when being used

Description:

PageEar (Pagepeel)
By KiLLuMiNaTi-7- | Support


Introduction
This mod adds a Page peel to your forum.

Converted to work with SMF. Original author Christian Harz - Webpicasso Media converted with permission from the author.

Compatibility:
1.1.X - 2.0

Installation
Install the package to install on the default theme.

Features
Customize the look in the admin panel.

Custom Themes

All CUSTOM themes will require a custom edit.

Run the installer then do these edits make sure you do the right edit for your SMF version!

FOR 1.1.X

Code: (Find) [Select]
<title>', $context['page_title'], '</title>';
Code: (Add After) [Select]
//PageEar mod
if ($modSettings['pageear_enable'])
echo '
<script src="', $settings['default_theme_url'], '/pageear/AC_OETags.js"
language="javascript"></script>
<script src="', $settings['default_theme_url'], '/pageear/pageear.js"
type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
var pagearSmallImg = "', $modSettings['pageear_small_url'], '";
var pagearSmallSwf = "', $settings['default_theme_url'], '/pageear/pageear_s.swf";
var pagearBigImg = "', $modSettings['pageear_big_url'], '";
var pagearBigSwf = "', $settings['default_theme_url'], '/pageear/pageear_b.swf";
var speedSmall = "3";
var mirror = "', $modSettings['pageear_mirror'], '";
var pageearColor = "ffffff";
var jumpTo = "', $modSettings['pageear_jumpto'], '"
var openLink = "', $modSettings['pageear_opennew'], '";
var openOnLoad = "', $modSettings['pageear_onload'], '";
var closeOnLoad = "', $modSettings['pageear_pageear_closeonload'], '";
var setDirection = "', $modSettings['pageear_rtlt'], '";
var softFadeIn = "', $modSettings['pageear_softfade'], '";
var requiredMajorVersion = "6";
var requiredMinorVersion = "0";
var requiredRevision = "0";
var copyright = "Webpicasso Media, www.webpicasso.de";
var thumbWidth  = "100";
var thumbHeight = "100";
var bigWidth  = "500";
var bigHeight = "500";
var xPos = "right";
var queryParams = "pagearSmallImg="+escape(pagearSmallImg);
queryParams += "&pagearBigImg="+escape(pagearBigImg);
queryParams += "&pageearColor="+pageearColor;
queryParams += "&jumpTo="+escape(jumpTo);
queryParams += "&openLink="+escape(openLink);
queryParams += "&mirror="+escape(mirror);
queryParams += "&copyright="+escape(copyright);
queryParams += "&speedSmall="+escape(speedSmall);
queryParams += "&openOnLoad="+escape(openOnLoad);
queryParams += "&closeOnLoad="+escape(closeOnLoad);
queryParams += "&setDirection="+escape(setDirection);
queryParams += "&softFadeIn="+escape(softFadeIn);</script>

Code: (Find) [Select]
</body></html>
Code: (Replace) [Select]
';

if ($modSettings['pageear_enable'])
echo'
    <script type="text/javascript">
    writeObjects();
    </script>';
echo'
</body></html>


FOR 2.0

Code: (Find) [Select]
// Output any remaining HTML headers. (from mods, maybe?)
Code: (Add Before) [Select]
if($modSettings['pageear_enable'])
echo '
<script type="text/javascript" src="', $settings['default_theme_url'],'/scripts/pageear/AC_OETags.js"></script>
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/pageear/pageear.js"></script>
<script type="text/javascript">
var pagearSmallImg = "', $modSettings['pageear_surl'], '";
var pagearSmallSwf = "', $settings['default_theme_url'], '/scripts/pageear/pageear_s.swf";
var pagearBigImg = "', $modSettings['pageear_burl'], '";
var pagearBigSwf = "', $settings['default_theme_url'], '/scripts/pageear/pageear_b.swf";
var speedSmall = "3";
var mirror = "', (empty($modSettings['pageear_mirror_effect']) ? 'false' : 'true'), '";
var pageearColor = "ffffff";
var jumpTo = "', $modSettings['pageear_jump_to'], '"
var openLink = "', $modSettings['pageear_open_new'], '";
var openOnLoad = "', (empty($modSettings['pageear_on_load']) ? 'false' : $modSettings['pageear_on_load']), '";
var closeOnLoad = "', $modSettings['pageear_close_onload'], '";
var setDirection = "', (empty($modSettings['pageear_lt']) ? 'rt' : 'lt' ), '";
var softFadeIn = "', $modSettings['pageear_soft_fade'], '";
var requiredMajorVersion = "6";
var requiredMinorVersion = "0";
var requiredRevision = "0";
var copyright = "Webpicasso Media, www.webpicasso.de";
var thumbWidth  = "100";
var thumbHeight = "100";
var bigWidth  = "500";
var bigHeight = "500";
var xPos = "right";
var queryParams = "pagearSmallImg="+escape(pagearSmallImg);
queryParams += "&pagearBigImg="+escape(pagearBigImg);
queryParams += "&pageearColor="+pageearColor;
queryParams += "&jumpTo="+escape(jumpTo);
queryParams += "&openLink="+escape(openLink);
queryParams += "&mirror="+escape(mirror);
queryParams += "&copyright="+escape(copyright);
queryParams += "&speedSmall="+escape(speedSmall);
queryParams += "&openOnLoad="+escape(openOnLoad);
queryParams += "&closeOnLoad="+escape(closeOnLoad);
queryParams += "&setDirection="+escape(setDirection);
queryParams += "&softFadeIn="+escape(softFadeIn);</script>';

Code: (Find) [Select]
</body></html>
Code: (Replace) [Select]
', ($modSettings['pageear_enable'] ? '<script type="text/javascript">
writeObjects();
</script>' : '') , '</body></html>

Change Log
1.0
 - Initial release.
1.1
 - Fixed a mistake when not showing in message index (Thanks mashby)
-  Added Enable/disable feature.
2.0
 - Added 2.0 support.
2.1
 - Fixed a bug that caused an 'Undefined index' error in the error log.
 - Added UTF-8 support.