Using tipafriend with modules

Author Message

Nicolas Gommenginger

Tuesday 22 June 2010 4:54:32 am

Hi,

A big part of my website is made with php modules. The tipafriend function is not working for those pages because the link is "concat("/content/tipafriend/",$node.node_id)".

Is it a way to make it work with php modules ?

Thanks,

Nico

Damien Pobel

Tuesday 22 June 2010 5:06:35 am

Hi Nico,

AFAIK, tipafriend cannot work on custom module/view. I think you'll have to write your own tipafriend PHP view to work. You can look at http://ezpedia.org/en/ez/module

Cheers

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Nicolas Gommenginger

Tuesday 22 June 2010 5:49:10 am

Thanks Damien.

I have another issue...

Tipafriend for a normal node is working fine. The email is sent and well received.

But "error" is returned in the variable "action". I saw in "tipafriend.php" that "error" is returned when "eZMailTransport::send( $mail )" return false... But the email is well sent so I don't understand...

Help please...

Thanks,

Nico

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 02:53:35
Script start
Timing: Jan 18 2025 02:53:35
Module start 'layout'
Timing: Jan 18 2025 02:53:35
Module start 'content'
Timing: Jan 18 2025 02:53:36
Module end 'content'
Timing: Jan 18 2025 02:53:36
Script end

Main resources:

Total runtime1.0215 sec
Peak memory usage4,096.0000 KB
Database Queries58

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 589.0469152.6250
Module start 'layout' 0.00580.0032 741.671939.4453
Module start 'content' 0.00901.0111 781.1172532.4453
Module end 'content' 1.02020.0013 1,313.562512.1641
Script end 1.0215  1,325.7266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3143160.0002
Check MTime0.00130.1302160.0001
Mysql Total
Database connection0.00060.059410.0006
Mysqli_queries0.967394.6896580.0167
Looping result0.00050.0450560.0000
Template Total0.990296.920.4951
Template load0.00210.204320.0010
Template processing0.988196.727920.4941
Template load and register function0.00010.013110.0001
states
state_id_array0.00130.125010.0013
state_identifier_array0.00070.066720.0003
Override
Cache load0.00170.1660220.0001
Sytem overhead
Fetch class attribute can translate value0.00050.053020.0003
Fetch class attribute name0.00090.085340.0002
XML
Image XML parsing0.00390.382820.0020
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.00670.6518160.0004
String conversion0.00000.000840.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs