Page 2 of 34 FirstFirst 123412 ... LastLast
Results 11 to 20 of 332
  1. #11
    Join Date
    Jul 2007
    Location
    Trinity Alps
    Posts
    127
    Plugin Contributions
    0

    Default 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

  2. #12
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default 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 Code:
    $content .= zen_draw_form('currencies_form'zen_href_link(basename(ereg_replace('.php',''$PHP_SELF)), ''$request_typefalse), '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>'
    with this
    PHP Code:
    $content .= zen_image(DIR_WS_IMAGES 'paypal.gif''Paypal logo''148''112'); 
    and lose the </html> tag that is corrupting your page's structure.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #13
    Join Date
    Jul 2007
    Location
    Trinity Alps
    Posts
    127
    Plugin Contributions
    0

    Default Re: Admin-Editable Sidebox - Support Thread

    Kuroi,
    Outstanding. That is exactly what I was looking for.
    Thank you very much.

  4. #14
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Admin-Editable Sidebox - Support Thread

    Quote Originally Posted by kuroi View Post
    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??
    Last edited by DivaVocals; 9 Oct 2007 at 06:20 PM.

  5. #15
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default 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.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  6. #16
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default 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"..

  7. #17
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default 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.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  8. #18
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Admin-Editable Sidebox - Support Thread

    Quote Originally Posted by kuroi View Post
    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!

  9. #19
    Join Date
    Apr 2006
    Posts
    108
    Plugin Contributions
    0

    Default 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

  10. #20
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Admin-Editable Sidebox - Support Thread

    Quote Originally Posted by davidandrews View Post
    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?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 
Page 2 of 34 FirstFirst 123412 ... LastLast

Similar Threads

  1. v154 Blank Sidebox support thread
    By swguy in forum Addon Sideboxes
    Replies: 23
    Last Post: 15 Jul 2021, 09:54 PM
  2. Facebook sidebox -Support Thread
    By neboztik in forum Addon Sideboxes
    Replies: 31
    Last Post: 22 Jan 2013, 03:34 AM
  3. LiveChat Sidebox - Support Thread
    By b.kubiak in forum Addon Sideboxes
    Replies: 13
    Last Post: 15 Mar 2012, 08:00 PM
  4. CampaignMonitor Sidebox Support Thread
    By lukemcr in forum Addon Sideboxes
    Replies: 11
    Last Post: 21 May 2010, 06:14 AM

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