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 15 2025 09:13:50
Script start
Timing: Jan 15 2025 09:13:50
Module start 'layout'
Timing: Jan 15 2025 09:13:50
Module start 'content'
Timing: Jan 15 2025 09:13:51
Module end 'content'
Timing: Jan 15 2025 09:13:51
Script end

Main resources:

Total runtime1.5475 sec
Peak memory usage6,144.0000 KB
Database Queries58

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 685.9688183.6875
Module start 'layout' 0.00730.0027 869.656352.5625
Module start 'content' 0.01001.5359 922.21881,856.6953
Module end 'content' 1.54590.0016 2,778.914168.5469
Script end 1.5475  2,847.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00570.3698160.0004
Check MTime0.00130.0861160.0001
Mysql Total
Database connection0.00160.101810.0016
Mysqli_queries1.486396.0459580.0256
Looping result0.00060.0375560.0000
Template Total1.507497.420.7537
Template load0.00400.256020.0020
Template processing1.503497.148820.7517
Template load and register function0.00130.082610.0013
states
state_id_array0.00090.059510.0009
state_identifier_array0.00230.149120.0012
Override
Cache load0.00360.2316220.0002
Sytem overhead
Fetch class attribute can translate value0.00050.031620.0002
Fetch class attribute name0.00240.153940.0006
XML
Image XML parsing0.00060.041120.0003
class_abstraction
Instantiating content class attribute0.00000.000540.0000
General
dbfile0.00210.1372160.0001
String conversion0.00000.000640.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