Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.