TinyPortal

Development => Support => Topic started by: MatthewSchenker on March 14, 2008, 12:04:31 PM

Title: Hiding Author in Article Blocks?
Post by: MatthewSchenker on March 14, 2008, 12:04:31 PM
Hello,
I've been getting TinyPortal up and running on my site, and I love it!  What a great system.

I'm wondering if there is a way to have the articles displayed in article blocks without the author.  In other words, just show the title in the block.

Under "options" for each article, I un-checked the "author" field, but still the author shows up.

Can someone help me?

Thanks,
Matt
Title: Re: Hiding Author in Article Blocks?
Post by: Ken. on March 14, 2008, 12:32:33 PM
That should work Matt, just as a check did you save the article after un-checking the author field?
Title: Re: Hiding Author in Article Blocks?
Post by: MatthewSchenker on March 14, 2008, 12:41:19 PM
Ken,
I just confirmed this again.

Here's what I did:
1. Opened each article
2. Clicked "[Edit article]"
3. Clicked "Edit visual options for the article"
4. Un-checked "show author"
5. Clicked "save"
6. Went back to the home page to confirm.

Just to be sure, I also did this:
1. Opened each article
2. Clicked "[Edit options]"
3. Un-checked "show author"
4. Clicked "save"
5. Went back to the home page to confirm.

The author still appears.

Maybe there's something else I'm doing wrong here?  Just to be clear, I'm listing my articles under "article category" blocks.

To see what I'm talking about, here's my site: http://www.thedogwriter.com

Matthew
Title: Re: Hiding Author in Article Blocks?
Post by: Ken. on March 14, 2008, 12:57:58 PM
Maybe I'm not understanding what you are asking Matt, but for me the author is not showing in any of your articles that I looked at.

In the two screen shots below you can see in the sample from your site that in the upper left it only shows the date/time whereas in the sample of one of my articles it shows my name as well.
Your name is showing in the body of your article, but thats because you typed it in and not as part of the options.
Title: Re: Hiding Author in Article Blocks?
Post by: Ken. on March 14, 2008, 01:08:36 PM
Matt after re-reading your original post I found the topic linked below, see if this gives you what you need.
... there are several fixes listed in the topic.

http://www.tinyportal.net/index.php?topic=13681.msg125167#msg125167
Title: Re: Hiding Author in Article Blocks?
Post by: MatthewSchenker on March 14, 2008, 01:30:55 PM
Ken,
I want the author name to appear in the actual text, but not in the home-page block.

That link you provided answers my question, although I was hoping to use the article system rather than a menu to manage articles.  Doing this through a menu takes me away from one of the greatest features of TinyPortal -- the articles manager!!

OK, I've been adding articles using the menu manager, and it is way more difficult than the articles manager. There's got to be a way to turn off the author in the "article category" blocks.

Thanks,
Matthew
Title: Re: Hiding Author in Article Blocks?
Post by: MatthewSchenker on March 16, 2008, 10:30:19 AM
I reorganized my site using a menu box instead of an article category to list all my individual articles.  It looks really nice, thanks to the great design of TinyPortal!

However, it's more complicated to create a menu box to list all the artices in each category.  I'd really like to use the category function instead, but it just gets confusing when the author is shown after every article.

If anyone could help me here, I would really appreciate figuring out how to hide the author in the article category block.

Thanks for the great work on TinyPortal!

Matt
Title: Re: Hiding Author in Article Blocks?
Post by: IchBin on March 17, 2008, 03:50:22 PM
At the end of TPortalBlocks.template.php file:
Find function TPortal_categorybox().

Remove this code from it.
'.$listing['poster'].'
Title: Re: Hiding Author in Article Blocks?
Post by: MatthewSchenker on March 17, 2008, 04:09:23 PM
Quote from: IchBinâ,,¢ on March 17, 2008, 03:50:22 PM
At the end of TPortalBlocks.template.php file:
Find function TPortal_categorybox().

Remove this code from it.
'.$listing['poster'].'

Thank you so much for researching this!  I really appreciate it.

OK, now there's just one more thing to address here.  Although the author is now off, there is still a "by" after the article title.  How do I turn that off as well?

Thanks again!
Matthew
Title: Re: Hiding Author in Article Blocks?
Post by: JPDeni on March 17, 2008, 04:28:04 PM
You want the line to look like this:


echo '<b><a href="'.$scripturl.'?page='.$listing['id'].'">'.$listing['subject'].'</a></b><br />';

Title: Re: Hiding Author in Article Blocks?
Post by: MatthewSchenker on March 17, 2008, 05:49:08 PM
JPDeni,
Thanks for clarifying this!  Excellent -- now I have it looking the right way, and I can use the article category function to keep the articles organized nicely.

Thank you to JPDeni and IchBin for your help!

Matthew
Title: Re: Hiding Author in Article Blocks?
Post by: Ken. on March 17, 2008, 08:37:19 PM
Glad you got it sorted out Matt, just took a peek at you site and it looks good.  :up:

Marking this one as solved.
Title: Re: Hiding Author in Article Blocks?
Post by: MatthewSchenker on March 17, 2008, 10:28:54 PM
Ken,
Yes, it's solved!  Now I can go find another thing to ask about!
I'm very happy to discover this great forum for TinyPortal.
Matthew
Title: Re: Hiding Author in Article Blocks?
Post by: IchBin on March 17, 2008, 10:32:23 PM
Quote from: MatthewSchenker on March 17, 2008, 10:28:54 PM
Ken,
Yes, it's solved!  Now I can go find another thing to ask about!
I'm very happy to discover this great forum for TinyPortal.
Matthew
You should be saying, "Now I can go find something else I can figure out". ;) We are here to help if you get stuck, not answer a question you haven't tried to solve yourself. :)
Title: Re: Hiding Author in Article Blocks?
Post by: MatthewSchenker on March 18, 2008, 05:02:26 PM
Quote from: IchBinâ,,¢ on March 17, 2008, 10:32:23 PM
You should be saying, "Now I can go find something else I can figure out". ;) We are here to help if you get stuck, not answer a question you haven't tried to solve yourself. :)

Yes, that's what I mean!

On a related matter: do you think that this is an opportunity to develop an option for TinyPortal?  I'm offering to do the work, as my way of contributing to this great application.  I've become pretty good with code, so I'd be happy to dive in and see if I can do this.

For example, maybe I could create a check box in the "articles manager."  It might read, "Display author name?"  The user could check or uncheck it.  By default, it would be checked.

Is something like this possible?  Can I do it?

Matthew
Title: Re: Hiding Author in Article Blocks?
Post by: Ken. on March 18, 2008, 05:23:55 PM
Generally speaking the code for TP is only written by Bloc, but he listens to suggestions of course so if you have some code to submit he may find it useful... but only he can say for sure on anything like that.

But in any case, the next version of TP is not being added to at this point, instead the process is to refine and 'de-bug' the features already included so to add something new will likely be a long way off.
Title: Re: Hiding Author in Article Blocks?
Post by: MatthewSchenker on March 18, 2008, 05:31:48 PM
Ken,
Yes, I understand.  Just wanting to contribute here in more ways than just asking annoying questions!

I'm very excited to see what the new version of TinyPortal brings!

Thanks,
Matthew
Title: Re: Hiding Author in Article Blocks?
Post by: eline on March 18, 2008, 06:12:17 PM
Mathew
I just cut off lot of code - also this one with author name from front blocks, so things like this are important.
Now Im looking for solution how to display in this blocks attachments if are photos - kind of thumbs for articles.

best regards
Title: Re: Hiding Author in Article Blocks?
Post by: MatthewSchenker on March 19, 2008, 03:03:06 PM
eline,
Glad my question helped!  I'm looking at my site today and seeing some other things I'd like to do.  I'll report on them in this forum.
Matt