Pixelpost Forum

Pixelpost Forum (http://www.pixelpost.org/forum/index.php)
-   Hacks and Modifications (http://www.pixelpost.org/forum/forumdisplay.php?f=16)
-   -   [How To] Other template for Admin (http://www.pixelpost.org/forum/showthread.php?t=10157)

KillerDream 02-04-2009 09:41 AM

[How To] Other template for Admin
 
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:
PHP Code:

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


add the following code below that code:

PHP 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


All times are GMT. The time now is 06:40 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.