Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: KiLLuMiNaTi-7- on August 07, 2008, 07:51:33 AM

Title: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 07, 2008, 07:51:33 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1305)



PageEar (Pagepeel)
By KiLLuMiNaTi-7- (http://www.simplemachines.org/community/index.php?action=profile;u=151341) | Support (http://www.simplemachines.org/community/index.php?topic=254128.0)



Introduction
This mod adds a Page peel to your forum.

Converted to work with SMF. Original author Christian Harz - Webpicasso Media (http://www.webpicasso.de/) 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.
Title: Re: PageEar (Page peel)
Post by: Angelotus on August 07, 2008, 08:21:45 AM
Except for advertising, what can it be used for?
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 07, 2008, 08:26:46 AM
Display an announcement maybe  :)
Title: Re: PageEar (Page peel)
Post by: Angelotus on August 07, 2008, 08:50:45 AM
Nice, will there be a version for smf 2.0 soon?
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 07, 2008, 08:58:23 AM
I'm still learning the basics of 2.0. So in the near future maybe ;)
Title: Re: PageEar (Page peel)
Post by: Angelotus on August 07, 2008, 09:05:18 AM
Good job! Thanks! Will wait for the 2.0 version!
Title: Re: PageEar (Page peel)
Post by: TheDisturbedOne on August 07, 2008, 09:34:48 AM
Where are the edits (what template?)
Also I went on your website, and it doesn't seem to work for me (It is the same website as the one you took a screen shot of in the MOD)

Thanks
Title: Re: PageEar (Page peel)
Post by: cerberos on August 07, 2008, 09:43:33 AM
Hello my friend :)

Nice that u iplemented :) I will test it right away, and write any comments after.

Except of Advertisments, the pagepeel is ideal for Announcements or Special Articles from your Main Site in your forum !!

Ps

True, in what template do we have to do the edits?
Title: Re: PageEar (Page peel)
Post by: djaca on August 07, 2008, 09:50:52 AM
I have SMF 1.1.5 and show me an error:

1.     Execute Modification     ./Themes/default/languages/Modifications.english.php     Test successful
2.    Execute Modification    ./Sources/ModSettings.php    Test failed
3.    Execute Modification    ./Themes/default/index.template.php    Test successful
4.    Extract Tree    ./pageear   
5.    Execute Code    install.php
Title: Re: PageEar (Page peel)
Post by: TheDisturbedOne on August 07, 2008, 09:55:32 AM
I wouldn't install it then :)
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 07, 2008, 10:48:58 AM
Quote from: willielwgg on August 07, 2008, 09:34:48 AM
Where are the edits (what template?)
Also I went on your website, and it doesn't seem to work for me (It is the same website as the one you took a screen shot of in the MOD)

Thanks

Sorry I forgot to include it.

Index.template.php

Quote from: djaca on August 07, 2008, 09:50:52 AM
I have SMF 1.1.5 and show me an error:

1.     Execute Modification     ./Themes/default/languages/Modifications.english.php     Test successful
2.    Execute Modification    ./Sources/ModSettings.php    Test failed
3.    Execute Modification    ./Themes/default/index.template.php    Test successful
4.    Extract Tree    ./pageear   
5.    Execute Code    install.php

I've uploaded a new version. Uninstall the old version or delete it if you haven't installed it yet. Then download and try the new one. Here (http://custom.simplemachines.org/mods/index.php?mod=1305)
Title: Re: PageEar (Page peel)
Post by: cerberos on August 07, 2008, 12:26:44 PM
Hello.

I did all the changes (yes the updated version, didnt have any error) but i cant see anything :(

http://mysamurai.eu/forum/index.php
Title: Re: PageEar (Page peel)
Post by: djaca on August 07, 2008, 12:29:04 PM
Quote from: KiLLuMiNaTi-7- on August 07, 2008, 10:48:58 AM
Quote from: willielwgg on August 07, 2008, 09:34:48 AM
Where are the edits (what template?)
Also I went on your website, and it doesn't seem to work for me (It is the same website as the one you took a screen shot of in the MOD)

Thanks

Sorry I forgot to include it.

Index.template.php

Quote from: djaca on August 07, 2008, 09:50:52 AM
I have SMF 1.1.5 and show me an error:

1.     Execute Modification     ./Themes/default/languages/Modifications.english.php     Test successful
2.    Execute Modification    ./Sources/ModSettings.php    Test failed
3.    Execute Modification    ./Themes/default/index.template.php    Test successful
4.    Extract Tree    ./pageear   
5.    Execute Code    install.php

I've uploaded a new version. Uninstall the old version or delete it if you haven't installed it yet. Then download and try the new one. Here (http://custom.simplemachines.org/mods/index.php?mod=1305)


It worked...

Thanks!!
Title: Re: PageEar (Page peel)
Post by: evil-angelist on August 07, 2008, 01:54:57 PM
Naughty you ;)

Im getting this message:

SMF Version 1.1.5 here

The package you tried to upload either is not a valid package or has become corrupted.

Maybe its just me but if there is some problem could this be checked out.

Thanks ;)

Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 07, 2008, 02:04:30 PM
Quote from: cerberos on August 07, 2008, 12:26:44 PM
Hello.

I did all the changes (yes the updated version, didnt have any error) but i cant see anything :(

http://mysamurai.eu/forum/index.php

Code (Find) Select
<script src="http://mysamurai.eu/forum/pageear/pageear.js" type="text/javascript"></script>  <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[ var pagearSmallImg = "http://mysamurai.eu/forum/pageear/images/pageear_s.jpg"; var pagearSmallSwf = "pageear/pageear_s.swf"; var pagearBigImg = "http://mysamurai.eu/forum/pageear/images/pageear_b.jpg"; var pagearBigSwf = "pageear/pageear_b.swf"; var speedSmall = "3"; var mirror = "true"; var pageearColor = "ffffff"; var jumpTo = "http://mysamurai.eu/forum" var openLink = "new"; var openOnLoad = "0.1"; var closeOnLoad = "10"; var setDirection = "rt"; var softFadeIn = "1"; 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 (Replace) Select


<script language="javascript" type="text/javascript" src="', $boardurl, '/pageear/AC_OETags.js"></script>
<script src="', $boardurl, '/pageear/pageear.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var pagearSmallImg = "', $modSettings['pageear_small_url'], '";
var pagearSmallSwf = "pageear/pageear_s.swf";
var pagearBigImg = "', $modSettings['pageear_big_url'], '";
var pagearBigSwf = "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>
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 07, 2008, 02:12:50 PM
Quote from: evil-angelist on August 07, 2008, 01:54:57 PM
Naughty you ;)

Im getting this message:

SMF Version 1.1.5 here

The package you tried to upload either is not a valid package or has become corrupted.

Maybe its just me but if there is some problem could this be checked out.

Thanks ;)



Umm. Not sure what that could be...Have you tried downloading it again?

Title: Re: PageEar (Page peel)
Post by: evil-angelist on August 07, 2008, 02:24:07 PM
Quote from: KiLLuMiNaTi-7- on August 07, 2008, 02:12:50 PM
Quote from: evil-angelist on August 07, 2008, 01:54:57 PM
Naughty you ;)

Im getting this message:

SMF Version 1.1.5 here

The package you tried to upload either is not a valid package or has become corrupted.

Maybe its just me but if there is some problem could this be checked out.

Thanks ;)



Umm. Not sure what that could be...Have you tried downloading it again?


Yes I have, do you have a test site to try it again, if not or someone says that it is working fine later I will try the custom installer try the package parser to manually install.

Thanks anyway for the quick response 10/10.
Title: Re: PageEar (Page peel)
Post by: cerberos on August 07, 2008, 04:19:28 PM
Ok fixed :) Its worked like a charm --> www.mysamurai.eu/forum

Some Additions that i think will be good to have (dont know if they can implemented somehow)

a) I think an on / off action, will be handy :) So we can switch it off when we want

b) In the joomla version of it, it had an option to open the page (i mean the torn page) more. So to have a bigger picture (bigger small and bigger big one) in it. Dont know if this can be done.

c) Will be handy also, to be able to have more than one images. And load in every refresh, one of them. So to have many points of interest there, for your users if its articles or advertisments. I assume this can be done with Swf, but the user must know flash, and its prob:P)

Thats all i can think right now :)

Ty again !!
Title: Re: PageEar (Page peel)
Post by: mashby on August 07, 2008, 06:17:06 PM
Absolutely fantastic mod!!! I concur with cerberos...an on/off feature would make this REALLY awesome! Thanks for this one!
Title: Re: PageEar (Page peel)
Post by: Sabre™ on August 07, 2008, 09:13:34 PM
Great mod!
I agree with the above two, that an on off switch would be a good addition.

Now...
Could someone pleeeaase tell me how to edit my own stuff in it!?? lol

An example to work from would be great!

Thank You in advance :)

P.s.
How could we make this ONLY visible, when user is logged?
Title: Re: PageEar (Page peel)
Post by: mashby on August 07, 2008, 09:24:36 PM
Define "my own stuff"? You can see the mod in action on my site:
http://www.choppix.com

Making it visible to only logged in users would be a matter of surrounding edits 2 and 3 with and if clause of $context['user']['is_logged']
Title: Re: PageEar (Page peel)
Post by: Sabre™ on August 07, 2008, 09:30:58 PM
Quote from: mashby on August 07, 2008, 09:24:36 PM
Define "my own stuff"? You can see the mod in action on my site:
http://www.choppix.com
See where youve added your text, how did you do that, and how could I add an image?
Quote from: mashby on August 07, 2008, 09:24:36 PM
Making it visible to only logged in users would be a matter of surrounding edits 2 and 3 with and if clause of $context['user']['is_logged']
Edits 2 and 3?
Is this within the index. temp?

Thanks mate
Title: Re: PageEar (Page peel)
Post by: digit on August 08, 2008, 02:23:03 AM
Very cool!!!   How would I make the page peel appear on the message.index pages and the display.template pages too?  It only appears on the forum main page, and oddly, the admin pages!  (is that normal?)

Thanks for a VERY cool mod!




Title: Re: PageEar (Page peel)
Post by: Sabre™ on August 08, 2008, 04:59:00 AM
Ok.. nvm my previous post.
Because I had never seen this before, I made the assumption that there was a template you edit to add your text etc..
I hadnt realised it was an image! lol
Anyways, thats sorted.

Now with the user logged in permission, could someone show me where to add this please :)
Ive had several failed attempts, and do not want visitors to see this, as Ive added it for my users pleasure/experience.

Thank You
Title: Re: PageEar (Page peel)
Post by: digit on August 08, 2008, 05:07:07 AM
Quote from: Sabre™ on August 08, 2008, 04:59:00 AM
Now with the user logged in permission, could someone show me where to add this please :)
Ive had several failed attempts, and do not want visitors to see this, as Ive added it for my users pleasure/experience.

Thank You

You would do something like this in your index.template.php file...  where you added the javascript call, near the closing </body> tag...


';
if ($context['user']['is_logged'])
echo '<!-- PageEar function call --> 
<script type="text/javascript">   
    writeObjects();
</script>';
echo '</body></html>';


Title: Re: PageEar (Page peel)
Post by: Sabre™ on August 08, 2008, 05:15:59 AM
ThankYou very much Digit :)

I was trying to add it in the <head> with the js lol :D

Works well and flawless  :D

Cheers bud :)
Title: Re: PageEar (Page peel)
Post by: digit on August 08, 2008, 05:17:32 AM
Quote from: Sabre™ on August 08, 2008, 05:15:59 AM
ThankYou very much Digit :)

I was trying to add it in the <head> with the js lol :D

Works well and flawless  :D

Cheers bud :)

well, you are welcome... btw... doing that in the head tag too, would also save bandwidth.    8)
Title: Re: PageEar (Page peel)
Post by: digit on August 08, 2008, 05:24:16 AM
Hmm..  I have been looking at some of the other implementations...

http://www.choppix.com/

and

http://www.mysamurai.eu/forum

It looks like choppix is having the same problem as me....

http://www.choppix.com/index.php/board,23.0.html

It works on the main page, but not on the message index, or the display pages.

but http://mysamurai.eu/forum/ seems to have it working on all pages.....

http://mysamurai.eu/forum/index.php?board=2.0

I sure would like to figure out why it's not displaying on my message index and display pages.

Thanks in advance.


Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 08, 2008, 07:16:25 AM
Quote from: cerberos on August 07, 2008, 04:19:28 PM
Ok fixed :) Its worked like a charm --> www.mysamurai.eu/forum

Some Additions that i think will be good to have (dont know if they can implemented somehow)

a) I think an on / off action, will be handy :) So we can switch it off when we want

b) In the joomla version of it, it had an option to open the page (i mean the torn page) more. So to have a bigger picture (bigger small and bigger big one) in it. Dont know if this can be done.

c) Will be handy also, to be able to have more than one images. And load in every refresh, one of them. So to have many points of interest there, for your users if its articles or advertisments. I assume this can be done with Swf, but the user must know flash, and its prob:P)

Thats all i can think right now :)

Ty again !!

A) Yes that would be a good idea. I'll add it as soon as i can.

B) Well you can try manually doing it. By finding theses lines:

var thumbWidth = "100"; var thumbHeight = "100";
var bigWidth = "500"; var bigHeight = "500";
and changing the sizes  ;)

C) Yes that probably would be todo with flash. But i'll will look into it for you.

Quote from: digit on August 08, 2008, 02:23:03 AM
Very cool!!!   How would I make the page peel appear on the message.index pages and the display.template pages too?  It only appears on the forum main page, and oddly, the admin pages!  (is that normal?)

Thanks for a VERY cool mod!

guess
<!-- PageEar function call --> <script type="text/javascript"> writeObjects(); </script>

Is placed AFTER </body>

@ Digit thanks for helping out.

Title: Re: PageEar (Page peel)
Post by: cerberos on August 08, 2008, 08:47:55 AM
Ty for the quick reply :)

Especially the c will be a major hit to have, hope it can be done somehow :)

A must Mod :)
Title: Re: PageEar (Page peel)
Post by: jmil on August 08, 2008, 01:10:23 PM
I installed it - then I completed the Manual edits as I have Black45 Theme (1.1.5) and it does not show,

Any help? I attached my template with the mods as a reference.

www.forums.midatlanticxriders.com (http://www.forums.midatlanticxriders.com)

Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 08, 2008, 01:47:31 PM
Quote from: jmil on August 08, 2008, 01:10:23 PM
I installed it - then I completed the Manual edits as I have Black45 Theme (1.1.5) and it does not show,

Any help? I attached my template with the mods as a reference.

www.forums.midatlanticxriders.com (http://www.forums.midatlanticxriders.com)



Replace old index.template with this one. Backup first.
Title: Re: PageEar (Page peel)
Post by: mashby on August 08, 2008, 01:49:45 PM
Try this one.
Title: Re: PageEar (Page peel)
Post by: jmil on August 08, 2008, 01:56:22 PM
Quote from: KiLLuMiNaTi-7- on August 08, 2008, 01:47:31 PM
Quote from: jmil on August 08, 2008, 01:10:23 PM
I installed it - then I completed the Manual edits as I have Black45 Theme (1.1.5) and it does not show,

Any help? I attached my template with the mods as a reference.

www.forums.midatlanticxriders.com (http://www.forums.midatlanticxriders.com)



Replace old index.template with this one. Backup first.

WOW That did it - Can I ask the changes or what I did wrong?

Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 08, 2008, 02:08:11 PM
Quote from: jmil on August 08, 2008, 01:56:22 PM
Quote from: KiLLuMiNaTi-7- on August 08, 2008, 01:47:31 PM
Quote from: jmil on August 08, 2008, 01:10:23 PM
I installed it - then I completed the Manual edits as I have Black45 Theme (1.1.5) and it does not show,

Any help? I attached my template with the mods as a reference.

www.forums.midatlanticxriders.com (http://www.forums.midatlanticxriders.com)



Replace old index.template with this one. Backup first.

WOW That did it - Can I ask the changes or what I did wrong?



Yes i can. Its something i did wrong...You must have followed the steps on the download page. Here (http://custom.simplemachines.org/mods/index.php?mod=1305) and i hadn't updated it yet. My fault not yours. Sorry.

@cerberos: If you want it you can use PHP to pull up images from a directory and load them up randomly.

Check this thread: http://www.simplemachines.org/community/index.php?topic=168.0
Title: Re: PageEar (Page peel)
Post by: TheDel on August 08, 2008, 02:19:35 PM
I installed this too and it went no problem BUT since I was kinda keeping it on the hush hush from my members wasn't sure if I had the same issue regarding it only showing on admin pages.

My 2 suggestions-

like others an on/off switch would put this mod over the top (IMO) -up there with my favorite mods.

and the ability to change the display. have a random image/link appear. Could this be possible with some php code put in instead of the image path? I know I have used this for my random avatar for years here (thanks to one of the great coders here). I havent tried it and unfortunately am not in a position to do it soon. But just wanted to throw the idea out there.
Title: Re: PageEar (Page peel)
Post by: jmil on August 08, 2008, 02:25:30 PM
+1 on the ON/OFF
+1 on Roll over Images
+1 on board selection _ I think in my case Main board is good but not the topics!

Either way - This was well done and  the support was done in under 30 minutes of my email WOW AND KUDOS TO YOU.

Title: Re: PageEar (Page peel)
Post by: mashby on August 08, 2008, 02:37:04 PM
Minor issue (for boards and displays)
This code:
var pagearSmallImg = "', $modSettings['pageear_small_url'], '";
var pagearSmallSwf = "pageear/pageear_s.swf";
var pagearBigImg = "', $modSettings['pageear_big_url'], '";
var pagearBigSwf = "pageear/pageear_b.swf";


might be better as:
var pagearSmallImg = "', $modSettings['pageear_small_url'], '";
var pagearSmallSwf = "/pageear/pageear_s.swf";
var pagearBigImg = "', $modSettings['pageear_big_url'], '";
var pagearBigSwf = "/pageear/pageear_b.swf";
Title: Re: PageEar (Page peel)
Post by: cerberos on August 08, 2008, 02:50:18 PM
Quote from: KiLLuMiNaTi-7-

@cerberos: If you want it you can use PHP to pull up images from a directory and load them up randomly.

Check this thread: http://www.simplemachines.org/community/index.php?topic=168.0

Ι Have to admit that my knowledge of php is very limited so i can do it myself. If in the near future along with On / Off Switch, u can implement a feature like that (as i see others too would like to have it), will be awesome :)
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 08, 2008, 02:53:43 PM
Quote from: TheDel on August 08, 2008, 02:19:35 PM
I installed this too and it went no problem BUT since I was kinda keeping it on the hush hush from my members wasn't sure if I had the same issue regarding it only showing on admin pages.

My 2 suggestions-

like others an on/off switch would put this mod over the top (IMO) -up there with my favorite mods.

and the ability to change the display. have a random image/link appear. Could this be possible with some php code put in instead of the image path? I know I have used this for my random avatar for years here (thanks to one of the great coders here). I havent tried it and unfortunately am not in a position to do it soon. But just wanted to throw the idea out there.

As long as you followed the steps correctly and you have checked your website's source (Ctrl+U for windows) and you see the pagepeel script being called and the url's are correct it should display on all pages. 

Yea just replace the image path with your PHP script. I don't see why it wouldn't work  ;)

Quote from: jmil on August 08, 2008, 02:25:30 PM
+1 on the ON/OFF
+1 on Roll over Images
+1 on board selection _ I think in my case Main board is good but not the topics!

Either way - This was well done and  the support was done in under 30 minutes of my email WOW AND KUDOS TO YOU.

Yes i'll be adding a on/off feature in a moment.

Roll over images? can you explain more please, Yes i board selection would be good i'll had it on my todo list  :)
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 08, 2008, 02:56:15 PM
Quote from: mashby on August 08, 2008, 02:37:04 PM
Minor issue (for boards and displays)
This code:
var pagearSmallImg = "', $modSettings['pageear_small_url'], '";
var pagearSmallSwf = "pageear/pageear_s.swf";
var pagearBigImg = "', $modSettings['pageear_big_url'], '";
var pagearBigSwf = "pageear/pageear_b.swf";


might be better as:
var pagearSmallImg = "', $modSettings['pageear_small_url'], '";
var pagearSmallSwf = "/pageear/pageear_s.swf";
var pagearBigImg = "', $modSettings['pageear_big_url'], '";
var pagearBigSwf = "/pageear/pageear_b.swf";


Thanks mashby. New version will be uploaded with that fix. Thanks for pointing it out!
Title: Re: PageEar (Page peel)
Post by: jmil on August 08, 2008, 03:05:05 PM
"Yes i'll be adding a on/off feature in a moment.

Roll over images? can you explain more please, Yes i board selection would be good i'll had it on my todo list "

I should of said Random Images - As for the Board selection - if your todo is like mine Yikes - Still a great clean looking mod. Should we wait to make the minor fix posted in the previous thread until you incorporate the ON/Off as an update??

The Chief
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 08, 2008, 03:26:13 PM
Quote from: jmil on August 08, 2008, 03:05:05 PM
"Yes i'll be adding a on/off feature in a moment.

Roll over images? can you explain more please, Yes i board selection would be good i'll had it on my todo list "

I should of said Random Images - As for the Board selection - if your todo is like mine Yikes - Still a great clean looking mod. Should we wait to make the minor fix posted in the previous thread until you incorporate the ON/Off as an update??

The Chief

Yes it's best to wait. I'll post when's it uploaded.
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 08, 2008, 04:35:21 PM
1.1 is out.

Everyone who has done modifications delete them and follow the new set of instructions on the download page. This is important because your forum may break otherwise.
Title: Re: PageEar (Page peel)
Post by: jmil on August 08, 2008, 04:50:57 PM
Should we delete the old install completely first then reinstall the new?
Title: Re: PageEar (Page peel)
Post by: Chamaeleon on August 08, 2008, 04:52:52 PM
Thanks for this great Mod.  :)



Chamäleon
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 08, 2008, 05:16:04 PM
Quote from: jmil on August 08, 2008, 04:50:57 PM
Should we delete the old install completely first then reinstall the new?


Yes.

Quote from: Chamaeleon on August 08, 2008, 04:52:52 PM
Thanks for this great Mod.  :)



Chamäleon

Thanks. Nice avatar :)
Title: Re: PageEar (Page peel)
Post by: Sabre™ on August 08, 2008, 05:56:13 PM
wOOt!!
Thanks for the enable/disable option (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.postsmile.net%2Fimg%2F19%2F1942.gif&hash=42cd69283eccfe590865ee3fae6fe4254686921d)

