[SNIPPET] Page Loader

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

[SNIPPET] Page Loader

Post by Stoker »

A page loader that is displayed when you navigate.
Like here: http://www.gaming-arcade.org

Open styles/prosilver/template/overall_header.html
Find:

Code: Select all

/**
	* Find a member
	*/
Add before:

Code: Select all

window.onbeforeunload = loader;

	onunload_functions.push('loader()');

	function loader()
	{
		var l = document.getElementById('loader');
		if (l)
		{
			l.style.display = 'block';
		}				
	}
Find:

Code: Select all

<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">
After add:

Code: Select all

<div id="loader">
	<span>Page Loading...</span>
</div>
Open styles/prosilver/theme/colours.css
At the very bottom add:

Code: Select all

#loader {
	top: 40%;
	left: 40%;
	position: fixed;
	z-index: 900;
	display: none;	
	background-color: #fefefe;
	border: 1px solid #505c65;
	width: 20%;
	padding: 0.6em;
	text-align: center;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;	
}

#loader span {
	background: url("{T_THEME_PATH}/images/loader.gif") 0 40% no-repeat;
	padding-left: 26px;
	vertical-align: bottom;
	font-weight: bold;
	font-size: 1.4em;
	z-index: 900;
}
Upload this image to: styles/prosilver/theme/images/
Image

Re: Page Loader

Post by kevinviet »

Thank you very much Stoker, You rock! :thumb: we're missing a lot stuffs from you.

[SNIPPET] Page Loader

Post by Blackwolf »

Awesome....so simple but classy!

[SNIPPET] Page Loader

Post by martin123456 »

And for those who want to use another image ;) you can create them on here http://preloaders.net/en/all

i like the xp loader bar lol

[SNIPPET] Page Loader

Post by Blackwolf »

[SNIPPET] Page Loader

Post by Solidjeuh »

Very nice! Thank you!!

[SNIPPET] Page Loader

Post by RMcGirr83 »

That looks vaguely familiar and yet no credits. :?

[SNIPPET] Page Loader

Post by Stoker »

RMcGirr83 wrote:That looks vaguely familiar and yet no credits. :?
Dont worry, You dont have to give me credit :lol:

[SNIPPET] Page Loader

Post by RMcGirr83 »

nub :P