How remove URL field in K2 comment form
Rate this topic: 1.00 out of 6 based on 1 vote(s)
- GK User
- Fri Aug 29, 2014 5:05 pm
- Reply with quote
- Report this post
To publish a comment, readers are invited to write the message, their name, their email and their URL website in the according fields. I want to remove the URL website field and title. Which file have I to modify?
See the comment form at the bottom of page: http://www.kinesiologue-paris.fr/index. ... er-choisir
See the comment form at the bottom of page: http://www.kinesiologue-paris.fr/index. ... er-choisir
-
- Fresh Boarder
- GK User
- Sun Aug 31, 2014 7:14 pm
- Reply with quote
- Report this post
Please check this file:
templates/gk_publisher/html/mod_k2_comments/comments.php
If you will have problems finding correct lines to edit, please write back.
templates/gk_publisher/html/mod_k2_comments/comments.php
If you will have problems finding correct lines to edit, please write back.
-
- Moderator
- GK User
- Sun Aug 31, 2014 7:36 pm
- Reply with quote
- Report this post
I checked the file. I found these lines:
May you give me a way to modify the code to remove URL field please?
- Code: Select all
<?php elseif($comment->commentURL): ?><a target="_blank" rel="nofollow" href="<?php echo $comment->commentURL; ?>"><?php echo $comment->userName; ?></a>
May you give me a way to modify the code to remove URL field please?
-
- Fresh Boarder
- GK User
- Mon Sep 01, 2014 6:16 pm
- Reply with quote
- Report this post
Just remove two lines::
- Code: Select all
<?php elseif($comment->commentURL): ?>
<a target="_blank" rel="nofollow" href="<?php echo $comment->commentURL; ?>"><?php echo $comment->userName; ?></a>
-
- Moderator
- GK User
- Tue Sep 02, 2014 5:11 pm
- Reply with quote
- Report this post
I removed the lines and emptied browser cache but URL field is there anyway. I checked the modified file to be the correct one: templates\gk_publisher\html\mod_k2_comments/comments.php.
-
- Fresh Boarder
- GK User
- Wed Sep 03, 2014 4:27 pm
- Reply with quote
- Report this post
This is a template for k2 comments form.
Please send me a PM with:
1. URL to your website
2. login and password of user with admin/super-admin privileges (please create one for me)
3. ftp data (host, user, password)
4. link to this thread
Please send me a PM with:
1. URL to your website
2. login and password of user with admin/super-admin privileges (please create one for me)
3. ftp data (host, user, password)
4. link to this thread
-
- Moderator
- GK User
- Sat Sep 06, 2014 3:39 pm
- Reply with quote
- Report this post
I gave you requested informations (two times) but PM seems to stay in the Outbox, I don't know why. Please give an acknowledge receipt of the PM in order I'm sure you got it, and after that take it easy on the issue.
-
- Fresh Boarder
- GK User
- Wed Sep 10, 2014 12:50 pm
- Reply with quote
- Report this post
There was another file to edit:
/templates/gk_publisher/html/com_k2/templates/default/item_comments_form.php
I have removed this lines from it:
/templates/gk_publisher/html/com_k2/templates/default/item_comments_form.php
I have removed this lines from it:
- Code: Select all
<label class="formUrl" for="commentURL"><?php echo JText::_('K2_WEBSITE_URL'); ?></label>
<input class="inputbox" type="text" name="commentURL" id="commentURL" value="<?php echo JText::_('K2_ENTER_YOUR_SITE_URL'); ?>" onblur="if(this.value=='') this.value='<?php echo JText::_('K2_ENTER_YOUR_SITE_URL'); ?>';" onfocus="if(this.value=='<?php echo JText::_('K2_ENTER_YOUR_SITE_URL'); ?>') this.value='';" />
-
- Moderator
- GK User
- Wed Sep 10, 2014 7:24 pm
- Reply with quote
- Report this post
Ok it works, even though there is error message in local, no matter. Thank you.
-
- Fresh Boarder
- GK User
- Thu Sep 11, 2014 3:30 pm
- Reply with quote
- Report this post
What do you mean by local?
-
- Moderator
- GK User
- Thu Sep 11, 2014 4:32 pm
- Reply with quote
- Report this post
When I download the web site to my computer to work offline
-
- Fresh Boarder
- GK User
- Fri Sep 12, 2014 1:49 pm
- Reply with quote
- Report this post
Perhaps you have display_errors on on local and Joomla suggest it to be set to off?
-
- Moderator
- GK User
- Fri Sep 12, 2014 4:53 pm
- Reply with quote
- Report this post
You are right, warnings disapeared when I set display errors off. Chapeau bas...
-
- Fresh Boarder
- GK User
- Mon Sep 15, 2014 4:56 pm
- Reply with quote
- Report this post
Is there anything else I can help you with regarding this topic?
-
- Moderator
14 posts
• Page 1 of 1