However, when I go into my error log,  I now see this
index.php?action=featuresettings;sa=pageear;sesc
8: Undefined index: pageear_closeonload
File: htdocs/Themes/default/Errors.template.php (main_above sub template - eval?)
Line: 161

and this
index.php?action=featuresettings
Apply Filter: Only show the errors with the same message
8: Undefined index: pageear_closeonload
File: /htdocs/Themes/default/languages/ModSettings.english.php (main_above sub template - eval?)
Line: 161


Anyone else getting this?
Title: Re: PageEar (Page peel)
Post by: mashby on August 08, 2008, 06:02:54 PM
Yes...a bunch of times. I'm looking into it on my site. Not sure what the issue might be.
Title: Re: PageEar (Page peel)
Post by: Sabre™ on August 08, 2008, 06:09:34 PM
Pheeww!!

I was hoping I wasnt the only one lol

Cheers mate, will wait to see what youve found :)
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 08, 2008, 06:14:47 PM
Very very sorry. I never look through probably i always rush things...

Replace this line
var closeOnLoad = "', $modSettings['pageear_closeonload'], '";
with this
var closeOnLoad = "', $modSettings['pageear_pageear_closeonload'], '";

I've updated the download aswell.
Title: Re: PageEar (Page peel)
Post by: Sabre™ on August 08, 2008, 06:22:49 PM
lol no probs buddy.
Glad you nipped it in the butt soo fast!
Cheers. (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.postsmile.net%2Fimg%2F19%2F1942.gif&hash=42cd69283eccfe590865ee3fae6fe4254686921d)

Where it asks for the line to the images and link, is it possible to add more there??
Say 4 options, and have them cycle every now and then.(on refresh, or every hour, or day etc)

Or that is waaay to much of a request?

Thank You
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 08, 2008, 06:33:58 PM
Quote from: Sabre™ on August 08, 2008, 06:22:49 PM
lol no probs buddy.
Glad you nipped it in the butt soo fast!
Cheers. (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.postsmile.net%2Fimg%2F19%2F1942.gif&hash=42cd69283eccfe590865ee3fae6fe4254686921d)

Where it asks for the line to the images and link, is it possible to add more there??
Say 4 options, and have them cycle every now and then.(on refresh, or every hour, or day etc)

Or that is waaay to much of a request?

Thank You


No problem.

I will look into it tomorrow mate  ;D
Title: Re: PageEar (Page peel)
Post by: Sabre™ on August 08, 2008, 06:41:35 PM
Awesome!
Cheers mate :)
Title: Re: PageEar (Page peel)
Post by: cerberos on August 08, 2008, 06:43:17 PM
Quote from: KiLLuMiNaTi-7
Roll over images? can you explain more please, Yes i board selection would be good i'll had it on my todo list  :)

He mean what i have purposed, to have more images / (with links) to show, and be changed either rollover (i dont know if something with mootools can work here for fade in - fade out) or change them with every refresh.

Its nice so many ppl found this mod usefull after all :) When i first purposed, very few responded, and it was strange :P

Ty for all the hard work :)
Title: Re: PageEar (Page peel)
Post by: mashby on August 08, 2008, 06:47:55 PM
Alright! Sweet update. The ability to disable/enable is very cool. Thanks!
:)
Title: Re: PageEar (Page peel)
Post by: evil-angelist on August 09, 2008, 07:43:22 AM
In creating a subdomain just to check this out with nothing else installed, it is coming up as:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg295.imageshack.us%2Fimg295%2F4465%2Fpageearsh3.th.jpg&hash=e78dbd8e4a52d60626349c297c747f189e36f0a9) (http://img295.imageshack.us/my.php?image=pageearsh3.jpg)

^^ click for bigger ;)

There seems to no PAGEEAR tab and I can not decipher what goes where.

Is there anything missing in the most recent download package?
Title: Re: PageEar (Page peel)
Post by: Rafferty on August 09, 2008, 07:51:40 AM
Hmmm I'm not getting anything appearing on any pages. All coding is correct I carefully went through every line and checked but nothing happens. I'm using firefox, is their an issue with FF or is anyone else having the same problem?

I also have TP installed on SMF 1.1.5
Title: Re: PageEar (Page peel)
Post by: jmil on August 09, 2008, 10:31:25 AM
Killuminati -  Not sure whats going on - I deleted the old version. Uploaded the new - No Problems - Went to do my theme edits and again I am having problems. Not sure what I am doing wrong, though I had it all figured out on the earlier update.

