Page 1 of 3 123 LastLast
Results 1 to 10 of 332

Hybrid View

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

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

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

  2. #2
    Join Date
    Oct 2006
    Posts
    3
    Plugin Contributions
    0

    Default Re: Admin-Editable Sidebox Support Thread

    perfect! worked like a charm. Thank you!

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

    Default 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/

  4. #4
    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

  5. #5
    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)

  6. #6
    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.

  7. #7
    Join Date
    Jul 2009
    Posts
    48
    Plugin Contributions
    0

    Default Re: Admin-Editable Sidebox - Support Thread

    Is there a way to show the editable sideboxes on the main page only? I don't want them to show in the product listing or product info display.

    Thanks

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

    Default Re: Admin-Editable Sidebox - Support Thread

    Quote Originally Posted by robbinsgj View Post
    Is there a way to show the editable sideboxes on the main page only? I don't want them to show in the product listing or product info display.

    Thanks
    It's explained for all sideboxes in this FAQ Entry
    Kuroi Web Design and Development | Twitter

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

  9. #9
    Join Date
    Jul 2009
    Posts
    48
    Plugin Contributions
    0

    Default Re: Admin-Editable Sidebox - Support Thread

    Quote Originally Posted by kuroi View Post
    It's explained for all sideboxes in this FAQ Entry
    Doh. I guess I need to search the Forums AND the FAQ's before posting.

    Sorry.

    But thanks for your help!

  10. #10
    Join Date
    Jun 2004
    Posts
    25
    Plugin Contributions
    0

    Default Re: Admin-Editable Sidebox - Support Thread

    Hi,

    What's the best way to place a link to a new page into the sidebox I have tried:

    $content .= '<?php echo '<a href="' . zen_href_link( PAGE_NAME, '' ) . '">Link Text</a>'; ?>';

    It does not like it?

 

 
Page 1 of 3 123 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

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