Page 4 of 4 FirstFirst ... 234
Results 31 to 38 of 38
  1. #31
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Blank Sidebox as Linked Graphic Only

    In your stylesheet, make a pair of rules for the particular link, like this:
    Code:
    #products a {
        display: block;
        height: 33px;
        width: 142px;
        background: url(../images/productbutton.gif);
        }
    
    #products a:hover {
        background: url(../images/productbuttonhover.gif);
        }
    Adjust to taste.
    Replace the #products with whatever the identifying tag is.

  2. #32
    Join Date
    Mar 2011
    Posts
    364
    Plugin Contributions
    0

    Default Re: Blank Sidebox as Linked Graphic Only

    Hey. I installed this and created three separate individual side boxes. I read the posts here but I think my question is different.

    Basically I want to use an image as a link. When you click on the link the middle page changes. One example is we have a page listing REBATES. So when you click on that side box the rebates page loads.

    Now I created a page in EZ Pages with HTML content and called it REBATES.

    My question is how do I link that page to the side box?
    Last edited by willie bee; 12 May 2011 at 08:23 AM.

  3. #33
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Blank Sidebox as Linked Graphic Only

    Use the link option in the tpl_ file as described in its comments. Then define the link destination in the define file, like this


    //this is optional if you want to use the logo as a link
    //replace your_link.com with the link you choose
    define('LOGO_SIDEBOX_LINK', 'index.php?main_page=page&id=23');

    Change 23 to your ez-page id.

  4. #34
    Join Date
    Mar 2011
    Posts
    364
    Plugin Contributions
    0

    Default Re: Blank Sidebox as Linked Graphic Only

    Quote Originally Posted by gjh42 View Post
    Use the link option in the tpl_ file as described in its comments. Then define the link destination in the define file, like this


    //this is optional if you want to use the logo as a link
    //replace your_link.com with the link you choose
    define('LOGO_SIDEBOX_LINK', 'index.php?main_page=page&id=23');

    Change 23 to your ez-page id.
    Thank you

  5. #35
    Join Date
    Mar 2011
    Posts
    364
    Plugin Contributions
    0

    Default Re: Blank Sidebox as Linked Graphic Only

    Quote Originally Posted by willie bee View Post
    Thank you
    Ok talk to me like I'm a 3rd grader. I'm good at steps.

    I created an EZ-Page in the admin. The ID is 32.

    For the options I turned off Header, Sidebox, Footer and Chapter.

    I put my HTML in.

    in blank_sidebox_defines.php I need to ADD

    define('LOGO_SIDEBOX_LINK', 'index.php?main_page=page&id=32');

    WTH do I go next? I'm assuming I no longer have to worry about the templates file since I am not using that but am using an EZ-Page.

    What do I do with the /modules/blank_sidebox.php?

    My image is located in /images/rebate.jpg

    Thanks for dealing with this headache.

  6. #36
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Blank Sidebox as Linked Graphic Only

    You are using all of the sidebox template files. They are just to display the link that points to the ez-page.
    There is nothing you need to change with /includes/modules/sideboxes/blank_sidebox.php - the file just needs to be in the right place.
    You have to comment/uncomment statements in /includes/templates/your_template/sideboxes/tpl_blank_sidebox.php as the directions in that file say.
    Have you filled in all of the defines in blank_sidebox_defines.php?

  7. #37
    Join Date
    Mar 2011
    Posts
    364
    Plugin Contributions
    0

    Default Re: Blank Sidebox as Linked Graphic Only

    This is what I have in the defines file

    <?php
    define('BOX_HEADING_PayPal_Extras_MasterCard', 'PayPal Extras MasterCard');
    define('TEXT_PayPal_Extras_MasterCard', 'Replace this text with your HTML content.');
    ?>

    This is what I have in the modules file

    <?php
    // test if box should display
    $show_PayPal_Extras_MasterCard = true;

    if ($show_PayPal_Extras_MasterCard == true) {
    require($template->get_template_dir('tpl_PayPal_Extras_MasterCard.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_PayPal_Extras_MasterCard.php');
    $title = BOX_HEADING_PayPal_Extras_MasterCard;
    $title_link = false;
    require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
    }
    ?>

    This is what I have in the template file.

    <?php

    $content = '';
    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';

    // Replace the text and HTML tags between the apostophes on lines 19 and 20.
    // Use as many or as few lines using this model as you need for your custom content.
    // If you have a multilingual site define your text in the languages/YOUR_LANGUAGE/extra_definitions/blank_sidebox_defines.php and include it as shown in line 19.
    // If your site is monolingual, you can put the text right here as shown on line 20 (and nobody will know!)
    $content .= '<p>' . TEXT_PayPal_Extras_MasterCard . '</p>';
    $content .= '<p>You can include text, links, images, HTML markup and even PHP code</p>';

    $content .= '</div>';
    ?>

    My logo image I want in the side box is /images/PayPal.jpg

    The EZ Page I created has an ID of 32.

    This is where I get lost to put the image in the side box and to link the EZ Page. But at least I'm 10% there.

  8. #38
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Blank Sidebox as Linked Graphic Only

    Nearly all of this thread (starting at post #4) has actually been about using the Logo Sidebox mod, as it is directly tailored to the task in question. The blank sidebox does not have the code built in to handle the links and images, though you could add it. The easiest route would be to get the Logo Sidebox mod and proceed from there with the directions given in this thread.

 

 
Page 4 of 4 FirstFirst ... 234

Similar Threads

  1. Sidebox Header Graphic Question(s)
    By Hell Guapo in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 3 Jan 2012, 12:25 AM
  2. Blank Sidebox Only On Homepage
    By Globie in forum General Questions
    Replies: 2
    Last Post: 27 Oct 2008, 06:44 AM
  3. Changing the size(length) of the Blank-Sidebox only.
    By Robbyn7 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 7 Sep 2007, 08:17 PM
  4. Adding Graphic to Bottom of Cart Sidebox
    By jacdesigner in forum Basic Configuration
    Replies: 2
    Last Post: 17 Nov 2006, 04:01 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR