Fetch User IP Address - Feedback Form

Author Message

John Smith

Thursday 05 June 2008 9:23:16 am

Hi there,

Hope somebody can help me.

How to fetch user(senders) IP Address in feedback form.

Please help.

Cheers.

Ɓukasz Serwatka

Friday 06 June 2008 12:42:48 am

You might use this template operator:
http://ez.no/developer/contribs/template_plugins/ezservervars

Be aware of caching issues ,etc.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Grenland Web (Jan Kudlicka)

Friday 06 June 2008 12:52:20 am

First, install the Swark extension ( http://ez.no/developer/contribs/template_plugins/swark for eZ Publish 3 or http://ez.no/developer/contribs/template_plugins/swark_for_ez_publish_4 for eZ Publish 4 ).

To get a "user IP address", use {server( 'remote_addr' )}.

The Swark extension offers much more functionality you might find interesting - have a look at the full documentation at http://www.seeds.no/doc/swark

Best regards,
--
Jan

Jan Kudlicka | System Developer @ Grenland Web | http://www.grenlandweb.no

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

Main resources:

Total runtime0.7702 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.0391152.6406
Module start 'layout' 0.00530.0023 740.679739.4766
Module start 'content' 0.00760.7610 780.1563570.1484
Module end 'content' 0.76860.0015 1,350.30478.1406
Script end 0.7701  1,358.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4150160.0002
Check MTime0.00140.1833160.0001
Mysql Total
Database connection0.00080.102810.0008
Mysqli_queries0.719693.4376590.0122
Looping result0.00060.0816570.0000
Template Total0.736395.620.3682
Template load0.00200.264120.0010
Template processing0.734395.340820.3671
Template load and register function0.00020.025410.0002
states
state_id_array0.00130.171910.0013
state_identifier_array0.00240.311420.0012
Override
Cache load0.00160.2130200.0001
Sytem overhead
Fetch class attribute can translate value0.00070.085230.0002
Fetch class attribute name0.00120.159540.0003
XML
Image XML parsing0.00100.127630.0003
class_abstraction
Instantiating content class attribute0.00000.001540.0000
General
dbfile0.00150.1982180.0001
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
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs