ok i am pretty advanced with this stuff but I am extremly baffled by a simple code glitch...
i have changed this code a little to modify it to my site, credit is given in the footer of my page.
i want after a user posts for them not to be able to click the date for any reason, i just want it to be text, nothing more than that. Right now after you publish a comment its just text, but after you click refresh it goes back to a link.
Here is the code from the .php files associated with the direct issue, also how do i change the date format??? u can see on my site that the format of the article is different than that of the comments
You can see below I changed the follow string on line 242 in chronocomments.php from
to this
it should eliminate the link however it doenst.
here is the code in the file comment-item.html.php where the 'datetime' string is inserted
hopefully you know of a solution, you can preview this on my website http://whitesmokefilms.com/chrisjames
use the following user and pass to long in for now since i dont have a registration section yet
user: tester
password: test
also:: my thumbs dont work
i have changed this code a little to modify it to my site, credit is given in the footer of my page.
i want after a user posts for them not to be able to click the date for any reason, i just want it to be text, nothing more than that. Right now after you publish a comment its just text, but after you click refresh it goes back to a link.
Here is the code from the .php files associated with the direct issue, also how do i change the date format??? u can see on my site that the format of the article is different than that of the comments
You can see below I changed the follow string on line 242 in chronocomments.php from
'datetime' => '<a href="#commentID'.$commentx->id.'">'.strftime(JText::_( 'DATETIMEFORMAT' ),strtotime($commentx->datetime)).'</a>',
to this
'datetime' => ' '.strftime(JText::_( 'DATETIMEFORMAT' ),strtotime($commentx->datetime)).' ',
it should eliminate the link however it doenst.
here is the code in the file comment-item.html.php where the 'datetime' string is inserted
<div style=" font-weight:normal; text-transform: uppercase; padding-left:7px; color: #666666;font-size: 80%; font-family: Helvetica,Arial,FreeSans,sans-serif;">
<strong>{comment_datetime}</strong>
</div>
<div style="padding-top:9px;">
{comment_text}
</div>
hopefully you know of a solution, you can preview this on my website http://whitesmokefilms.com/chrisjames
use the following user and pass to long in for now since i dont have a registration section yet
user: tester
password: test
also:: my thumbs dont work
Hi, First I will answer your questions:
#1- date format can be changed in the language file, to make the link change, you need to edit it in 2 places, the one you mentioned and in chronocomments.php under the plugins/content/ folder!
#2- you can't vote for your self! this is checked by IP
I see you have broken the code, the comments don't work as expected, and its not accepted to remove the link from the position it was at or unlink it, it must be there as it was unless you got a ChronoComments license to remove it! this is a violation of our rules and you are taking away our credits and efforts!
Regards
Max
#1- date format can be changed in the language file, to make the link change, you need to edit it in 2 places, the one you mentioned and in chronocomments.php under the plugins/content/ folder!
#2- you can't vote for your self! this is checked by IP
I see you have broken the code, the comments don't work as expected, and its not accepted to remove the link from the position it was at or unlink it, it must be there as it was unless you got a ChronoComments license to remove it! this is a violation of our rules and you are taking away our credits and efforts!
Regards
Max
I will place the code back but under my css styles. However, the first question i had was how to deactivate the link, you answered the time question...which is fine now i know that...but the real question i have and the most important 1 is how to deactivate that link.
Hi,
to make the link change, you need to edit it in 2 places, the one you mentioned and in chronocomments.php under the plugins/content/ folder!
I changed codes in two places... one in chronocomments.php in the component package and one in the plugin package
from this
to this:
but the date time link is already showing... at first it was disabled... then i post new comment... new comments datetime link was disabled but the older was showing the link again...
then i refreshed the page and both comments datetime showed links...
what should i do to disable datetime linking?
from this
'datetime' => '<a href="#commentID'.$commentx->id.'">'.strftime(JText::_( 'DATETIMEFORMAT' ),strtotime($commentx->datetime)).'</a>',
to this:
'datetime' => ' '.strftime(JText::_( 'DATETIMEFORMAT' ),strtotime($commentx->datetime)).' ',
but the date time link is already showing... at first it was disabled... then i post new comment... new comments datetime link was disabled but the older was showing the link again...
then i refreshed the page and both comments datetime showed links...
what should i do to disable datetime linking?
they may appear more than 1 time at each file.
This topic is locked and no more replies can be posted.