Forums / Addon Sideboxes / Logo Sidebox Help

Logo Sidebox Help

Views: 56,268

Results 141 to 160 of 201
5 Jun 2010, 4:14 AM
#141
bigal49 avatar

bigal49

Zen Follower

Join Date:
Mar 2010
Location:
California
Posts:
236
Plugin Contributions:
0

Logo Sidebox Help

I installed it and couldn't get it to work properly.

I'll continue to try in the morning.

Thanks, BigAl

BigAl49
Al Treadway
http://www.topnotchbassbaits.com

5 Jun 2010, 3:16 PM
#142
bigal49 avatar

bigal49

Zen Follower

Join Date:
Mar 2010
Location:
California
Posts:
236
Plugin Contributions:
0

Re: Logo Sidebox Help

Got it!

Replaced it with the PayPal Sidebox and it works great.

Thanks to both of you.

BigAl49
Al Treadway
http://www.topnotchbassbaits.com

19 Jul 2010, 3:56 AM
#143
thingswithbling avatar

thingswithbling

New Zenner

Join Date:
Jul 2010
Posts:
2
Plugin Contributions:
0

Re: Logo Sidebox Help

For those trying to add the Paypal link to the Logo sidebox I finally discovered how to do it! :clap:

Go to your defines file (logo_sidebox_defines.php) where you define LOGO_SIDEBOX_LINK

Now you will notice your when you define the link you use a single quote to enclose the link
define('LOGO_SIDEBOX_LINK', 'http://your_link.com/');

The problem is that the paypal link also has single quotes in it, so as soon as the sidebox sees the second single quote, it assumes the define is closed.

So, to include single quotes in your define, PHP code requires you to put a backslash "" before each single quote. This way it "ignores" that single quote as being the end of the define

So your define will go from
'#" onclick="javascript:window.open
('https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside','olcwhatispaypal','toolbar=no,
location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350');'

to

'#" onclick="javascript:window.open('https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside','olcwhatispaypal','toolbar=no,location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350');'

Note that this is just for the Paypal href LINK ONLY. You will still need a defined image for the sidebox and the image sitting in my template\image directory.

Hope this helps people! :bigups:

22 Aug 2010, 6:32 PM
#144
weezee avatar

weezee

Zen Follower

Join Date:
May 2006
Location:
Louisiana
Posts:
259
Plugin Contributions:
0

Re: Logo Sidebox Help

When I click check link I get this message:

Warning: preg_match() [function.preg-match]: Unknown modifier '/' in /home/content/w/e/e/weezee/html/xxxxxx_admin/links.php on line 625

I am running Zen Cart v1.3.8a. I reuploading all the links manager files, before that, the line was 623

9 Oct 2010, 5:15 PM
#145
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: Logo Sidebox Help

Clyde,

I am trying to change box header of the sidebox I couldn't remember where it was can you able to help me?

9 Oct 2010, 6:35 PM
#146
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Logo Sidebox Help

bkeaton:

Clyde,

I am trying to change box header of the sidebox I couldn't remember where it was can you able to help me?

includes/languages/english/extra_definitions/YOUR_TEMPLATE/logo_sidebox_defines.php

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

16 May 2011, 9:05 PM
#147
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Re: Logo Sidebox Help

Hey there I got this working and the logo shows up BUT when I used the optional 'use the logo as a link' the logo doesn't show up but the link works, if you can find it by hovering around the box until you can click somehting.

Here is what I have so far.
define('BOX_HEADING_GIFT_CERTIFICATES', '');

//Logo number 1
define('GIFT_CERTIFICATES_IMAGE_WIDTH', '125');
define('GIFT_CERTIFICATES_IMAGE_HEIGHT', '125');
define('GIFT_CERTIFICATES_IMAGE', 'gift_certificates.jpg');
define('GIFT_CERTIFICATES_IMAGE_TEXT', 'Gift Certificates');
define('LOGO_IMAGE', zen_image($template->get_template_dir(GIFT_CERTIFICATES_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . GIFT_CERTIFICATES_IMAGE, GIFT_CERTIFICATES_IMAGE_TEXT, GIFT_CERTIFICATES_IMAGE_WIDTH, GIFT_CERTIFICATES_IMAGE_HEIGHT));

//this is optional if you want to use the logo as a link
//add your link information to the define statement below
//example
//define('GIFT_CERTIFICATES_LINK', '" rel="external" target="_blank"');

define('GIFT_CERTIFICATES_LINK', 'index.php?main_page=index&cPath=3718');

//DO NOT edit below this line

if (GIFT_CERTIFICATES_LINK == '') {
define('LOGO_IMAGES', LOGO_IMAGE);
}else {
define('LOGO_IMAGES', '<a href="' . GIFT_CERTIFICATES_LINK . '>' . LOGO_IMAGE . '</a>');
}

don't mess with willie bee. i may go crazy on you.

16 May 2011, 9:57 PM
#148
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Logo Sidebox Help

willie bee:

Hey there I got this working and the logo shows up BUT when I used the optional 'use the logo as a link' the logo doesn't show up but the link works, if you can find it by hovering around the box until you can click somehting.

Here is what I have so far.
define('BOX_HEADING_GIFT_CERTIFICATES', '');

//Logo number 1
define('GIFT_CERTIFICATES_IMAGE_WIDTH', '125');
define('GIFT_CERTIFICATES_IMAGE_HEIGHT', '125');
define('GIFT_CERTIFICATES_IMAGE', 'gift_certificates.jpg');
define('GIFT_CERTIFICATES_IMAGE_TEXT', 'Gift Certificates');
define('LOGO_IMAGE', zen_image($template->get_template_dir(GIFT_CERTIFICATES_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . GIFT_CERTIFICATES_IMAGE, GIFT_CERTIFICATES_IMAGE_TEXT, GIFT_CERTIFICATES_IMAGE_WIDTH, GIFT_CERTIFICATES_IMAGE_HEIGHT));

//this is optional if you want to use the logo as a link
//add your link information to the define statement below
//example
//define('GIFT_CERTIFICATES_LINK', '" rel="external" target="_blank"');

define('GIFT_CERTIFICATES_LINK', 'index.php?main_page=index&cPath=3718');

//DO NOT edit below this line

if (GIFT_CERTIFICATES_LINK == '') {
define('LOGO_IMAGES', LOGO_IMAGE);
}else {
define('LOGO_IMAGES', '<a href="' . GIFT_CERTIFICATES_LINK . '>' . LOGO_IMAGE . '</a>');
}

add the highlighted portion as indicated

define('GIFT_CERTIFICATES_LINK', 'index.php?main_page=index&cPath=3718"');

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

16 May 2011, 10:28 PM
#149
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Re: Logo Sidebox Help

Awesome. If I didn't have this problem, this thread would've never been bumped so, it worked out! :clap:

don't mess with willie bee. i may go crazy on you.

16 May 2011, 10:30 PM
#150
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Re: Logo Sidebox Help

One more weird thing. When you click on the logo it is fine. It goes to the page where it is supposed to.

But the header text where it says Gift Certificates [MORE]. When you click it, it takes you to the Reviews page. I have my Reviews box up above.

Weird?

don't mess with willie bee. i may go crazy on you.

16 May 2011, 11:40 PM
#151
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Logo Sidebox Help

willie bee:

One more weird thing. When you click on the logo it is fine. It goes to the page where it is supposed to.

But the header text where it says Gift Certificates [MORE]. When you click it, it takes you to the Reviews page. I have my Reviews box up above.

Weird?

According to this, you don't have a sidebox header:

define('BOX_HEADING_GIFT_CERTIFICATES', '');

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

17 May 2011, 12:02 AM
#152
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Re: Logo Sidebox Help

clydejones:

According to this, you don't have a sidebox header:

define('BOX_HEADING_GIFT_CERTIFICATES', '');

Yeah I put it in afterwards

define('BOX_HEADING_GIFT_CERTIFICATES', 'Gift Certificates');

//Logo number 1
define('GIFT_CERTIFICATES_IMAGE_WIDTH', '125');
define('GIFT_CERTIFICATES_IMAGE_HEIGHT', '125');
define('GIFT_CERTIFICATES_IMAGE', 'gift_certificates.jpg');
define('GIFT_CERTIFICATES_IMAGE_TEXT', 'Gift Certificates');
define('LOGO_IMAGE', zen_image($template->get_template_dir(GIFT_CERTIFICATES_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . GIFT_CERTIFICATES_IMAGE, GIFT_CERTIFICATES_IMAGE_TEXT, GIFT_CERTIFICATES_IMAGE_WIDTH, GIFT_CERTIFICATES_IMAGE_HEIGHT));

//this is optional if you want to use the logo as a link
//add your link information to the define statement below
//example
//define('GIFT_CERTIFICATES_LINK', '" rel="external" target="_blank"');

define('GIFT_CERTIFICATES_LINK', 'index.php?main_page=index&cPath=3718"');

//DO NOT edit below this line

if (GIFT_CERTIFICATES_LINK == '') {
define('LOGO_IMAGES', LOGO_IMAGE);
}else {
define('LOGO_IMAGES', '<a href="' . GIFT_CERTIFICATES_LINK . '>' . LOGO_IMAGE . '</a>');
}

//

don't mess with willie bee. i may go crazy on you.

17 May 2011, 12:41 AM
#153
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Re: Logo Sidebox Help

I think I am making this more difficult that it is but I am making three side logo boxes.

I noticed that when I created a second one the same image appeared for both boxes even though I typed in a different image name.

Here is what I did for one as an example and even went and changed what you said not to change in the file.

gift_certificated_defines.php

define('BOX_HEADING_GIFT_CERTIFICATES', 'Gift Certificates');

//Logo number 1
define('GIFT_CERTIFICATES_IMAGE_WIDTH', '150');
define('GIFT_CERTIFICATES_IMAGE_HEIGHT', '150');
define('GIFT_CERTIFICATES_IMAGE', 'gift_certificates.jpg');
define('GIFT_CERTIFICATES_IMAGE_TEXT', 'Gift Certificates');
define('GIFT_CERTIFICATES_IMAGE', zen_image($template->get_template_dir(GIFT_CERTIFICATES_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . GIFT_CERTIFICATES_IMAGE, GIFT_CERTIFICATES_IMAGE_TEXT, GIFT_CERTIFICATES_IMAGE_WIDTH, GIFT_CERTIFICATES_IMAGE_HEIGHT));

//this is optional if you want to use the logo as a link
//add your link information to the define statement below
//example
//define('GIFT_CERTIFICATES_LINK', '" rel="external" target="_blank"');

define('GIFT_CERTIFICATES_LINK', 'index.php?main_page=index&cPath=3718"');

//DO NOT edit below this line

if (GIFT_CERTIFICATES_LINK == '') {
define('GIFT_CERTIFICATES_IMAGES', GIFT_CERTIFICATES_IMAGE);
}else {
define('GIFT_CERTIFICATES_IMAGES', '<a href="' . GIFT_CERTIFICATES_LINK . '>' . GIFT_CERTIFICATES_IMAGE . '</a>');
}

gift_certificates.php

$show_gift_certificates = true;

if ($show_gift_certificates == true) {
require($template->get_template_dir('tpl_gift_certificates.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_gift_certificates.php');
$title = BOX_HEADING_GIFT_CERTIFICATES;
$left_corner = false;
$right_corner = false;
$right_arrow = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
?>

tpl_gift_certificates.php

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

$content .= GIFT_CERTIFICATES_IMAGES;

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

I did the same for the other boxes, changing the wording to make diff boxes and this is what I get for the images

the links, but the top text heading link goes to the review page

don't mess with willie bee. i may go crazy on you.

17 May 2011, 1:03 AM
#154
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Logo Sidebox Help

willie bee:

I think I am making this more difficult that it is but I am making three side logo boxes.

I noticed that when I created a second one the same image appeared for both boxes even though I typed in a different image name.

Here is what I did for one as an example and even went and changed what you said not to change in the file.

gift_certificated_defines.php

define('BOX_HEADING_GIFT_CERTIFICATES', 'Gift Certificates');

//Logo number 1
define('GIFT_CERTIFICATES_IMAGE_WIDTH', '150');
define('GIFT_CERTIFICATES_IMAGE_HEIGHT', '150');
define('GIFT_CERTIFICATES_IMAGE', 'gift_certificates.jpg');
define('GIFT_CERTIFICATES_IMAGE_TEXT', 'Gift Certificates');
define('GIFT_CERTIFICATES_IMAGE', zen_image($template->get_template_dir(GIFT_CERTIFICATES_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . GIFT_CERTIFICATES_IMAGE, GIFT_CERTIFICATES_IMAGE_TEXT, GIFT_CERTIFICATES_IMAGE_WIDTH, GIFT_CERTIFICATES_IMAGE_HEIGHT));

//this is optional if you want to use the logo as a link
//add your link information to the define statement below
//example
//define('GIFT_CERTIFICATES_LINK', '" rel="external" target="_blank"');

define('GIFT_CERTIFICATES_LINK', 'index.php?main_page=index&cPath=3718"');

//DO NOT edit below this line

if (GIFT_CERTIFICATES_LINK == '') {
define('GIFT_CERTIFICATES_IMAGES', GIFT_CERTIFICATES_IMAGE);
}else {
define('GIFT_CERTIFICATES_IMAGES', '<a href="' . GIFT_CERTIFICATES_LINK . '>' . GIFT_CERTIFICATES_IMAGE . '</a>');
}

gift_certificates.php

$show_gift_certificates = true;

if ($show_gift_certificates == true) {
require($template->get_template_dir('tpl_gift_certificates.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_gift_certificates.php');
$title = BOX_HEADING_GIFT_CERTIFICATES;
$left_corner = false;
$right_corner = false;
$right_arrow = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
?>

tpl_gift_certificates.php

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

$content .= GIFT_CERTIFICATES_IMAGES;

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

I did the same for the other boxes, changing the wording to make diff boxes and this is what I get for the images

the links, but the top text heading link goes to the review page

What are the listings for your second sideox

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

17 May 2011, 1:07 AM
#155
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Re: Logo Sidebox Help

wherever you see GIFT_CERTIFICATES it was change to PAYPAL_EXTRAS_MASTERCARD

and vice cersa for gift_certificates in lower case.

and I'm using the newest one off your site, not off the downloads section.

don't mess with willie bee. i may go crazy on you.

17 May 2011, 1:41 AM
#156
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Logo Sidebox Help

willie bee:

wherever you see GIFT_CERTIFICATES it was change to PAYPAL_EXTRAS_MASTERCARD

and vice cersa for gift_certificates in lower case.

and I'm using the newest one off your site, not off the downloads section.

I'm not sure where this is coming from
Gift Certificates [MORE]

since you haven't define the [MORE] for the heading.

define('BOX_HEADING_GIFT_CERTIFICATES', 'Gift Certificates');

I can only guess that one or more of the preceding sideboxes has not been properly implemented.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

17 May 2011, 1:53 AM
#157
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Re: Logo Sidebox Help

clydejones:

I'm not sure where this is coming from
Gift Certificates [MORE]

since you haven't define the [MORE] for the heading.

define('BOX_HEADING_GIFT_CERTIFICATES', 'Gift Certificates');

I can only guess that one or more of the preceding sideboxes has not been properly implemented.

I have double and triple checked the files and they seem right. Have you personally tried this out trying to run two boxes at the same time on a test site? Maybe there is something that you may have missed.

Hey you never know. I could be right. :clap:

don't mess with willie bee. i may go crazy on you.

17 May 2011, 2:58 AM
#158
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Logo Sidebox Help

willie bee:

I have double and triple checked the files and they seem right. Have you personally tried this out trying to run two boxes at the same time on a test site? Maybe there is something that you may have missed.

Hey you never know. I could be right. :clap:

As a matter of fact, Yes. Actually 3 logo sideboxes.

You can see them here ( clydedesigns.com/designdemo/index.php )

They're three on the right just after the important links box.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

17 May 2011, 3:12 AM
#159
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Re: Logo Sidebox Help

clydejones:

As a matter of fact, Yes. Actually 3 logo sideboxes.

You can see them here ( clydedesigns.com/designdemo/index.php )

They're three on the right just after the important links box.

Do you have detailed instructions on how in case someone else wants to do this besides me? I didn't see any in any previous posts unless I missed it.

don't mess with willie bee. i may go crazy on you.

17 May 2011, 4:27 AM
#160
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Logo Sidebox Help

willie bee:

Do you have detailed instructions on how in case someone else wants to do this besides me? I didn't see any in any previous posts unless I missed it.

To clone this sidebox you would rename these files

includes/languages/english/extra_definitions/YOUR_TEMPLATE/logo_sidebox_defines.php
includes/modules/sideboxes/YOUR_TEMPLATE/logo_sidebox.php
includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox.php

to the following:

includes/languages/english/extra_definitions/YOUR_TEMPLATE/logo2_sidebox_defines.php
includes/modules/sideboxes/YOUR_TEMPLATE/logo2_sidebox.php
includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo2_sidebox.php

The contents of the files would similarly be renamed to reflect the logo2 designation.

logo2_sidebox_defines.php

define('BOX_HEADING_LOGO2_SIDEBOX', '');

//Logo number 1
define('LOGO2_SIDEBOX_IMAGE_WIDTH', '128');
define('LOGO2_SIDEBOX_IMAGE_HEIGHT', '128');
define('LOGO2_SIDEBOX_IMAGE', 'label_new_red.png');
define('LOGO2_SIDEBOX_IMAGE_TEXT', 'My Logo two');
define('LOGO2_IMAGE', zen_image($template->get_template_dir(LOGO2_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO2_SIDEBOX_IMAGE, LOGO2_SIDEBOX_IMAGE_TEXT, LOGO2_SIDEBOX_IMAGE_WIDTH, LOGO2_SIDEBOX_IMAGE_HEIGHT)); 

//this is optional if you want to use the logo as a link
//add  your link information to the define statement below
//example
//define('LOGO2_SIDEBOX_LINK', 'http://your_link.com/" rel="external" target="_blank"');

define('LOGO2_SIDEBOX_LINK', '');

//DO NOT edit below this line

if (LOGO2_SIDEBOX_LINK == '') {
define('LOGO2_IMAGES', LOGO2_IMAGE);
}else {
define('LOGO2_IMAGES', '<a href="' . LOGO2_SIDEBOX_LINK . '>' . LOGO2_IMAGE . '</a>');
}

logo2_sidebox.php

// test if box should display
  $show_logo2_sidebox = true;

  if ($show_logo2_sidebox == true) {
      require($template->get_template_dir('tpl_logo2_sidebox.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_logo2_sidebox.php');
      $title =  BOX_HEADING_LOGO2_SIDEBOX;
      require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
 }

tpl_logo2_sidebox.php

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

  $content .=  LOGO2_IMAGES;

  $content .= '</div>';

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.