test
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • lucky93 Friend
    #160125

    Which file I can edit “What happens if I run out ?”

    1, How to change text “What happens if I run out ?”
    2, How to disable the current link ?


    1. Untitled3
    huena Friend
    #376479

    I am a new user using JA Voice and also trying to translate JA Voice 1.4.2 into my language.

    On “What happens if I run out?”,
    in en-GB.com_javoice.ini, at line 152:
    WHAT HAPPENS IF I RUN OUT?=What happens if I run out?

    But on the other hand, in the file “site/views/items/tmpl/item.php” at line 183:
    …<?php echo JText::_(‘What happens if I run out’).”?”;?>…
    As you see, the keyword in .php (‘What happens if I run out’) doesn’t end with “?”.

    So I suggest you to change this part to:
    …<?php echo JText::_(‘What happens if I run out?’);?>…

    This modification fixed your issue on my site. Try it, but don’t foreget taking your backup before you do so,
    and doing this at your own risk.

    I found some mis-matches like above, so I am planing to report them to the developer.

    nghiatd Friend
    #376609

    Hello,

    Please open file:
    componentscom_javoicesiteviewsitemstmpldefault.php
    remove that code in line 295

    <ul class="jav-help">
    <li>
    <a onclick="jav_showNoticeToCenter(400, 120, 'jav-dialog'); return false" href="javascript:void(0)"><?php echo JText::_('What happens if I run out?')?></a>
    </li>
    </ul>

    kindly open file:
    com_javoicesiteviewsitemstmplitem.php
    remove code(default in line 174)

    <ul class="jav-help">
    <li>
    <a onclick="$('jav-dialog').setStyle('display', 'block'); return false" href="javascript:void(0)"><?php echo JText::_('What happens if I run out')."?";?></a>
    </li>
    </ul>

    Best Regards.

    lucky93 Friend
    #376615

    Thank you, huena
    I have changed the text.

    May I know the answer of my second question ” How to disable the current link ? ”

    Because we just like to have text there but not to link this text to anywhere.

    nghiatd Friend
    #376745

    Hello,
    If you just want to show this text please use my guide:
    Please open file:
    componentscom_javoicesiteviewsitemstmpldefault.php
    find the code in line 295 then change that code

    <ul class="jav-help">
    <li>
    <a onclick="jav_showNoticeToCenter(400, 120, 'jav-dialog'); return false" href="javascript:void(0)"><?php echo JText::_('What happens if I run out?')?></a>
    </li>
    </ul>

    to

    <ul class="jav-help">
    <li>
    <?php echo JText::_('What happens if I run out?')?>
    </li>
    </ul>

    And kindly open file:
    com_javoicesiteviewsitemstmplitem.php
    change the code(default in line 174)

    <ul class="jav-help">
    <li>
    <a onclick="$('jav-dialog').setStyle('display', 'block'); return false" href="javascript:void(0)"><?php echo JText::_('What happens if I run out')."?";?></a>
    </li>
    </ul>

    to

    <ul class="jav-help">
    <li>
    <?php echo JText::_('What happens if I run out')."?";?>
    </li>
    </ul>

    Best Regards.

    lucky93 Friend
    #376758

    <em>@nghiatd 221361 wrote:</em><blockquote>Hello,

    Please open file:
    componentscom_javoicesiteviewsitemstmpldefault.php
    remove that code in line 295

    <ul class="jav-help">
    <li>
    <a onclick="jav_showNoticeToCenter(400, 120, 'jav-dialog'); return false" href="javascript:void(0)"><?php echo JText::_('What happens if I run out?')?></a>
    </li>
    </ul>

    kindly open file:
    com_javoicesiteviewsitemstmplitem.php
    remove code(default in line 174)

    <ul class="jav-help">
    <li>
    <a onclick="$('jav-dialog').setStyle('display', 'block'); return false" href="javascript:void(0)"><?php echo JText::_('What happens if I run out')."?";?></a>
    </li>
    </ul>

    Best Regards.</blockquote>

    I’m confusion:
    1, File: componentscom_javoiceviewsitemstmpldefau ltem.php
    I couldn’t find wnat you mentioned

    2, File: componentcom_javoiceviewsitemstmplitem.php
    line 174 is <!– End–> are you talking about to remove this ?

    I have change text “”What happens if I run out ?”
    What I like to do now is DISABLE the current link.

    Sorry, I’m not a programmer.

    huena Friend
    #378406

    <em>@lucky93 221569 wrote:</em><blockquote>I’m confusion:
    1, File: componentscom_javoiceviewsitemstmpldefau ltem.php
    I couldn’t find wnat you mentioned

    2, File: componentcom_javoiceviewsitemstmplitem.php
    line 174 is <!– End–> are you talking about to remove this ?

    I have change text “What happens if I run out ?”
    What I like to do now is DISABLE the current link.

    Sorry, I’m not a programmer.</blockquote>

    “componentscom_javoicesiteviewsitemstmpldefau lt.php” by nghiatd, and
    “componentscom_javoiceviewsitemstmpldefau ltem.php” by you
    may be

    "componentscom_javoicesiteviewsitemstmpldefault.php"

    ( I wonder why a white space is inserted in word “default” when posting. To avoid this I enclosed the filepath inside “”. )

    and ,
    “com_javoicesiteviewsitemstmplitem.php” line 174
    may be
    “com_javoicesiteviewsitemstmplitem.php” line 181.

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 7 replies, has 3 voices, and was last updated by  huena 13 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum