TinyPortal

Development => Support => Topic started by: SniffTheGlove on September 12, 2006, 11:26:46 PM

Title: Remove Author from Article in Category Box
Post by: SniffTheGlove on September 12, 2006, 11:26:46 PM
Hi All,

If you have a Category Box showing and fill it with articles, the article title is shown along with "by xxxxxxx" with xxxxxx being the author.

e.g Constitution by Administrator

Does anybody know if it is possible to remove the author from the Category Box Display?

Thanks

Title: Re: Remove Author from Article in Category Box
Post by: IchBin on September 13, 2006, 02:21:07 AM
Edit the articles visual options and you can turn off the option to show the authors name.
Title: Re: Remove Author from Article in Category Box
Post by: SniffTheGlove on September 13, 2006, 08:13:45 AM
IchBin, There is no visual options properties for a Category box apart from the type of frame to use (plus allow/do not allow collapse and permissions), unless I have missed the settings elsewhere.

Could you point me to the visual options for a Category Box so I can switch off the author from displaying.

Thanks

Title: Re: Remove Author from Article in Category Box
Post by: G6Cad on September 13, 2006, 08:50:47 AM
Admin/TinyPortal/Article Manager/ Click the little tool icon for the article you want to change /At the bottom of that page just over the send button you have a link to the visual options for the article
Title: Re: Remove Author from Article in Category Box
Post by: SniffTheGlove on September 13, 2006, 09:07:09 AM
Sorry, you all seem to misunderstand me.


I have attached a jpg of a Category Box.

It contains articles, the article title is shown along with "by xxxxxxx" with xxxxxx being the author.

e.g Constitution by Administrator

Can I remove the author ( "by xxxxxxx" ) from the Category Box

I hope this explains it better

Thanks
Title: Re: Remove Author from Article in Category Box
Post by: Hack on September 18, 2006, 04:59:20 PM
I would love to know how to do the same thing.. some of the articles I have added to my site dont actually need my name next to them to say created by so it would be prefered if I could remove it  :-\
Title: Re: Remove Author from Article in Category Box
Post by: JPDeni on September 18, 2006, 05:09:38 PM
Open Themes > default > TPortalBlocks.template.php

Find

function TPortal_categorybox()

A few lines below that, you'll see

if($listing['category']==$context['TPortal']['blocklisting'])
  echo '<b><a href="'.$scripturl.'?page='.$listing['id'].'">'.$listing['subject'].'</a></b> '.$txt[525].' '.$listing['poster'].'<br />';


Delete

'.$txt[525].' '.$listing['poster'].'

Be sure that you delete all of the single-quote characters I've included above. Otherwise you'll get a syntax error. Those are the easiest ones to miss.
Title: Re: Remove Author from Article in Category Box
Post by: SniffTheGlove on September 18, 2006, 07:09:02 PM
Thank you JPDeni, I can do this.

javascript:void(0);
Smiley
Title: Re: Remove Author from Article in Category Box
Post by: DaDockta on May 29, 2008, 05:06:58 PM
Great info, works like a charm
Title: Re: Remove Author from Article in Category Box
Post by: MatthewSchenker on May 30, 2008, 12:40:43 PM
Good Morning,
Is there any chance this might become an option in TP 1.x?  It would be nice to have the option to turn the author on or off when displaying an article title in a block.
Matt
Title: Re: Remove Author from Article in Category Box
Post by: antechinus on June 07, 2008, 01:36:49 PM
Cool. I was just wondering how to do this. Mind you I'm getting blase. I suppose I really shouldn't have just gone and done it to an active forum. It worked though.  ;D