Include forum topic in reply

Author Message

Bjarte Lunde

Wednesday 12 January 2005 2:02:11 am

Hello!

I've been trying to modify my forum templates to look like ez.no's...

But how do i display the original message in the reply.
I don't want it included in the form, but only display.

Eivind Marienborg

Wednesday 12 January 2005 4:34:41 am

A possible solution to this could be fetching the forums parents name (=forum topic), adding a "RE: " ahead of it, and displaying that.

Bjarte Lunde

Wednesday 12 January 2005 4:41:59 am

I have tried different solutions, but i can't really get the correct code for it.

Eivind Marienborg

Wednesday 12 January 2005 4:52:35 am

Hmm, I think I might have misunderstood you.. do you want the original forum topic displayed when replying to something? Or another part of the ez forum?

Bjarte Lunde

Wednesday 12 January 2005 5:40:53 am

> Hmm, I think I might have misunderstood you.. do you want the original forum
> topic displayed when replying to something? Or another part of the ez forum?

Yep.. I want the original message when i reply. Or the whole thread.

Eivind Marienborg

Wednesday 12 January 2005 5:59:32 am

If you want the entire thread, you might get away with copying the fetch code from your forum template, and pasting it in your edit template.

To display the forum topic, you can try this (in your edit template):
1. Fetch the parent of the forum reply
2. Display the desired attributes

I don't have the exact template code for it here and now, but there should be examples of it on ez.no, try the search.

Bjarte Lunde

Wednesday 12 January 2005 1:01:35 pm

Took some time and testing but found out how to do it now!
Thanks for all help!

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 12:37:51
Script start
Timing: Jan 19 2025 12:37:51
Module start 'layout'
Timing: Jan 19 2025 12:37:51
Module start 'content'
Timing: Jan 19 2025 12:37:52
Module end 'content'
Timing: Jan 19 2025 12:37:52
Script end

Main resources:

Total runtime1.1587 sec
Peak memory usage4,096.0000 KB
Database Queries69

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.1563152.6250
Module start 'layout' 0.00590.0040 741.781339.4453
Module start 'content' 0.00991.1475 781.2266544.6484
Module end 'content' 1.15740.0012 1,325.875016.1641
Script end 1.1586  1,342.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2758160.0002
Check MTime0.00130.1158160.0001
Mysql Total
Database connection0.00120.099510.0012
Mysqli_queries1.104595.3218690.0160
Looping result0.00060.0522670.0000
Template Total1.112196.020.5560
Template load0.00200.175020.0010
Template processing1.110095.804020.5550
Template load and register function0.00010.012110.0001
states
state_id_array0.00200.176410.0020
state_identifier_array0.00160.139720.0008
Override
Cache load0.00160.1414290.0001
Sytem overhead
Fetch class attribute can translate value0.00090.076720.0004
Fetch class attribute name0.00100.083580.0001
XML
Image XML parsing0.00070.056420.0003
class_abstraction
Instantiating content class attribute0.00000.0016100.0000
General
dbfile0.00320.2780160.0002
String conversion0.00000.001040.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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs