phplayers and CSS: help needed

Hilfe zu Modulen und Tags
miketmc

phplayers and CSS: help needed

Post by miketmc »

Maybe I´m to stupid to understand and to make changes:

1. copy the CSS into my layout-section
2. need help: where are the CSS-Tags to change colors (name of the tags)


e.g. like this:

No.|  name of the CSS-Tag
-----------------------------------------
1  |
2  |
3  |
4  |
5  |
6  |




Thanks to help me. Could imagine that is interesseted for some other people, too!





[attachment deleted by admin]
Last edited by miketmc on Tue Jul 05, 2005 6:26 am, edited 1 time in total.
miketmc

Re: phplayers and CSS: help needed

Post by miketmc »

Is there no one, who can give me little help about that question? It´s urgent for me, cause I do not find it out by myself.
piratos

Re: phplayers and CSS: help needed

Post by piratos »

Die Styles für PHPLayers liegen in modules/PHPLayers/phplayers/layersmenu-cms.css, da kannst du in den Stylesheetteil reinschreiben was du willst, das wird von dieser css überschrieben (da gibt es bereits mehrere Postings).
miketmc

Re: phplayers and CSS: help needed

Post by miketmc »

piratos wrote: Die Styles für PHPLayers liegen in modules/PHPLayers/phplayers/layersmenu-cms.css, da kannst du in den Stylesheetteil reinschreiben was du willst, das wird von dieser css überschrieben (da gibt es bereits mehrere Postings).
Sorry, aber das glaube ich nicht!

genau dahinein habe ich mit ja die CSS-Anweisungen aus den CSS-Sektion con CMSMS reinkopiert (güne Variante, weil die zufällig gepasst hat für meine Seite! s. Bild css.jpg


Mit sind die Begrifflichkeiten, die nun das aussehen des Menüs bestimmen nicht klar (s. Screenshots im letzten Post!)


[attachment deleted by admin]
piratos

Re: phplayers and CSS: help needed

Post by piratos »

Die beschriebene CSS - Datei ansehen und nach Wunsch ändern - wenn du das nicht glaubst wirst du ewig fummeln.

Das sind die wichtigsten Eintragungen:

.horbar {
color: black;
background-color: #FFFFE4;
/*border: 2px outset #cecac1;*/
}
.horbaritem {
float: left;
white-space: nowrap;
font-family: verdana, geneva, arial, helvetica, sans-serif;
font-size: 13px;
font-weight: bold;
}
.horbaritem a {
display: block;
text-decoration: none;
}
.horbaritem a:link {
color: #000000;
text-decoration: none;
}
.horbaritem a:visited {
color: #000000;
text-decoration: none;
}
.horbaritem a:hover {
color: #ffffff;
background-color: #4b6983;
text-decoration: none;
}
.horbaritem a:active {
color: #ff0000;
text-decoration: none;
}

.verbar {
color: black;
background-color: #EDF2F5;
}

.submenu {
position: absolute;
left: 0;
top: 0;
visibility: hidden;
}

.subframe {
position: relative;
display: block;
background-color: #EDF2F5;
border: 1px solid #64879d;
}

.item {
padding: 3px;
text-align: left;
white-space: nowrap;
}

.separator {
background-color: #ff0000;
border-top: 1px solid #9e9a91;
border-bottom: 1px solid #ffffff;
margin: 2px 1px 2px 1px;    /* top right bottom left */
height: 0;
font-size: 1px;
line-height: 0
}

.item a {
position: relative;
display: block;
text-decoration: none;
}

.item a:link {
color: #000000;
text-decoration: none;
}

.item a:visited {
color: #000000;
text-decoration: none;
}

.item a:hover {
color: #ffffff;
background-color: #4b6983;
text-decoration: none;
}

.item a:active {
color: #ff0000;
text-decoration: none;
}

.item .fwdarr {
position: absolute;
top: 5px;
right: 7px;
}

/*----- Tree Menu Section  ---------------------- */
.treemenudiv {
display: block;
white-space: nowrap;
}
miketmc

Re: phplayers and CSS: help needed

Post by miketmc »

Super, das sind ja die Dinge, die ich gesucht habe!!
Die sind aber doch mit dem Template verknüpft, so wie ich vermutet habe und können dann dort geändert werden.

Danke für die Hilfe!
piratos

Re: phplayers and CSS: help needed

Post by piratos »

Die CSS Datei wird im Module PHPLayers verarbeitet , innerhalb des Stylesheetsets des Templates wäre das  doppelt:

Code: Select all

function ContentStylesheet(&$stylesheet)
	{
		if ($this->cms)
		{
			$config = $this->cms->config;
			@ob_start();
			@readfile(dirname(__FILE__).'/phplayers/layersmenu-cms.css');
			$stylesheet = @ob_get_contents() . $stylesheet;
			@ob_end_clean();
		}
	}
miketmc

Re: phplayers and CSS: help needed

Post by miketmc »

OK, verstanden.

Dann muß ich aber doch 2 CSS-Dateien verwalten:
eine allgemeine (so mit body, h1,...) und eben die mit den Menü-Definitonen (also die layermenu-cms.css)

Oder??
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: phplayers and CSS: help needed

Post by Ted »

Moving to the German forum, since it's not doing anyone else any good here...
piratos

Re: phplayers and CSS: help needed

Post by piratos »

Einfachste Methode das zu verhindern wäre die Streichung der CSS Einbindung im Modul selbst und die CSS dann in das Template zu kopieren, kann dann nicht doppelt laufen, wäre dann aber für alle Templates zu machen.

Das ist dann auch sinnvoll, wenn man für ein Web mehr als ein Template verwendet, in denen die die Styles unterschiedlich sind. Bisher ist das schöne System zwar Multitemplatefähig , aber an PHPLayers mit seiner einzigen CSS - Datei hat wohl keiner gedacht.

Eine andere Methode wäre es beim Modul einen zusätzlichen Parameter einzuführen, der die Übergabe des Namens einer CSS - Datei erlaubt.
miketmc

Re: phplayers and CSS: help needed

Post by miketmc »

.... oder eine noch bessere Methode wäre:

ein anderes, besseres(??) Menüsystem....

(um sowas einzubinden fehlen mir aber die nötigen Programmier-Kenntnisse!)
piratos

Re: phplayers and CSS: help needed

Post by piratos »

Immer diese Anpielungen.

Habe Wishy vorgeschlagen das Modul PHPLayers zu modifizeren, dass als zusätzlicher Paremeter cdd="Name_der_CSS_Datei" möglich ist.

Die Änderung im Modul selbst ist simpel:

Code: Select all

function ContentStylesheet(&$stylesheet)
	{
		if ($this->cms)
		{       $css = isset($params['css']) ? $params['css'] : 'layersmenu-cms.css';
			$config = $this->cms->config;
			@ob_start();
			@readfile(dirname(__FILE__).'/phplayers/'.$css);
			$stylesheet = @ob_get_contents() . $stylesheet;
			@ob_end_clean();
		}
	}
Die CSS - Datei müsste dann in modules/PHPLayers/phplayers abgelegt sein. Wird kein Parameter CSS übergeben, dann wird die Standarddatei verwendet.
miketmc

Re: phplayers and CSS: help needed

Post by miketmc »

ok, ok

war ne Anspielung!!

Hast Du nicht irgendwo mal geschrieben, Du arbeitest an einem Menüsystem, dass der Hammer wird :-)  ??
piratos

Re: phplayers and CSS: help needed

Post by piratos »

Genau, ich habe auch irgendwo geschrieben, dass uich erst dann weiter arbeiten kann, wenn ich meine neue Debian CD erhalte und die ist gerade gekommen.
miketmc

Re: phplayers and CSS: help needed

Post by miketmc »

Klasse,

dann dürfen wir ja wider gespannt sein!!
Post Reply

Return to “Module und Tags”