PDA

View Full Version : [How To] Other template for Admin


KillerDream
02-04-2009, 09:41 AM
Hello,

I want to make a new template for my photoblog without disturbing my visitors.
I thought, is it possible to make something, or maybe it exist already.
To configured Pixelpost that when I'm logged in as Admin that I see a other template than the visitors?
With this mod I can work on a new template.

Or maybe some code that sees my IP and give me a other template.
That's is also good.

I have only acknowledge about HTML and CSS.
Can someone help me with this problem/idea? :)

Dennis
02-05-2009, 05:23 AM
Search for the line in the index.php:

if ($cfgrow['markdown'] == 'T') {
require("includes/markdown.php");
}


add the following code below that code:


if ($_SERVER['REMOTE_ADDR']=='127.0.0.0') // replace with your own address
{
$cfgrow['template']='templatefolder'; // replace with your template folder
}


Based on your IP it will change the template.

KillerDream
02-05-2009, 01:22 PM
Thanks, it works! :D

Dennis
02-05-2009, 06:55 PM
Of course it does.... :P