I again attached my index.template.php - with the changes I put in according to the instructions (which didn't work).

I Love this mod and my members think it is neat as heck  :D hope to get it to work again.

The Chief
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 09, 2008, 11:11:04 AM
@evil-angelist It's the text strings. Make sure the pageear text strings are in {YOUR THEME}/Themes/languages/Modifications.english.php make sure the text strings are before the ?>

@Rafferty I've tested it in many browser's and it works on nearly all.

Make sure you have extracted all the contents from the pageear directory (In the installer) to your server.

@jmilYou will see that that both of the edits are all in one massive line. It needs to be like it is on the instructions.

Make sure you use a editor like notepad2 or notepad++
Title: Re: PageEar (Page peel)
Post by: Rafferty on August 09, 2008, 12:06:05 PM
There is only install.php, package info & modification files in the zip package and thats all uploaded. Everything installed fine and I also checked every line in the php's manually, all is correct but still absolutely nothing different showing. What do you mean by ALL the directories, there were no directories in the package?
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 09, 2008, 12:12:43 PM
Quote from: Rafferty on August 09, 2008, 12:06:05 PM
There is only install.php, package info & modification files in the zip package and thats all uploaded. Everything installed fine and I also checked every line in the php's manually, all is correct but still absolutely nothing different showing. What do you mean by ALL the directories, there were no directories in the package?

Yes your right....Download it again. Here (http://custom.simplemachines.org/mods/index.php?mod=1305)

Don't install it again. Just extract the package and place "pageear" into your board directory
Title: Re: PageEar (Page peel)
Post by: digit on August 09, 2008, 01:17:34 PM
Quote from: KiLLuMiNaTi-7- on August 08, 2008, 07:16:25 AM

<!-- PageEar function call --> <script type="text/javascript"> writeObjects(); </script>

Is placed AFTER </body>

@ Digit thanks for helping out.

FYI - The mod doesn't do it that way - it places it before the closing body tag.
Title: Re: PageEar (Page peel)
Post by: jmil on August 09, 2008, 01:24:34 PM
KiLLuMiNaTi-

Looks Like I had a combination of problems - I was missing the Directory also. I modified the template in Notepad++ Installed, Stilll had giberish at the top of the screen - Then I added the missing directory - Then the Page ear started to operate (No Pics) but I still had the giberish on my Forum.

Not sure what I am doing wrong. I have deleted it and added it again (Fresh Install) I see the Dir is now added too. THen I started all over again with the Template.php. Added as you instructed - Line by line, still doesnt work. I know it is very simple and I am REALLLY close, just cant quite get it.

Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 09, 2008, 01:41:34 PM
Quote from: digit on August 09, 2008, 01:17:34 PM
Quote from: KiLLuMiNaTi-7- on August 08, 2008, 07:16:25 AM

<!-- PageEar function call --> <script type="text/javascript"> writeObjects(); </script>

Is placed AFTER </body>

@ Digit thanks for helping out.

FYI - The mod doesn't do it that way - it places it before the closing body tag.

Yes. It does, ive updated the instructions. But it doesn't matter if its placed after the </body> tag anyway. Thanks though.

Quote from: jmil on August 09, 2008, 01:24:34 PM
KiLLuMiNaTi-

Looks Like I had a combination of problems - I was missing the Directory also. I modified the template in Notepad++ Installed, Stilll had giberish at the top of the screen - Then I added the missing directory - Then the Page ear started to operate (No Pics) but I still had the giberish on my Forum.

Not sure what I am doing wrong. I have deleted it and added it again (Fresh Install) I see the Dir is now added too. THen I started all over again with the Template.php. Added as you instructed - Line by line, still doesnt work. I know it is very simple and I am REALLLY close, just cant quite get it.

What did the giberish say?

There's nothing wrong with the edits. Are you sure you have enabled it in the admincp?
Title: Re: PageEar (Page peel)
Post by: jmil on August 09, 2008, 02:19:00 PM
I installed it again Here is the Fail:

essages'] > 0 ? '['. $context['user']['unread_messages'] . ']' : '' , ''; // the [member] list button if ($context['allow_memberlist']) echo '' , $txt[331] , ''; // the [SMF Gallery] button if ($context['allow_smfgallery_view']) echo '' , $txt['smfgallery_menu'] , ''; // If the user is a guest, show [login] and [register] buttons. if ($context['user']['is_guest']) { echo '', $txt[34], '  ', $txt[97], ''; } // Otherwise, they might want to [logout]... else echo '', $txt[108], ''; echo '
'; } // Generate a strip of buttons. function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '') { global $settings, $buttons, $context, $txt, $scripturl; // Create the buttons... foreach ($button_strip as $key => $value) { if (isset($value['test']) && empty($context[$value['test']])) { unset($button_strip[$key]); continue; } elseif (!isset($buttons[$key]) || $force_reset) $buttons[$key] = '' . $txt[$value['text']] . ''; $button_strip[$key] = $buttons[$key]; } if (empty($button_strip)) return ' '; echo ' ', implode(' | ', $button_strip) , ' '; } ?>

It is also viewable at www.forums.midatlanticxriders.com

Title: Re: PageEar (Page peel)
Post by: дTдKдИ on August 09, 2008, 04:20:16 PM
Thanks Nice Mod.  ;D
Title: Re: PageEar (Page peel)
Post by: Sabre™ on August 09, 2008, 05:31:59 PM
When I updated from the first version, I left all of my edits on my custom theme, as there were only a couple changes to it, and I added/changed/moved them after I reinstalled the new version into my default theme.

I use a [Package Parser] (http://sleepycode.com/PackageParser/index.php) to copy the code over for complete custom adds, as you can select to ONLY view the "custom" theme edits, and it keeps the code in their respective lines. Something in which the one here on site doesnt do, as it copies the code over as one whole line lol

Hope that Ive introduced a new breed to the package parser ;)


Just going to throw this idea out there :D

But IF we ever get around to having it visible per membergroup basis.
A feature I would personally enjoy, as my first membergroup need to reach a certain amount of posts(the next level) to see the feature in which I have this mod pointing to.
Would there be any chance to have ONE member group see one thing, and another group see another thing?

Not a request....  just an idea  ;D
Title: Re: PageEar (Page peel)
Post by: Rafferty on August 09, 2008, 09:50:07 PM
Quote from: KiLLuMiNaTi-7- on August 09, 2008, 12:12:43 PM
Quote from: Rafferty on August 09, 2008, 12:06:05 PM
There is only install.php, package info & modification files in the zip package and thats all uploaded. Everything installed fine and I also checked every line in the php's manually, all is correct but still absolutely nothing different showing. What do you mean by ALL the directories, there were no directories in the package?

Yes your right....Download it again. Here (http://custom.simplemachines.org/mods/index.php?mod=1305)

Don't install it again. Just extract the package and place "pageear" into your board directory

Did the trick TY buddy, looks good, well done

Have you thought of adding permissions for groups viewing the pagepeel, handy maybe for secret pages viewable by only selected groups?

Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 09, 2008, 10:44:39 PM
@jmil I don't know what is causing that. Have you got any other mods that rely on javascript. It could be interfering.

@Sabre™ Great! glad it worked out for you. The features you put forward are in progress for the next version :)

@Rafferty Good to hear. But please guys, thank Christian Harz as it's his work i only converted it to SMF. I feel funny when people are thanking me thats all  ;D 
Title: Re: PageEar (Page peel)
Post by: TheDel on August 10, 2008, 01:53:40 AM
OK- what in the heck did I do wrong?
I installed it- fine it works.........

created a new graphic- uploaded it and BAM the peel reveals the actual page underneath.
Obviously this isnt a coding thing because the YOUR TEXT HERE works. Do I need to modify the b_swf file too?


weird- uploaded file under different name deleted original then renamed new one and now it works like a charm.
Title: Re: PageEar (Page peel)
Post by: jmil on August 10, 2008, 08:03:34 AM
I have quite a few mods. We had it working a few days ago before your update. The only thing I added since then was SiteMap (finally working) and I just installed Portal, but if I had to guess I was trying to reinstall before I did the Sitemap, so that must be the culprit.


1. SMF Gallery Lite 1.8.2   
2. OVERSIZED AC in Black Smilies 1.0
3. Ad Managment 2.3 
4. FavIcon 1.1   
5. Blog (for 1.1.5) 1.11
6. SMF Sitemap 1.2.2
7. AvatarOnBoard 2.0   
8. Enhanced Calendar 1.1   
9. Clickable Avatars 1.0.1   
10. Google Tagged 1.3   
11. Auto Embed Video/Audio Clips 3.0   
12. Member Awards 1.0.2   
13. Add Sitepreviews 1.31 
14. SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update 1.0 
15. Auto Email Inactive Users 1.7
16. PageEar (Pagepeel) 1.1 
17. SMF Arcade 2.0.14
18. Display Age and Location next to posts 1.0   
19. Location on Member List 1.0 
20. MessagePreviewOnHover 1.7 
21. Affiliates 1.0
22. Default Avatar 1.1.1
23. SimplePortal 2.0.2 

I just did a clean uninstall and reinstall and the package loaded OK but when I applied the mod I did not get the admin and this fail was on the home page:

$txt['pageear_settings_title'] = 'PageEar'; $txt['pageear_enable'] = 'Enable PageEar'; $txt['pageear_small_url'] = 'URL to small image
(http://yourwebsite.com/small_image.jpg)
(Must be 100x100)'; $txt['pageear_big_url'] = 'URL to big image
(http://yourwebsite.com/big_image.jpg)
(Must be 500x500)'; $txt['pageear_mirror'] = 'Mirror effect
(Use "true" or "false" only)'; $txt['pageear_jumpto'] = 'URL to jump to
(http://yourwebsite.com/gohere.html)'; $txt['pageear_opennew'] = 'Open in same or new window
(Use "new" or "self" only)'; $txt['pageear_onload'] = 'Open pageear automatically
("false" = Disable it opening automatically | "0.1" = Open automatically after X seconds)'; $txt['pageear_pageear_closeonload'] = 'Second until pageEar close\'s
(Only change if the above option has been changed)'; $txt['pageear_rtlt'] = 'Set direction of pageEar in left or right top browser corner
(Use lt = left or rt = right)'; $txt['pageear_softfade'] = 'Fade in pageEar if image completely loaded
(0-5: 0=off, 1=slow, 5=fast )';
Title: Re: PageEar (Page peel)
Post by: Sabre™ on August 10, 2008, 06:28:27 PM
Is anyone getting errors in their log, after doing a little forum maintenance?
Im now getting this each time I go in there, then another for each action I do.
index.php?action=maintain

8: Undefined index: id
File: /Themes/default/Admin.template.php (main_above sub template - eval?)
Line: 255


This is the row referred to in the "//If we have lots of admins... don't show them all" area.
$row = false;

My forum is a fresh install of 1.1.5, and I only have a few mods installed
1. TinyPortal 0.983
2. Spoiler Tag 0.3.3a
3. Colorized Membergroups 1.0
4. Profile_Visitors 4.0
5. Auto Embed Video/Audio Clips 3.1.2
6. PageEar (Pagepeel) 1.1
7. Ultimate Profile


However, since I am in there everyday, this error only appeared after the update to this mod, so Im wondering if anyone has checked to see if they return the same/similar result.

Thank You :)
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 11, 2008, 09:14:40 AM
@jmil it could be the portal, im not really sure sorry. Are you sure you have completely uninstall the pageear mod and all your modifications you have done to it, then reinstall it again. Can you post a screenshot when the error comes up? and maybe your Sources/Modsettings.php and index.template.php when the error comes up. Thanks.

@Sabre™ I'm not getting that error. We will see if anyone else does.



Title: Re: PageEar (Page peel)
Post by: Sabre™ on August 11, 2008, 09:58:36 AM
Yeah..  I was hoping you werent gonna say that! lol
If noone else reports this same issue in the next few days, then I'll systematically reverse my process, and try to figure it out from there!
BUT thats after I querry the db first! lol
I'll do it 2morrow... its late here and Im off to sleep.
Title: Re: PageEar (Page peel)
Post by: TheDel on August 11, 2008, 11:53:56 AM
Quote from: jmil on August 10, 2008, 08:03:34 AM
I have quite a few mods. We had it working a few days ago before your update. The only thing I added since then was SiteMap (finally working) and I just installed Portal, but if I had to guess I was trying to reinstall before I did the Sitemap, so that must be the culprit.


1. SMF Gallery Lite 1.8.2  
2. OVERSIZED AC in Black Smilies 1.0
3. Ad Managment 2.3 
4. FavIcon 1.1  
5. Blog (for 1.1.5) 1.11
6. SMF Sitemap 1.2.2
7. AvatarOnBoard 2.0  
8. Enhanced Calendar 1.1  
9. Clickable Avatars 1.0.1  
10. Google Tagged 1.3  
11. Auto Embed Video/Audio Clips 3.0  
12. Member Awards 1.0.2  
13. Add Sitepreviews 1.31 
14. SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update 1.0 
15. Auto Email Inactive Users 1.7
16. PageEar (Pagepeel) 1.1 
17. SMF Arcade 2.0.14
18. Display Age and Location next to posts 1.0   
19. Location on Member List 1.0 
20. MessagePreviewOnHover 1.7 
21. Affiliates 1.0
22. Default Avatar 1.1.1
23. SimplePortal 2.0.2 

I just did a clean uninstall and reinstall and the package loaded OK but when I applied the mod I did not get the admin and this fail was on the home page:

$txt['pageear_settings_title'] = 'PageEar'; $txt['pageear_enable'] = 'Enable PageEar'; $txt['pageear_small_url'] = 'URL to small image
(http://yourwebsite.com/small_image.jpg)
(Must be 100x100)'; $txt['pageear_big_url'] = 'URL to big image
(http://yourwebsite.com/big_image.jpg)
(Must be 500x500)'; $txt['pageear_mirror'] = 'Mirror effect
(Use "true" or "false" only)'; $txt['pageear_jumpto'] = 'URL to jump to
(http://yourwebsite.com/gohere.html)'; $txt['pageear_opennew'] = 'Open in same or new window
(Use "new" or "self" only)'; $txt['pageear_onload'] = 'Open pageear automatically
("false" = Disable it opening automatically | "0.1" = Open automatically after X seconds)'; $txt['pageear_pageear_closeonload'] = 'Second until pageEar close\'s
(Only change if the above option has been changed)'; $txt['pageear_rtlt'] = 'Set direction of pageEar in left or right top browser corner
(Use lt = left or rt = right)'; $txt['pageear_softfade'] = 'Fade in pageEar if image completely loaded
(0-5: 0=off, 1=slow, 5=fast )';


I would guess its the Portal. I have close to 100 mods installed  on my board (I know I know!) and the only one I dont have on your list is Simple Portal (but I do have TP) and both versions of PageEar went through OK.
Title: Re: PageEar (Page peel)
Post by: hawaii on August 13, 2008, 05:04:11 PM
what am i doing wrong? (im new to modifying templates)

I have smf 1.5 on the dilber theme

and ive followed all instructions but im getting this error message

The file you tried to save generated the following error:
Parse error: syntax error, unexpected ',' in index.template.php on line 81


could i have some help please?

thanks
Title: Re: PageEar (Page peel)
Post by: Sakae on August 13, 2008, 07:58:08 PM
Installed this mod and worked just fine (and great).

But people start to complaining about "I can't click on the post text area", or "I can't click on the Register link", and other links in the upper right quarter of the screen.

Is that a knowing bug of this javascript or may be caused by any error on mod install?

I use ApolloBB and FanTheme themes. I do also use Mozilla Firefox and Internet Explorer 7, and both were working just fine. I think those with problems use IE 6 or lower, I will ask them. My website is http://www.tigrelog.com.br but now I disable (in templates files) this mod.
Title: Re: PageEar (Page peel)
Post by: Sabre™ on August 16, 2008, 09:50:14 PM
I dont understand what youre saying.

Any buttons in the right hand side dont work?
But your register button is in the middle of the screen.

You could always shrink the size of the pageear, so it doesnt spread across that far.
if youre interested in trying that, look here:

Index.template.php
change these two sizes
var bigWidth  = "500";
var bigHeight = "500";


I have mine at 250 if I recall correct.
Title: Re: PageEar (Page peel)
Post by: keithstieneke on August 18, 2008, 05:40:55 PM
I feel dumb asking this but where do I enter the URL I want to promote using PageEar? Is it an edit to one of the files or is it somewhere under Admin?
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 18, 2008, 07:17:41 PM
Quote from: keithstieneke on August 18, 2008, 05:40:55 PM
I feel dumb asking this but where do I enter the URL I want to promote using PageEar? Is it an edit to one of the files or is it somewhere under Admin?

In admin -> Features and options -> PageEar -> URL to jump to

By the way folks. Im sorry the features people have requested havn't been added. Because i've been real busy and i havn't got much time to update my SMF mods. Maybe in a few weeks time i can.
Title: Re: PageEar (Page peel)
Post by: Sabre™ on August 18, 2008, 07:40:14 PM
Just an update to this error I was experiencing.

Quote from: Sabre™ on August 10, 2008, 06:28:27 PM
index.php?action=maintain
8: Undefined index: id
File: /Themes/default/Admin.template.php (main_above sub template - eval?)
Line: 255


I located the error to my css, which was weird!!??
Well a change I made somehow caused the above error.
Ive now fixed this, and Im error freeeee lol

Quote from: KiLLuMiNaTi-7- on August 18, 2008, 07:17:41 PMIm sorry the features people have requested havn't been added. Because i've been real busy and i havn't got much time to update my SMF mods. Maybe in a few weeks time i can.

No problem mate. I for one cant wait to see your next release!!
Its looking like its gonna be awesome!!'
As long as there's a function to bring my beer, then your mod will be number 1!! lol
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 18, 2008, 09:16:05 PM
lol, hopefully i can fit in some time soon.
Title: Re: PageEar (Page peel)
Post by: Sabre™ on August 18, 2008, 09:35:04 PM
Yeah mate hopefully.
I enjoy mods which interact with my users, and gives them that little extra to play with.
Although there arent too many options at the mo, the visual aspect of it is pleasing enough.
But yeah, the before mentioned requests would pull this over the top.
Take your time mate. You need to take care of your life stuff first. So no rush :)
I'll see you back here in 4 hours then??  That enough time??
lol ;)
Title: Re: PageEar (Page peel)
Post by: codnerd on August 18, 2008, 11:40:08 PM
How do I put this into my website? I already have this on my forum. My website is just basic html...
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 19, 2008, 10:01:48 AM
Quote from: codnerd on August 18, 2008, 11:40:08 PM
How do I put this into my website? I already have this on my forum. My website is just basic html...

Have a look Here (http://www.webpicasso.de/blog/pageear-free-peel-away-ad/).
Title: Re: PageEar (Page peel)
Post by: cme1st2302 on August 19, 2008, 11:42:31 AM
After I added this mod my features and options page comes up as blank.  How do I fix this?  I want to disable the page ear until I have it installed on all my themes.  Please let me know which of my files you need to look at to help remedy this issue.

Either way...nice mod

PLEASE HELP!!!

Thanks in advance,
Chris
Title: Re: PageEar (Page peel)
Post by: cme1st2302 on August 19, 2008, 12:20:36 PM
I manually un-installed it.  Could the issue be that I am using 1.1.4 instead of 1.1.5? 
Title: Re: PageEar (Page peel)
Post by: codnerd on August 19, 2008, 01:12:38 PM
Ok. I put this right under my title tags:
<script src="/pageear/AC_OETags.js" language="javascript"></script>
<script src="/pageear/pageear.js" type="text/javascript"></script>

I put this above my body tag:
<!-- PageEar function call -->
<script type="text/javascript">   
    writeObjects();
</script>

Website (http://www.cracked-gaming.com/community/index.php)

Index.php

<?php require("forum/SSI.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Cracked-Gaming Community - Official Website</title> 
<script src="/pageear/AC_OETags.js" language="javascript"></script>
<script src="/pageear/pageear.js" type="text/javascript"></script>
<!--  function ctRoster(usrName)  {  var div = document.getElementById("roster_data"); var textnode = document.createTextNode(usrName); div.appendChild(textnode); }  function ctRosterClean()  {  var label = document.getElementById("roster_data")  while( label.hasChildNodes() ) { label.removeChild( label.lastChild ); } }  // -->  </script> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <!-- Main wrapper -->
<div id="wrap">
<div id="header">
<table width="998px" height="44px" background="images/topbar.jpg" cellpadding="5" cellspacing="0"> <tr> <td valign="bottom"> <p><b><font size="2"><font color="#ffffff"><center><?php ssi_welcome(); ?></center></font></font></b></p> </td> </tr> </table>
<div id="innerheader" style="font-size: 10px;">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="forum/">Forums</a></li>
<li><a href="about.php">About CGC</a></li>
<li><a href="join.php">Join CGC</a></li>
<li><a href="donate.php">Donate</a></li>
<li><a href="servers.php">Servers</a></li>
<li><a href="cggs.php">Buy Servers</a></li>
<li><a href="http://www.cracked-gaming.com/files">Files</a></li>
</ul>

</div>
</div>
<div id="content">
<div class="side_column">
<h1>Latest<small>News</small></h1>
<ul>
<li><b>
<a href="">CoD4:CW Going Great!</b> - 8/11
</a></li>
<li><b>
<a href="">4 New Servers!</b> - 8/11
</a></li>
<li><b>
<a href="">Lots of News...</b> - 8/11
</a></li>
<li><b>
<a href="">CGC Newsletter Released</b> - 8/4
</a></li>
</ul>
<h1>Recent<small>Topics</small></h1>
<?php ssi_recentTopics(); ?>
</div>
<!-- END LEFT COLUMN -->
<div id="middle" >
<div id="server_select">
<h1><span>Select Server</span></h1>
<a href="xfire:join?game=cod4mp&server=74.86.232.75:28960"><img src="images/tdm_svr_button.jpg" alt="Team Deathmatch Server" /></a>
<a href="xfire:join?game=cod4mp&server=74.86.232.75:28961"><img src="images/fun_svr_button.jpg" alt="Fun Day 24/7 Server" /></a>
<a href="xfire:join?game=cod4mp&server=74.86.232.75:28962"><img src="images/zom_svr_button.jpg" alt="Zombie Mod Server" /></a>
<a href="xfire:join?game=cod4mp&server=74.86.232.75:28963"><img src="images/s&d_svr_button.jpg" alt="Search & Destroy Server" /></a>  </div>
<div id="breadcrum">Home</div>
<h1>Cracked-Gaming News</h1>
<!-- ENTER MAIN CONTENT HERE -->
<div class="content">
<h2>CoD4:CW Going Great!</h2>
<p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>CGC</b></font> is hosting Call of Duty 4: Cracked Warfare. So far the tournament is going great. NoobDude will be playing GFAM Today, and the nBS Clan will be playing SkY Today. We will be broadcasting live (20 second delay) of the match today. You can watch it <a href="http://www.xfire.com/live_video/bordr4life511/" target="_blank">here</a>. ND vs GFAM starts at 4pm (EST) today. nBS vs SkY starts at 5pm today. Be sure to watch them live.</p>
<p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>Tomorrows</b></font> match will be for the Golden Sock. Be sure to be tuned in at 4pm est for the Golden Sock match!</p>
</div>
<div class="content">
<h2>MacerHosting.net brings CGC 4 New Servers!</h2>
<p>&nbsp;&nbsp;&nbsp;<a href="http://www.macerhosting.net" target="_blank"><font color="#255d20"><b>MacerHosting.net</b></font></a> has brought 4 new Call of Duty 4 Servers to CGC. The servers are hosted in Toronto, Canada with 2 Cores and 2GB of Ram on each box. Each Call of Duty 4 Server is hosted seperatly on its own box, which will give high performance, and way less lag. There are 2 servers which both are Broadcast and Killhouse only, which one is a 16 slot Hardcore Free-for-all and the other is and 32 slot Hardcore Team Deathmatch. We have also put up another Zombie Mod server, in which it only will run Stock maps. Lastly, my favorite, a mod with CoD2 Rifles for in which it is a modded server that replaces CoD4 weapons, with CoD2 Rifles. It is a blast that never stops.</p>
<p>&nbsp;&nbsp;&nbsp;We really need everyones help filling these new servers, so please go into the servers as much as you can. I am begging you!</p>
<b>Here are the IP's of the new servers:</b><br>
CGC TDM HC #1: <a href="http://www.gametracker.com/server_info/74.86.232.75:28960/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/74.86.232.75:28960/b_350x20_CADAA00-1E7001-FFFFFF-FFFFFF.png" border="0" width="350" height="20" /></a><br>
CGC Modded #2: <a href="http://www.gametracker.com/server_info/74.86.232.75:28961/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/74.86.232.75:28961/b_350x20_CADAA00-1E7001-FFFFFF-FFFFFF.png" border="0" width="350" height="20" /></a><br>
CGC Zombie Mod #3: <a href="http://www.gametracker.com/server_info/74.86.232.75:28962/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/74.86.232.75:28962/b_350x20_CADAA00-1E7001-FFFFFF-FFFFFF.png" border="0" width="350" height="20" /></a><br>
CGC S&D HC #4: <a href="http://www.gametracker.com/server_info/74.86.232.75:28963/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/74.86.232.75:28963/b_350x20_CADAA00-1E7001-FFFFFF-FFFFFF.png" border="0" width="350" height="20" /></a><br>
CGC-MH FFA HC #5: <a href="http://www.gametracker.com/server_info/216.221.84.10:28960/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/216.221.84.10:28960/b_350x20_CADAA00-1E7001-FFFFFF-FFFFFF.png" border="0" width="350" height="20" /></a><br>
CGC-MH TDM HC #6: <a href="http://www.gametracker.com/server_info/216.221.84.10:28961/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/216.221.84.10:28961/b_350x20_CADAA00-1E7001-FFFFFF-FFFFFF.png" border="0" width="350" height="20" /></a><br>
CGC-MH Zombie #7: <a href="http://www.gametracker.com/server_info/216.221.84.10:28962/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/216.221.84.10:28962/b_350x20_CADAA00-1E7001-FFFFFF-FFFFFF.png" border="0" width="350" height="20" /></a><br>
CGC-MH RSM #8: <a href="http://www.gametracker.com/server_info/216.221.84.10:28963/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/216.221.84.10:28963/b_350x20_CADAA00-1E7001-FFFFFF-FFFFFF.png" border="0" width="350" height="20" /></a><br><br>
<b>Press <a href="http://www.cracked-gaming.com/community/forum/index.php?board=1.0" target="_blank">Here</a> for all the CoD4 Servers in a List.</b>
</div>
<div class="content">
<h2>Call of Duty: Cracked Warfare</h2>
<p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>CGC</b></font> will be hosting a Call of Duty tournament for Cracked Clans to compete against each other. Clans will be competing for the bragging rights, in which if they win, they will get their Clan name on the Golden Sock.</p>
<p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>This tournament</b></font> will start on Thursday or Friday, depending on what day your Clan wants to start. Semi-finals will be on Saturday. Sunday will be the Final Match for the Golden Sock.</p>
<p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>Clans from all over</b></font> will be competing in this Tournament, such as the NoBS Clan, and the UTDM Clan. The Competition will be ran on CGGS Servers, in which we will have a practice Server running now up to the Tournament. Look at the Discussion Section for more details.</p>
<center><a href="http://www.cracked-gaming.com/community/forum/index.php?c=12" target="_blank"><b>CoD:CW Forum Discussion</b></a></center><br>
<h2>CGC Server Stats</h2>
<p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>CGC</b></font> has brought Stats back to the Community. You can now see the sats of every thing in game from who is the biggest whiner, to how many times syou shot someone in the balls.</p>
<center><a href="http://Stats.Cracked-Gaming.com" target="_blank"><b>Stats.Cracked-Gaming.com</b></a></center><br>
<h2>New CGC S&D Server Up!</h2>
<p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>CGC</b></font> has added a 24 Slot S&D Hardcore Server to our Server list. We are hoping that everyone will try their hardest to get it started and filled. Please just go to the server sometime with a friend and stay there until is starts to fill up.</p>
<center><a href="xfire:join?game=cod4mp&server=74.86.232.75:28963" target="_blank"><b>IP: 74.86.232.75:28963</b></a></center><br>
</div>
<div class="content">
<h2>SuperCharged Sunday</h2>
<p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>At last nights meeting</b></font>, we chose that this Sunday will be Supercharged Sunday. Instead of Funmaps, we will have more serious and detailed maps. The maps will be mp_burg, mp_ic_cod, mp_sconsegrad, mp_yard, and mp_freeb for the map rotation. We may also turn the speed up just a little, and maybe turn the gravity just a hair. The maps are not too big in size, but if you are worried about how long it will take to download, then you can download them before sunday by downloading the installer below.</p><br>
<a href="http://www.cracked-gaming.com/files/ss_fastdl.exe" target="_blank"><b>SuperCharged Sunday Fast DL Installer</b></a>
</div>
<div class="content">
<h2>CGC Newsletter Released</h2>
<br>
Hello yall, this is our First Newsletter.<br><br>

&nbsp;&nbsp;CGC has been having a great month so far. We redesigned our
website, and added a homepage with many other sub-pages. Our Zombie
server is repopulating, and our TDM server is still the same in rank,
like always. We also have a FUNDAY server now, in which after each
FUNDAY we put what we did on FUNDAY on that server. We have also
opened up a 24 slot S&D Server. Check the site for server details and
IP's.<br><br>

&nbsp;&nbsp;CGC has opened up a GSP called Cracked-Gaming Game Servers (CGGS),
in which we will sell game servers. We would really love for everyone
to help us out with advertising for CGGS by putting sigs or telling
your friends how great of a community it is run by. The URL to CGGS is <a href="http://www.cracked-gaming.com/community/buy_servers.php">Here</a>.
Please help us out on this one, so we don't have to depend on
donations...<br><br>

&nbsp;&nbsp;Also, our forums are definitely not as active as they used to be.
Get on them, be social, and gain some respect from other members.
Also, tell me if you like Fake or Real boobs. Look on the forum for
that post. lol.<br><br>

&nbsp;&nbsp;We have also opened a <a href="http://www.wegame.com/group/cgc/">WeGame Community</a>. <a href="http://www.wegame.com">WeGame</a>
is a video recorder that so damn simple to use. You go in game,
record, click the upload button, and watch. This FREE program also
does not lower your FPS like Fraps.<br><br>

CGC is planning to expand rapidly, even more than it is now.<br><br>

  &nbsp;- We will be looking for clans to come into us.<br>
  &nbsp;- Admins will be given positions such as Recuriter, Server
Manager, etc.<br>
  &nbsp;- We will be deleting the ban list on all servers.<br>
  &nbsp;- We are opening a Game Server Provider, in which we will sell
servers.<br>
  &nbsp;- We will be assigning more server admins.<br>
  &nbsp;- We will be focusing on getting a Sponsor to support our servers
money wise.<br><br>

<b>Next CGC Meeting is Thursday, August 7th on <a href="http://cracked-gaming.com/files/ventmix122setup.exe">Ventrilo</a>.</b><br>
IP: Vent.Cracked-Gaming.com<br>
Port: 3784<br><br>

Regards,<br>
CGC | Larry<br>
Cracked-Gaming Community<br>
<a href="http://www.cracked-gaming.com/">www.Cracked-Gaming.com</a><br><br>

<font size="5"><b>Git-Er-Done</b></font>
</div>
<!-- END MAIN CONTENT -->
</div>
<div class="side_column" id="right">
<h1>Forum<small>Login</small></h1>
<center>
<?php ssi_whosOnline(); ?>
</center>
<?php ssi_login(); ?>
</p>
</form> 
<h1>Official<small>Affiliates</small></h1>
<a href="http://www.macerhosting.net" target="_blank">
<img src="images/macer_hosting_cgc_ad_right.jpg" alt="Advertise Here" />
<a href="http://www.cracked-gaming.com/community/advertising.php" target="_blank">
<img src="images/ad_here_cgc_ad_right.jpg" alt="Advertise Here" />
<img src="images/ad_here_cgc_ad_right.jpg" alt="Advertise Here" />
</a> </div> 
</div>
<div id="footer">
<p>Copyright 2008 &copy; Cracked-Gaming Community - CGC does not take any responsiblity for any posts made by members or guests.</p> </div>
</div>
<!-- / main wrapper -->
<!-- PageEar function call -->
<script type="text/javascript">   
    writeObjects();
</script>
</body>
</html>
Title: Re: PageEar (Page peel)
Post by: NeoXII on August 24, 2008, 08:43:37 PM
Hi KiLLuMiNaTi-7-!!
Great Mod!

In my forum work with default theme very well but with dark vista theme don't start. I've made all replace...  :(

Can you check my index.template.php?

Tnx Very much!!  ;)
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 25, 2008, 03:26:32 PM
Quote from: NeoXII on August 24, 2008, 08:43:37 PM
Hi KiLLuMiNaTi-7-!!
Great Mod!

In my forum work with default theme very well but with dark vista theme don't start. I've made all replace...  :(

Can you check my index.template.php?

Tnx Very much!!  ;)

Find:
function template_main_above()

{

global $context, $settings, $options, $scripturl, $txt, $modSettings; $boardurl;


Replace with:
function template_main_above()

{

global $context, $settings, $options, $scripturl, $txt, $modSettings, $boardurl;
Title: Re: PageEar (Page peel)
Post by: rodmanG on August 25, 2008, 08:34:49 PM
This mod was built from this source.... --------->  http://www.webpicasso.de/blog/pageear-free-peel-away-ad/  I used this on many sites of mine. I think this can be installed with out the mod.. Ive also manually installed this on VB forum many php and html pages. I install your mod I like how your worte it.... Just thought I would let you know also I , have installed this on many plateforms   such as asp html and php
here is few sites I have it on now.

www.lawntimes.com (http://www.lawntimes.com)  www.lawncompanyproducts.com (http://www.lawncompanyproducts.com)  www.orlandolawnandlandscape.com (http://www.orlandolawnandlandscape.com)
Title: Re: PageEar (Page peel)
Post by: rodmanG on August 26, 2008, 02:35:39 PM

You know what! I notice some reason its not putting the code on your index.php page. If you go to http://www.cracked-gaming.com/community/index.php  look at the source code, Its not there... What I am referring to is this

<script src="/pageear/AC_OETags.js" language="javascript"></script>
<script src="/pageear/pageear.js" type="text/javascript"></script>

It is not on the index.php page where it suppose to be there in order for this mod to work.


Here is look at the source on your page.


!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Cracked-Gaming Community - Official Website</title> 
<!--  function ctRoster(usrName)  {         var div = document.getElementById("roster_data");    var textnode = document.createTextNode(usrName);    div.appendChild(textnode); }  function ctRosterClean()  {     var label = document.getElementById("roster_data")     while( label.hasChildNodes() ) { label.removeChild( label.lastChild ); } }  // -->  </script> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <!-- Main wrapper -->
<div id="wrap">    
<div id="header">
<table width="998px" height="44px" background="images/topbar.jpg" cellpadding="5" cellspacing="0"> <tr> <td valign="bottom"> <p><b><font size="2"><font color="#ffffff"><center>Welcome, <b>Guest</b>. Please <a href="http://www.cracked-gaming.com/community/forum/index.php?PHPSESSID=d7673c9ae4259894b6388079ab0588b5&amp;action=login">login</a> or <a href="http://www.cracked-gaming.com/community/forum/index.php?PHPSESSID=d7673c9ae4259894b6388079ab0588b5&amp;action=register">register</a>.</center></font></font></b></p> </td> </tr> </table>

<div id="innerheader" style="font-size: 10px;">
<ul>             
<li><a href="index.php">Home</a></li>             
<li><a href="forum/">Forums</a></li>             
<li><a href="about.php">About CGC</a></li>             
<li><a href="join.php">Join CGC</a></li>             
<li><a href="donate.php">Donate</a></li>             
<li><a href="servers.php">Servers</a></li>
<li><a href="cggs.php">Buy Servers</a></li>


Dont feel bad mine is doing the same thing. Once I figure it out ill let you know how to solve your problem.

Rodman


Quote from: codnerd on August 19, 2008, 01:12:38 PM
Ok. I put this right under my title tags:
<script src="/pageear/AC_OETags.js" language="javascript"></script>
<script src="/pageear/pageear.js" type="text/javascript"></script>

I put this above my body tag:
<!-- PageEar function call -->
<script type="text/javascript">   
    writeObjects();
</script>

Website (http://www.cracked-gaming.com/community/index.php)

Index.php

<?php require("forum/SSI.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Cracked-Gaming Community - Official Website</title> 
<script src="/pageear/AC_OETags.js" language="javascript"></script>
<script src="/pageear/pageear.js" type="text/javascript"></script>
<!--  function ctRoster(usrName)  {  var div = document.getElementById("roster_data"); var textnode = document.createTextNode(usrName); div.appendChild(textnode); }  function ctRosterClean()  {  var label = document.getElementById("roster_data")  while( label.hasChildNodes() ) { label.removeChild( label.lastChild ); } }  // -->  </script> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <!-- Main wrapper -->
<div id="wrap">
<div id="header">
<table width="998px" height="44px" background="images/topbar.jpg" cellpadding="5" cellspacing="0"> <tr> <td valign="bottom"> <p><b><font size="2"><font color="#ffffff"><center><?php ssi_welcome(); ?></center></font></font></b></p> </td> </tr> </table>
<div id="innerheader" style="font-size: 10px;">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="forum/">Forums</a></li>
<li><a href="about.php">About CGC</a></li>
<li><a href="join.php">Join CGC</a></li>
<li><a href="donate.php">Donate</a></li>
<li><a href="servers.php">Servers</a></li>
<li><a href="cggs.php">Buy Servers</a></li>
<li><a href="http://www.cracked-gaming.com/files">Files</a></li>
</ul>

</div>
</div>
<div id="content">
<div class="side_column">
<h1>Latest<small>News</small></h1>
<ul>
<li><b>
<a href="">CoD4:CW Going Great!</b> - 8/11
</a></li>
<li><b>
<a href="">4 New Servers!</b> - 8/11
</a></li>
<li><b>
<a href="">Lots of News...</b> - 8/11
</a></li>
<li><b>
<a href="">CGC Newsletter Released</b> - 8/4
</a></li>
</ul>
<h1>Recent<small>Topics</small></h1>
<?php ssi_recentTopics(); ?>
</div>
<!-- END LEFT COLUMN -->
<div id="middle" >
<div id="server_select">
<h1><span>Select Server</span></h1>
<a href="xfire:join?game=cod4mp&server=74.86.232.75:28960"><img src="images/tdm_svr_button.jpg" alt="Team Deathmatch Server" /></a>
<a href="xfire:join?game=cod4mp&server=74.86.232.75:28961"><img src="images/fun_svr_button.jpg" alt="Fun Day 24/7 Server" /></a>
<a href="xfire:join?game=cod4mp&server=74.86.232.75:28962"><img src="images/zom_svr_button.jpg" alt="Zombie Mod Server" /></a>
<a href="xfire:join?game=cod4mp&server=74.86.232.75:28963"><img src="images/s&d_svr_button.jpg" alt="Search & Destroy Server" /></a>  </div>
<div id="breadcrum">Home</div>
<h1>Cracked-Gaming News</h1>
<!-- ENTER MAIN CONTENT HERE -->
<div class="content">
<h2>CoD4:CW Going Great!</h2>
<p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>CGC</b></font> is hosting Call of Duty 4: Cracked Warfare. So far the tournament is going great. NoobDude will be playing GFAM Today, and the nBS Clan will be playing SkY Today. We will be broadcasting live (20 second delay) of the match today. You can watch it <a href="http://www.xfire.com/live_video/bordr4life511/" target="_blank">here</a>. ND vs GFAM starts at 4pm (EST) today. nBS vs SkY starts at 5pm today. Be sure to watch them live.</p>
<p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>Tomorrows</b></font> match will be for the Golden Sock. Be sure to be tuned in at 4pm est for the Golden Sock match!</p>
</div>
<div class="content">
<h2>MacerHosting.net brings CGC 4 New Servers!</h2>
<p>&nbsp;&nbsp;&nbsp;<a href="http://www.macerhosting.net" target="_blank"><font color="#255d20"><b>MacerHosting.net</b></font></a> has brought 4 new Call of Duty 4 Servers to CGC. The servers are hosted in Toronto, Canada with 2 Cores and 2GB of Ram on each box. Each Call of Duty 4 Server is hosted seperatly on its own box, which will give high performance, and way less lag. There are 2 servers which both are Broadcast and Killhouse only, which one is a 16 slot Hardcore Free-for-all and the other is and 32 slot Hardcore Team Deathmatch. We have also put up another Zombie Mod server, in which it only will run Stock maps. Lastly, my favorite, a mod with CoD2 Rifles for in which it is a modded server that replaces CoD4 weapons, with CoD2 Rifles. It is a blast that never stops.</p>
<p>&nbsp;&nbsp;&nbsp;We really need everyones help filling these new servers, so please go into the servers as much as you can. I am begging you!</p>
<b>Here are the IP's of the new servers:</b><br>
CGC TDM HC #1: <a href="http://www.gametracker.com/server_info/74.86.232.75:28960/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/74.86.232.75:28960/b_350x20_CADAA00-1E7001-FFFFFF-FFFFFF.png" border="0" width="350" height="20" /></a><br>
CGC Modded #2: <a href="http://www.gametracker.com/server_info/74.86.232.75:28961/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/74.86.232.75:28961/b_350x20_CADAA00-1E7001-FFFFFF-FFFFFF.png" border="0" width="350" height="20" /></a><br>
CGC Zombie Mod #3: <a href="http://www.gametracker.com/server_info/74.86.232.75:28962/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/74.86.232.75:28962/b_350x20_CADAA00-1E7001-FFFFFF-FFFFFF.png" border="0" width="350" height="20" /></a><br>
CGC S&D HC #4: <a href="http://www.gametracker.com/server_info/74.86.232.75:28963/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/74.86.232.75:28963/b_350x20_CADAA00-1E7001-FFFFFF-FFFFFF.png" border="0" width="350" height="20" /></a><br>
CGC-MH FFA HC #5: <a href="http://www.gametracker.com/server_info/216.221.84.10:28960/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/216.221.84.10:28960/b_350x20_CADAA00-1E7001-FFFFFF-FFFFFF.png" border="0" width="350" height="20" /></a><br>
CGC-MH TDM HC #6: <a href="http://www.gametracker.com/server_info/216.221.84.10:28961/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/216.221.84.10:28961/b_350x20_CADAA00-1E7001-FFFFFF-FFFFFF.png" border="0" width="350" height="20" /></a><br>
CGC-MH Zombie #7: <a href="http://www.gametracker.com/server_info/216.221.84.10:28962/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/216.221.84.10:28962/b_350x20_CADAA00-1E7001-FFFFFF-FFFFFF.png" border="0" width="350" height="20" /></a><br>
CGC-MH RSM #8: <a href="http://www.gametracker.com/server_info/216.221.84.10:28963/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/216.221.84.10:28963/b_350x20_CADAA00-1E7001-FFFFFF-FFFFFF.png" border="0" width="350" height="20" /></a><br><br>
<b>Press <a href="http://www.cracked-gaming.com/community/forum/index.php?board=1.0" target="_blank">Here</a> for all the CoD4 Servers in a List.</b>
</div>
<div class="content">
<h2>Call of Duty: Cracked Warfare</h2>
<p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>CGC</b></font> will be hosting a Call of Duty tournament for Cracked Clans to compete against each other. Clans will be competing for the bragging rights, in which if they win, they will get their Clan name on the Golden Sock.</p>
<p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>This tournament</b></font> will start on Thursday or Friday, depending on what day your Clan wants to start. Semi-finals will be on Saturday. Sunday will be the Final Match for the Golden Sock.</p>
<p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>Clans from all over</b></font> will be competing in this Tournament, such as the NoBS Clan, and the UTDM Clan. The Competition will be ran on CGGS Servers, in which we will have a practice Server running now up to the Tournament. Look at the Discussion Section for more details.</p>
<center><a href="http://www.cracked-gaming.com/community/forum/index.php?c=12" target="_blank"><b>CoD:CW Forum Discussion</b></a></center><br>
<h2>CGC Server Stats</h2>
<p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>CGC</b></font> has brought Stats back to the Community. You can now see the sats of every thing in game from who is the biggest whiner, to how many times syou shot someone in the balls.</p>
<center><a href="http://Stats.Cracked-Gaming.com" target="_blank"><b>Stats.Cracked-Gaming.com</b></a></center><br>
<h2>New CGC S&D Server Up!</h2>
<p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>CGC</b></font> has added a 24 Slot S&D Hardcore Server to our Server list. We are hoping that everyone will try their hardest to get it started and filled. Please just go to the server sometime with a friend and stay there until is starts to fill up.</p>
<center><a href="xfire:join?game=cod4mp&server=74.86.232.75:28963" target="_blank"><b>IP: 74.86.232.75:28963</b></a></center><br>
</div>
<div class="content">
<h2>SuperCharged Sunday</h2>
<p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>At last nights meeting</b></font>, we chose that this Sunday will be Supercharged Sunday. Instead of Funmaps, we will have more serious and detailed maps. The maps will be mp_burg, mp_ic_cod, mp_sconsegrad, mp_yard, and mp_freeb for the map rotation. We may also turn the speed up just a little, and maybe turn the gravity just a hair. The maps are not too big in size, but if you are worried about how long it will take to download, then you can download them before sunday by downloading the installer below.</p><br>
<a href="http://www.cracked-gaming.com/files/ss_fastdl.exe" target="_blank"><b>SuperCharged Sunday Fast DL Installer</b></a>
</div>
<div class="content">
<h2>CGC Newsletter Released</h2>
<br>
Hello yall, this is our First Newsletter.<br><br>

&nbsp;&nbsp;CGC has been having a great month so far. We redesigned our
website, and added a homepage with many other sub-pages. Our Zombie
server is repopulating, and our TDM server is still the same in rank,
like always. We also have a FUNDAY server now, in which after each
FUNDAY we put what we did on FUNDAY on that server. We have also
opened up a 24 slot S&D Server. Check the site for server details and
IP's.<br><br>

&nbsp;&nbsp;CGC has opened up a GSP called Cracked-Gaming Game Servers (CGGS),
in which we will sell game servers. We would really love for everyone
to help us out with advertising for CGGS by putting sigs or telling
your friends how great of a community it is run by. The URL to CGGS is <a href="http://www.cracked-gaming.com/community/buy_servers.php">Here</a>.
Please help us out on this one, so we don't have to depend on
donations...<br><br>

&nbsp;&nbsp;Also, our forums are definitely not as active as they used to be.
Get on them, be social, and gain some respect from other members.
Also, tell me if you like Fake or Real boobs. Look on the forum for
that post. lol.<br><br>

&nbsp;&nbsp;We have also opened a <a href="http://www.wegame.com/group/cgc/">WeGame Community</a>. <a href="http://www.wegame.com">WeGame</a>
is a video recorder that so damn simple to use. You go in game,
record, click the upload button, and watch. This FREE program also
does not lower your FPS like Fraps.<br><br>

CGC is planning to expand rapidly, even more than it is now.<br><br>

  &nbsp;- We will be looking for clans to come into us.<br>
  &nbsp;- Admins will be given positions such as Recuriter, Server
Manager, etc.<br>
  &nbsp;- We will be deleting the ban list on all servers.<br>
  &nbsp;- We are opening a Game Server Provider, in which we will sell
servers.<br>
  &nbsp;- We will be assigning more server admins.<br>
  &nbsp;- We will be focusing on getting a Sponsor to support our servers
money wise.<br><br>

<b>Next CGC Meeting is Thursday, August 7th on <a href="http://cracked-gaming.com/files/ventmix122setup.exe">Ventrilo</a>.</b><br>
IP: Vent.Cracked-Gaming.com<br>
Port: 3784<br><br>

Regards,<br>
CGC | Larry<br>
Cracked-Gaming Community<br>
<a href="http://www.cracked-gaming.com/">www.Cracked-Gaming.com</a><br><br>

<font size="5"><b>Git-Er-Done</b></font>
</div>
<!-- END MAIN CONTENT -->
</div>
<div class="side_column" id="right">
<h1>Forum<small>Login</small></h1>
<center>
<?php ssi_whosOnline(); ?>
</center>
<?php ssi_login(); ?>
</p>
</form> 
<h1>Official<small>Affiliates</small></h1>
<a href="http://www.macerhosting.net" target="_blank">
<img src="images/macer_hosting_cgc_ad_right.jpg" alt="Advertise Here" />
<a href="http://www.cracked-gaming.com/community/advertising.php" target="_blank">
<img src="images/ad_here_cgc_ad_right.jpg" alt="Advertise Here" />
<img src="images/ad_here_cgc_ad_right.jpg" alt="Advertise Here" />
</a> </div> 
</div>
<div id="footer">
<p>Copyright 2008 &copy; Cracked-Gaming Community - CGC does not take any responsiblity for any posts made by members or guests.</p> </div>
</div>
<!-- / main wrapper -->
<!-- PageEar function call -->
<script type="text/javascript">   
    writeObjects();
</script>
</body>
</html>

Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 26, 2008, 03:31:34 PM
Download the file attached and rename it to "pageear2.js"

Upload it to the same pageear directory were my mod installed it.

Replace (in your home page): <script src="/pageear/pageear.js" type="text/javascript"></script> with <script src="/pageear/pageear2.js" type="text/javascript"></script>
Title: Re: PageEar (Page peel)
Post by: rodmanG on August 26, 2008, 05:53:57 PM
Quote from: KiLLuMiNaTi-7- on August 26, 2008, 03:31:34 PM
Download the file attached and rename it to "pageear2.js"

Upload it to the same pageear directory were my mod installed it.

Replace (in your home page): <script src="/pageear/pageear.js" type="text/javascript"></script> with <script src="/pageear/pageear2.js" type="text/javascript"></script>


I understand the problem is now with themes. Sense I add a new them when I upload mod its putting it all in the SMF Default them. Any ideal why?
Title: Re: PageEar (Page peel)
Post by: Ikhsan4488 on August 26, 2008, 08:10:51 PM
great.. work fine at my forum.. :)
Title: Re: PageEar (Page peel)
Post by: @L3 on August 27, 2008, 09:41:21 AM
Great mod ;)
Title: Re: PageEar (Page peel)
Post by: bullbreedluverz on August 28, 2008, 06:43:47 PM
this mod is a nightmare, it messed me test site up, then the package wouldnt delete, i tried removing it from my database with 2 FTP programs and it denies me permission to remove from my OWN database using my OWN software, i delete the database yet it still wont delete from my public_html saying i DONT have permission to delete from my OWN public_html

Command:   DELE pageear_s.swf
Response:   550 Could not delete pageear_s.swf: Permission denied
Title: Re: PageEar (Page peel)
Post by: Sabre™ on August 28, 2008, 06:48:40 PM
Damn that doesnt sound good!
Lucky it was a test site.

What mods/edits did you have there, could be a conflict with something, and could help someone else.
Being locked outta your db?  The permission thin I mean.
Someone should be able to help you out there champ.
Good luck :)
Title: Re: PageEar (Page peel)
Post by: bullbreedluverz on August 28, 2008, 06:50:58 PM
theres no mods or edits there as ive deleted the whole forum and database but the pageear file

i had edits and mods on the test forum but ive deleted the whole forum and database from the public_html but the pageear denies me permission, the same as it did when i tried to add my own images to it to add my merchandising
Title: Re: PageEar (Page peel)
Post by: Sabre™ on August 28, 2008, 06:57:51 PM
Sheeks.
Sorry I cant help you out mate, Im learnin along they way and havent had a db issue such as that to give you any usable advice.
Maybe contact your host to clean it up for you.  <~~semi usable  ;)

Hopefully you can sort it out soon mate.
Good luck :)
Title: Re: PageEar (Page peel)
Post by: bullbreedluverz on August 28, 2008, 07:10:02 PM
its ok im going to beat it with a big rock untill it goes away...........  :D :D :D
Title: Re: PageEar (Page peel)
Post by: Sabre™ on August 28, 2008, 07:11:14 PM
LMFAO
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 29, 2008, 12:13:21 AM
Quote from: bullbreedluverz on August 28, 2008, 06:43:47 PM
this mod is a nightmare, it messed me test site up, then the package wouldnt delete, i tried removing it from my database with 2 FTP programs and it denies me permission to remove from my OWN database using my OWN software, i delete the database yet it still wont delete from my public_html saying i DONT have permission to delete from my OWN public_html

Command:   DELE pageear_s.swf
Response:   550 Could not delete pageear_s.swf: Permission denied

Sorry to hear that mate, try logging into your webhost control panel and look for "reset FTP permissions" that will reset all file permissions so you are the owner.
Title: Re: PageEar (Page peel)
Post by: qtime on August 30, 2008, 06:38:33 PM
Thanks for integrating this nice feature into smf, I have a heavaly modified forum and the install runs without a problem and it's working great.

1 wish I have:
Is it possible to put it on or off by membergroup? And write it already here, show on specific boards etc.
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on August 30, 2008, 07:19:17 PM
Quote from: qtime on August 30, 2008, 06:38:33 PM
Thanks for integrating this nice feature into smf, I have a heavaly modified forum and the install runs without a problem and it's working great.

1 wish I have:
Is it possible to put it on or off by membergroup? And write it already here, show on specific boards etc.

I did try so you can put in on and off by membergroup but i ran into a problem and i unfortunately dont have the time or the expricnce in adding that. Im still learning.

Sorry to disappoint.
Title: Re: PageEar (Page peel)
Post by: Sabre™ on August 31, 2008, 03:56:10 AM
Thats alright champ, just get the multiple ear option done, and you may retire!
lol
;)
Title: Re: PageEar (Page peel)
Post by: Ozman69 on September 12, 2008, 09:06:10 PM
Any clue why I'm getting this:

1. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
2. Execute Modification ./Sources/ModSettings.php Test failed
3. Execute Modification ./Themes/default/index.template.php Test successful
4. Extract Tree ./pageear 
5. Execute Code install.php

Fresh install of 1.1.6, default theme, with only a few mods installed.

Oz
Title: Re: PageEar (Page peel)
Post by: Sabre™ on September 12, 2008, 10:14:27 PM
Yes.
It is because the area where the code is added to the  ModSettings.php, is already taken by an addition another mod has made.

You will have to manually add that code yourself.

If you choose to do so, then install the mod regardless of the error, then follow the instructions below.
It is rather easy, so dont feel uneasy if this is your first manual edit :)
Just remember to make a copy of any file you edit. In this case, it is the ModSettings.php

Use a [Package Parser] (http://sleepycode.com/PackageParser/index.php) to get the code you need to add.

Click on browse, select the pageear folder on your computer, select your smf version, or version 1.1.5 if that parser hasnt been updated, and click on send file.

Scroll down till you get to your ModSettings.php code, and follow the directions :)

Make sure you make a copy of your ModSettings.php file first!

Good luck mate :)
Any problems, just post back :)
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on September 14, 2008, 10:26:56 AM
@ Ozman69 What  Sabre™ said. If you still can't get it to work, post your modsettings.php file here.

Thanks Sabre™

Title: Re: PageEar (Page peel)
Post by: Sabre™ on September 14, 2008, 05:55:53 PM
My pleasure mate.
I like this mod, so will offer the little assistance I can provide :)

*cough* updates *cough*

lol ;)
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on September 14, 2008, 05:59:20 PM
Quote from: Sabre™ on September 14, 2008, 05:55:53 PM
My pleasure mate.
I like this mod, so will offer the little assistance I can provide :)

*cough* updates *cough*

lol ;)

