This is a notification for Guests
Forums / Addon Sideboxes / Admin-Editable Sidebox - Support Thread

Admin-Editable Sidebox - Support Thread

Results 1 to 20 of 335
10 Aug 2007, 08:59
#1
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Posts:
10,475
Plugin Contributions:
9

Admin-Editable Sidebox - Support Thread

This is the support thread for the Editable Sidebox add-in module. The purpose of this module is to allow the easy addition of custom sideboxes that can be edited through the Admin > Tools > Define Editor and which conform to the structure of the Zen Cart 1.3 series.

It can be downloaded from here.
19 Aug 2007, 21:14
#2
gcampos avatar

gcampos

New Zenner

Join Date:
May 2007
Posts:
93
Plugin Contributions:
0

Re: Admin-Editable Sidebox - Support Thread

Kuroi,

Quick question, keep getting confused as to which files to edit to create multiple ESB. Just a few or all?

Forgot to mention, I also have Blank Sideboxes enabled, and after installing Editable SB, the Blank Sidebox is no longer visible. Is there a conflict?
20 Aug 2007, 08:08
#3
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Posts:
10,475
Plugin Contributions:
9

Re: Admin-Editable Sidebox - Support Thread

You would need to duplicate and rename all the files using the original filenames as a model.

The blank sidebox mod is completely independent of this one and they could only interfere with each other if one or more files in one were renamed to be the same as files in the other.
20 Aug 2007, 15:42
#4
gcampos avatar

gcampos

New Zenner

Join Date:
May 2007
Posts:
93
Plugin Contributions:
0

Re: Admin-Editable Sidebox - Support Thread

Thanks Kuroi, thats what I thought, will try it out, as I like this one better than the blank sidebox.

Nothing was changed before I installed the editable sidebox, the file names have not been renamed in either. Yet I still cannot see the sidebox...Ok nevermind, it is ok, just checked it again, moved it from left to right, and was always there, just forgot what content I had, doh.

Thanks again.
22 Aug 2007, 17:25
#5
upliftingarts avatar

upliftingarts

New Zenner

Join Date:
Oct 2006
Posts:
3
Plugin Contributions:
0

Re: Admin-Editable Sidebox - Support Thread

for the life of me I can't figure out how to remove the header. I have this:
h3.leftBoxHeading, h3.rightBoxHeading {display: none;} in my css and all other sideboxes have the header removed except for the editable sidebox.
I'm sure its simple, what am I missing?

the site is http://www.upliftingarts.com/newstore/ and its the newsletter sign up box on the left.
22 Aug 2007, 17:31
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Posts:
10,475
Plugin Contributions:
9

Re: Admin-Editable Sidebox - Support Thread

The header for that box is turned off.

The text that you think is the header is actually something that you have inserted via the Admin and put made bold, making it look like a header.
22 Aug 2007, 17:42
#7
upliftingarts avatar

upliftingarts

New Zenner

Join Date:
Oct 2006
Posts:
3
Plugin Contributions:
0

Re: Admin-Editable Sidebox - Support Thread

oops sorry should of been more specific . :smile: how can i get rid of the space above "uplifting arts newsletter" ? Thanks!
22 Aug 2007, 17:52
#8
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Posts:
10,475
Plugin Contributions:
9

Re: Admin-Editable Sidebox - Support Thread

The answer to your question when you posed it would have been that this is because the form is inline and therefore its declaration is taking up a line. This could have been resolved by the targetted CSS
#editablesidebox form {display: block}
But while I was writing this, the sidebox changed somewhat!
22 Aug 2007, 18:08
#9
upliftingarts avatar

upliftingarts

New Zenner

Join Date:
Oct 2006
Posts:
3
Plugin Contributions:
0

Re: Admin-Editable Sidebox - Support Thread

perfect! worked like a charm. Thank you!
22 Aug 2007, 19:49
#10
elkbow avatar

elkbow

Zen Follower

Join Date:
Jul 2007
Posts:
131
Plugin Contributions:
0

Re: Admin-Editable Sidebox - Support Thread

Hi,
What exactly is the file name of my currency php file. I wish to delete the dropdown box and add my paypal image. I think it is tpl_currencies.php but after looking at so many posts, I' m not so sure.

Also does that require any changes to my main (index) page, which I have no idea what is is named on my server. It is not main.php, nor is it index.php as neither one of those exist on the server.

Kinda lost here now..

Thanks for any help.
http://archeryshop.com/zencart/
22 Aug 2007, 23:05
#11
elkbow avatar

elkbow

Zen Follower

Join Date:
Jul 2007
Posts:
131
Plugin Contributions:
0

Re: Admin-Editable Sidebox - Support Thread

<?php
/**
* Side Box 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_currencies.php 4566 2006-09-20 01:47:25Z birdbrain $
*/
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
$content .= zen_draw_form('currencies_form', zen_href_link(basename(ereg_replace('.php','', $PHP_SELF)), '', $request_type, false), 'get');
$content .= zen_draw_pull_down_menu('currency', $currencies_array, $_SESSION['currency'], 'onchange="this.form.submit();"') . $hidden_get_variables . zen_hide_session_id();
$content .= '</form>';
$content .= '</div>';
?>
<img src="/zencart/images/paypal.gif">
</html>

This listed above is the tpl_currencies.php (Named "We Accept") that is on the storefront.
I have got the image to show up, but it is located above the currency box and not within the box as I had hoped.

What I am trying to do is eliminate the drop down and use this image only.

I need some simple information on how to delete the dropdown and locate the image properly.

Any info is greatly appreciated.
Thanks
23 Aug 2007, 07:47
#12
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Posts:
10,475
Plugin Contributions:
9

Re: Admin-Editable Sidebox - Support Thread

@elkbow

A few things ...

Firstly this is the support thread for the Editable Sidebox Add-in Mod rather than the currency sidebox. Nevertheless, let's quickly answer your question.

The easiest way to do what you want is to use the Blank Sidebox mod and follow the instructions embedded in that mod for inserting content such as images, and then just turn off the currency sidebox.

If you really want to hack the currency sidebox then you should replace the following:[PHP]$content .= zen_draw_form('currencies_form', zen_href_link(basename(ereg_replace('.php','', $PHP_SELF)), '', $request_type, false), 'get');
$content .= zen_draw_pull_down_menu('currency', $currencies_array, $_SESSION['currency'], 'onchange="this.form.submit();"') . $hidden_get_variables . zen_hide_session_id();
$content .= '</form>'; [/PHP]with this[PHP]$content .= zen_image(DIR_WS_IMAGES . 'paypal.gif', 'Paypal logo', '148', '112'); [/PHP]and lose the </html> tag that is corrupting your page's structure.
23 Aug 2007, 16:40
#13
elkbow avatar

elkbow

Zen Follower

Join Date:
Jul 2007
Posts:
131
Plugin Contributions:
0

Re: Admin-Editable Sidebox - Support Thread

Kuroi,
Outstanding. That is exactly what I was looking for.
Thank you very much.
09 Oct 2007, 17:17
#14
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Posts:
10,011
Plugin Contributions:
1

Re: Admin-Editable Sidebox - Support Thread

kuroi:

This is the support thread for the Editable Sidebox add-in module. The purpose of this module is to allow the easy addition of custom sideboxes that can be edited through the Admin > Tools > Define Editor and which conform to the structure of the Zen Cart 1.3 series.

It can be downloaded from here.
I'm intrigued.. This is why I constantly check the contributions.. :)

I apologize if there is an OBVIOUS answer to my questions.. However, I just want to clarify a few things.. I have used the Black Sidebox contribution before, and found it perfect for adding ONE custom sidebox. However, also found that it might be a bit tedious if I needed more than one additional sidebox. Am I understanding your contribution correctly?? Will this contribution allow me to create custom sideboxes (as many as I might need) AND add/edit the content of these sideboxes from within the Administration control panel??
09 Oct 2007, 17:21
#15
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Posts:
10,475
Plugin Contributions:
9

Re: Admin-Editable Sidebox - Support Thread

@DivaVocals

The process for creating multiple editable sideboxes is similar to that for creating multiple blank sideboxes. The main difference is that the content is editable via the Admin. So if your content is static this is probably the one for you. If it includes PHP, then the blank sidebox is still the best option.
09 Oct 2007, 19:53
#16
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Posts:
10,011
Plugin Contributions:
1

Re: Admin-Editable Sidebox - Support Thread

I think I've got it.. Sorry to be a pain.. I just want to make sure I got this right.. Using your contribution, the work to create a blank sidebox is the SAME (as the other contribution) But the difference is that I can edit the content of my sideboxes using the "Define Pages Editor".. If understand this correctly then thank you in advance!!! I liked the Blank Sidebox contribution, but it would have been so cool to be able to edit them using the "Define Pages Editor"..
09 Oct 2007, 19:57
#17
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Posts:
10,475
Plugin Contributions:
9

Re: Admin-Editable Sidebox - Support Thread

The only small difference is that there is also a "define page" created in the html_includes folder, but then, yes, you just edit the content via the define pages editor.
09 Oct 2007, 23:46
#18
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Posts:
10,011
Plugin Contributions:
1

Re: Admin-Editable Sidebox - Support Thread

kuroi:

The only small difference is that there is also a "define page" created in the html_includes folder, but then, yes, you just edit the content via the define pages editor.
Cool beans!!! Great contribution.. Can't wait to give this a shot!
12 Oct 2007, 18:36
#19
davidandrews avatar

davidandrews

Zen Follower

Join Date:
Apr 2006
Posts:
108
Plugin Contributions:
0

Re: Admin-Editable Sidebox - Support Thread

HI There
I have installed the blank sidebox to a new install and it doesn't show straight away
Do i have to alter something to make it appear?

many thanks!!!


Samantha Andrews
12 Oct 2007, 19:19
#20
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Posts:
10,475
Plugin Contributions:
9

Re: Admin-Editable Sidebox - Support Thread

davidandrews:

I have installed the blank sidebox to a new install and it doesn't show straight away
Do i have to alter something to make it appear?
Have you turned it on and told Zen Cart where to display it in Admin > Tools > Layout Box Controller?