Forums / Addon Sideboxes / Logo Sidebox Help

Logo Sidebox Help

Views: 56,268

Results 181 to 200 of 201
19 Jan 2012, 1:45 PM
#181
rjugalbot avatar

rjugalbot

New Zenner

Join Date:
Jan 2012
Posts:
14
Plugin Contributions:
0

Logo Sidebox Help

willie bee:

Ok folks. I got it all up and running and working. Centered images, creating multiple sideboxes with linking logos, working with external links and EZ-Pages. If anyone reading this thread has any questions, feel free to ask me direct or here and I'll do my best to help. I pretty much understand it now.

Attached is a screen capture. TIA to both Clyde and Glenn.

My logos are not centered, which CSS file did you put those codes?

Thanks.

27 Jun 2012, 2:08 AM
#182
songseng avatar

songseng

New Zenner

Join Date:
Dec 2011
Posts:
24
Plugin Contributions:
0

Re: Logo Sidebox Help

1st of all, thanks for the contribution. I'm really looking for logo sidebox but it's not workable for my ZC1.50.
The sidebox is not show up after the installation.
So forgive me if im wrong, this might be old thread that not updated to ZC1.50. For those who looking for similar plugin, I would suggest the "editable sidebox", it works fine for me, at least for the "onlink bank". You may refer to http://my.gobiztunnel.com
My idea to have a 'better' logo sidebox or centerbox would be some logos/brand display in a matrix of 3x3, 3x5 or 5x5.
I hope to work out, or any suggestion are welcome yea..:hug:

24 Feb 2013, 11:05 PM
#183
debbie2014 avatar

debbie2014

New Zenner

Join Date:
Jul 2012
Location:
AZ USA
Posts:
59
Plugin Contributions:
0

Re: Logo Sidebox Help

Hi

My site is here http://dezertdezinez.com/store

I have installed the logo side box to the above site and it worked fine . I then cloned the box to make another and labeled it logo1 and it's now not showing .. Does it have to be logo2 to show the second box ??

My image is paypalsid.jpg for the logo1 box and ssllogo.png for logo box

Any ideas on how I can get the second box to show and work...

one more thing is that one the layout page it's showing a missing where the logobox1 should be so it's not showing ..

25 Feb 2013, 12:06 AM
#184
debbie2014 avatar

debbie2014

New Zenner

Join Date:
Jul 2012
Location:
AZ USA
Posts:
59
Plugin Contributions:
0

Re: Logo Sidebox Help

RJugalbot:

My logos are not centered, which CSS file did you put those codes?

Thanks.
your main css file

31 Oct 2014, 8:54 PM
#185
scooter avatar

scooter

New Zenner

Join Date:
Dec 2008
Posts:
80
Plugin Contributions:
1

Re: Logo Sidebox Help

so i'm trying to put a image map for all my site certs and validations in the logo box.(cira 2008)
the map is clickable and works on its own
it uses both css and html.
however when the map is clicked on when in the #logosidebox
it does not work any ideas, pointers
thanks for any input,
scooter
zc1.5.3-hot

2 Nov 2014, 5:21 PM
#187
scooter avatar

scooter

New Zenner

Join Date:
Dec 2008
Posts:
80
Plugin Contributions:
1

Re: Logo Sidebox Help

gjh42:

We need to see what you have (live) to comment on why it is not working for you.
thanks for the interest in helping me out .
I've also tried the blank box and it leaks the map in the column above the sidebox...:(
tried calling the whole map code as a html, split the css off into the styesheet
as #logosideboxContents and put the html/js in the logo xx defines php & tpl logoxx php
as $content . = and $content.include
as said i've had the map show up in the column with blank_sbx and it works but
i can't get it to work inside logo or blank sidebox

maybe i should be declaring it as #new_site_seal2 (in the css?) which is the map itself?

#htps://whidbeyislandmoped(dot)com/cart/
%CODE FOR MAP%

<style type="text/css"> .map_image { display: block; width: 125px; height: 135px; position: relative; background-position: 0 0; background-repeat: no-repeat; } .map_image .map_link { display: block; position: absolute; text-indent: -999em; overflow: hidden; } .map_image #map_link_0 { width: 93px; height: 44px; top: 80px; left: 17px; } .map_image #map_link_1 { width: 121px; height: 28px; top: 43px; left: 1px; } .map_image #map_link_2 { width: 87px; height: 33px; top: 3px; left: 17px; } </style> <div class="map_image" style="background-image: url('includes/templates/classic/images/new_site_seal2.gif');"> <a class="map_link" id="map_link_0" title="Trustwave" onMouseOver="Trustwave" onClick="javascript:window.open('https://sealserver.trustwave.com/cert.php?customerId=w6oj3BZ9ZhnnLcVNVXtmgytnQ66qDb&size=105x54&style=', 'c_TW', 'location=no, toolbar=no, resizable=yes, scrollbars=yes, directories=no, status=no, width=615, height=720'); return false" span style="cursor:pointer" #new_site_seal2 /span /a>

<a class="map_link" id="map_link_1" title="GoDaddy" onMouseOver="GoDaddy" onClick="javascript:window.open('https://seal.godaddy.com/verifySeal?sealID=N8bfYhpsAEbVn89X8a1ktZjmZpl6VGLxbewiScT6iMRA7W5sEdSHOBD0&size=105x54&style=', 'c_TW', 'location=no, toolbar=no, resizable=yes, scrollbars=yes, directories=no, status=no, width=615, height=720'); return false" span style="cursor:pointer" #new_site_seal2 /span /a>

<a class="map_link" id="map_link_2" title="PayPal" onMouseOver="PayPal" herf="https://www.paypal.com/"
onClick="javascript:window.open('https://www.paypal.com/us/verified/pal=scooters%40whidbeyislandmoped%2ecom&size=105x54&style=', 'c_TW', 'location=no, toolbar=no, resizable=yes, scrollbars=yes, directories=no, status=no, width=615, height=720'); return false" span style="cursor:pointer" #new_site_seal2 /span /a>

</div>

thank you

2 Nov 2014, 5:33 PM
#188
trinity14 avatar

trinity14

Zen Follower

Join Date:
Jan 2014
Location:
Ontario, Canada
Posts:
252
Plugin Contributions:
3

Re: Logo Sidebox Help

sorry, found what I was looking for...

2 Nov 2014, 5:40 PM
#189
scooter avatar

scooter

New Zenner

Join Date:
Dec 2008
Posts:
80
Plugin Contributions:
1

Re: Logo Sidebox Help

sorry, forgot to add its the Secure Site sidebox on the right
you can grab the map if you want/need it

2 Nov 2014, 5:50 PM
#190
trinity14 avatar

trinity14

Zen Follower

Join Date:
Jan 2014
Location:
Ontario, Canada
Posts:
252
Plugin Contributions:
3

Re: Logo Sidebox Help

What file have you added this to?

<div class="map_image" style="background-image: url('includes/templates/classic/images/new_site_seal2.gif');">
<a class="map_link" id="map_link_0" title="Trustwave" onMouseOver="Trustwave" onClick="javascript:window.open('https://sealserver.trustwave.com/cert.php?customerId=w6oj3BZ9ZhnnLcVNVXtmgytnQ66qDb&size=105x54&style=',  'c_TW', 'location=no, toolbar=no, resizable=yes, scrollbars=yes,  directories=no, status=no, width=615, height=720'); return false" span  style="cursorointer" #new_site_seal2 /span /a>

<a class="map_link" id="map_link_1" title="GoDaddy" onMouseOver="GoDaddy" onClick="javascript:window.open('https://seal.godaddy.com/verifySeal?sealID=N8bfYhpsAEbVn89X8a1ktZjmZpl6VGLxbewiScT6iMRA7W5sEdSHOBD0&size=   105x54&style=', 'c_TW', 'location=no, toolbar=no, resizable=yes,  scrollbars=yes, directories=no, status=no, width=615, height=720');  return false" span style="cursorointer" #new_site_seal2 /span  /a>

<a class="map_link" id="map_link_2" title="PayPal" onMouseOver="PayPal"  herf="https://www.paypal.com/"
onClick="javascript:window.open('https://www.paypal.com/us/verified/pal=scooters%40whidbeyislandmoped%2ecom&size=105x54&style=',  'c_TW', 'location=no, toolbar=no, resizable=yes, scrollbars=yes,  directories=no, status=no, width=615, height=720'); return false" span  style="cursorointer" #new_site_seal2 /span  /a>
</div>
2 Nov 2014, 6:25 PM
#191
scooter avatar

