Jump to content
InvisionCommunity.de - Der Deutsche Invision Community Support
Sign in to follow this  
kdt

Frage zur CSS Einbindung

Recommended Posts

Hallo,

in meinem Board (noch 2.2.2 wegen den vielen Mods) habe ich die CSS Datei vollständig im HTML zu stehen. Sieht dann so aus:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />

<link rel="shortcut icon" href="favicon.ico" />

<title>Unser Forum</title>


<style type="text/css">

	html

{

	overflow-x: auto;

}


body

{

	background: #7E99C4;

	color: #222;

	font-family: Verdana, Tahoma, Arial, Trebuchet MS, Sans-Serif, Georgia, Courier, Times New Roman, Serif;

	font-size: 11px;

	line-height: 135%;

	margin: 0px;

	padding: 0px;

	text-align: center;

}


.... usw. ....
In meinem Testforum auf dem gleichem Server steht das dann aber so:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />

<link rel="shortcut icon" href="favicon.ico" />

<title>Testboard</title>


<style type="text/css" media="all">


@import url(http://testboard.de/forum/style_images/css_7.css);


</style> 


</head> 

<body>
In der Datei skin_global.php steht drinne:
//===========================================================================

// <[url="https://www.invisionpower.com/clients/index.php?app=nexus&module=promotion&section=referral&id=5636&direct=aHR0cDovL3d3dy5pbnZpc2lvbnBvd2VyLmNvbS8%3D"]IPS[/url]:css_external:desc::trigger:>

//===========================================================================

function css_external($css="") {

$IPBHTML = "";

//--starthtml--//

$IPBHTML .= "<style type=\"text/css\" media=\"all\">

" . (($this->ipsclass->vars['board_url'] != '' AND $this->ipsclass->vars['board_url'] != '.') ? ("

@import url({$this->ipsclass->vars['board_url']}/style_images/css_{$css}.css);

") : ("

@import url(style_images/css_{$css}.css);

")) . "

</style>";

//--endhtml--//

return $IPBHTML;

}

Variable board_url ist immer in der conf-global.php gesetzt.

Wie kann ich denn das beeinflussen, dass der in beiden Boards die CSS Datei importiert wie im Beispiel 2 ?

Im ACP habe ich schon gesucht, kann aber weder unter CPU noch unter GLOBAL was finden.

Viele Grüße

Axel

Edited by kdt

Share this post


Link to post

Ganz einfach...

  • Adminbereich
  • LOOK & FEEL
  • Neben Deinem Skinset auf "Edit Settings..." klicken
  • Cache CSS to text files?

Diese Option einfach auf "Yes" setzen, fertig.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×