User editing self in multi lang site ! [HELP]

Author Message

Selmah Maxim

Wednesday 09 July 2003 5:51:05 am

Now what to do with this ?!?!?!

should user register his self per site ?!?!

when user trying to edit his profile in /hu/ site (or /ar/,/he/) I get just the submit buttons with no inputs !!!

But it`s work fine in /en/ !!!

what the wrong here is this kind of bug or am doing it with the wrong way !!!

Selmah Maxim

Wednesday 09 July 2003 7:59:23 am

again answered to my self :)

I slove it by editing content/edit.php ..

here is the code .. maybe will be helpful for some1, or maybe have better idea :

$UserClassID = $ini->variable( 'UserSettings', 'UserClassID' ) ;
if($classID == $UserClassID)
{
$CurrentLanguage = eZContentObject::defaultLanguage();
$ObjLang=$obj->CurrentLanguage;
$versionObj=$obj->attribute('current');
$version=$versionObj->attribute( "version" );
if($CurrentLanguage !=$ObjLang)
{
$Site = $ini->variable( 'SiteSettings', 'SiteURL' ) ;
$RdSite= "http://".$Site."index.php/".$ObjLang."/content/edit/".$ObjectID."/";
echo "<meta http-equiv='refresh' content='0;URL=$RdSite'>";
return EZ_MODULE_HOOK_STATUS_CANCEL_RUN;
}
}

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 03:21:16
Script start
Timing: Jan 19 2025 03:21:16
Module start 'layout'
Timing: Jan 19 2025 03:21:16
Module start 'content'
Timing: Jan 19 2025 03:21:17
Module end 'content'
Timing: Jan 19 2025 03:21:17
Script end

Main resources:

Total runtime1.0062 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.2891152.6406
Module start 'layout' 0.00610.0027 741.929739.4766
Module start 'content' 0.00890.9959 781.4063426.3438
Module end 'content' 1.00480.0014 1,207.75008.1250
Script end 1.0062  1,215.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.2877160.0002
Check MTime0.00120.1184160.0001
Mysql Total
Database connection0.00080.084010.0008
Mysqli_queries0.964695.8694520.0186
Looping result0.00050.0498500.0000
Template Total0.976497.020.4882
Template load0.00180.183620.0009
Template processing0.974596.848820.4873
Template load and register function0.00010.014610.0001
states
state_id_array0.00100.097610.0010
state_identifier_array0.00190.184920.0009
Override
Cache load0.00150.1528270.0001
Sytem overhead
Fetch class attribute can translate value0.00070.067810.0007
Fetch class attribute name0.00180.175920.0009
XML
Image XML parsing0.00010.012410.0001
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00070.0683100.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs