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.
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?
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.
Re: Blank Sidebox as Linked Graphic Only
Quote:
Originally Posted by
gjh42
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
Re: Blank Sidebox as Linked Graphic Only
Quote:
Originally Posted by
willie bee
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.
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?
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. :clap:
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.