Forums / Templates, Stylesheets, Page Layout / Realigning Attribute IMAGES

Realigning Attribute IMAGES

Locked

Started by rfaau on 27 Apr 2008, 8:21 PM · Views: 5,720

Results 21 to 40 of 45
This thread is locked. New replies are disabled.
28 Apr 2008, 1:24 AM
#21
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Realigning Attribute IMAGES

Here we go::

.attribImg {
float:left;
margin:0.3em 0em;
text-align:center;
width:20%;

Change the red font above to 14

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

28 Apr 2008, 1:25 AM
#22
rfaau avatar

rfaau

New Zenner

Join Date:
Apr 2008
Location:
San Francisco
Posts:
33
Plugin Contributions:
0

Re: Realigning Attribute IMAGES

H,

Well teacher, it depends on the assignment. Do I get extra credit for spacing the images the way I wanted or do I fail because I can't figure out how to bring the size dropdown closer to the color one?

28 Apr 2008, 1:26 AM
#23
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: Realigning Attribute IMAGES

Notice post #21 please

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

28 Apr 2008, 1:30 AM
#24
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: Realigning Attribute IMAGES

rfaau:

H,

Well teacher, it depends on the assignment. Do I get extra credit for spacing the images the way I wanted or do I fail because I can't figure out how to bring the size dropdown closer to the color one?

Well, this is the tricky part, since you wanted the core file to change with the Attribute Images to be placed above the Option Name..
Give me some time..

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

28 Apr 2008, 1:32 AM
#25
rfaau avatar

rfaau

New Zenner

Join Date:
Apr 2008
Location:
San Francisco
Posts:
33
Plugin Contributions:
0

Re: Realigning Attribute IMAGES

Whoops, once again you beat me.

28 Apr 2008, 1:33 AM
#26
rfaau avatar

rfaau

New Zenner

Join Date:
Apr 2008
Location:
San Francisco
Posts:
33
Plugin Contributions:
0

Re: Realigning Attribute IMAGES

haredo:

Well, this is the tricky part, since you wanted the core file to change with the Attribute Images to be placed above the Option Name..
Give me some time..

I owe you bigger than big.

28 Apr 2008, 1:36 AM
#27
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: Realigning Attribute IMAGES

rfaau:

I owe you bigger than big.

Just glad I could help you.. I have fun helping...

This should Help big time!!!!

  1. includes/ templates/ tagalong/ templates/ tpl_modules_attributes.php
  1. Line 34
  1. <br class="clearBoth" />
  1. delete this puppy

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

28 Apr 2008, 1:40 AM
#28
rfaau avatar

rfaau

New Zenner

Join Date:
Apr 2008
Location:
San Francisco
Posts:
33
Plugin Contributions:
0

Re: Realigning Attribute IMAGES

You call that "some time"? LOL :P

Well, it brought it closer.... but, errr....

28 Apr 2008, 1:44 AM
#29
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: Realigning Attribute IMAGES

rfaau:

You call that "some time"? LOL :P

Well, it brought it closer.... but, errr....

Put her back in 34 should of been 37 and
& take the break out of line 43

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

28 Apr 2008, 1:49 AM
#30
rfaau avatar

rfaau

New Zenner

Join Date:
Apr 2008
Location:
San Francisco
Posts:
33
Plugin Contributions:
0

Re: Realigning Attribute IMAGES

She's back in 37 and eliminated from 43.

28 Apr 2008, 2:05 AM
#32
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: Realigning Attribute IMAGES

Line 40, blank space Add this: <div class="wrapperAttribNames"> Line 43: <br class="clearBoth" /></div> , Just the div on the end

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

28 Apr 2008, 2:28 AM
#33
rfaau avatar

rfaau

New Zenner

Join Date:
Apr 2008
Location:
San Francisco
Posts:
33
Plugin Contributions:
0

Re: Realigning Attribute IMAGES

Added both.

28 Apr 2008, 2:43 AM
#34
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: Realigning Attribute IMAGES

R,
You are going to love this I hope..

Add the declaration to the .css

.wrapperAttribNames {
height: 27px;
float: left;
}

  1. What we had to do is create a seperate ID or class, so in the stylesheet we can control this puppy...
  2. What are you asking about the post above with the link...

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

28 Apr 2008, 2:48 AM
#35
rfaau avatar

rfaau

New Zenner

Join Date:
Apr 2008
Location:
San Francisco
Posts:
33
Plugin Contributions:
0

Re: Realigning Attribute IMAGES

:clap::clap::clap:

I don't like it, I LOVE it. H, you're the bestest.

28 Apr 2008, 2:50 AM
#36
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: Realigning Attribute IMAGES

I thought you would, I love it too

What is the problem on that one page.

I got an idea with the Cart add box.. you will see

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

28 Apr 2008, 3:07 AM
#37
rfaau avatar

rfaau

New Zenner

Join Date:
Apr 2008
Location:
San Francisco
Posts:
33
Plugin Contributions:
0

Re: Realigning Attribute IMAGES

I attached a screencap of the one page. I think it's pretty obviously highlighted.

I can't wait to see what you're coming up with!

28 Apr 2008, 3:08 AM
#38
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: Realigning Attribute IMAGES

rfaau:

:oops:

http://rachelfinley.com/zencart_2/index.php?main_page=index&cPath=1_7
To the left of FEATURED there's a lone > chillin like it's the thing to do. How do I make it go to the naughty corner?

Again I believe you have edited a core file when building and messes with this file...

Developers Tool Kit

admin panel/ tools/ developers tool kit/

  1. In the bottom box (left hand corner) enter in the Search wording. productsListingListingTopLinks
  2. Click the drop down menu under all files and chose the top option (catalog/admin)
  3. Click search, and WALA, you will find the files associated with the search.

I bet there is an extra > here in this file.

Look in override folder first...

includes/templates/template_default/templates/tpl_modules_product_listing.php

Line #26 : <div id="productsListingListingTopLinks" class="navSplitPagesLinks forward"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, zen_get_all_get_params(array('page', 'info', 'x', 'y', 'main_page'))); ?></div>

Or just post back with the .php coding to this page. So I can give her an eye.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

28 Apr 2008, 3:35 AM
#39
rfaau avatar

rfaau

New Zenner

Join Date:
Apr 2008
Location:
San Francisco
Posts:
33
Plugin Contributions:
0

Re: Realigning Attribute IMAGES

I don't see anything abnormal, but my PHP knowledge is just about non-existent.

<?php
/**
 * Module Template
 *
 * @package templateSystem
 * @copyright Copyright 2003-2005 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_modules_product_listing.php 3241 2006-03-22 04:27:27Z ajeh $
 * UPDATED TO WORK WITH COLUMNAR PRODUCT LISTING 04/04/2006
 */
 include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_PRODUCT_LISTING));
?>
<div id="productListing">
<?php
// only show when there is something to submit and enabled
    if ($show_top_submit_button == true) {
?>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_ADD_PRODUCTS_TO_CART, BUTTON_ADD_PRODUCTS_TO_CART_ALT, 'id="submit1" name="submit1"'); ?></div>

<?php
    } // show top submit
?>

<?php if ( ($listing_split->number_of_rows > 0) && ( (PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3') ) ) {
?>
<div id="productsListingTopNumber" class="navSplitPagesResult back"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></div>
<div id="productsListingListingTopLinks" class="navSplitPagesLinks forward"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, zen_get_all_get_params(array('page', 'info', 'x', 'y', 'main_page'))); ?></div>
>
<?php
}
?>

<?php
/**
 * load the list_box_content template to display the products
 */
if (PRODUCT_LISTING_LAYOUT_STYLE == 'columns') {
  require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php');
} else {// (PRODUCT_LISTING_LAYOUT_STYLE == 'rows')
  require($template->get_template_dir('tpl_tabular_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_tabular_display.php');
}
?>

<?php if ( ($listing_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) {
?>
<div id="productsListingBottomNumber" class="navSplitPagesResult back"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></div>
<div  id="productsListingListingBottomLinks" class="navSplitPagesLinks forward"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, zen_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></div>
<br class="clearBoth" />
<?php
  }
?>

<?php
// only show when there is something to submit and enabled
    if ($show_bottom_submit_button == true) {
?>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_ADD_PRODUCTS_TO_CART, BUTTON_ADD_PRODUCTS_TO_CART_ALT, 'id="submit2" name="submit1"'); ?></div>
<br class="clearBoth" />
<?php
    } // show_bottom_submit_button
?>
</div>

<?php
// if ($show_top_submit_button == true or $show_bottom_submit_button == true or (PRODUCT_LISTING_MULTIPLE_ADD_TO_CART != 0 and $show_submit == true and $listing_split->number_of_rows > 0)) {
  if ($show_top_submit_button == true or $show_bottom_submit_button == true) {
?>
</form>
<?php } ?>
28 Apr 2008, 3:57 AM
#40
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: Realigning Attribute IMAGES

No Problem you are learning fast..

here is the fix:

Please place in the override folder..

The core file shows this element after the </div1. <br class="clearBoth" />
2. when you deleted her
3. You forgot the little
4. DREADED
5. >Find this:

<div id="productsListingTopNumber" class="navSplitPagesResult back"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></div> 
<div id="productsListingListingTopLinks" class="navSplitPagesLinks forward"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, zen_get_all_get_params(array('page', 'info', 'x', 'y', 'main_page'))); ?></div> 
> 
<?php 
} 
?>
```Change to this:```php
<div id="productsListingTopNumber" class="navSplitPagesResult back"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></div> 
<div id="productsListingListingTopLinks" class="navSplitPagesLinks forward"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, zen_get_all_get_params(array('page', 'info', 'x', 'y', 'main_page'))); ?></div> 
<?php 
} 
?>
```Now did we kick some Major A-- tonight...:smile:

Nice site by the way.1. clean
2. nice color contrast
3. If you ever need any other help just pm me and start a thread..

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.