Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
gkpb fajar pengharapan Friend
gkpb fajar pengharapan
- Join date:
- December 2016
- Posts:
- 7
- Downloads:
- 8
- Uploads:
- 1
- Thanks:
- 1
January 2, 2017 at 8:53 pm #999020- how to create placeholder into guestname,email and text area ?
Mo0nlight ModeratorMo0nlight
- Join date:
- September 2014
- Posts:
- 707
- Downloads:
- 38
- Uploads:
- 107
- Thanked:
- 99 times in 97 posts
January 3, 2017 at 4:36 am #999146Hi.
You can try with my tweak as below:
- Open the file : components/com_jacomment/themes/default/html/comments/editor.php
- Backup this file first (just in case)
- Look for :
<textarea <?php if($isEnableAutoexpanding){?>style="overflow-y: hidden;"<?php }?> class="field textarea jac-new-comment jac-expand-field" rows="12" cols="80" tabindex="1" id="newcomment<?php echo $prefix; ?>" name="newcomment"><?php echo $contentComment;?></textarea>
Change to
<textarea placeholder="Text You Want" <?php if($isEnableAutoexpanding){?>style="overflow-y: hidden;"<?php }?> class="field textarea jac-new-comment jac-expand-field" rows="12" cols="80" tabindex="1" id="newcomment<?php echo $prefix; ?>" name="newcomment"><?php echo $contentComment;?></textarea>
Open the file : components/com_jacomment/themes/default/html/comments/addnew.php
Look for
<input id="guestName" value="<?php echo JText::_("TEXT_NAME");?>" name="name" type="text" class="field text inputbox jac-inner-text" size="18" tabindex="2" title="<?php echo JText::_("DISPLAYED_NEXT_TO_YOUR_COMMENTS");?>"/>
change to
<input placeholder="Text You Want" id="guestName" value="<?php echo JText::_("TEXT_NAME");?>" name="name" type="text" class="field text inputbox jac-inner-text" size="18" tabindex="2" title="<?php echo JText::_("DISPLAYED_NEXT_TO_YOUR_COMMENTS");?>"/>
And
<input id="guestEmail" value="<?php echo JText::_("TEXT_EMAIL");?>" name="email" type="text" class="field text inputbox jac-inner-text" value="" size="18" tabindex="3" title="<?php echo JText::_("NOT_DISPLAYED_PUBLICLY");?>"/>
Change To
<input placeholder="Text You Want" id="guestEmail" value="<?php echo JText::_("TEXT_EMAIL");?>" name="email" type="text" class="field text inputbox jac-inner-text" value="" size="18" tabindex="3" title="<?php echo JText::_("NOT_DISPLAYED_PUBLICLY");?>"/>
Regards
gkpb fajar pengharapan Friendgkpb fajar pengharapan
- Join date:
- December 2016
- Posts:
- 7
- Downloads:
- 8
- Uploads:
- 1
- Thanks:
- 1
January 5, 2017 at 9:04 pm #1000035i was remove attribute value and create placeholder but the attribute value still there in the text box ..
Mo0nlight ModeratorMo0nlight
- Join date:
- September 2014
- Posts:
- 707
- Downloads:
- 38
- Uploads:
- 107
- Thanked:
- 99 times in 97 posts
January 6, 2017 at 10:00 am #1000217Hi.
You can delete the value.
The same file. Look for
<input type="hidden" value="<?php echo JText::_("TEXT_NAME");?>" id="jac_hid_text_name" />
Change to
<input type="hidden" value="" id="jac_hid_text_name" />
and
<input type="hidden" value="<?php echo JText::_("TEXT_EMAIL");?>" id="jac_hid_text_email" />
Change to
<input type="hidden" value="" id="jac_hid_text_email" />
Regards
AuthorPostsViewing 4 posts - 1 through 4 (of 4 total)This topic contains 3 replies, has 2 voices, and was last updated by Mo0nlight 7 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum