News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

PageEar (Page peel)

Started by KiLLuMiNaTi-7-, August 07, 2008, 07:51:33 AM

Previous topic - Next topic

mashby

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']
Always be a little kinder than necessary.
- James M. Barrie

Sabre™

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
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


digit

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!




Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

Sabre™

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
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


digit

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


Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

Sabre™

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 :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


digit

#26
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)
Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

digit

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.


Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

KiLLuMiNaTi-7-

#28
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.


cerberos

Ty for the quick reply :)

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

A must Mod :)

jmil

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


KiLLuMiNaTi-7-

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



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

mashby

Always be a little kinder than necessary.
- James M. Barrie

jmil

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



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

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


KiLLuMiNaTi-7-

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



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

TheDel

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.

jmil

+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.


mashby

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";
Always be a little kinder than necessary.
- James M. Barrie

cerberos

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 :)

KiLLuMiNaTi-7-

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  :)

Advertisement: