basic forum enhancement.. but i'm a dweeb

Author Message

Vidyut Luther

Tuesday 07 November 2006 11:29:18 pm

I'm trying to figure out how to mimic the functionality of this forum itself.. basically.. message quoting.

If i'm viewing a topic, and I want to reply to it, I want to see the messages in the post before I post, (all of them).. and I would like to also have the subject field pre populated.

This is what I have so far.. in the forum_reply.tpl AFTER the </form>

 

{let OriginalMessages=fetch(content,node,hash(node_id,$main_node_id))}
        <h1><font color="#004362"> Original post </font> </h1>
{node_view_gui view=full content_node=$OriginalMessages}

 

I think this is actually trivial to do, but I'm having trouble figuring this out along with everything else I'm doing.. it's 1:30am and I'd like to sleep :).

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

Main resources:

Total runtime0.0162 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.0070 588.0313152.6406
Module start 'layout' 0.00700.0033 740.671939.4766
Module start 'content' 0.01030.0040 780.148485.2891
Module end 'content' 0.01430.0018 865.437530.3047
Script end 0.0162  895.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002616.2000140.0002
Check MTime0.00127.2015140.0001
Mysql Total
Database connection0.00106.090810.0010
Mysqli_queries0.003521.326030.0012
Looping result0.00000.106110.0000
Template Total0.00169.810.0016
Template load0.00095.585610.0009
Template processing0.00074.152410.0007
Override
Cache load0.00074.071410.0007
General
dbfile0.00042.510080.0001
String conversion0.00000.061940.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