TinyPortal

Development => Support => Topic started by: Ray on January 14, 2006, 01:36:27 AM

Title: How to remove date and time in Articles
Post by: Ray on January 14, 2006, 01:36:27 AM
I know I have asked this before and did a search but could not find what I wanted
So anyway how do I remove just this code only

[attachment deleted by admin]
Title: Re: How to remove this
Post by: Rasyr on January 14, 2006, 04:21:39 AM
Edit TPortal.template.php

Find the following (approximately line 57):


// if featured..do something to the subject?
echo '
</div>
<div style="padding: 8px; padding-top: 0px;" ' , ($news['is_last']=='theme' || $news['is_last']==false) ? 'class="windowbg2"' : '' , '>
<div style="padding-bottom: 4px; vertical-align: bottom;" class="smalltext"> '.$news['time'].' '.$txt['tp-by'].' <b><a href="'.$news['poster']['href'].'">'.$news['poster']['name'].'</a></b></div>';

if($news['icon']!='noicon'){
echo $news['body'];


Change it to:

// if featured..do something to the subject?
echo '
</div>
<div style="padding: 8px; padding-top: 0px;" ' , ($news['is_last']=='theme' || $news['is_last']==false) ? 'class="windowbg2"' : '' , '>';

if($news['icon']!='noicon'){
echo $news['body'];


It will make things then look like the following image



[attachment deleted by admin]
Title: Re: How to remove this
Post by: Ray on January 14, 2006, 04:26:06 AM
Thanks Rasyr,  that works perfect ;D



Should this be moved to the FAQ??
Title: Re: (fixed) How to remove date and time in the post
Post by: 3dvn on January 14, 2006, 01:14:11 PM
Mean you not need the time of post ?
Title: Re: (fixed) How to remove date and time in the post
Post by: IchBin on January 15, 2006, 02:40:39 AM
Shouldn't the title say Article instead of Post?
Title: Re: (fixed) How to remove date and time in the post
Post by: Ray on January 15, 2006, 04:19:16 AM
I just move it here because it was knowledge -- I figured it would be all changed to look and feel for the FAQ

QuoteShouldn't the title say Article instead of Post?
Changed
Title: Re: (fixed) How to remove date and time in Articles
Post by: GM on January 17, 2006, 02:04:32 AM
What folder is TPortal.template.php in?
Title: Re: (fixed) How to remove date and time in Articles
Post by: Xarcell on January 17, 2006, 02:19:31 AM
default i think.
Title: Re: (fixed) How to remove date and time in Articles
Post by: Xarcell on January 17, 2006, 02:20:50 AM
you plan to alter it do you? If you are, then copy it to the theme folder you are using and make changes there. Unless you are using teh defaut theme.
Title: Re: (fixed) How to remove date and time in Articles
Post by: GM on January 17, 2006, 02:30:13 AM
I wanting to remove the time and date from the articles,but I'm not finding that file. The default theme was the first place I looked,I'm probably just blind.
Title: Re: (fixed) How to remove date and time in Articles
Post by: Ray on January 17, 2006, 02:36:38 AM
TPortal.template.php is in the Themes\default
Title: Re: (fixed) How to remove date and time in Articles
Post by: GM on January 17, 2006, 02:44:53 AM
Found it via ftp,but it wasn't showing up in the Control Panel.
Thanks
Title: Re: (fixed) How to remove date and time in Articles
Post by: Rasyr on January 17, 2006, 02:54:00 AM
Tportal.template.php should be in the "default" folder (which is inside the Themes folder). There should be several different TP-related files there.

Title: Re: (fixed) How to remove date and time in Articles
Post by: GM on January 17, 2006, 03:24:27 AM
They are in for sure,but I couldn't see them in C-panel for some reason.

Took care of the date and time thing already,thanks for the help guys!