Forums / Upgrading from 1.2 to 1.3.x / Migrating DIR_WS_BLOCKS from 1.2 to 1.3?

Migrating DIR_WS_BLOCKS from 1.2 to 1.3?

Locked

Started by thisisjohnny on 3 Aug 2006, 1:56 AM · Views: 2,062

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
3 Aug 2006, 1:56 AM
#1
thisisjohnny avatar

thisisjohnny

New Zenner

Join Date:
Aug 2006
Posts:
4
Plugin Contributions:
0

Migrating DIR_WS_BLOCKS from 1.2 to 1.3?

I am trying to migrate a template built for 1.2 to 1.3 and have tried searching these forums for topics and threads relating to blocks code.

specifically:

Warning: require(DIR_WS_BLOCKSblk_address_format_us.php) [function.require]: failed to open stream: No such file or directory in C:\Program Files***\templates\tpl_login_default.php on line 197

While it would be easy to fix by just replacing the require(...) of the missing file with actual html for the address information, I'd like to know the "right" way to fix this problem.

Any and all help is appreciated.

3 Aug 2006, 1:59 AM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,730
Plugin Contributions:
0

Re: Migrating DIR_WS_BLOCKS from 1.2 to 1.3?

The blocks are no longer used, I would suggest looking at the current code for the login page. You will also need to check the My Account section for the address block usage too.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

3 Aug 2006, 2:03 AM
#3
thisisjohnny avatar

thisisjohnny

New Zenner

Join Date:
Aug 2006
Posts:
4
Plugin Contributions:
0

Re: Migrating DIR_WS_BLOCKS from 1.2 to 1.3?

okay. I guess I will use:

<?php require($template->get_template_dir('tpl_modules_create_account.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_create_account.php'); ?>

and fix the alignment over the alignment in tpl_modules_create_account.php instead.

3 Aug 2006, 2:15 AM
#4
thisisjohnny avatar

thisisjohnny

New Zenner

Join Date:
Aug 2006
Posts:
4
Plugin Contributions:
0

Re: Migrating DIR_WS_BLOCKS from 1.2 to 1.3?

What is the recommended way to fix the alignment for:

<label class="inputLabel" for="firstname" ><?php echo ENTRY_FIRST_NAME; ?></label>

<?php echo zen_draw_input_field('firstname', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_firstname', '40') . ' id="firstname"') . (zen_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="alert">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?>

in 1.27 i could do:

<tr> <td class="main"><?php echo ENTRY_FIRST_NAME; ?></td> <td class="main"><?php echo zen_draw_input_field('firstname', '', 'style="width:155px" '.zen_set_field_length(TABLE_CUSTOMERS, 'customers_firstname', '40')) . ' ' . (zen_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?></td> </tr>
3 Aug 2006, 2:47 AM
#5
thisisjohnny avatar

thisisjohnny

New Zenner

Join Date:
Aug 2006
Posts:
4
Plugin Contributions:
0

Re: Migrating DIR_WS_BLOCKS from 1.2 to 1.3?

just thought I'd share...

.inputLabel {
margin: 5px;
width: 100px;
float: left;
vertical-align: middle;
}

input {
margin: 5px;
}

select {
margin: 5px;
}

legend {
font-size: 14px;
font-weight: bold;
}

made my registration form look a lot sharper...