-
AuthorPosts
-
lucky93 Friend
lucky93
- Join date:
- April 2010
- Posts:
- 71
- Downloads:
- 0
- Uploads:
- 11
- Thanks:
- 19
- Thanked:
- 4 times in 1 posts
February 13, 2011 at 12:23 pm #160125Which 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 ?
huena Friendhuena
- Join date:
- February 2011
- Posts:
- 14
- Downloads:
- 1
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 2 times in 1 posts
February 13, 2011 at 4:48 pm #376479I 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.
1 user says Thank You to huena for this useful post
nghiatd Friendnghiatd
- Join date:
- October 2009
- Posts:
- 324
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 7
- Thanked:
- 39 times in 37 posts
February 14, 2011 at 9:54 am #376609Hello,
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 Friendlucky93
- Join date:
- April 2010
- Posts:
- 71
- Downloads:
- 0
- Uploads:
- 11
- Thanks:
- 19
- Thanked:
- 4 times in 1 posts
February 14, 2011 at 10:16 am #376615Thank 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 Friendnghiatd
- Join date:
- October 2009
- Posts:
- 324
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 7
- Thanked:
- 39 times in 37 posts
February 15, 2011 at 7:44 am #376745Hello,
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.
1 user says Thank You to nghiatd for this useful post
lucky93 Friendlucky93
- Join date:
- April 2010
- Posts:
- 71
- Downloads:
- 0
- Uploads:
- 11
- Thanks:
- 19
- Thanked:
- 4 times in 1 posts
February 15, 2011 at 9:00 am #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 mentioned2, 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 Friendhuena
- Join date:
- February 2011
- Posts:
- 14
- Downloads:
- 1
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 2 times in 1 posts
February 25, 2011 at 9:09 am #378406<em>@lucky93 221569 wrote:</em><blockquote>I’m confusion:
1, File: componentscom_javoiceviewsitemstmpldefau ltem.php
I couldn’t find wnat you mentioned2, 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.1 user says Thank You to huena for this useful post
AuthorPostsViewing 7 posts - 1 through 7 (of 7 total)This topic contains 7 replies, has 3 voices, and was last updated by huena 13 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
How to edit "What happens if I run out ?"
Viewing 7 posts - 1 through 7 (of 7 total)