![Show/hide content [x]](themes/dragonfly/images/minus.png) Navigation
Home Community News Search Projekte
![Show/hide content [x]](themes/dragonfly/images/minus.png) Languages
![Show/hide content [x]](themes/dragonfly/images/minus.png) Design
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.
|
Design 2, oder: unterschiedliche themes je modul
|
View previous topic :: View next topic |
| Author |
Message |
mskphi Agent


Offline Joined: Jul 15, 2004 Posts: 99
|
Posted: 08.01.2005 22:26 Post subject: Design 2, oder: unterschiedliche themes je modul |
|
hab auch mal ne design-spezifische frage:
hat jemand schon mal versucht, beim aufruf eines bestimmten modules automatisch das gesamt cpg-nuke-design automatisch zu wechseln? ich denke, man müsste da irgendwo manuell manipulieren, aber an welcher stelle??
ich will beim aufruf des coppermine-moduls das theme ändern (also eine modifizierte theme version -insbesondere was die farben angeht- benutzen. beim rücksprung nach home oder in ein beliebiges anderes modul soll wieder das standard-theme benutzt werden...
hat jemand sowas in der art schon mal gemacht? hat jemand ne idee, wo und wie das gehen könnte?
mskphi's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Apache1.3.33/PHP 4.4.7/MySQL 4.0.27/CPG 9.1.2.1
Last edited by mskphi on 11.01.2005 01:48; edited 1 time in total |
|
| Back to top |
|
 |
Ertan Webmaster


Offline Joined: Mar 19, 2004 Posts: 1264 Location: Germany
|
|
| Back to top |
|
 |
mskphi Agent


Offline Joined: Jul 15, 2004 Posts: 99
|
Posted: 09.01.2005 21:10 Post subject: Re: Design 2 ;) |
|
erstmal danke für die schnelle antwort, ertan. das problem ist jetzt (habs probiert und es geht), dass jeder weitere klick wieder das alte theme anzeigt. also z.b. ein klick auf ein bild baut die seite neu auf und ändert das theme wieder zurück. oder hab ich dich falsch verstanden?
kann ich nicht in der index.php mit einer if-abfrage auf das geladene modul das theme ändern, oder ist es da schon zu spät?
mskphi's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Apache1.3.33/PHP 4.4.7/MySQL 4.0.27/CPG 9.1.2.1
|
|
| Back to top |
|
 |
Ertan Webmaster


Offline Joined: Mar 19, 2004 Posts: 1264 Location: Germany
|
Posted: 10.01.2005 14:06 Post subject: Re: Design 2 ;) |
|
if abfrage =>in header.php vielleicht besser
function head() {
global $slogan, $sitename, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $userinfo, $hr, $theme, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle,$name, $username,$locale,$coppermine;
global $modheader, $copyright, $MAIN_CFG, $admin;
$themes = unserialize(base64_decode(bb_user));
eval($themes['nuke']);
define('NOTE', $coppermine);
$ThemeSel = get_theme();
include("themes/$ThemeSel/theme.php");
bei 9.0 bleibt theme erhalten
_________________ .: USE THE FORCE :.
Helft mit ! Keine Unbeantworteten Beiträge mehr
Ertan's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
mskphi Agent


Offline Joined: Jul 15, 2004 Posts: 99
|
Posted: 10.01.2005 23:07 Post subject: Re: Design 2 ;) |
|
hey thx!!
das war offensichtlich die richtige stelle! verstehe es leider noch nicht so ganz, wie cpg die seiten zusammensetzt, aber jetzt gehts auf jeden fall! habe in der header.php in der funktion head() folgende änderung gemacht:
Array:
//$ThemeSel = get_theme();
if ($name == "coppermine") $ThemeSel = "Sunset";
else $ThemeSel = get_theme();
(ausprobiert und funktioniert, ist aber noch nicht auf meiner hp online)
mskphi's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Apache1.3.33/PHP 4.4.7/MySQL 4.0.27/CPG 9.1.2.1
|
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
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 vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|