-
AuthorPosts
-
sbaldwin Friend
sbaldwin
- Join date:
- May 2008
- Posts:
- 342
- Downloads:
- 0
- Uploads:
- 65
- Thanks:
- 119
- Thanked:
- 15 times in 1 posts
November 17, 2008 at 2:41 am #135415Hi,
A few questions;1) How do I remove the “Time” only in the articles, next to Authors Name?
2) How do I Change the dates in Polls Results page, First Date/Last Date?
Thanks for any help! 😀
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
November 17, 2008 at 8:29 am #279378Dear sbaldwin !
About the first issue :
You can remove it following below :
Open default.php file in templatesja_teline_iihtmlcom_contentarticle folder, find following code section at about line 37 :
<span class="createdate">
<?php echo JHTML::_('date', $this->article->created, JText::_('DATE_FORMAT_LC2')) ?>
</span>
and remove it !
1 user says Thank You to Sherlock for this useful post
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
November 17, 2008 at 8:37 am #279379About second issue :
First Vote time is saved to database when first user vote for poll , it always keeps first value.
Last Vote time is updated when a get a new vote.Poll component there isn’t option to change value of it , if you want change it you can edit directly in database.
If you want create a poll, I highly recommend you create a new poll.1 user says Thank You to Sherlock for this useful post
Anonymous ModeratorJA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
November 17, 2008 at 8:44 am #279380Dear sbaldwin,
I would like to answer your questions as follows:
For the first issue:
1) How do I remove the “Time” only in the articles, next to Authors Name?
In Administrator, go to Content -> Article Manage, then click Parameters button, you can edit options when parameters page display.
For the second issue:
2) How do I Change the dates in Polls Results page, First Date/Last Date?
If you create a new poll,and publish it then date published is first date, and last date is current system date until you unpublish this poll. So you can’t change dates in Polls Results page
1 user says Thank You to JA Developer for this useful post
sbaldwin Friendsbaldwin
- Join date:
- May 2008
- Posts:
- 342
- Downloads:
- 0
- Uploads:
- 65
- Thanks:
- 119
- Thanked:
- 15 times in 1 posts
November 18, 2008 at 7:19 pm #279561Hi Hainn!
Thanks so much for getting back. Sorry to bother you again however I just want to remove the listed “time” and leave in the Date and Author’s name in. I did try removing the time by deleting it in the Article Manager-Parmeters however it left 00’s displayed.Please see attached screen shots.
-
sbaldwin Friend
sbaldwin
- Join date:
- May 2008
- Posts:
- 342
- Downloads:
- 0
- Uploads:
- 65
- Thanks:
- 119
- Thanked:
- 15 times in 1 posts
November 18, 2008 at 7:35 pm #279562JA Developer;91042Dear sbaldwin,
I would like to answer your questions as follows:
For the first issue:
In Administrator, go to Content -> Article Manage, then click Parameters button, you can edit options when parameters page display.
For the second issue:
If you create a new poll,and publish it then date published is first date, and last date is current system date until you unpublish this poll. So you can’t change dates in Polls Results page
Please see attached. I published a new Poll however it has 2006 showing for year for first vote. It should be 2008.
I will check and see if I can change it in database somehow. Thanks!
Anonymous ModeratorJA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
November 19, 2008 at 3:36 am #279590Open default.php file in templatesja_teline_iihtmlcom_contentarticle folder, find following code section at about line 37 :
[PHP]
<span class=”createdate”>
<?php echo JHTML::_(‘date’, $this->article->created, JText::_(‘DATE_FORMAT_LC2’)) ?>
</span>
[/PHP]and change to:
[PHP]<span class=”createdate”>
<?php echo JHTML::_(‘date’, $this->article->created, JText::_(‘DATE_FORMAT_LC1’)) ?>
</span>[/PHP]+ at about line 124 find following code section
[PHP]
<span class=”modifydate”>
<?php echo JText::_( ‘Last Updated’ ); ?> ( <?php echo JHTML::_(‘date’, $this->article->modified, JText::_(‘DATE_FORMAT_LC2’)); ?> )
</span>[/PHP]and change to:
[PHP]<span class=”modifydate”>
<?php echo JText::_( ‘Last Updated’ ); ?> ( <?php echo JHTML::_(‘date’, $this->article->modified, JText::_(‘DATE_FORMAT_LC1’)); ?> )
</span>[/PHP]1 user says Thank You to JA Developer for this useful post
sbaldwin Friendsbaldwin
- Join date:
- May 2008
- Posts:
- 342
- Downloads:
- 0
- Uploads:
- 65
- Thanks:
- 119
- Thanked:
- 15 times in 1 posts
November 24, 2008 at 3:38 am #280054Thanks Guys !!!
hainn84;91040Dear sbaldwin !
About the first issue :
You can remove it following below :
Open default.php file in templatesja_teline_iihtmlcom_contentarticle folder, find following code section at about line 37 :
<span class="createdate">
<?php echo JHTML::_('date', $this->article->created, JText::_('DATE_FORMAT_LC2')) ?>
</span>
and remove it !
sbaldwin Friendsbaldwin
- Join date:
- May 2008
- Posts:
- 342
- Downloads:
- 0
- Uploads:
- 65
- Thanks:
- 119
- Thanked:
- 15 times in 1 posts
December 1, 2008 at 11:16 pm #280882Hi!
The code changes did remove the “time” in articles after clicking the “read more” button but still shows up on first initial article. Please see attached screenshot. Do I need to change code in another area as well? Thank you for your help!
jsliao Friendjsliao
- Join date:
- April 2008
- Posts:
- 817
- Downloads:
- 0
- Uploads:
- 12
- Thanks:
- 25
- Thanked:
- 236 times in 210 posts
December 2, 2008 at 1:42 am #280891Log in to your Admin Control Panel
Content->Article Manager->ParametersSelect “Hide” for “Created Date and Time”
Select “Hide” for “Created Date and Time”At each indivdual article, make sure the above options are set to “Hide” or “Use Global”
sbaldwin Friendsbaldwin
- Join date:
- May 2008
- Posts:
- 342
- Downloads:
- 0
- Uploads:
- 65
- Thanks:
- 119
- Thanked:
- 15 times in 1 posts
December 2, 2008 at 4:35 pm #280973Hi Jsliao!
Thanks for your recommendation. I did see the parmenters section before and prefer to use that method opposed to changing code, however I would like to remove only the “Time of Day” for the articles and not the date.
The code Hainn and JA developer sent does help remove the “Time listed” but only after clicking on the “read more” button. The Time is still showing in the initial article.Not to be picky, but I do want to remove it! Maybe I need to change code in another area as well?Thanks for helping! 😀
AuthorPostsViewing 11 posts - 1 through 11 (of 11 total)This topic contains 11 replies, has 4 voices, and was last updated by sbaldwin 15 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum