Jump to content


include a php-file in content


2 replies to this topic

#1 stp69

    Etomite Forum Newbie

  • Member
  • 41 posts

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 Cris D.

    Loves Etomite Forums!

  • Developers
  • PipPipPipPip
  • 1,104 posts
  • Gender:Male

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.org/browsesnippets.html...;lst_category=6

#3 stp69

    Etomite Forum Newbie

  • Member
  • 41 posts

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.org/browsesnippets.html...;lst_category=6

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

Thx

Stephan





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users