Forums / Developer / New Extension for managing banners based on nodes

New Extension for managing banners based on nodes

Author Message

Bernhard Reiter

Tuesday 07 June 2005 12:36:13 am

I will release sometime around the weekend a new version.

It will contain some new features.

You will be able to upload any kinds of files, not just images. You could then also upload flash, mp3s ...

For certain types you can specify if the filepath or the contents of the file should be returned.
So you can for example assign html snippets to certain sections.
The html you upload will of course be checked by a script, so that xss and the likes should not be possible (that means in effect no script tags and no onmousover and similar attributes)

Thanks for your suggestions Vitaly!

Bernhard Reiter

Friday 17 June 2005 5:05:05 am

I have just uploaded the new version.
It contains all of the above mentioned features.

Kristian Hole

Friday 09 September 2005 8:12:05 am

Hi

I started looking at your contrib, and im wondering about something. It seems to me that everything is uploaded to your design directory. Wouldnt it make more sence to upload it to the "var" directory?

If i upload it in the admininterface now, the images are not available in the user site, because i use a different design.

Just my 50c

Have a nice weekend.

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Bernhard Reiter

Friday 09 September 2005 10:51:55 am

Well, by the time i wrote it, it seemed to me that everything is stored qiuet random in the var directory. Also i liked the idea that everything belonging to the design is in one place.

But this decision is only suitable if you just maintain one siteaccess at a time, else it gets annoying.

If i would write the extension today i also would use the var directory for storage. This would also save me some other trouble in the code.
One gets smarter everyday ;)

Perhaps i will take a day and complete my current additions to it, and make it use the var dir.

eZ debug

Timing: Jan 15 2025 09:01:51
Script start
Timing: Jan 15 2025 09:01:51
Module start 'content'
Timing: Jan 15 2025 09:01:51
Module end 'content'
Timing: Jan 15 2025 09:01:51
Script end

Main resources:

Total runtime0.3339 sec
Peak memory usage6,144.0000 KB
Database Queries134

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0092 685.0703214.7734
Module start 'content' 0.00920.0068 899.8438189.7500
Module end 'content' 0.01590.3179 1,089.59381,479.0391
Script end 0.3339  2,568.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00641.9089200.0003
Check MTime0.00150.4347200.0001
Mysql Total
Database connection0.00070.198510.0007
Mysqli_queries0.279583.70321340.0021
Looping result0.00160.46631310.0000
Template Total0.317495.110.3174
Template load0.00250.747110.0025
Template processing0.314994.301210.3149
Override
Cache load0.00220.669610.0022
Sytem overhead
Fetch class attribute can translate value0.00090.266510.0009
XML
Image XML parsing0.00020.068310.0002
General
dbfile0.00120.3660140.0001
String conversion0.00000.001730.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs