<?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: Change prefix tables</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Change prefix tables</description>
<language>en</language>
<pubDate>Sun, 03 May 2026 23:30:48 +0000</pubDate>

<item>
<title>petebocken on "Change prefix tables"</title>
<link>https://www.machform.com/forums/topic/change-prefix-tables#post-11458</link>
<pubDate>Tue, 22 Feb 2011 22:19:10 +0000</pubDate>
<dc:creator>petebocken</dc:creator>
<guid isPermaLink="false">11458@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;So I did another search/replace on all files for the following: ap_form_{$form_id} =&#38;gt; ap_test_form_{$form_id}&#60;/p&#62;
&#60;p&#62;Now when I create a new form the database table prefix is correct.  So I guess it will work to just do a search/replace on all files every time I want to install a new instance of Machform.
&#60;/p&#62;</description>
</item>
<item>
<title>petebocken on "Change prefix tables"</title>
<link>https://www.machform.com/forums/topic/change-prefix-tables#post-11456</link>
<pubDate>Tue, 22 Feb 2011 22:05:41 +0000</pubDate>
<dc:creator>petebocken</dc:creator>
<guid isPermaLink="false">11456@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;@Sean - I followed your instructions and I think I'm confused on the last part about &#34;Afterwards, replace function $ap =&#38;gt; function ap_&#34;&#60;/p&#62;
&#60;p&#62;Are you doing another search/replace across all files after installation?  If you replace $ap with ap_ then you actually will end up with two underscores, so that can't be right.&#60;/p&#62;
&#60;p&#62;Also, isn't the whole idea to be able to install multiple machform installations in one database?  So wouldn't you want to customize the 4 lines to say something like &#34;ap_test_forms&#34;, etc?&#60;/p&#62;
&#60;p&#62;I tried this.  Installation went fine and the tables were created in the database with my custom name but when you go to log in the webpage is white and nothing comes up.  Maybe that is because I am missing the last step.&#60;/p&#62;
&#60;p&#62;I tried search/replace across all files and replace $ap with ap_test and then everything works fine, except when you create a new form an ap_form_1 table is added to the database.  So isn't the whole point to be able to have a base installation directory that you can just change the config file to a unique database prefix and not have to touch the files since it's automatically looking up the correct prefix in the config file?  If that's how it's suppose to work, apparently it's not or I'm doing something wrong.
&#60;/p&#62;</description>
</item>
<item>
<title>sphelan on "Change prefix tables"</title>
<link>https://www.machform.com/forums/topic/change-prefix-tables#post-8256</link>
<pubDate>Sat, 02 Jan 2010 05:02:44 +0000</pubDate>
<dc:creator>sphelan</dc:creator>
<guid isPermaLink="false">8256@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Yuniar,&#60;/p&#62;
&#60;p&#62;Table prefixes are an important feature, and is not be a hard change to implement ... I just did this locally in 33 minutes.&#60;/p&#62;
&#60;p&#62;Put these 4 lines at the end of config.php:&#60;br /&#62;
$ap_forms              = 'ap_forms';&#60;br /&#62;
$ap_form_elements      = 'ap_form_elements';&#60;br /&#62;
$ap_element_options    = 'ap_element_options';&#60;br /&#62;
$ap_column_preferences = 'ap_column_preferences';&#60;/p&#62;
&#60;p&#62;Then search/replace across all files, replacing:&#60;br /&#62;
ap_forms              =&#38;gt; $ap_forms&#60;br /&#62;
ap_form_elements      =&#38;gt; $ap_form_elements&#60;br /&#62;
ap_element_options    =&#38;gt; $ap_element_options&#60;br /&#62;
ap_column_preferences =&#38;gt; $ap_column_preferences&#60;/p&#62;
&#60;p&#62;Even if you do this globally, it almost works as is . Afterwards, replace:&#60;/p&#62;
&#60;p&#62;function $ap =&#38;gt; function ap_&#60;/p&#62;
&#60;p&#62;And you're done.&#60;/p&#62;
&#60;p&#62;Can we get this into the main code base? I'd hate to lose my upgrade path for this one feature.&#60;/p&#62;
&#60;p&#62;Sean Phelan&#60;br /&#62;
&#60;a href=&#34;http://www.VIRTUssist.com&#34;&#62;http://www.VIRTUssist.com&#60;/a&#62; - Secretarial And Virtual Assistant Services
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Change prefix tables"</title>
<link>https://www.machform.com/forums/topic/change-prefix-tables#post-6966</link>
<pubDate>Tue, 18 Aug 2009 20:53:26 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">6966@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Sorry, I'm afraid it's not possible to change the prefix. All tables are already having ap_xxxx prefix.
&#60;/p&#62;</description>
</item>
<item>
<title>Ajaxriver on "Change prefix tables"</title>
<link>https://www.machform.com/forums/topic/change-prefix-tables#post-6955</link>
<pubDate>Tue, 18 Aug 2009 02:05:38 +0000</pubDate>
<dc:creator>Ajaxriver</dc:creator>
<guid isPermaLink="false">6955@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Is it possible to change the default prefix ap_ of tables to another prefix like jos_?&#60;/p&#62;
&#60;p&#62;I need this because joomla.&#60;/p&#62;
&#60;p&#62;Thanks&#60;br /&#62;
JMorais
&#60;/p&#62;</description>
</item>

</channel>
</rss>
