Jump to content

Cutenews and skinning help.


mixedtape

Recommended Posts

Website: http://cgi.mixed-tape.org/index.php

 

Problem:

 

So when I go to switch to skin 2, it comes up fine. But, when I go to click on the "1" for comments on the blog, it brings me back to skin 1. Also, there is an error in my cookiecheck.php on line 11?

 

<?php
$total_skins = 2;
$default_skin = 1;

if (isset($_GET['newskin'])) $newskin = (int)$_GET['newskin'];
elseif (isset($_COOKIE['skin'])) $newskin = (int)$_COOKIE['skin'];
else $newskin = $default_skin;

if (empty($newskin) || $newskin < 1 || $newskin > $total_skins) $newskin = $default_skin;

setcookie('skin', $newskin, time()+(86400*365), '/');

$skin = $newskin;

$headervar = "/my/path/here/mixed-tape.org/nav/header";
$extension = ".php";
?>

 

 

Link to comment
https://forums.phpfreaks.com/topic/140096-cutenews-and-skinning-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.