Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20
  1. #11
    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

    Clyde,
    I'm having a problem with my logo sidebox & I'm hoping you can help.

    First of all, I have been trying to change NOTICES & ANNOUNCEMENTS (the sidebox heading) to say SEE WHAT'S NEW. Should be simple enough, but every time I change the wording, I get a parse error and it disables the whole site.

    I've been changing it in the logo_sidebox_defines.php file here:

    define('BOX_HEADING_LOGO_SIDEBOX', 'NOTICES & ANNOUNCEMENTS');

    The next problem is making the image work as a link. Here's what I have in the different files.

    logo_sidebox_defines.php:

    define('BOX_HEADING_LOGO_SIDEBOX', 'NOTICES & ANNOUNCEMENTS');
    define('LOGO_SIDEBOX_IMAGE_WIDTH', '125');
    define('LOGO_SIDEBOX_IMAGE_HEIGHT', '150');
    define('LOGO_SIDEBOX_IMAGE', 'peek.gif');
    define('LOGO_SIDEBOX_IMAGE_TEXT', 'Pet Tag Previewer');

    //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://www.kings-kreations.com/previewer');

    ?>


    and in tpl_logo_sidebox.php I have this:

    $logoimage = '<a href="' . LOGO_SIDEBOX_LINK . 'http://www.kings-kreations.com/previewer">' . 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>';
    ?>

    WHAT am I missing??

    TIA,
    Mindy

  2. #12
    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

    Clyde,
    I'm having a problem with my logo sidebox & I'm hoping you can help.

    First of all, I have been trying to change NOTICES & ANNOUNCEMENTS (the sidebox heading) to say SEE WHAT'S NEW. Should be simple enough, but every time I change the wording, I get a parse error and it disables the whole site.

    I've been changing it in the logo_sidebox_defines.php file here:

    define('BOX_HEADING_LOGO_SIDEBOX', 'NOTICES & ANNOUNCEMENTS');

    The next problem is making the image work as a link. Here's what I have in the different files.

    logo_sidebox_defines.php:

    define('BOX_HEADING_LOGO_SIDEBOX', 'NOTICES & ANNOUNCEMENTS');
    define('LOGO_SIDEBOX_IMAGE_WIDTH', '125');
    define('LOGO_SIDEBOX_IMAGE_HEIGHT', '150');
    define('LOGO_SIDEBOX_IMAGE', 'peek.gif');
    define('LOGO_SIDEBOX_IMAGE_TEXT', 'Pet Tag Previewer');

    //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://www.kings-kreations.com/previewer');

    ?>


    and in tpl_logo_sidebox.php I have this:

    $logoimage = '<a href="' . LOGO_SIDEBOX_LINK . 'http://www.kings-kreations.com/previewer">' . 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>';
    ?>

    WHAT am I missing??

    TIA,
    Mindy

  3. #13
    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
    Clyde,
    I'm having a problem with my logo sidebox & I'm hoping you can help.

    First of all, I have been trying to change NOTICES & ANNOUNCEMENTS (the sidebox heading) to say SEE WHAT'S NEW. Should be simple enough, but every time I change the wording, I get a parse error and it disables the whole site.

    I've been changing it in the logo_sidebox_defines.php file here:

    define('BOX_HEADING_LOGO_SIDEBOX', 'NOTICES & ANNOUNCEMENTS');

    The next problem is making the image work as a link. Here's what I have in the different files.

    logo_sidebox_defines.php:

    define('BOX_HEADING_LOGO_SIDEBOX', 'NOTICES & ANNOUNCEMENTS');
    define('LOGO_SIDEBOX_IMAGE_WIDTH', '125');
    define('LOGO_SIDEBOX_IMAGE_HEIGHT', '150');
    define('LOGO_SIDEBOX_IMAGE', 'peek.gif');
    define('LOGO_SIDEBOX_IMAGE_TEXT', 'Pet Tag Previewer');

    //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://www.kings-kreations.com/previewer');

    ?>


    and in tpl_logo_sidebox.php I have this:

    $logoimage = '<a href="' . LOGO_SIDEBOX_LINK . 'http://www.kings-kreations.com/previewer">' . 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>';
    ?>

    WHAT am I missing??

    TIA,
    Mindy
    I get a parse error and it disables the whole site.

    What exactly does the error message say?

    Remember that ALL Upper case is a constant - so what you've done is define one constant to reference another constant which does not exist.

    Try making define Notices &amp; Announcements and see if that eliminates the parse error.

    If you want it to be uppercase add this declaration to your stylesheet

    h3#logosideboxHeading {
    text-transform: uppercase;
    }

    $logoimage = '<a href="' . LOGO_SIDEBOX_LINK . 'http://www.kings-kreations.com/previewer">' .

    You don't need the highlighted portion in this section of the code.

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

    I tried typing 'See What's New' in place of 'NOTICES & ANNOUNCEMENTS' (which has been working just fine) and this is the error message I get:

    Parse error: syntax error, unexpected T_STRING in /home3/mindy/kings-kreations-www/zen/includes/languages/english/extra_definitions/logo_sidebox_defines.php on line 27

    Line 27 is:
    define('BOX_HEADING_LOGO_SIDEBOX', 'See What's New!');

  5. #15
    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
    I tried typing 'See What's New' in place of 'NOTICES & ANNOUNCEMENTS' (which has been working just fine) and this is the error message I get:

    Parse error: syntax error, unexpected T_STRING in /home3/mindy/kings-kreations-www/zen/includes/languages/english/extra_definitions/logo_sidebox_defines.php on line 27

    Line 27 is:
    define('BOX_HEADING_LOGO_SIDEBOX', 'See What's New!');
    Line 27 is:
    define('BOX_HEADING_LOGO_SIDEBOX', 'See What\'s New!');

    add the highlighted character as indicated and see if that eliminates the error message.

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

    In tpl_logo_sidebox.php, I have the following (removed the http://www.kings-kreations.com/preview), but it still doesn't work. I'm certain I'm missing something very simple, I just can't figure out what it is...

    // 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>';
    ?>

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

    Line 27 is:
    define('BOX_HEADING_LOGO_SIDEBOX', 'See What\'s New!');

    add the highlighted character as indicated and see if that eliminates the error message.
    WOW, that's amazing that one.little.character can disable an entire web site. That worked perfectly! THANKS!

  8. #18
    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
    In tpl_logo_sidebox.php, I have the following (removed the http://www.kings-kreations.com/preview), but it still doesn't work. I'm certain I'm missing something very simple, I just can't figure out what it is...

    // 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>';
    ?>

    define('LOGO_SIDEBOX_LINK', 'http://www.kings-kreations.com/previewer" target="_blank');


    //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);

    Don't forget to comment out this section as indicated by the highlighted backslashes

  9. #19
    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. #20
    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

 

 
Page 2 of 2 FirstFirst 12

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