Seite 2 von 5

Verfasst: 30.12.2004 18:54
von Quattro
Danke

Verfasst: 30.12.2004 20:06
von Quattro
Gehe noch mal alles durch und habe jetzt bemerkt, dass ich manche Dateien sehen kann und manche nicht. Weshalb ist das so und ist das normal?


Wenn ich im Admin Bereich auf View klicke, sehe ich ja die Dateien die im Mod drinnen sind. zb.

templates/subSilver/profile_view_body.tpl

diese kann ich mir auch Online ansehen.
weshalb Funkt das nicht mit der

templates/subSilver/profile_add_body.tpl :(

Müssen alle Dateien sichtbar sein?


Bitte :cry:

Gruß Quattro

Verfasst: 30.12.2004 20:09
von kratzer54847
Wenn ich im Admin Bereich auf View klicke, sehe ich ja die Dateien die im Mod drinnen sind. zb.
das verstehe ich nicht so ganz...wo klickst du da auf "View"?

Verfasst: 30.12.2004 20:15
von Quattro
Unter dem Button "Process" bei der Installation mit Easy Mod ist die möglichkeit "Preview:" dann werden diese dateien angezeigt:

Filename
memberlist.php View
templates/subSilver/memberlist_body.tpl View
includes/constants.php View
includes/page_header.php View
includes/usercp_register.php View
includes/usercp_viewprofile.php View
templates/subSilver/overall_header.tpl View
templates/subSilver/profile_add_body.tpl View
templates/subSilver/profile_view_body.tpl View
templates/subSilver/subSilver.cfg View
templates/subSilver/admin/user_edit_body.tpl View
admin/admin_users.php View
viewtopic.php View
templates/subSilver/viewtopic_body.tpl View
viewonline.php View
admin/index.php View
includes/usercp_avatar.php View
includes/functions.php View

Verfasst: 30.12.2004 20:22
von Quattro
Hab gerade festgestellt das ich bei Profile wenn ich eingelogt bin diese meldung bekomme:

Parse error: parse error, unexpected ';', expecting ')' in /web/Quattro/includes/usercp_register.php on line 111


Ich kann aber nix finden. Ist doch sch....

Ich muss mal was :cookie:

Verfasst: 30.12.2004 20:25
von Andy120
Poste mal die Zeile 111 von der usercp_register.php

Gruss, Andy

Verfasst: 30.12.2004 21:02
von Quattro
103 bis 120 von der usercp_register.php

if ( $mode == 'editprofile' )
{
$user_id = intval($HTTP_POST_VARS['user_id']);
$current_email = trim(htmlspecialchars($HTTP_POST_VARS['current_email']));
}

$strip_var_list = array('username' => 'username',
// Begin Map Mod
$strip_vars_mapmod = array('longitude' => 'longitude', 'latitude' => 'latitude');
$strip_var_list = array_merge ($strip_var_list, $strip_vars_mapmod);
// End Map Mod
'email' => 'email', 'icq' => 'icq', 'aim' => 'aim', 'msn' => 'msn', 'yim' => 'yim', 'website' => 'website', 'location' => 'location', 'occupation' => 'occupation', 'interests' => 'interests');
$strip_var_list['confirm_code'] = 'confirm_code';

// Strip all tags from data ... may p**s some people off, bah, strip_tags is
// doing the job but can still break HTML output ... have no choice, have
// to use htmlspecialchars ... be prepared to be moaned at.
while( list($var, $param) = @each($strip_var_list) )


Danke

Verfasst: 30.12.2004 21:07
von Andy120
Versuche mal so:

Code: Alles auswählen

if ( $mode == 'editprofile' ) 
{ 
$user_id = intval($HTTP_POST_VARS['user_id']); 
$current_email = trim(htmlspecialchars($HTTP_POST_VARS['current_email'])); 
} 

$strip_var_list = array('username' => 'username', 'email' => 'email', 'icq' => 'icq', 'aim' => 'aim', 'msn' => 'msn', 'yim' => 'yim', 'website' => 'website', 'location' => 'location', 'occupation' => 'occupation', 'interests' => 'interests'); 
// Begin Map Mod 
$strip_vars_mapmod = array('longitude' => 'longitude', 'latitude' => 'latitude'); 
$strip_var_list = array_merge ($strip_var_list, $strip_vars_mapmod); 
// End Map Mod
$strip_var_list['confirm_code'] = 'confirm_code'; 

// Strip all tags from data ... may p**s some people off, bah, strip_tags is 
// doing the job but can still break HTML output ... have no choice, have 
// to use htmlspecialchars ... be prepared to be moaned at. 
while( list($var, $param) = @each($strip_var_list) )

Verfasst: 30.12.2004 21:08
von Quattro
Wenn ich die "profile_add_body.tpl" öffnen möchte bekomme ich diese meldung

CRITICAL ERROR: Could not modify [%s]

die "profile_view_body.tpl" wird ganz normal angezeigt

Verfasst: 30.12.2004 21:10
von kratzer54847
mit was öffnest du die denn?