lol. I want update this mod but time is never on my side any more :(

Maybe you can take over it ;)
Title: Re: PageEar (Page peel)
Post by: Sabre™ on September 14, 2008, 06:07:52 PM
Quote from: KiLLuMiNaTi-7- on September 14, 2008, 05:59:20 PM
lol. I want update this mod but time is never on my side any more :(

Yeah, that happens often. There are usually other things that take priority to updating a mod! lol

Quote from: KiLLuMiNaTi-7- on September 14, 2008, 05:59:20 PM
Maybe you can take over it ;)

LOL.
If I knew how to code, mate Id be helping you do it!
But I dont, so I cant :(
Yet.....

Im slowly learning, and have gotten a grip of xhtml.
When Im comfortable there, then I'll read on to php.
Will be awhile till I can even write my own stuff lol
But all in time ;)
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on September 14, 2008, 06:12:47 PM
Quote from: Sabre™ on September 14, 2008, 06:07:52 PM
Quote from: KiLLuMiNaTi-7- on September 14, 2008, 05:59:20 PM
lol. I want update this mod but time is never on my side any more :(

Yeah, that happens often. There are usually other things that take priority to updating a mod! lol

Quote from: KiLLuMiNaTi-7- on September 14, 2008, 05:59:20 PM
Maybe you can take over it ;)

