Autor just59
Datum 07.02.2009 23:32
Beiträge: Leider habe ich da nicht viel Ahnung.
Einen Eintrag über solch eine Abfrage habe ich in der fc_engine.php
Ab Zeile 2080

function redirect_theme_group_check ($var_id, $sql_select_field, $sql_id_field, $table, $url) {

// globals
global $opnConfig, $opnTables;

//No Tutorial choose
if (!$var_id ) {
return;
}

// Modul installiert ?
if ( $opnConfig['installedPlugins']->isplugininstalled ('system/theme_group') ){

//Get Theme Group Number from table
$sql = 'SELECT ' . $sql_select_field . ' FROM ' . $opnTables[$table] . ' WHERE (' . $sql_id_field . '=' . $var_id . ')';
$result = &$opnConfig['database']->Execute ($sql);
if ( ($result !== false) && (isset ($result->fields[$sql_select_field]) ) ) {
$theme_group = $result->fields[$sql_select_field];
$result->Close ();
} else {
$theme_group = -1;
}

//Check aktive Them Group
if (
( ($theme_group > 0) AND ($opnConfig['opnOption']['themegroup'] != $theme_group) ) OR
( ($theme_group == 0) AND ($opnConfig['opnOption']['themegroup'] > 0) )
) {
//URL with Theme Group Number
$opnConfig['opnOption']['themegroup'] = $theme_group;
$url = $opnConfig['opn_url'] . $url . getThemeGroupUrl ($theme_group);



Bin ich da richtig?

Dachte das ist einfacher, wie Anfrage ob Themengruppe > 0 dann setze Themengruppe 1 (z.B.)


global $opnConfig
if ($opnConfig['opnOption']['themegroup'] > 1) {
$opnConfig['opnOption']['themegroup'] = 1}




JUSt
just-info / Mein Gartenverein Portal für Gartenfreunde...
Suse 10.1, PHP 5.2.10 und MySQL 5.0.67.,Administration 2.5.1 [Iphigenie] (Revision 4533)


Diese Seite drucken
Diese Seite schließen

Dieser Artikel kommt von: OpenPHPNuke - das Open Source CMS

http://www.openphpnuke.info/