scooter

New Zenner

Join Date:
Dec 2008
Posts:
80
Plugin Contributions:
1

Re: Logo Sidebox Help

hi Trinity,
well i put all the code in a file, called it with
$content . include in the end of the template logo php file
i've tried splitting it up with the css in the main stylesheet
and the js/html ( what your referring to ) called by the
template logo php and the logo defines php. with no luck.
whats your thoughts /suggestions?

2 Nov 2014, 7:10 PM
#192
trinity14 avatar

trinity14

Zen Follower

Join Date:
Jan 2014
Location:
Ontario, Canada
Posts:
252
Plugin Contributions:
3

Re: Logo Sidebox Help

Try this code in your logo_sidebox_defines.php

define('LOGO_SIDEBOX_LINK', '"http:///sealserver.trustwave.com/cert.php?customerId=w6oj3BZ9ZhnnLcVNVXtmgytnQ66qDb&size=105x54&style=" rel="external" target="_blank"');//only if you want to open in a new window

Let me know if this gets you on the right track...

2 Nov 2014, 7:20 PM
#193
trinity14 avatar

trinity14

Zen Follower

Join Date:
Jan 2014
Location:
Ontario, Canada
Posts:
252
Plugin Contributions:
3

Re: Logo Sidebox Help

Trinity14:

Try this code in your logo_sidebox_defines.php

define('LOGO_SIDEBOX_LINK', '"http:///sealserver.trustwave.com/cert.php?customerId=w6oj3BZ9ZhnnLcVNVXtmgytnQ66qDb&size=105x54&style=" rel="external" target="_blank"');//only if you want to open in a new window

> 
> Let me know if this gets you on the right track...remove the http:///<- extra character...gah!
2 Nov 2014, 8:57 PM
#194
scooter avatar

scooter

New Zenner

Join Date:
Dec 2008
Posts:
80
Plugin Contributions:
1

Re: Logo Sidebox Help

no that doesn't work and
i turned it on in the tpl file too..

where did you find the extra fat fingered "/" ?

4 Nov 2014, 5:46 PM
#195
scooter avatar

scooter

New Zenner

Join Date:
Dec 2008
Posts:
80
Plugin Contributions:
1

Re: Logo Sidebox Help

anybody?
i'm getting the map to to show up but not in the sidebox..where it belongs
its getting rendered before the page loads so its at the top or its in the column
above the sidebox. there is no issue with just putting the gif in the sidebox but its not a clickable map...
nor is there a problem with just setting the code for the one hyperlink as the stock logobox addon does.

the css is in the main stylesheet and the other code is in a file that i have called
as a whole via $content . include ''; and i have put each line of code in the tpl or the defines files via
$content .'';

any pointers or examples ?

thanks

5 Nov 2014, 5:03 AM
#196
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Logo Sidebox Help

scooter:

the other code is in a file that i have called
as a whole via $content . include '';
Um ... you can't use include() to stuff the contents of a file into the $content variable.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Nov 2014, 12:06 AM
#197
scooter avatar

scooter

New Zenner

Join Date:
Dec 2008
Posts:
80
Plugin Contributions:
1

Re: Logo Sidebox Help

well i gave up on the logo sidebox idea and found
the editable sidebox and that was the way to go . just enter the
code in the define editor and your done . image map in a sidebox!

2 Jan 2024, 9:25 PM
#199
pixodaros avatar

pixodaros

New Zenner

Join Date:
May 2023
Location:
Canada
Posts:
56
Plugin Contributions:
0

Re: Logo Sidebox Help

Installing this plugin on Zen Cart 1.5.8a with PHP 7.4 causes the customer-side page to appear blank. I can log in to the admin interface and see the plugin under Tools > Layout Boxes Controller.

The log file looks like this.

[02-Jan-2024 13:08:23 America/Vancouver] PHP Fatal error:  Uncaught Error: Call to a member function get_template_dir() on null in /WEBROOT/includes/languages/english/extra_definitions/responsive_classic/logo_sidebox_defines.php:26
Stack trace:
#0 /WEBROOT/includes/classes/ResourceLoaders/FilesLanguageLoader.php(39): include_once()
#1 /WEBROOT/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(92): Zencart\LanguageLoader\FilesLanguageLoader->loadFileDefineFile('includes/langua...')
#2 /WEBROOT/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(18): Zencart\LanguageLoader\CatalogFilesLanguageLoader->LoadLanguageExtraDefinitions()
#3 /WEBROOT/includes/classes/ResourceLoaders/LanguageLoader.php(29): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadInitialLanguageDefines(Object(Zencart\LanguageLoader\LanguageLoader))
#4 /WEBROOT/includes/init_includes/init_templates.php(87): Zencart\LanguageLoader\LanguageLoader->loadInitialLanguageDefines()
#5 /WEBROOT/includes/autoload_func.php(40): require_once('/home/SERVERNAME/...')
#6 /WEBROOT/includes/application_top.php(237): require('/home/SERVERNAME/...')
#7 /WEBROOT/index.php(25): require('/home/SERVERNAME/...')
#8 {main}
  thrown in /WEBROOT/includes/languages/english/extra_definitions/responsive_classic/logo_sidebox_defines.php on line 26

[02-Jan-2024 13:08:23 America/Vancouver] Request URI: /1.5.8/index.php?main_page=index&cPath=131, IP address: 75.156.33.72
--> PHP Fatal error: Uncaught Error: Call to a member function get_template_dir() on null in /WEBROOT/includes/languages/english/extra_definitions/responsive_classic/logo_sidebox_defines.php:26
Stack trace:
#0 /WEBROOT/includes/classes/ResourceLoaders/FilesLanguageLoader.php(39): include_once()
#1 /WEBROOT/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(92): Zencart\LanguageLoader\FilesLanguageLoader->loadFileDefineFile('includes/langua...')
#2 /WEBROOT/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(18): Zencart\LanguageLoader\CatalogFilesLanguageLoader->LoadLanguageExtraDefinitions()
#3 /WEBROOT/includes/classes/ResourceLoaders/LanguageLoader.php(29): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadInitialLanguageDefines(Object(Zencart\LanguageLoader\LanguageLoader))
#4 /WEBROOT/includes/init_includes/init_templates.php(87): Zencart\LanguageLoader\LanguageLoader->loadInitialLanguageDefines()
#5 /WEBROOT/includes/autoload_func.php(40): require_once('/home/SERVERNAME/...')
#6 /WEBROOT/includes/application_top.php(237): require('/home/SERVERNAME/...')
#7 /WEBROOT/index.php(25): require('/home/SERVERNAME/...')
#8 {main}
  thrown in /WEBROOT/includes/languages/english/extra_definitions/responsive_classic/logo_sidebox_defines.php on line 26.

Stack trace seems to be ordered such that #2 calls #1 calls #0

Since the plugin was last updated in 2011 and PHP is unstable its not a surprise that something is going wrong.

There are three PHP files in this plugin.

logo_sidebox_defines.php
logo_sidebox.php
tpl_logo_sidebox.php

logo_sidebox_defines.php treats the default logo as logo_test.jpg but no such file is included by default. The readme says that you should "Save your new image to includes/templates/YOUR_TEMPLATE/images/your_image.???" I updated those three defines but the customer-side site still appears blank and the same error appeared in the logs.

define('LOGO_SIDEBOX_IMAGE_WIDTH', '125');
define('LOGO_SIDEBOX_IMAGE_HEIGHT', '125');
define('LOGO_SIDEBOX_IMAGE', 'logo_test.jpg');

I will keep staring at this and looking for other hypotheses.

2 Jan 2024, 9:49 PM
#200
pixodaros avatar

pixodaros

New Zenner

Join Date:
May 2023
Location:
Canada
Posts:
56
Plugin Contributions:
0

Re: Logo Sidebox Help

Adding ```
global $template;


Now I am experimenting with formatting the image per [Docs | Add Image to Sidebox of Centerbox](https://docs.zen-cart.com/user/template/add_image_box/)  Thanks to the forum posters and documentation writers!