Joomla! Discussion Forums



It is currently Sun Nov 22, 2009 3:35 am (All times are UTC )

 


Forum rules

Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
Posted: Sun Jan 07, 2007 7:51 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Wed Nov 15, 2006 5:13 pm
Posts: 72
I've recently downloaded a template by Volcanus for my new site http://www.comegetowned.net that gives me the option to change template colors from the front end.

Does anyone know how to change the default color from Blue to Red?

Here's my template files:

index
Quote:
php
/****************************************************************************************
* Netcom-Factory - A Template by Netcom-Factory digital Solutions
* @web http://www.netcom-factory.de/
* @copyright (C) 2004-2007 by Netcom-Factory digital Solutions - All rights reserved!
*
* @template version 9.2 by Netcom-Factory digital Solutions
****************************************************************************************/
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/nf_stylechange.php");
$iso = split( '=', _ISO );
echo '';
?>



if($my->id) {
    if($_REQUEST["task"] == "edit" || $_REQUEST["task"] == "new") {
include ("editor/editor.php"); initEditor(); }
}
mosShowHead();

$def_width = "1024x768";
$def_font = "default";
$def_color = "blue";

include ("templates/".$cur_template."/nf_config.inc.php");
require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/nf_styleload.php"); ?>
















 






 





0) { ?>






0) { ?>














0) { ?>






0) { ?>










username ) { echo $nf_welcomeuser; } else { echo $nf_welcomeguest; } ?>





0) { ?>
0) { ?>

0) || ( mosCountModules ('user2')>0)) { ?>





0) || ( mosCountModules ('user6')>0)) { ?>



0) { ?>


0) { ?>
0) { ?>



0) { ?>
0) { ?>


















nf_stylechange:

Quote:
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
$cookie_pre = "vulcanus07_";
$cookie_time = time()+31536000;

if (isset($_GET['tpl_color'])) {
$c_color = $_GET['tpl_color'];
$_SESSION[$cookie_pre. 'tpl_color'] = $c_color;
setcookie ($cookie_pre. 'tpl_color', $c_color, $cookie_time, '/', false);
}

if (isset($_GET['tpl_font'])) {
$c_font = $_GET['tpl_font'];
$_SESSION[$cookie_pre. 'tpl_font'] = $c_font;
setcookie ($cookie_pre. 'tpl_font', $c_font, $cookie_time, '/', false);
}

if (isset($_GET['tpl_width'])) {
$c_width = $_GET['tpl_width'];
$_SESSION[$cookie_pre. 'tpl_width'] = $c_width;
setcookie ($cookie_pre. 'tpl_width', $c_width, $cookie_time, '/', false);
}
?>


nf_styleload
Quote:
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
$tpl_font = "f-" . $def_font;
$tpl_width = "w-" . $def_width;
$tpl_color = $def_color;
$cookie_pre = "vulcanus07_";

if (isset($_SESSION[$cookie_pre. 'tpl_color'])) {
$tpl_color = $_SESSION[$cookie_pre. 'tpl_color'];
} elseif (isset($_COOKIE[$cookie_pre. 'tpl_color'])) {
$tpl_color = $_COOKIE[$cookie_pre. 'tpl_color'];
}

if (isset($_SESSION[$cookie_pre. 'tpl_font'])) {
$tpl_font = $_SESSION[$cookie_pre. 'tpl_font'];
} elseif (isset($_COOKIE[$cookie_pre. 'tpl_font'])) {
$tpl_font = $_COOKIE[$cookie_pre. 'tpl_font'];
}

if (isset($_SESSION[$cookie_pre. 'tpl_width'])) {
$tpl_width = $_SESSION[$cookie_pre. 'tpl_width'];
} elseif (isset($_COOKIE[$cookie_pre. 'tpl_width'])) {
$tpl_width = $_COOKIE[$cookie_pre. 'tpl_width'];
}

$tpl_url = $_SERVER['PHP_SELF'] . querystring();

function querystring() {
  $to_ignore = array("tpl_color","tpl_font","tpl_width");
  if (!empty($_SERVER['QUERY_STRING'])) {
      $explode = explode("&", $_SERVER['QUERY_STRING']);
      $explode2 = array();
      foreach ($explode as $value) {
          $value_explode = explode("=", $value);
          if (!in_array($value_explode[0], $to_ignore)) {
            array_push($explode2, $value);
          }
      }
      if (count($explode2) != 0) {
          $new_qs = implode("&", $explode2);
      } else {
          return "?";
      }
      return "?" . $new_qs . "&";
  } else {
      return "?";
  }
}
?>



and finally nf_config

Quote:
/****************************************************************************************
* Netcom-Factory - A Template by Netcom-Factory digital Solutions
* @web http://www.netcom-factory.de/
* @copyright (C) 2004-2007 by Netcom-Factory digital Solutions - All rights reserved!
*
* @config version 1.3 by Netcom-Factory digital Solutions
****************************************************************************************/
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

####### COPYRIGHT #########
$start_jahr = "2004"; // Startjahr (zB. 2004 - ....)
$akt_jahr = date("Y");
if($akt_jahr <= $start_jahr) $jahr = $start_jahr;
else $jahr = "$start_jahr - $akt_jahr";
$nf_copyright = "Design Template \"Vulcanus\" - © by Netcom-Factory digital Solutions $jahr";

####### WILLKOMMENSGRUSS #########
$nf_welcomeuser = "Willkommen zurück - $my->username";
$nf_welcomeguest = "Willkommen auf $mosConfig_sitename";

####### OVERWRITE SYSTEM BUTTONS ? #########
$use_stylebuttons = 'Yes';
?>



I'm sorry for posting so many files. I just don't know which one it is or what to change because I'm not too bright.  :-\

If anyone helps me, thanks so much in advance!


Top
  E-mail  
 
Posted: Sun Jan 07, 2007 1:26 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Sun Aug 21, 2005 2:25 pm
Posts: 4103
Location: Somewhere Near Here
Have you tried changing the "blue" for "red" in this part of the template?

Code:
mosShowHead();

$def_width = "1024x768";
$def_font = "default";
$def_color = "blue";

_________________
Love good music, especially the blues? http://www.jennifermarriott.com
Need a Joomla Consultant? http://www.marpomultimedia.com
JOOMLA ROCKS


Top
  E-mail  
 
Posted: Sun Jan 07, 2007 3:23 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Wed Nov 15, 2006 5:13 pm
Posts: 72
I told you I'm not bright.  ;D

Thanks very much.


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group