Creating a "story rating system" help and suggestions?

Author Message

Dan Zembrosky

Monday 28 April 2003 11:49:41 pm

Ok, I have no idea how to go about doing this... my hunch is use an integer defined between 1 and 5 and then somehow have this processed based on the total divided by the total number of votes then displayed on the index page and the story page. Of course the integer is not an information collector... so i cant see how it could help here... If anyone knows how to do this please let me know.

Gabriel Ambuehl

Tuesday 29 April 2003 2:56:20 am

I suppose you'd have to define a new data type (basically, you can get away with storing two integers and updating them every time you have a new vote) for this to work.

A custom module seems unneeded.

Visit http://triligon.org

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 18 2025 04:59:57
Script start
Timing: Jan 18 2025 04:59:57
Module start 'layout'
Timing: Jan 18 2025 04:59:57
Module start 'content'
Timing: Jan 18 2025 04:59:57
Module end 'content'
Timing: Jan 18 2025 04:59:57
Script end

Main resources:

Total runtime0.0143 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 591.9844152.6406
Module start 'layout' 0.00570.0027 744.625039.4922
Module start 'content' 0.00850.0041 784.117289.1328
Module end 'content' 0.01250.0017 873.250030.3047
Script end 0.0142  903.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002617.9441140.0002
Check MTime0.00128.3492140.0001
Mysql Total
Database connection0.00085.814410.0008
Mysqli_queries0.002719.022830.0009
Looping result0.00000.120210.0000
Template Total0.00149.910.0014
Template load0.00075.224910.0007
Template processing0.00074.650510.0007
Override
Cache load0.00053.495010.0005
General
dbfile0.00021.591480.0000
String conversion0.00000.048440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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