Etomite Community Forums: include a php-file in content - Etomite Community Forums

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

include a php-file in content

#1 User is offline   stp69 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 41
  • Joined: 04-August 06
  • Location:Germany, NRW, Marl

Posted 19 February 2009 - 11:00 AM

Hello,

@ first, sorry my bad english :)

i have a Newslettertool (www.letterit.de) i would be to include the registerform in one of the etomitepages.
e.g <? include submit.php ?>

in the old etomite Forum, and for the older version of etomite, i found a snippet, with the name include (or the like) but i don't found it yet?

How I can include this file now into the page?

#2 User is offline   Cris D. 

  • Loves Etomite Forums!
  • PipPipPipPip
  • Group: Member
  • Posts: 1,063
  • Joined: 10-August 06
  • Location:Brisbane, Queensland, Australia

Posted 19 February 2009 - 12:43 PM

The easiest way is to go to the manager and enable embedded php, then place your code in a chunk where it is supposed to display, and place the chunk in the page.

Or you could use a snippet that pulls the info in like this:

$inc=require_once 'submit.php';
return $inc;

Or you could use the snippet you were after: http://www.etomite.o...;lst_category=6

#3 User is offline   stp69 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 41
  • Joined: 04-August 06
  • Location:Germany, NRW, Marl

Posted 19 February 2009 - 12:54 PM

View PostCris D., on Feb 19 2009, 01:43 PM, said:

The easiest way is to go to the manager and enable embedded php, then place your code in a chunk where it is supposed to display, and place the chunk in the page

Chris, many thanks this is the shortest way. Works fine.

View PostCris D., on Feb 19 2009, 01:43 PM, said:

Or you could use the snippet you were after: http://www.etomite.o...;lst_category=6


And this was the snippet i search for, but with the first solution i was happy

Thx

Stephan

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users