test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • gkpb fajar pengharapan Friend
    #999020
    1. how to create placeholder into guestname,email and text area ?
    Mo0nlight Moderator
    #999146

    Hi.

    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 Friend
    #1000035

    i was remove attribute value and create placeholder but the attribute value still there in the text box ..


    1. Capturevb
    Mo0nlight Moderator
    #1000217

    Hi.

    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

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

This topic contains 3 replies, has 2 voices, and was last updated by  Mo0nlight 7 years, 11 months ago.

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