<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: MachForm integration into WordPress Page as a PHP Page Template</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: MachForm integration into WordPress Page as a PHP Page Template</description>
<language>en</language>
<pubDate>Tue, 05 May 2026 05:47:56 +0000</pubDate>

<item>
<title>mattdmin on "MachForm integration into WordPress Page as a PHP Page Template"</title>
<link>https://www.machform.com/forums/topic/machform-integration-into-wordpress-page-as-a-php-page-template#post-12569</link>
<pubDate>Mon, 12 Sep 2011 03:07:06 +0000</pubDate>
<dc:creator>mattdmin</dc:creator>
<guid isPermaLink="false">12569@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Took me a about 10 minutes to write up a simple WordPress template to integrate MachForms into WorPress as a regular PHP file, I also integrated google translation into the MachForm itself.  Here is an example of the WordPress template you build in your current WordPress theme.  For those of you who do not know how to build a custom Wordpress Template, there is tons of info on the net with how to videos and such.&#60;/p&#62;
&#60;p&#62;Here is a great video tutorial: &#60;a href=&#34;http://www.wordpressmax.com/customize-wordpress/custom-page&#34; rel=&#34;nofollow&#34;&#62;http://www.wordpressmax.com/customize-wordpress/custom-page&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Hope this helps.&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
/*&#60;br /&#62;
Template Name: Experimental&#60;br /&#62;
*/&#60;br /&#62;
?&#38;gt;&#60;br /&#62;
&#38;lt;?php get_header(); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;	&#38;lt;div id=&#34;wrap&#34;&#38;gt;&#60;br /&#62;
		&#38;lt;div id=&#34;content&#34; class=&#34;fullwidth&#34;&#38;gt;&#60;/p&#62;
&#60;p&#62;		&#38;lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;			&#38;lt;div id=&#34;page-&#38;lt;?php the_ID(); ?&#38;gt;&#34; &#38;lt;?php post_class(); ?&#38;gt;&#38;gt;&#60;/p&#62;
&#60;p&#62;				&#38;lt;h2&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#38;lt;/h2&#38;gt;&#60;br /&#62;
				&#38;lt;?php edit_post_link(__( 'Edit', 'themezee_lang' )); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;				&#38;lt;div class=&#34;entry&#34;&#38;gt;&#60;br /&#62;
					&#38;lt;?php the_post_thumbnail('medium', array('class' =&#38;gt; 'alignleft')); ?&#38;gt;&#60;br /&#62;
					&#38;lt;?php the_content(); ?&#38;gt;&#60;br /&#62;
					&#38;lt;?php require(&#34;/home/acctname/public_html/forms/machform.php&#34;);&#60;br /&#62;
                                	  	 $mf_param['form_id'] = 1;&#60;br /&#62;
	                                      $mf_param['base_path'] = 'http://www.yourdomain.com/forms/';&#60;br /&#62;
         		                            display_machform($mf_param); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;					&#38;lt;div class=&#34;clear&#34;&#38;gt;&#38;lt;/div&#38;gt;&#60;br /&#62;
					&#38;lt;?php wp_link_pages(); ?&#38;gt;&#60;br /&#62;
				&#38;lt;/div&#38;gt;&#60;/p&#62;
&#60;p&#62;			&#38;lt;/div&#38;gt;&#60;/p&#62;
&#60;p&#62;		&#38;lt;?php endwhile; ?&#38;gt;&#60;/p&#62;
&#60;p&#62;		&#38;lt;?php endif; ?&#38;gt;&#60;/p&#62;
&#60;p&#62;		&#38;lt;/div&#38;gt;&#60;br /&#62;
	&#38;lt;/div&#38;gt;&#60;br /&#62;
&#38;lt;?php get_footer(); ?&#38;gt;
&#60;/p&#62;</description>
</item>
<item>
<title>mattdmin on "MachForm integration into WordPress Page as a PHP Page Template"</title>
<link>https://www.machform.com/forums/topic/machform-integration-into-wordpress-page-as-a-php-page-template#post-12568</link>
<pubDate>Mon, 12 Sep 2011 02:24:37 +0000</pubDate>
<dc:creator>mattdmin</dc:creator>
<guid isPermaLink="false">12568@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I actually took it down for the time being.  I figured out why it was only coming up as the form page itself when I linked, it is because it is supposed too!  It was merely calling the form itself with no other PHP or HTML involved.  I'm currently building a page template that will contain the form, just haven't had the time.&#60;/p&#62;
&#60;p&#62;But I did get MachForms integrated into WordPress, and will post as I get a full template done.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "MachForm integration into WordPress Page as a PHP Page Template"</title>
<link>https://www.machform.com/forums/topic/machform-integration-into-wordpress-page-as-a-php-page-template#post-12547</link>
<pubDate>Wed, 07 Sep 2011 19:10:49 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">12547@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Do you have any URL I could check or test?
&#60;/p&#62;</description>
</item>
<item>
<title>mattdmin on "MachForm integration into WordPress Page as a PHP Page Template"</title>
<link>https://www.machform.com/forums/topic/machform-integration-into-wordpress-page-as-a-php-page-template#post-12542</link>
<pubDate>Tue, 06 Sep 2011 10:26:55 +0000</pubDate>
<dc:creator>mattdmin</dc:creator>
<guid isPermaLink="false">12542@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I figured it out with one small fix, only problem is that it doesn't keep the form in the WordPress CMS, it goes to the form itself, but keeps it where I placed the PHP file in the Wordpress directory.  What a pain.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.appnitro.com/forums/topic/problem-with-validate_username-function?replies=12&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forums/topic/problem-with-validate_username-function?replies=12&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>mattdmin on "MachForm integration into WordPress Page as a PHP Page Template"</title>
<link>https://www.machform.com/forums/topic/machform-integration-into-wordpress-page-as-a-php-page-template#post-12541</link>
<pubDate>Tue, 06 Sep 2011 10:07:38 +0000</pubDate>
<dc:creator>mattdmin</dc:creator>
<guid isPermaLink="false">12541@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I've been working on getting MachForms into a Wordpress page template as an individual PHP file, as Wordpress does not allow adding PHP code to pages or posts unless you install a plugin(which can be very unsecure).  I've got it working after I installed my MachForms SQL DB into the original Wordpress DB, but had to comment out some code in the Wordpress user.php file to actually get it working.  I don't want to do it this way, as the validation code is needed for security IMO.&#60;/p&#62;
&#60;p&#62;The code I commented out in my Wordpress /wp-includes/user.php is:&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Checks whether an username is valid.&#60;br /&#62;
 *&#60;br /&#62;
 * @since 2.0.1&#60;br /&#62;
 * @uses apply_filters() Calls 'validate_username' hook on $valid check and $username as parameters&#60;br /&#62;
 *&#60;br /&#62;
 * @param string $username Username.&#60;br /&#62;
 * @return bool Whether username given is valid&#60;br /&#62;
 */&#60;/p&#62;
&#60;p&#62;/* Commented here&#60;br /&#62;
function validate_username( $username ) {&#60;br /&#62;
        $sanitized = sanitize_user( $username, true );&#60;br /&#62;
        $valid = ( $sanitized == $username );&#60;br /&#62;
        return apply_filters( 'validate_username', $valid, $username );&#60;br /&#62;
*/&#60;/p&#62;
&#60;p&#62;Anyone have any suggestions on how to modify this to work with MachForms?  If so, I figured out a pretty smooth fix, but this is where I am stuck.  It seems that the uservalidation is looking for a table called mywordpressdb.app_forms
&#60;/p&#62;</description>
</item>

</channel>
</rss>