LOL.
If I knew how to code, mate Id be helping you do it!
But I dont, so I cant :(
Yet.....

Im slowly learning, and have gotten a grip of xhtml.
When Im comfortable there, then I'll read on to php.
Will be awhile till I can even write my own stuff lol
But all in time ;)

Yea ok. I started by straight away jumping into PHP (Not a good choice) Im 16 and learning at a steady pace.

I've been doing some private work and havn't found the time or the interest in SMF at the moment :( But if i do get some time, this will be the first mod i update :D
Title: Re: PageEar (Page peel)
Post by: Sabre™ on September 14, 2008, 06:18:09 PM
Mate youre 16!??  pmsl
Sheeks, when I was 16 I was down on the halfpipe trying to perfect my backside airs! lol
I wish I had interest in computers back then, but have only been online for the last 3 years I think.
Good stuff mate :)

Quote from: KiLLuMiNaTi-7- on September 14, 2008, 06:12:47 PM
.... But if i do get some time, this will be the first mod i update :D

wOOt!!
Glad to hear it :D
Title: Re: PageEar (Page peel)
Post by: jmil on September 19, 2008, 11:57:07 AM
OK - I am back to trying to get Page Ear to work. I reinstalled fresh!

I did not get the Admin Selection for Page Ear and at the top of my Forum i had the following code:

$txt['pageear_settings_title'] = 'PageEar'; $txt['pageear_enable'] = 'Enable PageEar'; $txt['pageear_small_url'] = 'URL to small image
(http://yourwebsite.com/small_image.jpg)
(Must be 100x100)'; $txt['pageear_big_url'] = 'URL to big image
(http://yourwebsite.com/big_image.jpg)
(Must be 500x500)'; $txt['pageear_mirror'] = 'Mirror effect
(Use "true" or "false" only)'; $txt['pageear_jumpto'] = 'URL to jump to
(http://yourwebsite.com/gohere.html)'; $txt['pageear_opennew'] = 'Open in same or new window
(Use "new" or "self" only)'; $txt['pageear_onload'] = 'Open pageear automatically
("false" = Disable it opening automatically | "0.1" = Open automatically after X seconds)'; $txt['pageear_pageear_closeonload'] = 'Second until pageEar close\'s
(Only change if the above option has been changed)'; $txt['pageear_rtlt'] = 'Set direction of pageEar in left or right top browser corner
(Use lt = left or rt = right)'; $txt['pageear_softfade'] = 'Fade in pageEar if image completely loaded
(0-5: 0=off, 1=slow, 5=fast )';

I unistalled the package to get my Forum back to normal.

Any ideas?

Version - 1.1.6 (Too many mods to list)
Title: Re: PageEar (Page peel)
Post by: Sabre™ on September 20, 2008, 05:05:17 AM
Go to your   Modifications.english.php in your languages folder, and right at the bottom, youll see all that code.
It will be before this   ?>.
Move that to the bottom of the page, so it is the last thing.
eg..
[all
code
here]

?>     <~~  then that at the bottom
Title: Re: PageEar (Page peel)
Post by: jmil on September 20, 2008, 09:57:22 AM
Quote from: Sabre™ on September 20, 2008, 05:05:17 AM
Go to your   Modifications.english.php in your languages folder, and right at the bottom, youll see all that code.
It will be before this   ?>.
Move that to the bottom of the page, so it is the last thing.
eg..
[all
code
here]

?>     <~~  then that at the bottom

My theme does not have that folder! Nor is it on my site at all?
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on September 20, 2008, 10:01:08 AM
jmil, look in your default core folder. /Themes/default/languages/
Title: Re: PageEar (Page peel)
Post by: jmil on September 20, 2008, 10:03:51 AM
LOL - I thought I looked at every folder. Thanks!!! Will give it a try. Should I Modify first then install it again or Install then modify?

I uninstalled it, only way to get my site back to normal.


Title: Re: PageEar (Page peel)
Post by: jmil on September 20, 2008, 10:05:58 AM
Never mind - dumb question, I will install it and modify it then!
Title: Re: PageEar (Page peel)
Post by: Sabre™ on September 20, 2008, 04:21:02 PM
Sorry jmil, I shouldve given you the exact line to the folder.
I'd just walked in from the beach, and the over 30 Degrees Celsius temp knocked me out! lol
Get back to tell us if your reinstall fixed the issues you were having :)
Title: Re: PageEar (Page peel)
Post by: jmil on September 21, 2008, 07:54:27 PM
Excellent - That fixed the error and now the Admin control is there - BUT - No Page Ear. Not showing at all. I adjusted a few settings but no luck.

Any ideas?

BTW running 1.1.6
Custom Theme
Multiple Mods (including Simple Portal)

www.forums.midatlanticxriders.com


30 Degrees C Where are you from? WOW
Title: Re: PageEar (Page peel)
Post by: Sabre™ on September 21, 2008, 09:16:22 PM
Nice.  Almost there mate :)
Nice site also.

Have you added the modifications/manual edits to your custom theme?
I couldnt see it added via your source code.
Remember every mod needs to be manually added to any custom theme.
For this mod, the only addition should be made to your custom themes index template.
Title: Re: PageEar (Page peel)
Post by: jmil on September 21, 2008, 09:30:40 PM
NO - In fact I have added and deleted this mod several times because of the previous issue - So I probably thought I did and didn't. I will Parse it and add the Edits - Hopefully the next post (Tomorrow) will be WOW it works again!

:)

Great support!!

BTW - Never told me where your from (Region)! And thanks for the Kudos on the Site!

Title: Re: PageEar (Page peel)
Post by: Sabre™ on September 21, 2008, 09:43:50 PM
haha Yeah, hopefully everything runs smooth after your edits.
Check your errorlog before and after a few tests of the mod in action.

Im in Sydney - Aussie at the moment, but due to change at anytime.
Hence the sporadic online/offline times lol ;)
Title: Re: PageEar (Page peel)
Post by: jmil on September 22, 2008, 10:09:16 AM
Wow - Working like a champ - First try!! Thanks for the Help!!

Sydney - Love your Country. Spent 2 weeks on the Gold Coast 2 years ago. Absolutely Gorgeous and the weather, sand, beaches and women were great!

Your Summer is coming - Our winter is on the way! Enjoy
Title: Re: PageEar (Page peel)
Post by: Sabre™ on September 22, 2008, 05:03:28 PM
Glad I could be of assistance :)

Enjoy
Title: Re: PageEar (Page peel)
Post by: Abavagada on September 30, 2008, 04:53:33 PM
I'm going to post this here, in case anyone has had this problem.

I noticed that when I didn't have PageEar enabled, I was getting a little "Error" message at the bottom left of the Firefox page. It complains about "writeObjects" not being defined.

That is called from a javascript call in index.template.php:

Quote
echo '
<!-- PageEar function call --> 
<script type="text/javascript">   
    writeObjects();
</script>';

If you put this line right before it:
Quoteif ($modSettings['pageear_enable'])

it fixes it.

Title: Re: PageEar (Page peel)
Post by: svetac on October 18, 2008, 02:31:20 AM
I install pageear and i have a problem. When i started my forum there was a two ears and the main problem is that one of ears was on left side and one on right (ear mark for both ears is in the right side but when you go on the left side ear jump out ). I would like to have one ear on the left side so what modification must i do? one more issue. Where can i modify pageear (put my picture ect....)?
THANKS
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on October 18, 2008, 10:46:05 AM
Quote from: svetac on October 18, 2008, 02:31:20 AM
I install pageear and i have a problem. When i started my forum there was a two ears and the main problem is that one of ears was on left side and one on right (ear mark for both ears is in the right side but when you go on the left side ear jump out ). I would like to have one ear on the left side so what modification must i do? one more issue. Where can i modify pageear (put my picture ect....)?
THANKS

Please post a link to your site, or attach your index.template.php file.

To add a picture goto pageear in your admin panel, Accessed via admin panel. Admin -> Features & layout -> PAGEEAR

and fill out "URL to small image" and "URL to big image" (image that pops out)
Title: Re: PageEar (Page peel)
Post by: santanu on October 18, 2008, 10:58:12 AM
All is fine with me but when i check my error logs i get this error:

8: Undefined index: pageear_closeonload
File: /home/content/...................../discuss/Themes/blackted/Display.template.php (eval?)
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on October 18, 2008, 11:04:55 AM
Quote from: santanu on October 18, 2008, 10:58:12 AM
All is fine with me but when i check my error logs i get this error:

8: Undefined index: pageear_closeonload
File: /home/content/...................../discuss/Themes/blackted/Display.template.php (eval?)


Check that "var closeOnLoad =" in index.template.php is like this
var closeOnLoad = "', $modSettings['pageear_pageear_closeonload'], '";
Title: Re: PageEar (Page peel)
Post by: santanu on October 18, 2008, 11:09:50 AM
Quote from: KiLLuMiNaTi-7- on October 18, 2008, 11:04:55 AM
Quote from: santanu on October 18, 2008, 10:58:12 AM
All is fine with me but when i check my error logs i get this error:

8: Undefined index: pageear_closeonload
File: /home/content/...................../discuss/Themes/blackted/Display.template.php (eval?)


Check that "var closeOnLoad =" in index.template.php is like this
var closeOnLoad = "', $modSettings['pageear_pageear_closeonload'], '";

No its like this:
var closeOnLoad = "', $modSettings['pageear_closeonload'], '";
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on October 18, 2008, 11:20:34 AM
Quote from: santanu on October 18, 2008, 11:09:50 AM
Quote from: KiLLuMiNaTi-7- on October 18, 2008, 11:04:55 AM
Quote from: santanu on October 18, 2008, 10:58:12 AM
All is fine with me but when i check my error logs i get this error:

8: Undefined index: pageear_closeonload
File: /home/content/...................../discuss/Themes/blackted/Display.template.php (eval?)


Check that "var closeOnLoad =" in index.template.php is like this
var closeOnLoad = "', $modSettings['pageear_pageear_closeonload'], '";

No its like this:
var closeOnLoad = "', $modSettings['pageear_closeonload'], '";

Your using the old version, unistall it and install the new one. On the download page: http://custom.simplemachines.org/mods/index.php?mod=1305
Title: Re: PageEar (Page peel)
Post by: Pяηѕѕ LF on October 31, 2008, 01:02:19 PM
Quote from: Abavagada on September 30, 2008, 04:53:33 PM
I'm going to post this here, in case anyone has had this problem.

I noticed that when I didn't have PageEar enabled, I was getting a little "Error" message at the bottom left of the Firefox page. It complains about "writeObjects" not being defined.

That is called from a javascript call in index.template.php:

Quote
echo '
<!-- PageEar function call --> 
<script type="text/javascript">   
    writeObjects();
</script>';

If you put this line right before it:
Quoteif ($modSettings['pageear_enable'])

it fixes it.



I Have this problem I try to fix it with the solution to give here but when I cput this code there the small bug was delete :) but pageEar not open it's actif but it's not open ?

My code when I changed it:

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>';


if ($modSettings['pageear_enable'])
echo'
<!-- PageEar function call --> 
<script type="text/javascript">   
    writeObjects();
</script>
</body></html>';
}
[/font][/color]
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on October 31, 2008, 03:37:37 PM
Quote from: ア尺乇刀丂乇丂 on October 31, 2008, 01:02:19 PM
Quote from: Abavagada on September 30, 2008, 04:53:33 PM
I'm going to post this here, in case anyone has had this problem.

I noticed that when I didn't have PageEar enabled, I was getting a little "Error" message at the bottom left of the Firefox page. It complains about "writeObjects" not being defined.

That is called from a javascript call in index.template.php:

Quote
echo '
<!-- PageEar function call --> 
<script type="text/javascript">   
    writeObjects();
</script>';

If you put this line right before it:
Quoteif ($modSettings['pageear_enable'])

it fixes it.



I Have this problem I try to fix it with the solution to give here but when I cput this code there the small bug was delete :) but pageEar not open it's actif but it's not open ?

My code when I changed it:

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>';


if ($modSettings['pageear_enable'])
echo'
<!-- PageEar function call --> 
<script type="text/javascript">   
    writeObjects();
</script>
</body></html>';
}
[/font][/color]

Try

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>';


if ($modSettings['pageear_enable'])
echo'
<!-- PageEar function call --> 
<script type="text/javascript">   
    writeObjects();
</script>';
echo'
</body></html>';
}
Title: Re: PageEar (Page peel)
Post by: Pяηѕѕ LF on November 01, 2008, 11:40:34 AM
KiLLuMiNaTi-7- 

I try it but I have always the same problem.

when I delete this the pageEar work correctly but I have a small error message.

if ($modSettings['pageear_enable'])

Do you have any other solution for this problem ?  :-[
Title: Re: PageEar (Page peel)
Post by: Mick. on November 02, 2008, 07:00:07 AM
Can this be seen by guests only and not members? I would like to use it as a registration link.
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on November 02, 2008, 01:42:59 PM
Quote from: Silindi.. on November 01, 2008, 11:40:34 AM
KiLLuMiNaTi-7- 

I try it but I have always the same problem.

when I delete this the pageEar work correctly but I have a small error message.

if ($modSettings['pageear_enable'])

Do you have any other solution for this problem ?  :-[


Find

function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt


Replace

function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings


I've updated the mod package on the download page to fix the error message.




@BlueDevil

Uninstall pageear, download the new one on download page.

Find


//PageEar mod
if ($modSettings['pageear_enable'])


Replace with


//PageEar mod
if ($modSettings['pageear_enable'])
if ($context['user']['is_guest'])


Find


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


Replace

if ($modSettings['pageear_enable'])
if ($context['user']['is_guest'])
     echo'
    <script type="text/javascript">
    writeObjects();
    </script>';
Title: Re: PageEar (Page peel)
Post by: Sudhakar Arjunan on November 03, 2008, 12:11:39 PM
Hi KiLLuMiNaTi-7-,

Any idea, when the mod will be compactable with 2.0.4 beta.
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on November 03, 2008, 12:56:17 PM
Quote from: A.SK on November 03, 2008, 12:11:39 PM
Hi KiLLuMiNaTi-7-,

Any idea, when the mod will be compactable with 2.0.4 beta.

I'll give it a go mate, but i've never worked with 2.0 yet. So i don't know how long it will take.
Title: Re: PageEar (Page peel)
Post by: Pяηѕѕ LF on November 03, 2008, 03:41:08 PM
KiLLuMiNaTi-7-,


I make the modification that you give me but it isn't fix fix the error message.

I have alwayse the error message  :-[





it's ok :D it's fixed.

the first modification I deleted if ($modSettings['pageear_enable']) and I make the mod. to give me and after that I try if ($modSettings['pageear_enable']) with the mod. and afther that it's ok.

thanks for your help.  :)


Title: Re: PageEar (Page peel)
Post by: Smitten on November 03, 2008, 04:36:28 PM
I have a problem. The Mod only see in the default theme, but not in the custom.
I do all the changes for customs themes.

www.transmitten.com.ar

Thank you!
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on November 03, 2008, 05:34:33 PM
Quote from: Smitten on November 03, 2008, 04:36:28 PM
I have a problem. The Mod only see in the default theme, but not in the custom.
I do all the changes for customs themes.

www.transmitten.com.ar

Thank you!

You need to add

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


Before

</body></html>
Title: Re: PageEar (Page peel)
Post by: kolt on November 04, 2008, 09:24:46 AM
does it work with the last version 1.1.6 ?
Title: Re: PageEar (Page peel)
Post by: Sabre™ on November 04, 2008, 03:32:34 PM
Yes it does buddy :)
Title: Re: PageEar (Page peel)
Post by: kolt on November 04, 2008, 09:30:17 PM
I installed it succesfully it said but doesn't work for me! where is the problem please???
Title: Re: PageEar (Page peel)
Post by: Sabre™ on November 05, 2008, 02:45:13 AM
Have you enabled it in your admin panel?
Features and Options>>>Pageear>>>Enable PageEar

Are you using the smf default theme, or another one?
The more info you provide, the easier it is for people to help :)
Title: Re: PageEar (Page peel)
Post by: tanny on November 05, 2008, 03:26:18 AM
i installed succesfully but  doesn't work for me neather.. .. it is enabled on administration  but it doesn't show..  im   not using a default theme .. i made alll changes but  doesn't work.. in default theme work..   any help?

tanny
Title: Re: PageEar (Page peel)
Post by: Sabre™ on November 05, 2008, 03:52:18 AM
Did you add the code which goes into your index.template, to the index.template of your custom theme?
If you havent, you will need to do that in order to see it in action on your custom theme
Title: Re: PageEar (Page peel)
Post by: tanny on November 05, 2008, 04:53:30 AM
of course.. but  it doesn't work for me..
Title: Re: PageEar (Page peel)
Post by: Sabre™ on November 05, 2008, 05:00:38 AM
Well, to be honest, you havent shown us what code you have added, what theme you are using or a link to your site, so noone can help you unless we know/see what the problem is.
Could be as simple as a missing character

Refer to [THIS] (http://docs.simplemachines.org/index.php?topic=494) link
Title: Re: PageEar (Page peel)
Post by: kolt on November 05, 2008, 05:26:40 PM
Hello Sabre, I'm using the last version, 1.1.6 SMF in default theme.
The install is successful but doesn't show me the pageear! I tryed in every maner.
Ah ok I'm using a Mkportal.

Thanks if you give me any help!
Title: Re: PageEar (Page peel)
Post by: Sabre™ on November 06, 2008, 06:22:39 AM
Ok, Ive never touched on MKportal before mate, so Im not sure if that would make any difference.
I could say no, as I dont see why it would, but then as I said, Ive never used MKportal.
But we can try these steps :)

Can you check that the Pageear folder was added to the root of your forum.
That is where your  settings.php  template and  packages  folder is.

Then check that the code was added to your  Modifications.english.php  template in your  languages  folder.

Could we also have a link to your site also mate?
It will be a faster process if we can see what's happening :)
Title: Re: PageEar (Page peel)
Post by: tanny on November 24, 2008, 04:52:06 PM
ok lol.. maybe im wrong..  sooo here is attached my Index.template  so can u do all the changes for me?
im using Custom Theme.. in default theme works great..


thnx

tanny
Title: Re: PageEar (Page peel)
Post by: PipeRain on November 24, 2008, 05:02:10 PM
A search of this topic doesn't tell me, so I'll ask here...

Does this work on 1.1.7?

Thanks!
Title: Re: PageEar (Page peel)
Post by: Sabre™ on November 24, 2008, 05:25:47 PM
Yes, it should install perfectly fine in SMF 1.1.7

Title: Re: PageEar (Page peel)
Post by: Sabre™ on November 24, 2008, 05:31:36 PM
@ tanny

Try the attached index.template.

I dont know if you missed anything, as I overwrote your edits.

Report back on how you go

Cheers :)
Title: Re: PageEar (Page peel)
Post by: tanny on November 25, 2008, 02:25:21 AM
wow.. thnx   its working .. great job.. 

i appreciate this...

tanny
Title: Re: PageEar (Page peel)
Post by: Sabre™ on November 25, 2008, 03:50:35 AM
My pleasure buddy

Enjoy :)
Title: Re: PageEar (Page peel)
Post by: -SyN- on November 25, 2008, 09:51:19 AM
Could you take a look at mines?

I am using a custom theme and made the needed edits required.

I installed it with no errors, enabled it in the admin panel with the correct settings and yet I see nothing.

Thanks.

-edit-

I even tried it in the default theme and it dont work.

btw im using 1.1.7
Title: Re: PageEar (Page peel)
Post by: Sabre™ on November 25, 2008, 02:00:28 PM
Not a problem -SyN-

Could you try the attached file plz.

Also check that the  "pageear"  folder was uploaded with all its contents to the root of your forum.
In case you're unsure what the root is, it is where your avatar, packages, theme and other folders are stored.

Report back if it worked or not.

Quote from: -SyN- on November 25, 2008, 09:51:19 AMI even tried it in the default theme and it dont work.

May I also see your default themes  index.template.php

Cheers :)
Title: Re: PageEar (Page peel)
Post by: -SyN- on November 25, 2008, 06:48:40 PM
Re installed the mod, made the edits again, used your modified index.template.php file, still nothing and the page ear folder was in the root folder.

See for yourself.

http://clubsyn-x-treme.net/-X-/index.php?action=forum

also,

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg140.imageshack.us%2Fimg140%2F7337%2F61621207as5.th.jpg&hash=d43f69cb88566e1799d74677e552dfdd6e27200d) (http://img140.imageshack.us/my.php?image=61621207as5.jpg)

Here is the default forum index.template.php attached.
Title: Re: PageEar (Page peel)
Post by: Sabre™ on November 25, 2008, 09:48:53 PM
Ok I checked that template, and couldn't find any fault in your edits.
I checked the root of your forum and saw the pageear folder where it should be, with all its content.
You have the mod enabled in the Admin panel correct?

Then may I double check your ModSettings.php just to eliminate that from the equation.

After that, I'd make the assumption that you have another js that is interfering with this mod.
But thats only an uneducated guess.

You would need to wait for KiLLuMiNaTi to look further into this problem, if there is also no fault in the Modsettings template.
But if you may, upload your modsettings template please :)

Cheers

Title: Re: PageEar (Page peel)
Post by: Fat_Man on November 26, 2008, 03:44:13 AM
My problem is exactly that of Syns.

I've manually installed into my Index.template.php (In DILBER folder) but see nothing.

I'm using the DILBER theme, version 1.1.7 SMF.
Ummm PageEar folder is located at root position.

I've attached my template.

Any guidance or pointers would be welcome.  :)
Title: Re: PageEar (Page peel)
Post by: Sabre™ on November 26, 2008, 05:09:50 AM
Howdy Fat_Man
Try the attached file, and let me know how ya go :)
Title: Re: PageEar (Page peel)
Post by: Fat_Man on November 26, 2008, 05:24:24 AM
Quote from: Sabre™ on November 26, 2008, 05:09:50 AM
Howdy Fat_Man
Try the attached file, and let me know how ya go :)

KAPOW !!!
Thanks Sabre. That got it going. My problem is solved.
I'm going to compare to see what i was doing wrong.  :D
Title: Re: PageEar (Page peel)
Post by: -SyN- on November 26, 2008, 06:12:21 AM
Quote from: Sabre™ on November 25, 2008, 09:48:53 PM
Ok I checked that template, and couldn't find any fault in your edits.
I checked the root of your forum and saw the pageear folder where it should be, with all its content.
You have the mod enabled in the Admin panel correct?

Then may I double check your ModSettings.php just to eliminate that from the equation.

After that, I'd make the assumption that you have another js that is interfering with this mod.
But thats only an uneducated guess.

You would need to wait for KiLLuMiNaTi to look further into this problem, if there is also no fault in the Modsettings template.
But if you may, upload your modsettings template please :)

Cheers


Title: Re: PageEar (Page peel)
Post by: Smitten on November 26, 2008, 12:11:09 PM
Quote from: KiLLuMiNaTi-7- on November 03, 2008, 05:34:33 PM
You need to add

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


Before

</body></html>

Thanks for the solution but don´t worked. Another suggestion? Thank again.
Title: Re: PageEar (Page peel)
Post by: Sabre™ on November 26, 2008, 04:24:38 PM
@ -SyN-

All your templates are fine mate.
I see no reason why this mod shouldn't be functioning, unless something else is interfering with it(another mod or Js), or I have been hoodwinked lol ;)
I don't have enough experience with code, or time to carry on from here.
Sorry I couldn't be of more assistance to you mate.
The mod author, or someone who has had a similar problem and has solved it, may see something I do not, and can further assist you.
Maybe storm or gatlin may take a look for you.
It may possibly be the login script to the top right that's affecting it, as when activated, this mod will render that area unusable.
But thats only an uneducated guess.

Good luck buddy :)


@ Smitten
If you like, I could take a quick look at your index.template
Title: Re: PageEar (Page peel)
Post by: Smitten on November 26, 2008, 07:29:10 PM
Thanks Sabre!!
Here is the index.template
My theme is Extreme6. Bye.
Title: Re: PageEar (Page peel)
Post by: -SyN- on November 26, 2008, 08:07:28 PM
Quote from: Sabre™ on November 26, 2008, 04:24:38 PM
@ -SyN-

All your templates are fine mate.
I see no reason why this mod shouldn't be functioning, unless something else is interfering with it(another mod or Js), or I have been hoodwinked lol ;)
I don't have enough experience with code, or time to carry on from here.
Sorry I couldn't be of more assistance to you mate.
The mod author, or someone who has had a similar problem and has solved it, may see something I do not, and can further assist you.
Maybe storm or gatlin may take a look for you.
It may possibly be the login script to the top right that's affecting it, as when activated, this mod will render that area unusable.
But thats only an uneducated guess.

Good luck buddy :)

I have the Avatar Reflection mod that uses Js installed, Ill see what happens with if I remove it.

-Edit-

I give up, This mod isnt for me.
Title: Re: PageEar (Page peel)
Post by: Sabre™ on November 27, 2008, 05:37:16 PM
Ok buddy, sorry I couldnt figure out what went wrong, the mod author must be too busy to help.  :-\

If you like, you may PM me a temp account, and we can try n work it out there hands on.
Up to you buddy :)
Im going camping this weekend, but will be back online on Monday.
So it gives you some time to think on it.
Title: Re: PageEar (Page peel)
Post by: Sabre™ on November 27, 2008, 05:43:22 PM
@ Smitten

Try the attached file buddy
Title: Re: PageEar (Page peel)
Post by: Smitten on November 28, 2008, 08:48:21 AM
Quote from: Sabre™ on November 27, 2008, 05:43:22 PM
@ Smitten

Try the attached file buddy

Thank you very much bro! It´s work!
Title: Re: PageEar (Page peel)
Post by: TheDisturbedOne on November 28, 2008, 09:25:04 AM
1.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
2.    Execute Modification    ./Sources/ModSettings.php    Test failed
3.    Execute Modification    ./Themes/default/index.template.php    Test successful

Conflict with another MOD.  This may have to be updated.
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on November 28, 2008, 06:14:42 PM
@ -SyN-

My guess is that it is another modification conflicting with this one, but by looks of things Sabre has helped you enough with this and i don't think there is anything I can do. But if you have give up thats fine.

Quote from: TheDisturbedOne on November 28, 2008, 09:25:04 AM
1.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
2.    Execute Modification    ./Sources/ModSettings.php    Test failed
3.    Execute Modification    ./Themes/default/index.template.php    Test successful

Conflict with another MOD.  This may have to be updated.

Im afraid you will have to do a manual install, try to follow my steps carefully ;)

I would like to thank Sabre for taking time to help me a lot with the support. So thanks mate ;D
Title: Re: PageEar (Page peel)
Post by: TheDisturbedOne on November 28, 2008, 06:25:35 PM
Ok I will do that then.
Title: Re: PageEar (Page peel)
Post by: Fat_Man on November 28, 2008, 06:35:26 PM

Not sure if this will help SYN at all, but initially I think I had LEECH protect set up on my CPANEL which I think caused interference problems.
Title: Re: PageEar (Page peel)
Post by: TheDisturbedOne on November 28, 2008, 06:56:15 PM
Actually it is a problem with the code:
Rather than:

<operation>
<search position="after"><![CDATA[ );

// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];]]></search>
<add><![CDATA[
'pageear' => 'ModifyPageearSettings',]]></add>
</operation>


<operation>
<search position="after"><![CDATA[ 'karma' => 'ModifyKarmaSettings',]]></search>
<add><![CDATA[
'pageear' => 'ModifyPageearSettings',]]></add>
</operation>


It worked for me after that.
I think the place that it was set to put it was an illogical place.

I got an error before I moved it.
Title: Re: PageEar (Page peel)
Post by: Sabre™ on November 29, 2008, 05:12:43 PM
If you have other mods editing that area, it will need to be manually edited.
eg.
Your added edit above would not work for me, as I have mods taking the area before, and after
karma' => 'ModifyKarmaSettings', ....

Illogical??
I dunno..
All mods are set to install on a fresh board, with no edits.
You cannot predict what mod will edit a certain area, so work from the fresh template.
When failed, the mod parser will show you the section to add the code, and you can make the changes accordingly, as you have done.

Congrats on getting it to work for you.
Enjoy :)


Quote from: Fat_Man on November 28, 2008, 06:35:26 PMNot sure if this will help SYN at all, but initially I think I had LEECH protect set up on my CPANEL which I think caused interference problems.

Thanks for that info Fat_Man.
Anything is worth a try at this point.
We'll see if he still needs assistance or not.

Cheers :)
Title: Re: PageEar (Page peel)
Post by: TheDisturbedOne on November 29, 2008, 06:24:23 PM
Quote from: Sabre™ on November 29, 2008, 05:12:43 PM
If you have other mods editing that area, it will need to be manually edited.
eg.
Your added edit above would not work for me, as I have mods taking the area before, and after
karma' => 'ModifyKarmaSettings', ....

Illogical??
I dunno..
All mods are set to install on a fresh board, with no edits.
You cannot predict what mod will edit a certain area, so work from the fresh template.
When failed, the mod parser will show you the section to add the code, and you can make the changes accordingly, as you have done.

Congrats on getting it to work for you.
Enjoy :)


Quote from: Fat_Man on November 28, 2008, 06:35:26 PMNot sure if this will help SYN at all, but initially I think I had LEECH protect set up on my CPANEL which I think caused interference problems.

Thanks for that info Fat_Man.
Anything is worth a try at this point.
We'll see if he still needs assistance or not.

Cheers :)
It didn't work all the way for me:
http://www.simplemachines.org/community/index.php?topic=277350.msg1819492#msg1819492

Works on default theme though.
Title: Re: PageEar (Page peel)
Post by: Sabre™ on November 29, 2008, 06:36:21 PM
Yep, well you've posted in 2 of the boards where it will be noticed.

Good luck
Title: Re: PageEar (Page peel)
Post by: Smitten on December 01, 2008, 04:58:54 PM
A problem again...

Sabre, the index.template that you gave me worked one week. But now, it was dissapeared.

I don´t know what to do...

I have the Simple Machine Gallery Mod installed.
Title: Re: PageEar (Page peel)
Post by: Sabre™ on December 01, 2008, 06:33:17 PM
Hi mate.
Do you recall what mods you installed after you had this working?
It may most definitely be a conflict between 2 or more mods.

I have never used the gallery mod, so do not know anything about it.
If you can, leave us a link to your site also buddy.
Title: Re: PageEar (Page peel)
Post by: Smitten on December 01, 2008, 10:24:47 PM
I checked the errors log and i found a problem with Gallery Mod.

8: Undefined index: pageear_closeonload
Archivo: /home/tsmitten/public_html/Themes/default/languages/MGallery.spanish.php (main_above sub template - eval?)
Línea: 115

http://transmitten.com.ar
Title: Re: PageEar (Page peel)
Post by: Sabre™ on December 01, 2008, 11:39:54 PM
Hmmm...
Im guessing that is not the initial source of the error.

Can you run this query through your db, then do what you do to get that error, and post back what the new error is in your log.

REPLACE INTO smf_settings VALUES ('disableTemplateEval', 1);

When you've recorded the new error, run this query to return to normal.

DELETE FROM smf_settings WHERE variable = 'disableTemplateEval';

I have an idea what is happening, but that is all it is....  an idea we can eliminate.
We shall see ;)
Title: Re: PageEar (Page peel)
Post by: Smitten on December 02, 2008, 01:20:47 AM
i don´t know about database  :-[
Title: Re: PageEar (Page peel)
Post by: Sabre™ on December 02, 2008, 04:16:34 AM
That is ok buddy, we slowly learn what we need to ;)

We may have to wait for KiLLuMiNaTi and see if he has experienced or duplicated your error before.
Or if anyone else knows how to fix this.

But until then, can you attach these 3 files
Title: Re: PageEar (Page peel)
Post by: Smitten on December 02, 2008, 10:29:59 AM
Thanks for your answer Sabre  ;)
Here are the files.
Title: Re: PageEar (Page peel)
Post by: Sabre™ on December 02, 2008, 06:09:46 PM
Your files look fine.

