Thread: Ask A Question

Results 1 to 10 of 399

Hybrid View

  1. #1
    Join Date
    Mar 2006
    Posts
    57
    Plugin Contributions
    0

    Default Re: Ask A Question

    Quote Originally Posted by characterdriven View Post
    I did that when I first unzipped files. I'm wondering if some of the code is pointing to 'custom' rather than my template name, but can't find it. No other reason for the button not to work.
    I recall something in the mod's instructions that said you had to place some code
    to use buttons rather than text. Did you make that change?

  2. #2
    Join Date
    Dec 2006
    Location
    Vancouver Island, BC
    Posts
    50
    Plugin Contributions
    0

    Default Re: Ask A Question

    Quote Originally Posted by gogolf View Post
    I recall something in the mod's instructions that said you had to place some code
    to use buttons rather than text. Did you make that change?
    Took a look at all the instructions and I noticed this time that there was a line missing from the 'readme' file so did some research and added the code that was needed. Now I'm getting two 'ask a question about this product' links without hyphens...and without the image showing up. I obvious added another line of code while going through the 'readme' again methodically, yet overzealously. That I can find and resolve easily enough, but I am still baffled about the image not showing up.
    www.characterdriven.com
    Character Driven Media

    www.narnia-productions.com
    Stage, Screen and Event Services and Supplies

  3. #3
    Join Date
    Mar 2006
    Posts
    57
    Plugin Contributions
    0

    Default Re: Ask A Question

    You followed these instructions:

    Assuming your template name is "custom":

    a) copy the button image into includes/templates/custom/buttons/english
    (create this directory if it doesn't exist).

    b) create includes/languages/english/custom/button_names.php if you have not
    already done so,
    from includes/languages/english/button_names.php

    Add the lines
    define('BUTTON_IMAGE_ASK_A_QUESTION','button_ask_question.gif');
    define('BUTTON_ASK_A_QUESTION_ALT', 'Ask a question');

    to this file.

    Then, in tpl_product_info_display.php, your code would be:

    <div id="askQuestion" class="biggerText">
    <?php echo '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id='
    . $_GET['products_id']) . '">' .
    zen_image_button(BUTTON_IMAGE_ASK_A_QUESTION, BUTTON_ASK_A_QUESTION_ALT) .
    '</a>'; ?></div>
    <br />
    <br class="clearBoth" />


    AND, you deleted the code for "text": ask a question?

 

 

Similar Threads

  1. Ask A Question module
    By okibi in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 18 Apr 2007, 01:55 PM
  2. Ask a question 1.7
    By Kodam in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 4 Apr 2007, 11:16 PM

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