Page Curl effect in phpbb3

Support for PhpBB3. Post here to get help with any phpBB3 related issue here
There is no support here! Only Read Access!
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.
Else your topic may be ignored or locked!
Locked
BAT
BBCoder II
BBCoder II
Posts: 44
Joined: 03 Apr 2010, 19:25
Contact:

Page Curl effect in phpbb3

Post by BAT »

I don't know if I am asking this question in correct section and in correct way ....

My question is :

how to add a page curl effect in phpbb3 boards index page ?

I am using phpbb3.0.6 ...
Last edited by BAT on 24 Jun 2010, 15:38, edited 1 time in total.
I am a Novice and I'm always confused . :?
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Page Curl effect in phpbb3

Post by cisco007 »

You mean something like this?
author: Steve©
Description: Found this wonderfull page peel effect tutorial on a website ,cant remember where now but pulled the code and addapted it to work with phpBB3 :geek: ,tested and working in Firefox,IE7,safari web browsers
phpBB3 version 3.0.7 PL
prosilver instructions
[spoiler]open styles/prosilver/template/overall_header.html
find:

Code: Select all

</head>
add before:

Code: Select all

<script type="text/javascript"> 
$(document).ready(function(){

//Page Flip on hover

	$("#pageflip").hover(function() {
		$("#pageflip img , .msg_block").stop()
			.animate({
				width: '125px', 
				height: '123px'
			}, 500); 
		} , function() {
		$("#pageflip img").stop() 
			.animate({
				width: '50px', 
				height: '52px'
			}, 220);
		$(".msg_block").stop() 
			.animate({
				width: '50px', 
				height: '50px'
			}, 200);
	});

	
});
</script> 
find:

Code: Select all

<div id="wrap">
add after:

Code: Select all

    <!-- IF S_ENABLE_FEEDS -->
<div id="pageflip">
	<!-- IF S_ENABLE_FEEDS_OVERALL --><a href="{U_FEED}" title="{L_FEED} - {SITENAME}"><!-- ENDIF -->
		<img src="{T_THEME_PATH}/images/page_flip.png" alt="!" />
		<span class="msg_block">Subscribe via RSS</span>
	</a>
</div>
    <!-- ENDIF -->
open styles/prosilver/theme/colours.css at the bottom add:

Code: Select all

/* --- pageflip --- */
#pageflip {
position:fixed;
float: right;
}
#pageflip img {
	width: 50px; height: 52px;
	z-index: 99;
	position:fixed;
	right: 0; top: 0;
	-ms-interpolation-mode: bicubic;
}
#pageflip .msg_block {
	width: 50px; height: 50px;
	position:fixed;
	z-index: 50;
	right: 0; top: 0;
	background: url("{T_THEME_PATH}/images/subscribe.png") no-repeat right top;
	text-indent: -9999px;
}
open styles/prosilver/theme/common.css
find:

Code: Select all

#wrap {
	padding: 0 20px;
	min-width: 650px;
replace with:

Code: Select all

#wrap {
	padding: 0 20px;
	min-width: 650px;	
        margin: 0 30px;
[/spoiler]
now upload these 2 images your prosilver/theme/images/* folder
peelPro.zip
Refresh template and theme for prosilver, clear web browser ;)
Screenshots:
[hsimg]http://www.djsimg.com/images/50772770_0310_feed.png[/hsimg]
[hsimg]http://www.djsimg.com/images/12382095_0310_feed2.png[/hsimg]
subsilver2 instructoins
[spoiler]open styles/subsilver2/template/overall_header.html
find:

Code: Select all

</head>
add before:

Code: Select all

<script type="text/javascript">
    $(document).ready(function(){

    //Page Flip on hover

       $("#pageflip").hover(function() {
          $("#pageflip img , .msg_block").stop()
             .animate({
                width: '125px',
                height: '123px'
             }, 500);
          } , function() {
          $("#pageflip img").stop()
             .animate({
                width: '50px',
                height: '52px'
             }, 220);
          $(".msg_block").stop()
             .animate({
                width: '50px',
                height: '50px'
             }, 200);
       });

       
    });
</script>
find:

Code: Select all

<div id="wrapheader">
add after:

Code: Select all

        <!-- IF S_ENABLE_FEEDS -->
    <div id="pageflip">
       <!-- IF S_ENABLE_FEEDS_OVERALL --><a href="{U_FEED}" title="{L_FEED} - {SITENAME}"><!-- ENDIF -->
          <img src="{T_THEME_PATH}/images/page_flip.png" alt="!" />
          <span class="msg_block">Subscribe via RSS</span>
       </a>
    </div>
        <!-- ENDIF -->
open styles/subsilver2/theme/stylesheet.css
at the bottom add:

Code: Select all

/* --- pageflip --- */

#pageflip {
    position:fixed;
    float: right;
}
#pageflip img {
    width: 50px; height: 52px;
    z-index: 99;
    position:fixed;
    right: 0; top: 0;
    -ms-interpolation-mode: bicubic;
}
#pageflip .msg_block {
    width: 50px; height: 50px;
    position:fixed;
    z-index: 50;
    right: 0; top: 0;
    background: url('./images/subscribe.png') no-repeat right top;
    text-indent: -9999px;
}
[/spoiler]
now upload these 2 images your subsilver2/theme/images/* folder
peelsub.zip
Refresh template for subsilver2, clear web browser ;)
Screenshots:
[hsimg]http://www.djsimg.com/images/85929861_0310_peel.png[/hsimg]
[hsimg]http://www.djsimg.com/images/46420698_0310_speel.png[/hsimg]

you can always modify it for your needs!
BAT
BBCoder II
BBCoder II
Posts: 44
Joined: 03 Apr 2010, 19:25
Contact:

Re: Page Curl effect in phpbb3

Post by BAT »

You are Great ......... Yes I was Asking this ...........
:D
I am a Novice and I'm always confused . :?
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Page Curl effect in phpbb3

Post by cisco007 »

just remember this is Steve©'s snippet, i just posted it here!
Locked