Do you have [pretty urls] (http://custom.simplemachines.org/mods/index.php?mod=636) mod installed?
I ask this as I couldn't see your pageear folder without entering the whole url to each of its contents.
Title: Re: PageEar (Page peel)
Post by: Smitten on December 02, 2008, 07:51:39 PM
Quote from: Sabre™ on December 02, 2008, 06:09:46 PM
Your files look fine.

Do you have [pretty urls] (http://custom.simplemachines.org/mods/index.php?mod=636) mod installed?
I ask this as I couldn't see your pageear folder without entering the whole url to each of its contents.

Yes, i have pretty url´s.
I want my pageear please  :'(
Title: Re: PageEar (Page peel)
Post by: Sabre™ on December 02, 2008, 08:00:37 PM
Can you disable pretty urls for a second, then see if the pageear mod works.
I think we may have found your conflict if it does work.

From there we can move forward :)
Title: Re: PageEar (Page peel)
Post by: Smitten on December 02, 2008, 08:31:10 PM
Ok Sabre, thank you again.

I had pretty url installed long time ago, but i´ll try...
Title: Re: PageEar (Page peel)
Post by: Smitten on December 02, 2008, 09:29:42 PM
Ok, I disabled pretty url´s and didn´t worked...

I´m apologize for the inconvenience
Title: Re: PageEar (Page peel)
Post by: Sabre™ on December 02, 2008, 10:02:14 PM
Nah mate, no problem what so ever.
Can you list the mods you added after this mod.
If you have forgotten, you can look in your packages folder, and then the backup folder within.
List the mods after the backup file named...   
"before pageear"     It will be something like that
Title: Re: PageEar (Page peel)
Post by: Smitten on December 02, 2008, 10:21:02 PM
The last mod was pageear, but later, dragooon did a modification in the gallery mod. Then, pageear dissapeared...

I think that the problem is a .js file...
Title: Re: PageEar (Page peel)
Post by: Sabre™ on December 02, 2008, 11:55:13 PM
Yeah most probably buddy.
They can conflict.
Im not educated enough to help you with that, dragooon may possibly be able to assist you.

Sorry I couldnt be of more assistance Smitten.
Hope it gets sorted for you.

Good luck
Title: Re: PageEar (Page peel)
Post by: Eclipse16V on January 06, 2009, 07:37:35 AM
Hi,

I have include the PageEar Mod in my Site but i doesn´t work.  :(

I work wit babylon Design.
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on January 06, 2009, 10:10:16 AM
I assume its this site: www.h0-welt.de?

If so try removing some of your javascript scripts that you have on your site

Try removing:

The Willkommen Gast popup at the top, or
Disable right mouse click Script, or
Sitepreview v1.3

I don't think pageear works good with other javascript scripts :( As many others are having similar problems.
Title: Re: PageEar (Page peel)
Post by: jayc7176 on January 07, 2009, 02:00:58 AM
Thanks for this awesome Mode- I ve been looking for a mode like this for a long time!!!

Title: Re: PageEar (Page peel)
Post by: Smitten on February 01, 2009, 09:28:12 AM
Please, somebody can help me?
I need too much this mod but it doesn´t work in my forum.
Not even in the Default theme.
The installation is fine in all steps.
What can i do?
Title: Re: PageEar (Page peel)
Post by: gilanisoft on February 04, 2009, 08:50:40 PM
can i put my adsense their?
Title: Re: PageEar (Page peel)
Post by: Smitten on February 06, 2009, 04:13:14 AM
no answer for me?
Please...  :(
Title: Re: PageEar (Page peel)
Post by: ameo on February 06, 2009, 03:24:24 PM
Quote from: gilanisoft on February 04, 2009, 08:50:40 PM
can i put my adsense their?

I'm pretty sure that's against adsense rules.

@ Smitten - what's the location of your forum?
Title: Re: PageEar (Page peel)
Post by: Smitten on February 07, 2009, 03:12:42 AM
Quote from: ameo on February 06, 2009, 03:24:24 PM
@ Smitten - what's the location of your forum?

http://www.transmitten.com.ar/forum/

This is the location and i give you my index.template

Thanks!!
Title: Re: PageEar (Page peel)
Post by: Smitten on February 09, 2009, 05:35:28 PM
Please, i just wish a help. I need this mod and i don´t know what happen...
Title: Re: PageEar (Page peel)
Post by: ttuu on February 11, 2009, 04:42:09 PM
i using smf_clear theme (http://custom.simplemachines.org/themes/index.php?lemma=1154)
and i install this mod and i cannot see the affect.
in defulte theme its work.
i attach the index.template.php
u can see what no good in the file?
Title: Re: PageEar (Page peel)
Post by: yol on February 16, 2009, 10:21:03 PM
Quote from: KiLLuMiNaTi-7- on August 08, 2008, 07:16:25 AM
B) Well you can try manually doing it. By finding theses lines:

var thumbWidth = "100"; var thumbHeight = "100";
var bigWidth = "500"; var bigHeight = "500";
and changing the sizes  ;)

Hello,

First of all, thank you very much for this great job!. When I resize the small image to 150pixel, destroyed the its resolution. I think I need the resize "pageear_s.swf" to 150pixel, but how?

Regards,
Sedat
Title: Re: PageEar (Page peel)
Post by: gilanisoft on February 16, 2009, 10:41:11 PM
Quote from: ameo on February 06, 2009, 03:24:24 PM
Quote from: gilanisoft on February 04, 2009, 08:50:40 PM
can i put my adsense their?

I'm pretty sure that's against adsense rules.

@ Smitten - what's the location of your forum?
yeah...but if i have some other addnetwork.then.who dont have this rule.in that case how can i put that code their.i am using obeus as my addnetwork.
one morething and i decrease the size of ear after mouse over it.(sorry for my dumbness as iam very newbie)
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on February 17, 2009, 07:33:49 AM
@Smitten

I've had a look at your index.template.php and everything seems fine. Maybe its conflicting javascript code :( I notice you have several other javascript applications, pageear doesn't work very well with other mods im afraid.




@ttuu

I cant see no problem with your file. Check that the pageear file paths are correct.




@yol

I don't think you can resize the swf file without the original 'fla' file im afraid. The pageear only looks good with a width of 100px width sorry.

Title: Re: PageEar (Page peel)
Post by: yol on February 17, 2009, 08:14:55 AM
Thank you friend :)
Title: Re: PageEar (Page peel)
Post by: Smitten on February 17, 2009, 06:45:23 PM
Quote from: KiLLuMiNaTi-7- on February 17, 2009, 07:33:49 AM
@Smitten

I've had a look at your index.template.php and everything seems fine. Maybe its conflicting javascript code :( I notice you have several other javascript applications, pageear doesn't work very well with other mods im afraid.

Thanks! i waited an answer.
Title: Re: PageEar (Page peel)
Post by: slvreagl on March 08, 2009, 05:34:11 PM
I have a ton of mods on my site and when I first installed this mod I ended up with ALL of this mods code from modsettings.php in text form at the top of all my pages.
$txt['pageear_settings_title'] = 'PageEar';
$txt['pageear_enable'] = 'Enable PageEar';
$txt['pageear_small_url'] = 'URL to small image<br /><span class="smalltext">(http://yourwebsite.com/small_image.jpg)<br />(Must be 100x100)</span>';
$txt['pageear_big_url'] = 'URL to big image<br /><span class="smalltext">(http://yourwebsite.com/big_image.jpg)<br />(Must be 500x500)</span>';
$txt['pageear_mirror'] = 'Mirror effect<br /><span class="smalltext">(Use "true" or "false" only)</span>';
$txt['pageear_jumpto'] = 'URL to jump to<br /><span class="smalltext">(http://yourwebsite.com/gohere.html)</span>';
$txt['pageear_opennew'] = 'Open in same or new window<br /><span class="smalltext">(Use "new" or "self" only)</span>';
$txt['pageear_onload'] = 'Open pageear automatically<br /><span class="smalltext">("false" = Disable it opening automatically  | "0.1" = Open automatically after X seconds)</span>';
$txt['pageear_pageear_closeonload'] = 'Second until pageEar close\'s<br /><span class="smalltext">(Only change if the above option has been changed)</span>';
$txt['pageear_rtlt'] = 'Set direction of pageEar in left or right top browser corner<br /><span class="smalltext">(Use lt = left or rt = right)</span>';
$txt['pageear_softfade'] = 'Fade in pageEar if image completely loaded<br /><span class="smalltext">(0-5: 0=off, 1=slow, 5=fast )</span>';


and the "pageear" tab was not present in my admin panel.

I opened my modestting.php file and moved it up the list from the last and everything works. Probably means there is an error in my mod settings page but since I am not good enough in coding I guess I patched it  ;D
Title: Re: PageEar (Page peel)
Post by: slvreagl on March 08, 2009, 05:53:37 PM
For future enhancements how about using all four corner's selectable on and off with seperate links  :D
Title: Re: PageEar (Page peel)
Post by: Joe N on March 14, 2009, 08:13:55 AM
Hiya

One quick question, where do you change the text on the Page Ear thing when it opens up. Mine just says - Your Text Here

Where do you change it?

Joe
Title: Re: PageEar (Page peel)
Post by: slvreagl on March 14, 2009, 09:32:02 AM
Quote from: WBA Dude on March 14, 2009, 08:13:55 AM
Hiya

One quick question, where do you change the text on the Page Ear thing when it opens up. Mine just says - Your Text Here

Where do you change it?

Joe

Read the instructions, its a image not text.
Title: Re: PageEar (Page peel)
Post by: Joe N on March 14, 2009, 09:57:06 AM
Quote from: slvreagl on March 14, 2009, 09:32:02 AM
Quote from: WBA Dude on March 14, 2009, 08:13:55 AM
Hiya

One quick question, where do you change the text on the Page Ear thing when it opens up. Mine just says - Your Text Here

Where do you change it?

Joe

Read the instructions, its a image not text.

But it says

Your Text Here

See attachment
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on March 15, 2009, 09:49:27 AM
Yeah thats a bad choice of words, my fault....

The default page peel image you see is in:

http://www.yoursite.com/pageear/pageear_s.jpg - When it not open.
http://www.yoursite.com/pageear/pageear_b.jpg - When its open.
Title: Re: PageEar (Page peel)
Post by: Joe N on March 15, 2009, 09:53:10 AM
Quote from: KiLLuMiNaTi-7- on March 15, 2009, 09:49:27 AM
Yeah thats a bad choice of words, my fault....

The default page peel image you see is in:

http://www.yoursite.com/pageear/pageear_s.jpg - When it not open.
http://www.yoursite.com/pageear/pageear_s.swf - When its open.

Is there a way to change the text?
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on March 15, 2009, 01:27:14 PM
Yes, upload your own image.
Title: Re: PageEar (Page peel)
Post by: Joe N on March 15, 2009, 01:31:36 PM
Quote from: KiLLuMiNaTi-7- on March 15, 2009, 01:27:14 PM
Yes, upload your own image.

Where would that go?

Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on March 16, 2009, 12:31:59 PM
Sorry i gave the wrong image locations in my previous post....heres the corrected ones:

http://www.yoursite.com/pageear/pageear_s.jpg - When it not open.
http://www.yoursite.com/pageear/pageear_b.jpg - When its open.
Title: Re: PageEar (Page peel)
Post by: Smitten on March 18, 2009, 05:37:10 AM
Killuminati, please, can you help me?
I cant use the page ear and everything is allright.

I give you my index template.

PS: can be a problem of java script? What JS is doing conflict?
Title: Re: PageEar (Page peel)
Post by: sanfordw on April 01, 2009, 09:54:16 PM
not sure if any one has mentioned this.

Under the section "Run the installer then do this edit."
var closeOnLoad = "', $modSettings['pageear_closeonload'], '";

should be changed to
var closeOnLoad = "', $modSettings['pageear_pageear_closeonload'], '";

otherwise, there would be the following errors in the error log
8: Undefined index: pageear_closeonload
File: /../Themes/classic/Display.template.php (eval?)<<<<<<<<

the mod itself has made the modification,
just for anyone that is following the manual installation instruction
Title: Re: PageEar (Page peel)
Post by: GMCbris on April 26, 2009, 04:10:57 AM
trying this one now

Thanks!
Title: Re: PageEar (Page peel)
Post by: Drover on May 28, 2009, 06:09:08 PM
I'm having the same issue as several others.  I installed successfully in 1.1.9 and then made the other edits but am getting nothing.  Anyone mind helping me out...?

Also, it's not a big deal, but the button to get to the mod's edits in the admin panel is barely visible, squeezed between two other buttons.

Thanks in advance.

http://twittertycoons.com/forum/index.php
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on May 28, 2009, 09:44:30 PM
Quote from: Drover on May 28, 2009, 06:09:08 PM
I'm having the same issue as several others.  I installed successfully in 1.1.9 and then made the other edits but am getting nothing.  Anyone mind helping me out...?

Also, it's not a big deal, but the button to get to the mod's edits in the admin panel is barely visible, squeezed between two other buttons.

Thanks in advance.

http://twittertycoons.com/forum/index.php

Hi, looked at your site and i couldn't see this before the </body> tag in the produced HTML of your forum.


    <script type="text/javascript">
    writeObjects();
    </script>


So make sure you did this step in index.template.php

Code (Find) Select
</body></html>

Code (REPLACE with) Select

';

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


As for the tab in the admin panel, it could be that you have too many mods and thers too many tabs or that another mod is conflicting with PageEar's edits. Because on a clean install i didn't see that problem ;)
Title: Re: PageEar (Page peel)
Post by: Drover on May 29, 2009, 10:52:35 AM
Quote from: KiLLuMiNaTi-7- on May 28, 2009, 09:44:30 PM
Hi, looked at your site and i couldn't see this before the </body> tag in the produced HTML of your forum.


    <script type="text/javascript">
    writeObjects();
    </script>


So make sure you did this step in index.template.php

Code (Find) Select
</body></html>

Code (REPLACE with) Select

';

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


Thanks for the help.  I'm not sure why you're not seeing it, but that change was made.  I just rechecked the template and it IS there.  Any other suggestions?
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on May 29, 2009, 11:15:47 AM
Attach your current theme index.template.php here and i'll take a look for you.
Title: Re: PageEar (Page peel)
Post by: Drover on May 29, 2009, 03:40:29 PM
thanks.
Title: Re: PageEar (Page peel)
Post by: Drover on May 29, 2009, 04:41:12 PM
It keeps generating these errors over and over:

Quote
8: Undefined index: pageear_closeonload
File: /home/XXXXXXXXXXXXXXXXXXXXXXXXXXX/forum/Themes/default/Display.template.php (main_above sub template - eval?)
Line: 97

and

Quote

Apply Filter: Only show the errors with the same message
8: Undefined variable: modSettings
File: /XXXXXXXXXXXXXXXXXXXXXXXX/forum/Themes/default/Packages.template.php (main_below sub template - eval?)
Line: 293
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on May 30, 2009, 09:39:44 PM
Find:

var closeOnLoad = "', $modSettings['pageear_closeonload'], '";

Replace with:

var closeOnLoad = "', $modSettings['pageear_pageear_closeonload'], '";

(my stupid mistake sorry)
Title: Re: PageEar (Page peel)
Post by: Drover on May 31, 2009, 05:04:13 PM
Eh, still not working for me.  Thanks anyway.
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on May 31, 2009, 05:19:02 PM
It should of fixed the error messages in your log. Anyway this should fix your problem with it not showing (sorry i didn't post this before, i didn't notice your post you attached your index.template.php)

Find:

function template_main_below()

{

global $context, $settings, $options, $scripturl, $txt;


Replace:

function template_main_below()

{

global $context, $settings, $options, $scripturl, $txt, $modSettings;
Title: Re: PageEar (Page peel)
Post by: Drover on May 31, 2009, 07:13:59 PM
Ah, ok.  I misunderstood.  Thought you were telling me how to fix both.  I'll give it a shot tomorrow.  Thanks for the help!

BTW, is the WP PageEar your creation as well?  I use it on a lot of sites!
Title: Re: PageEar (Page peel)
Post by: Winglet on June 21, 2009, 05:08:55 AM
Hallo.
I just install pageear on my SMF 1.1.9.
I don't know how to put link to other site!
You can see:
http://www.serbianwings.com/forum/

I want when i click on peel to redirect me to http://www.air-serbia.com/index1.php!
How can i do that?
Thanks in advance.
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on June 21, 2009, 05:45:00 AM
Hello,

Go into admin -> PageEar -> URL to jump to. <- edit this to the link you want the pagepeel to go to ;)
Title: Re: PageEar (Page peel)
Post by: Winglet on June 21, 2009, 06:14:00 AM
But, i haven't PageEar in my Admin panel!
Title: Re: PageEar (Page peel)
Post by: ArtificialIntelligence on June 27, 2009, 05:42:22 PM
Hi,

I am using smf 1.1.9, n i have got it to work on the default theme. i am not able to get it to work on one of the dziner studio themes that i am currently using. i have made all the edits in the index.template file for this theme but it just refuses to work. Could you please have a look and suggest something? It does appear in the features n options area of my admin section though.

www.labradorchat.com

Thank you in advance.

AI
Title: Re: PageEar (Page peel)
Post by: Sabre™ on June 27, 2009, 06:39:45 PM
@ Winglet
Could you attach your ModSettings.php located in your Sources folder.

@ AI
May I look at your custom themes index.template.php?
If so, attach it to your next post :)
Title: Re: PageEar (Page peel)
Post by: Winglet on June 28, 2009, 03:28:11 AM
 Here are.
Title: Re: PageEar (Page peel)
Post by: Sabre™ on June 28, 2009, 04:03:06 AM
Hi mate, all the code is there, and it is showing when I test your template on my own site.
Are you looking in your Features and Options section in your admin panel?

You should see      Basic Features   Layout and Options   PageEar   Karma
Title: Re: PageEar (Page peel)
Post by: ArtificialIntelligence on June 28, 2009, 01:45:53 PM
Thank you Sabre. Find attached my index.template.php file

-AI
Title: Re: PageEar (Page peel)
Post by: Sabre™ on June 28, 2009, 08:26:51 PM
My pleasure buddy :)

You had a line of code all on one line with  //  canceling it out.
It should work now.

Enjoy :)
Title: Re: PageEar (Page peel)
Post by: Winglet on June 29, 2009, 05:04:33 AM
@Sabre
Thanks man. Everything is OK now.
I put code to Modifications.english-utf8.php, and now is OK.
Thanks again!
Title: Re: PageEar (Page peel)
Post by: Sabre™ on June 29, 2009, 05:48:02 AM
Anytime buddy :)
Just remember if all the functions are there, but the words are not, to check your language UTF8 files ;)

regards
Title: Re: PageEar (Page peel)
Post by: ArtificialIntelligence on June 29, 2009, 06:39:24 AM
Works like a breeze. Thanks a ton man. Appreciate it. :)

-AI
Title: Re: PageEar (Page peel)
Post by: akosiparusa on July 05, 2009, 10:13:03 AM
seems I am having trouble whenever I replacing my Modsettings. The pagepeel appears but whenever I want to configure it on ACP, I get blank page.

Attached is the Modsettings.

Can someone please give me a help.

TIA
Title: Re: PageEar (Page peel)
Post by: usa4all on July 05, 2009, 03:34:05 PM
Hi There,

I manually installed this mod. But the option is not shown in my features & Options section.

* Basisinstellingen | Lay-out |  |  | Aeva | Aeva Sites | Karma |  (I'm using the dutch language, but even when i Change this to Englis it's not there.)

Could anyone please take a look what's wrong?  TX!

Index-template attached
Title: Re: PageEar (Page peel)
Post by: Sabre™ on July 06, 2009, 05:31:18 AM
@ akosiparusa
Your Ultimate Profile edits were causing the error.
Try the attached Modsettings file.

@ usa4all
See if the attached index.template helps
If not, see if you have a file named Modifications.english-utf8.php  or Modifications.dutch-utf8.php and add the language strings to them
Title: Re: PageEar (Page peel)
Post by: usa4all on July 06, 2009, 06:47:38 AM
Quote from: Sabre™ on July 06, 2009, 05:31:18 AM

@ usa4all
See if the attached index.template helps
If not, see if you have a file named Modifications.english-utf8.php  or Modifications.dutch-utf8.php and add the language strings to them

Tx, i see the ear, but can't find the settings, even if i change to English ..  any suggestions?
Title: Re: PageEar (Page peel)
Post by: usa4all on July 06, 2009, 07:27:12 AM
Quote from: usa4all on July 06, 2009, 06:47:38 AM
Quote from: Sabre™ on July 06, 2009, 05:31:18 AM

@ usa4all
See if the attached index.template helps
If not, see if you have a file named Modifications.english-utf8.php  or Modifications.dutch-utf8.php and add the language strings to them

Tx, i see the ear, but can't find the settings, even if i change to English ..  any suggestions?

GOT IT !

Had to change ./Themes/default/languages/Modifications.english.php  manually..
Title: Re: PageEar (Page peel)
Post by: usa4all on July 06, 2009, 07:48:45 AM
Hi,

I did translated in to DUTCH,   (Modifications.dutch.php)

Quote$txt['pageear_settings_title'] = 'PageEar';
$txt['pageear_enable'] = 'PageEar aanzetten';
$txt['pageear_small_url'] = 'URL voor het kleine plaatje<br /><span class="smalltext">(http://www.jouwwebsite.nl/pageear_s.jpg)<br />(Moet zijn 100x100)</span>';
$txt['pageear_big_url'] = 'URL voor het grote plaatje<br /><span class="smalltext">(http://www.jouwwebsite.nl/pageear_b.jpg)<br />(Moet zijn 500x500)</span>';
$txt['pageear_mirror'] = 'Spiegel effect<br /><span class="smalltext">(Gebruik "true" voor aan of "false" voor uit)</span>';
$txt['pageear_jumpto'] = 'URL verwijzen naar<br /><span class="smalltext">(http://www.jouwwebsite.nl/hiernaartoe.html)</span>';
$txt['pageear_opennew'] = 'Openen in zelfde of nieuw venster<br /><span class="smalltext">(Gebruik "new" voor nieuw venster of "self" voor openen in het zelfde venster)</span>';
$txt['pageear_onload'] = 'Open pageear automatisch<br /><span class="smalltext">("false" = Niet automatisch openen | "0.1" = Open automatisch na X seconden)</span>';
$txt['pageear_pageear_closeonload'] = 'Aantal seconden voor het sluiten van page ear<br /><span class="smalltext">(alleen gebruiken als u bovenstaand optie heeft gewijzigd)</span>';
$txt['pageear_rtlt'] = 'Links of rechts in browser<br /><span class="smalltext">(gebruik lt = links of rt = rechts)</span>';
$txt['pageear_softfade'] = 'Fade in pageEar als pagina volledig is geladen<br /><span class="smalltext">(0-5: 0=uit, 1=langzaam, 5=snel )</span>';


I tested on my own site and it's working fine.  Maybe anyone want to use it!
Title: Re: PageEar (Page peel)
Post by: NaYa on July 18, 2009, 02:00:23 AM
i am installed page ear in ma forum

now can u say how it shows ?

there is no change in ma forum

visit www.mobile4m.com and help me to show page ear

thank s
Title: Re: PageEar (Page peel)
Post by: dkharp on December 13, 2009, 07:45:29 AM
This is a good modern mode, Thank you!  Where do I put the images. I seem to be unable to find them
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on December 13, 2009, 07:50:08 AM
Quote from: dkharp on December 13, 2009, 07:45:29 AM
This is a good modern mode, Thank you!  Where do I put the images. I seem to be unable to find them

You upload them somewhere to your server then define them in your admin panel as you can see here (URL to small image & URL to big image):
http://custom.simplemachines.org/mods/index.php?action=download;mod=1305;id=124210;image

If your on SMF 1.1.X goto admin -> features and options -> PageEar.
Title: Re: PageEar (Page peel)
Post by: dkharp on December 13, 2009, 08:49:57 AM
Thanks! after taking a bit more time I noticed it says right next to it.

Here is what I did with mine.
www.36thid.com (http://www.36thid.com)
Title: Re: PageEar (Page peel)
Post by: dkharp on December 18, 2009, 02:52:45 PM
Hello,

I am getting a new error. When I go into admin settings to adjust.  I get this now.

QuoteFatal error: Call to undefined function ModifyPageEarModSettings() in /home/content/j/o/h/johnnyskid/html/Sources/ManageSettings.php on line 227

Can anyone help?
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on December 18, 2009, 04:26:36 PM
Quote from: dkharp on December 18, 2009, 02:52:45 PM
Hello,

I am getting a new error. When I go into admin settings to adjust.  I get this now.

QuoteFatal error: Call to undefined function ModifyPageEarModSettings() in /home/content/j/o/h/johnnyskid/html/Sources/ManageSettings.php on line 227

Can anyone help?

Somehow the ModifyPageEarModSettings() function disappeared  :s

Try replacing the file with this one.
Title: Re: PageEar (Page peel)
Post by: dkharp on December 18, 2009, 05:43:05 PM
I just got done looking at it. The part u add to the bottom before the > was gone. Thanks you for your response.
Title: Re: PageEar (Page peel)
Post by: Xarcell on December 27, 2009, 09:49:02 PM
Very nice mod, but I'm having some issues.

I installed on SMF 2.0 RC2. I get this error in my error log (also confirmed on a fresh install of SMF 2.0 RC2):

Quote8: Undefined index: pageear_settings_descFile: /home/xxx/xxx.com/Sources/ManageSettings.php
Line: 211 

Here is the code around that area:

// Load up all the tabs...
$context[$context['admin_menu_name']]['tab_data'] = array(
'title' => $txt['admin_modifications'],
'help' => 'modsettings',
'description' => $txt['modification_settings_desc'],
'tabs' => array(
'general' => array(
),
'pageear' => array(
'label' => $txt['pageear_settings_title'],
'description' => $txt['pageear_settings_desc'],
),
'chat' => array(
'label' => $txt['chat'],
'description' => $txt['chat_settings_desc'],
),
'rssfeeds' => array(
'description' => $txt['rss_feeder_desc'],
),
),
); 


The other this is it works on the default theme, but not the custom theme I made. No errors, no parse errors, nothing. I followed the instructions for SMF 2.0. Here is my index.template.php code:

<?php
// Version: 2.0 RC2; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '2.0 RC2';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as opposed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status separate from topic icons? */
$settings['separate_sticky_lock'] = true;

/* Does this theme use the strict doctype? */
$settings['strict_doctype'] = false;

/* Does this theme use post previews on the message index? */
$settings['message_index_preview'] = false;

/* Set the following variable to true if this theme requires the optional theme strings file to be loaded. */
$settings['require_theme_strings'] = false;
}

// The main sub template above the content.
function template_html_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''>
<head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title_html_safe'], '" />
<meta name="keywords" content="'
$context['meta_keywords'], '" />
<title>'
$context['page_title_html_safe'], '</title>';

// Please don't index these Mr Robot.
if (!empty($context['robot_no_index']))
echo '
<meta name="robots" content="noindex" />'
;

// Present a canonical url for search engines to prevent duplicate content in their indices.
if (!empty($context['canonical_url']))
echo '
<link rel="canonical" href="'
$context['canonical_url'], '" />';

// The ?rc2 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/css/index'$context['theme_variant'], '.css?rc2" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/print.css?rc2" media="print" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" />
<link rel="search" href="'
$scripturl'?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name_html_safe'], ' - '$txt['rss'], '" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="'
$scripturl'?board='$context['current_board'], '.0" />';

// Some browsers need an extra stylesheet due to bugs/compatibility issues.
foreach (array('ie7''ie6''firefox''webkit') as $cssfix)
if ($context['browser']['is_' $cssfix])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/'$cssfix'.css" />';

// The ?rc1 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style'$context['theme_variant'], '.css?rc1" />';

// RTL languages require an additional stylesheet.
if ($context['right_to_left'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/css/rtl.css" />';

echo '
<script type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/script.js?rc2"></script>
<script type="text/javascript" src="'
$settings['theme_url'], '/scripts/theme.js?rc2"></script>
    <script language="JavaScript" type="text/javascript" src="'
$settings['theme_url'], '/scripts/mootools.js"></script>
    <script language="JavaScript" type="text/javascript" src="'
$settings['theme_url'], '/scripts/menu.js"></script>
    <script language="JavaScript" type="text/javascript" src="'
$settings['theme_url'], '/scripts/main.js"></script>
<script type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_default_theme_url = "'
$settings['default_theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";'$context['show_pm_popup'] ? '
var fPmPopup = function ()
{
if (confirm("' 
$txt['show_personal_messages'] . '"))
window.open(smf_prepareScriptUrl(smf_scripturl) + "action=pm");
}
addLoadEvent(fPmPopup);' 
'''
var ajax_notification_text = "'
$txt['ajax_in_progress'], '";
var ajax_notification_cancel_text = "'
$txt['modify_cancel'], '";
// ]]></script>'
;

// Output any remaining HTML headers. (from mods, maybe?)

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>'
;

echo $context['html_headers'];

echo '
</head>
<body>'
;
}

function 
template_body_above()
{
global $context$settings$options$scripturl$txt$modSettings;


echo 
'
<img class="btitle" src="'
$settings['images_url'], '/theme/header-left.png" alt="" />
<div class="bheaderbg"><img class="bheader-right" src="'
$settings['images_url'], '/theme/header-right.jpg" alt="" /></div>
<div class="bmargin">'
;

echo !empty($settings['forum_width']) ? '
<div id="wrapper" style="width: ' 
$settings['forum_width'] . '">' '''

<div id="indexmenubg"><div class="frame">'
;

// Show the menu here, according to the menu sub template.
template_menu();

echo '
<br class="clear" /><br class="clear" />'
;

// Show the navigation tree.
theme_linktree();

echo '
</div>
</div>'
;


// The main content should go here.
echo '
<div id="content_section"><div class="frame">
<div id="main_content_section">'
;
}

function 
template_body_below()
{
global $context$settings$options$scripturl$txt$modSettings;

echo '
  <br /></div>
</div>
</div>'
;

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="footer_section">
    <div class="frame">'
theme_copyright(), '| Design By: <a href="http://xarthemes.com" target="_blank">Xarcell</a>';

// Show the load time?
if ($context['show_load_time'])
echo '
<p>'
$txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';

  echo '
    </div>
 </div>
</div>'
;
}

function 
template_html_below()
{
global $context$settings$options$scripturl$txt$modSettings;

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

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree($force_show false)
{
global $context$settings$options$shown_linktree;

// If linktree is empty, just return - also allow an override.
if (empty($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))
return;

// Reverse the linktree in right to left mode.
if ($context['right_to_left'])
$context['linktree'] = array_reverse($context['linktree'], true);

echo '
<div class="navigate_section">
<ul>'
;

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
echo '
<li'
, ($link_num == count($context['linktree']) - 1) ? ' class="last"' '''>';

// Don't show a separator for the last one (RTL mode)
if ($link_num != count($context['linktree']) - && $context['right_to_left'])
echo '«&nbsp;';

// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '
<a href="' 
$tree['url'] . '"><span>' $tree['name'] . '</span></a>' '<span>' $tree['name'] .'</span>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - && !$context['right_to_left'])
echo '&nbsp;»';

echo '
</li>'
;
}
echo '
</ul>
</div>'
;

$shown_linktree true;
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

echo '
<div id="fancymenu">
<ul>'
;

foreach ($context['menu_buttons'] as $act => $button)
{
echo '
<li class="'
$button['active_button'] == $act 'current' '' '"><a title="'$act'" href="'$button['href'], '"><span>'$button['title'], '</span></a></li>';
}
echo '
</ul>
</div>'
;
}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$strip_options = array())
{
global $settings$context$txt$scripturl;

if (!is_array($strip_options))
$strip_options = array();

// Create the buttons...
$buttons = array();
foreach ($button_strip as $key => $value)
{
if (!isset($value['test']) || !empty($context[$value['test']]))
$buttons[] = '<a ' . (isset($value['active']) ? 'class="active" ' '') . 'href="' $value['url'] . '" ' . (isset($value['custom']) ? $value['custom'] : '') . '><span>' $txt[$value['text']] . '</span></a>';
}

// No buttons? No button strip either.
if (empty($buttons))
return;

// Make the last one, as easy as possible.
$buttons[count($buttons) - 1] = str_replace('<span>''<span class="last">'$buttons[count($buttons) - 1]);

echo '
<div class="buttonlist'
, !empty($direction) ? ' align_' $direction '''"', (empty($buttons) ? ' style="display: none;"' ''), (!empty($strip_options['id']) ? ' id="' $strip_options['id'] . '"'''), '>
<ul>
<li>'
implode('</li><li>'$buttons), '</li>
</ul>
</div>'
;
}

?>


I'm using mootools for the main menu, could that be interfering with it?
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on December 28, 2009, 08:25:57 AM
Thanks for reporting that Xarcell. I've updated the package on the mod site.

Heres the fix if you dont want to install it again:

In Sources/ManageSettings.php

Find:

'pageear' => array(
'label' => $txt['pageear_settings_title'],
'description' => $txt['pageear_settings_desc'],
),


Replace:

'pageear' => array(
'label' => $txt['pageear_settings_title'],
),
Title: Re: PageEar (Page peel)
Post by: Xarcell on December 28, 2009, 05:35:06 PM
Quote from: KiLLuMiNaTi-7- on December 28, 2009, 08:25:57 AM
Thanks for reporting that Xarcell. I've updated the package on the mod site.

Heres the fix if you dont want to install it again:

In Sources/ManageSettings.php

Find:

'pageear' => array(
'label' => $txt['pageear_settings_title'],
'description' => $txt['pageear_settings_desc'],
),


Replace:

'pageear' => array(
'label' => $txt['pageear_settings_title'],
),


I made the changes posted, but still same problem.
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on December 28, 2009, 06:07:57 PM
Strange as it works without no errors for me on a fresh install.

Try cleaning your cache on your forum. If errors are still being added in your error log attach your ManageSettings.php file here and i'll take a look.
Title: Re: PageEar (Page peel)
Post by: Xarcell on December 29, 2009, 12:38:40 AM
Quote from: KiLLuMiNaTi-7- on December 28, 2009, 06:07:57 PM
Strange as it works without no errors for me on a fresh install.

Try cleaning your cache on your forum. If errors are still being added in your error log attach your ManageSettings.php file here and i'll take a look.

I cleaned the cache and still nothing. No errors, or page peel. Works fine on default theme, but not custom. I have added the code to the theme for the proper version, but it still doesn't work.

http://inspireromance.com/index.php?theme=1 default
http://inspireromance.com/index.php?theme=3 custom theme
Title: Re: PageEar (Page peel)
Post by: Xarcell on December 29, 2009, 12:42:00 AM
I tried removing the mootools menu, but it still didn't work. I'm triple checking everything, but I still cannot figure out why it isn't working on the custom theme.
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on January 03, 2010, 10:07:49 AM
I thought your issue was just the error in the error log. Sorry :-[.

Just looked at my edits i've posted up and there seems to be an extra space on one of the lines.

This line:
<script type="text/javascript" src="', $settings['default_theme_url'],'/scripts/pageear/AC_OETags.js"></script>

Find the line that looks like the one above and replace it with it ;)
Title: Re: PageEar (Page peel)
Post by: KensonPlays on January 04, 2010, 01:56:00 PM
Hello, installed your mod. It installs successfully for all themes, but I have a image hosted on picasaweb.google.com, and it won't show, just a white square small and large! I have  a small image, and a large one, and nothing works! (will check within a hour...)

EDIT:
I also have a copy of each image on my website, and I type in full URL (http://other.kcmartz.com/images/twt_sm.png and /images/twt_lg.png) and it won't show!
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on January 04, 2010, 02:49:41 PM
Quote from: Kcmartz on January 04, 2010, 01:56:00 PM
Hello, installed your mod. It installs successfully for all themes, but I have a image hosted on picasaweb.google.com, and it won't show, just a white square small and large! I have  a small image, and a large one, and nothing works! (will check within a hour...)

EDIT:
I also have a copy of each image on my website, and I type in full URL (http://other.kcmartz.com/images/twt_sm.png and /images/twt_lg.png) and it won't show!

JPG's only atm im afraid :(
Title: Re: PageEar (Page peel)
Post by: Bob Perry of Web Presence Consulting on January 04, 2010, 10:42:31 PM
Just installed on my SMF 2.0 RC2 site, works flawlessly so far... great work.
Title: Re: PageEar (Page peel)
Post by: Xarcell on February 03, 2010, 11:14:55 PM
I thought I'd come back and give this mod another try since I couldn't get it to work on custom themes.

I got it to work this time. Very nice mod, thanks.
Title: Re: PageEar (Page peel)
Post by: rngrdanny22 on April 11, 2010, 11:40:56 AM
Great looking mod!

Any chance for an upgrade to 2.0RC3?

Thanks!
Title: Re: PageEar (Page peel)
Post by: Bob Perry of Web Presence Consulting on April 12, 2010, 02:42:53 PM
Quote from: rngrdanny22 on April 11, 2010, 11:40:56 AM
Great looking mod!

Any chance for an upgrade to 2.0RC3?

Thanks!

Works just fine on my SMF 2.0 RC3 system however I don't remember if I had to do anything extra to get it working on this version.
Title: Re: PageEar (Page peel)
Post by: nashamiki on May 14, 2010, 03:32:18 AM
Hello, I run a residents community forum at http://ecovoice.net/forum with SMF 1.1.7.

I've installed and activated PageEar through the "packages" section in admin and done all the settings there but it just does not show up.

Any help on this please?

Thanks...Mokhsein
Title: Re: PageEar (Page peel)
Post by: Casa Grande on August 09, 2010, 09:11:37 AM
love the mod, works great....is there a way to preload the images so there's no lag time when loading the larger image?
Title: Re: PageEar (Page peel)
Post by: Erron on June 28, 2011, 08:33:37 AM
Great mod, love it, strange thing just started happening for me though, only people who are NOT logged in can see it, logged in forum members cant see it anymore (unless they log out).

any ideas?
Title: Re: PageEar (Page peel)
Post by: Jessica. on June 28, 2011, 10:08:13 AM
this looks like an interesting mod :P *tries out*
Title: Re: PageEar (Page peel)
Post by: KiLLuMiNaTi-7- on June 28, 2011, 03:34:57 PM
Quote from: Erron on June 28, 2011, 08:33:37 AM
Great mod, love it, strange thing just started happening for me though, only people who are NOT logged in can see it, logged in forum members cant see it anymore (unless they log out).

any ideas?

This mod has some compatibly problems with other javascript scripts. Do you have any other javascript mods or any other mods that only show when your logged in?
Title: Re: PageEar (Page peel)
Post by: Erron on June 29, 2011, 08:14:13 AM
Quote from: KiLLuMiNaTi-7- on June 28, 2011, 03:34:57 PM
Quote from: Erron on June 28, 2011, 08:33:37 AM
Great mod, love it, strange thing just started happening for me though, only people who are NOT logged in can see it, logged in forum members cant see it anymore (unless they log out).

any ideas?

This mod has some compatibly problems with other javascript scripts. Do you have any other javascript mods or any other mods that only show when your logged in?

my fault, didnt apply to my new theme, reinstalled with new theme changes and all good now. /facepalm
Title: Re: PageEar (Page peel)
Post by: teos55 on July 14, 2011, 02:45:57 PM
SMF 2.0 default theme simple portal 2.3.3

  Installed Pageear 2.1 . Upladed images to proper dirs and no errors system wise.  But when I use the w3c markup validaiton service
I got so many erros related to pageear ...

Some of them:

"Line 51, Column 18: cannot generate system identifier for general entity "pagearBigImg"
queryParams += "&pagearBigImg="+escape(pagearBigImg);

An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".

Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.

If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.

Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed."




"Line 51, Column 30: reference not terminated by REFC delimiter
queryParams += "&pagearBigImg="+escape(pagearBigImg);

If you meant to include an entity that starts with "&", then you should terminate it with ";". Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text."


" Line 51, Column 30: reference to entity "pagearBigImg" for which no system identifier could be generated
queryParams += "&pagearBigImg="+escape(pagearBigImg);

This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details."



and goes on...

any help.   ( the mod functions properly and no erros in the error log)   
Title: Re: PageEar (Page peel)
Post by: desibees on July 29, 2011, 05:34:12 PM
Hi. Great Mod. can you please help me so this strange thing could start happening to me please?

Quote from: Erron on June 28, 2011, 08:33:37 AM
Great mod, love it, strange thing just started happening for me though, only people who are NOT logged in can see it, logged in forum members cant see it anymore (unless they log out).

I want only guests be able to see the peel. Please help
Title: Re: PageEar (Page peel)
Post by: desibees on July 31, 2011, 12:23:25 AM
Bump
Any help please?
Title: Re: PageEar (Page peel)
Post by: Casa Grande on August 11, 2011, 01:26:50 PM
Where's the admin??  running 2.0
Title: Re: PageEar (Page peel)
Post by: WasdMan on July 04, 2012, 05:12:11 AM
Hungarian Language:

ISO:
Quote<file name="$languagedir/Modifications.hungarian.php" error="skip">
      <operation>
         <search position="end" />
         <add><![CDATA[
$txt['pageear_settings_title'] = 'Oldal Fül';
$txt['pageear_enable'] = 'Engedélyezed az Oldal Fül módot';
$txt['pageear_surl'] = 'Kis kép URL címe<br /><span class="smalltext">(http://smf-portal.hu/small_image.jpg)<br />(100x100px kell legyen)</span>';
$txt['pageear_burl'] = 'Nagy kép URL címe<br /><span class="smalltext">(http://smf-portal.hu/big_image.jpg)<br />(500x500px kell legyen)</span>';
$txt['pageear_mirror_effect'] = 'Tükör effekt';
$txt['pageear_jump_to'] = 'Ugorjon az URL címre<br /><span class="smalltext">(http://smf-portal.hu)</span>';
$txt['pageear_open_new'] = 'Megnyitás ugyanabban vagy új ablakban<br /><span class="smalltext">(Haználd a "new" vagy "self" kifejezéseket)</span>';
$txt['pageear_on_load'] = 'Automatikus Oldal Fül megynitása';
$txt['pageear_close_onload'] = 'Oldal Fül bezárása másodpercben megadva<br /><span class="smalltext">(Csak akkor módosítsd, ha a fenti opció kipipálva)</span>';
$txt['pageear_lt'] = 'Oldal Fül megjelenítése a bal felső sarokban';
$txt['pageear_rt'] = 'Oldal Fül megjelenítése a jobb felső sarokban';
$txt['pageear_soft_fade'] = 'Oldal Fül képének elhalványítása ha teljesen betöltött a kép<br /><span class="smalltext">(0-5: 0=ki, 1=lassú, 5=gyors )</span>';]]></add>
      </operation>
   </file>

UTF8:
Quote<file name="$languagedir/Modifications.hungarian-utf8.php" error="skip">
      <operation>
         <search position="end" />
         <add><![CDATA[
$txt['pageear_settings_title'] = 'Oldal Fül';
$txt['pageear_enable'] = 'Engedélyezed az Oldal Fül módot';
$txt['pageear_surl'] = 'Kis kép URL címe<br /><span class="smalltext">(http://smf-portal.hu/small_image.jpg)<br />(100x100px kell legyen)</span>';
$txt['pageear_burl'] = 'Nagy kép URL címe<br /><span class="smalltext">(http://smf-portal.hu/big_image.jpg)<br />(500x500px kell legyen)</span>';
$txt['pageear_mirror_effect'] = 'Tükör effekt';
$txt['pageear_jump_to'] = 'Ugorjon az URL címre<br /><span class="smalltext">(http://smf-portal.hu)</span>';
$txt['pageear_open_new'] = 'Megnyitás ugyanabban vagy új ablakban<br /><span class="smalltext">(Haználd a "new" vagy "self" kifejezéseket)</span>';
$txt['pageear_on_load'] = 'Automatikus Oldal Fül megynitása';
$txt['pageear_close_onload'] = 'Oldal Fül bezárása másodpercben megadva<br /><span class="smalltext">(Csak akkor módosítsd, ha a fenti opció kipipálva)</span>';
$txt['pageear_lt'] = 'Oldal Fül megjelenítése a bal felső sarokban';
$txt['pageear_rt'] = 'Oldal Fül megjelenítése a jobb felső sarokban';
$txt['pageear_soft_fade'] = 'Oldal Fül képének elhalványítása ha teljesen betöltött a kép<br /><span class="smalltext">(0-5: 0=ki, 1=lassú, 5=gyors )</span>';]]></add>
      </operation>
   </file>
Title: Re: PageEar (Page peel)
Post by: samuelongui on August 30, 2012, 11:07:47 AM
I have installed it correctly and is working, but if I change URL to jump to, pageear doesn't shows the effect. how to solve it?

Thanks
Title: Re: PageEar (Page peel)
Post by: samuelongui on December 12, 2012, 07:06:28 AM
it only works if jump-to-url is muy forum index.

http://www.universolinux.com/index.php?action=forum
Title: Re: PageEar (Page peel)
Post by: SlyBaldGuy on January 29, 2014, 07:19:59 PM
Hey everyone.  I'm trying to add the PageEar mod and I get the attached parse error when I apply the mod according to the instructions.

I have also attached my index.template.php file with the mod applied.

Any suggestions?
Title: Re: PageEar (Page peel) xhtml error fix
Post by: bolubeyi61 on July 02, 2014, 03:11:19 AM
PageEar (Page peel) xhtml error fix
index.template.php
Find:
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>';


Replace With:
var queryParams = "pagearSmallImg="+escape(pagearSmallImg);
queryParams += "&amp;pagearBigImg="+escape(pagearBigImg);
queryParams += "&amp;pageearColor="+pageearColor;
queryParams += "&amp;jumpTo="+escape(jumpTo);
queryParams += "&amp;openLink="+escape(openLink);
queryParams += "&amp;mirror="+escape(mirror);
queryParams += "&amp;copyright="+escape(copyright);
queryParams += "&amp;speedSmall="+escape(speedSmall);
queryParams += "&amp;openOnLoad="+escape(openOnLoad);
queryParams += "&amp;closeOnLoad="+escape(closeOnLoad);
queryParams += "&amp;setDirection="+escape(setDirection);
queryParams += "&amp;softFadeIn="+escape(softFadeIn);</script>';


Demo: http://www.spinabifidaturkey.com/