Results 1 to 10 of 20

Hybrid View

  1. #1
    Join Date
    Aug 2007
    Posts
    20
    Plugin Contributions
    0

    Default How to put a link in an additionnal sidebox with a logo

    I installed the add on "logo sidebox".

    I put a picture in my sidebox and would like to know which line of codes inside the "tpl_logo_sidebox.php" file do I have to edit to put a link to a page of my site.

    Thanks for your help.

    Chris

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: How to put a link in an additionnal sidebox with a logo

    Quote Originally Posted by chrismonroe View Post
    I installed the add on "logo sidebox".

    I put a picture in my sidebox and would like to know which line of codes inside the "tpl_logo_sidebox.php" file do I have to edit to put a link to a page of my site.

    Thanks for your help.

    Chris
    You need to edit two files:
    #1 -
    includes/languages/extra/definitions/logo_sidebox_defines.php

    Find these lines of code and edit as necessary

    //this is optional if you want to use the logo as a link
    //replace your_link.com with the link you choose
    define('LOGO_SIDEBOX_LINK', 'http://your_link.com/');

    #2 -

    includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox.php

    right at the top of the file you will find these instructions:

    // Link Option - uncomment this if you intend to use the logo as a link
    //$logoimage = '<a href="' . LOGO_SIDEBOX_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT) . '</a>';

    //comment this out if you use the above link option.
    $logoimage = zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT);


    Just follow the instructions: comment out the line you won't be using and uncomment the line you will be using.

  3. #3
    Join Date
    Aug 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: How to put a link in an additionnal sidebox with a logo

    In fact before asking this question, I reached the point you ve described.

    I put my link in the file #1

    but I didn t know which line of codes to uncomment and comment out in the file #2

    A programmer took a look to the file #2 and removed only some "" that were redundant (I don t know which one), didn t uncomment or comment out anything and it worked.

    There must be a small mistake in the codes.

    Thanks a lot for having taken the time to answer me clydejones.

    Chris

  4. #4
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: How to put a link in an additionnal sidebox with a logo

    Quote Originally Posted by chrismonroe View Post
    In fact before asking this question, I reached the point you ve described.

    I put my link in the file #1

    but I didn t know which line of codes to uncomment and comment out in the file #2

    A programmer took a look to the file #2 and removed only some "" that were redundant (I don t know which one), didn t uncomment or comment out anything and it worked.

    There must be a small mistake in the codes.

    Thanks a lot for having taken the time to answer me clydejones.

    Chris
    Can you post the changes your "programmer" made to tpl_logo_sidebox.php, I'd like to see what was done. Thanks

  5. #5
    Join Date
    Sep 2007
    Posts
    329
    Plugin Contributions
    0

    Default Re: How to put a link in an additionnal sidebox with a logo

    Hi,

    I don't seem to be able to get the image to come up. In the first file I have given the url/path to the image file along with a text to display. The text displays fine but the image does not.

    define('BOX_HEADING_LOGO_SIDEBOX', '');
    define('LOGO_SIDEBOX_IMAGE_WIDTH', '125');
    define('LOGO_SIDEBOX_IMAGE_HEIGHT', '125');
    define('LOGO_SIDEBOX_IMAGE', 'http://www.tranquillas.com/biz/includes/templates/tranquillas/images/Omega Skull.gif');
    define('LOGO_SIDEBOX_IMAGE_TEXT', 'Tranquilla\'s');
    I have verified that the path to the image is correct but can't get it to display. One the second file I tried things both ways and it did not seem to have an effect on the image displaying.

    At this point I figure that it must be something dumb (smile)... so can someone nudge my brain in a direction?

  6. #6
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: How to put a link in an additionnal sidebox with a logo

    Quote Originally Posted by crabdance View Post
    Hi,

    I don't seem to be able to get the image to come up. In the first file I have given the url/path to the image file along with a text to display. The text displays fine but the image does not.



    I have verified that the path to the image is correct but can't get it to display. One the second file I tried things both ways and it did not seem to have an effect on the image displaying.

    At this point I figure that it must be something dumb (smile)... so can someone nudge my brain in a direction?
    You only need to define the image name as indicated by the highlighted portion.

    define('BOX_HEADING_LOGO_SIDEBOX', '');
    define('LOGO_SIDEBOX_IMAGE_WIDTH', '125');
    define('LOGO_SIDEBOX_IMAGE_HEIGHT', '125');
    define('LOGO_SIDEBOX_IMAGE', 'Omega Skull.gif');
    define('LOGO_SIDEBOX_IMAGE_TEXT', 'Tranquilla\'s');

    The following statement in the second file takes care of locating the correct path to the image:

    $logoimage = zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT);

  7. #7
    Join Date
    Aug 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: How to put a link in an additionnal sidebox with a logo

    Quote Originally Posted by clydejones View Post
    Can you post the changes your "programmer" made to tpl_logo_sidebox.php, I'd like to see what was done. Thanks
    Here is the file transformed by the programmer :

    // Link Option - uncomment this if you intend to use the logo as a link
    $logoimage = '<a href="' . LOGO_SIDEBOX_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT) . '</a>';

    //comment this out if you use the above link option.
    //$logoimage = zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT);

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

    $content .= $logoimage;

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

  8. #8
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: How to put a link in an additionnal sidebox with a logo

    Quote Originally Posted by chrismonroe View Post
    Here is the file transformed by the programmer :
    he did exactly what was required by the instructions

    He uncommented one line of code and commented out the other.

  9. #9
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    286
    Plugin Contributions
    0

    Default Re: How to put a link in an additionnal sidebox with a logo

    Once again, you are the MASTER at figuring these things out! THANK YOU SO MUCH!!

  10. #10
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: How to put a link in an additionnal sidebox with a logo

    Quote Originally Posted by gizmo_girl View Post
    Once again, you are the MASTER at figuring these things out! THANK YOU SO MUCH!!
    glad to help

 

 

Similar Threads

  1. How to put SSL logo under right sidebox?
    By hara in forum Templates, Stylesheets, Page Layout
    Replies: 18
    Last Post: 11 Mar 2009, 09:29 AM
  2. Replies: 1
    Last Post: 8 Dec 2008, 05:18 PM
  3. How To Put A Link On My Logo Image In Header?
    By chrismonroe in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 12 Nov 2007, 02:44 PM
  4. Replies: 0
    Last Post: 5 Nov 2007, 02:27 AM
  5. How to put link in a sidebox with a logo
    By chrismonroe in forum Basic Configuration
    Replies: 0
    Last Post: 5 Nov 2007, 02:04 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