Forums / Developer / what the new and modifications will be in 3.1 final ?!

what the new and modifications will be in 3.1 final ?!

Author Message

Selmah Maxim

Monday 23 June 2003 8:12:33 am

As i had wrote befor, i had made alot of code modifications, and am waiting for final 3.1 , but i don`t wanna to modify the code again, so will be great if I i can know which file had been modified and what changes !

Myabe am the 1st who would like to smth like this, but maybe there will be useful for others !

thx in advance.

Björn Dieding@xrow.de

Tuesday 24 June 2003 6:12:10 am

When you do so many core changes on the code, why don't you use SVN?

I believe that will make you life easier.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Selmah Maxim

Tuesday 24 June 2003 7:15:21 am

I had tried befor ... but am using Win xp, and i couldn`t figure out what should i do to get the changes !!!

I had read here befor how to use, but is useless !!

can you plz provide me more information about svn system, i had downloaded the win version !

Tony Wood

Tuesday 24 June 2003 7:18:42 am

Try this http://ez.no/developer/ez_publish_3/documentation/ez_publish_3/howtos/getting_the_latest_ezpublish_source

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Selmah Maxim

Tuesday 24 June 2003 7:40:19 am

I had read it befor !!

my question is when i write :

svn update http://zev.ez.no/svn/nextgen/trunk/ old_svn_directory

this will update the files with keeping my editing or what ?

when i had downloaed ezp3.1.2 i didn`t find .svn folder, should i download it all again by svn or what ?

if there is mysql updates how will the svn update the mysql ?

sorry .. but i didn`t use svn or cvs befor !

Bruce Morrison

Tuesday 24 June 2003 3:09:43 pm

Hi Selma

Where possible with the code modifications you need to make them modules or extentions to ease the "pain" of upgrades, otherwise you will always be applying them to new versions. I realise that this is not possible in all cases, especially when you whish to make changes to the kernel or other core parts of the system.

An other approach is to submit the changes to the eZ Team so that they may be considered and possibily included in the next release.

Cheers
Bruce
designIT

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Björn Dieding@xrow.de

Tuesday 24 June 2003 3:55:03 pm

Well the pain would be to resolve the conflicts after every update.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Selmah Maxim

Wednesday 25 June 2003 1:11:33 am

Hi Bruce ..

About my modifications, i don`t think ez team will include it , coz it`s custom, such .. if user not admin and he edit something in site, but he change his mind, then if he click 'Discard' , then no need for confirmation to delete, so i had add this to kernel/content/edit :

if ( $module->isCurrentAction( 'Discard' ) )
{
$http =& eZHTTPTool::instance();
$objectID = $object->attribute( 'id' );
$http->setSessionVariable( 'DiscardObjectID', $objectID );
$http->setSessionVariable( 'DiscardObjectVersion', $EditVersion );
$http->setSessionVariable( 'DiscardObjectLanguage', $EditLanguage );
// Added by Me ...
// This will remove the edited version form DB direct without confirmation
if($http->hasVariable( 'RedirectURI' ))
{
$Page = $http->Variable( 'RedirectURI' );
$http->setSessionVariable( 'None_Confirm', "Remove" );
$http->setSessionVariable( 'UserRedirectURI', "$Page" );
}
// End By Me

and i had add this in removeeditversion.php :

if ( $http->hasPostVariable( "ConfirmButton" ) Or $http->hasSessionVariable( 'None_Confirm' ) )
$http->removeSessionVariable( 'None_Confirm' );
.
.
..
}

// Added By Me ...
if($http->hasSessionVariable( 'UserRedirectURI' ) )
{
$Page = $http->sessionVariable( 'UserRedirectURI' ) ;
$http->removeSessionVariable( 'UserRedirectURI' );
$Module->redirectTo( $Page );
$hasRedirected = true;
if(!$Page) $hasRedirected = false;
}
// End

if ( $http->hasSessionVariable( 'ParentObject' ) && $http->sessionVariable( 'NewObjectID' ) == $objectID and !$hasRedirected)

then also i had add line to redirect the user by getting from $_POST array after submiting ... becoz as know if form have hidden input named with 'RedirectURI' must redirect user to this page, but this is missing from edit.php .. so i had added this lines to do this :

if($http->hasVariable( 'RedirectURI' ))
{
$Page = $http->Variable( 'RedirectURI' );
$module->redirectTo( $Page );
$hasRedirected = true;
if(!$Page) $hasRedirected = false;
}
//
if ( $http->hasSessionVariable( 'ParentObject' ) && $http->sessionVariable( 'NewObjectID' ) == $object->attribute( 'id' ) and !$hasRedirected)
{

This part of modifications ...

as you see, i cann`t make module from this ... but now thinking about another solution, workflow .. maybe can solve my problem , but am not sure, but i`ll try with final 3.1 , as i had read today will be release, and do you what the best thing with ezp crew ? .... the timeframe, they didn`t get out of timeframe, so well done ez crew ;)

There is 3 question, I have no idae about it :
1. When i download the ezp I cann`t find .svn folder in the zip file, and without it i get svn error, where to get it? should i make svn to download the new version of ezp ?

2. The svn will update the code, nice, but what if there is mysql update, can svn do it ??

3. I don`t have root access on the host, can i install the svn on my folder, or i must request the host root for that ?

Selmah Maxim

Wednesday 25 June 2003 1:15:43 am

Another thing ...
I found bug, maybe this bug just for me, that any user can see the versions list for any user, i had give report about it, but they say not a bug, coz of this i hadd add this lines to versions.php :

// By me
$UserID = $user->id();
$OwnerObj = $object->attribute( 'owner' );
$OwnerID = $OwnerObj->attribute( 'id' );
if ( $OwnerID != $UserID )
return $Module->handleError( EZ_ERROR_KERNEL_ACCESS_DENIED, 'kernel' );
//

eZ debug

Timing: Jan 18 2025 11:30:52
Script start
Timing: Jan 18 2025 11:30:52
Module start 'content'
Timing: Jan 18 2025 11:30:53
Module end 'content'
Timing: Jan 18 2025 11:30:53
Script end

Main resources:

Total runtime0.9780 sec
Peak memory usage4,096.0000 KB
Database Queries216

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 587.8594180.8125
Module start 'content' 0.00630.8053 768.6719711.8906
Module end 'content' 0.81160.1663 1,480.5625344.4297
Script end 0.9779  1,824.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4232210.0002
Check MTime0.00160.1605210.0001
Mysql Total
Database connection0.00080.083110.0008
Mysqli_queries0.869488.89192160.0040
Looping result0.00240.24042140.0000
Template Total0.944596.620.4723
Template load0.00210.219520.0011
Template processing0.942496.358120.4712
Template load and register function0.00020.017410.0002
states
state_id_array0.00100.099710.0010
state_identifier_array0.00120.120320.0006
Override
Cache load0.00200.20301010.0000
Sytem overhead
Fetch class attribute can translate value0.00240.243150.0005
Fetch class attribute name0.00140.1407120.0001
XML
Image XML parsing0.00330.333550.0007
class_abstraction
Instantiating content class attribute0.00000.0022130.0000
General
dbfile0.00560.5721390.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
16content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 39
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs