Places (Events + Business integrated) Mod Support - part 4

Quote · 25 Jul 2020

~~~~~~~~~~~~~~~~~~~~~~~

$fields = mysql_list_fields($db['db'], "modzzz_listing_main"); 

$columns = mysql_num_fields($fields);

       

for ($i = 0; $i < $columns; $i++) {

    $field_array[] = mysql_field_name($fields, $i);

}

       

if (!in_array('location_id', $field_array)) {

db_res("ALTER TABLE `modzzz_listing_main` 

ADD `location_id` int(10) NOT NULL default '0'

");

}

 

if (!in_array('location_type', $field_array)) {

db_res("ALTER TABLE `modzzz_listing_main` 

ADD `location_type` varchar(255) NOT NULL default '' 

");

}

 

$GLOBALS['MySQL']->oParams->clearCache();

 

 

 

 

echo "SUCCESSFULLY UPDATED DATABASE ..... <br /><br />";

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

TravelNotes.org - The Online Guide to Travel
Quote · 25 Jul 2020

~~~~~~~~~~~~~~~~~~~~~~~~~~~~

$fields = mysql_list_fields($db['db'], "modzzz_lodging_main"); 

$columns = mysql_num_fields($fields);

       

for ($i = 0; $i < $columns; $i++) {

    $field_array[] = mysql_field_name($fields, $i);

}

       

if (!in_array('location_id', $field_array)) {

db_res("ALTER TABLE `modzzz_lodging_main` 

ADD `location_id` int(10) NOT NULL default '0' 

");

}

 

 

echo "SUCCESSFULLY UPDATED DATABASE ..... <br /><br />";

~~~~~~~~~~~~~~~~~~~~~~~~~~~~

TravelNotes.org - The Online Guide to Travel
Quote · 25 Jul 2020

~~~~~~~~~~~~~~~~~~~~~~~~~~~~

$fields = mysql_list_fields($db['db'], "modzzz_lodging_main"); 

$columns = mysql_num_fields($fields);

       

for ($i = 0; $i < $columns; $i++) {

    $field_array[] = mysql_field_name($fields, $i);

}

       

if (!in_array('location_id', $field_array)) {

db_res("ALTER TABLE `modzzz_lodging_main` 

ADD `location_id` int(10) NOT NULL default '0' 

");

}

 

 

echo "SUCCESSFULLY UPDATED DATABASE ..... <br /><br />";

~~~~~~~~~~~~~~~~~~~~~~~~~~~~

TravelNotes.org - The Online Guide to Travel
Quote · 25 Jul 2020

In Places Admin, both

Integrate with Business Listing module

and

Integrate with Lodging module Are checked.

TravelNotes.org - The Online Guide to Travel
Quote · 25 Jul 2020
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.