TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 790
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 543
  • Total: 543

Front Page Modification Help

Started by clickbouyow, July 06, 2008, 03:39:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

clickbouyow

I am sure I saw some of this somewhere, but I cannot find it with search.

SMF version:  1.1.5
TP Version:  1.0.5 Beta
URL:  http://www.deadboneplatoon.com
Theme:  alienation_tp v 1.1

I have two issues:

1:  how do I remove the poster's avatar from forum posts that populate the front page area (see attached illustration).

2:  how do I change the front page so that it alternates background color in the front page posts just like in the forums?

Thanks!

PS:  I, for some reason, am not getting email notifications of updates to posts from this forum.

Phil Serna

Hi.. from what I know.. you did get a option for the articles to turn off the avatar from showing, but if you have it set to like show forum post..I don't think you get that option.

Zetan

1a. Admin > Articles and Categories > Categories > Select a Category (The Categories can each have it's own options) > Cycle through the options and check the frontpage until you find one that suits what you need.

1b. Admin > Articles and Categories > Articles > Select an Article to edit > Options (Viewing options) > Here there are many options to choose from.

2. This will need to be defined in the .css of the theme. If nobody offers a working answer.. I will have a go later. I'm at work and can't do anything from here.

PS:

Maybe this would be better for another topic, in Feedback. We need more details: email provider, topics selected for Notification, TP.net account preferences.. etc.

clickbouyow

#3
These are not articles.  They are posts in the forum that are shown on the front page.  There is no option to turn off the avatar, from what I can find.  The only front page options that turn off the avatar are a simple list of topics and one that requires another image and shifts the text to the right. 


I have attached an image of my front page settings.  I do not see anywhere to turn off forum articles author avatars.

Zetan

#4
Thats an option I've never used before.

I have mine set to: Featured article and front page blocks

and use some SSI to do the same thing, only without the avatar. You can have a look at my front page if you want. URL for my site under my avatar. If however, you feel that it could be included as an option, I would suggest it in the Suggestions/Feedback board.. Currently, it's not an option.

trench

Try clicking layout types Normal Article w/o the icons.

Zetan

#6
Quote from: trench on July 07, 2008, 03:34:29 PM
Try clicking layout types Normal Article w/o the icons.

Funny.. I'm sure I already suggested that  ???

The reply was.. They are not articles. They are Forum Posts featured.

clickbouyow

OK.  Normal Article just changes the position of the avatar in the post and makes the background black.

Zetan

Okay.. so thats firmly established?

What do you want to do next?

  • Make a suggestion in the Suggestions board?
  • Use some simple SSI to do something similar, SSI News for example?
  • Hack the front page to get the desired result?

    I'd personally make a feature option suggestion, or use the SSI.
    For hacking the front page, try looking through the files in /Themes/Default/

  • TPortal.template.php
  • TPortalBlocks.template.php
  • TPBlockLayout.template.php


    I'm not sure which one it's in, I really haven't had time to check. Use the Find tool to search for Avatar and try commenting out those lines.


    For example, TPortal.template.php

    Find
    // show authors avatar?
    if(isset($story['options']['avatar']) && !empty($story['avatar']['image']))
    {
    $render .= '<div class="tp_avatar';
    if($context['TPortal']['mycat']!='' || !empty($context['TPortal']['is_front']))
    $render .= '_category';
    $render .= '"><a href="' . $story['poster']['href'] . '" title="' . $story['poster']['name'] . '">' . $story['avatar']['image'] . '</a></div>';
    }



    Commented out

    // show authors avatar?
    /*           if(isset($story['options']['avatar']) && !empty($story['avatar']['image']))
    {
    $render .= '<div class="tp_avatar';
    if($context['TPortal']['mycat']!='' || !empty($context['TPortal']['is_front']))
    $render .= '_category';
    $render .= '"><a href="' . $story['poster']['href'] . '" title="' . $story['poster']['name'] . '">' . $story['avatar']['image'] . '</a></div>';
    }
    */



    I'm not sure if that is the correct file or area.. I just found that in my file but I can't upload the changes to check it while I'm at work.

clickbouyow

#9
Quote from: ZTN on July 08, 2008, 09:16:42 AM
What do you want to do next?

  • Make a suggestion in the Suggestions board?
I will do that, however, it could take some time, if at all, before that feature would be implemented.

Quote from: ZTN on July 08, 2008, 09:16:42 AM
  • Use some simple SSI to do something similar, SSI News for example?
This would be the best stop-gap measure, but I don't have a clue how to accomplish it.

Quote from: ZTN on July 08, 2008, 09:16:42 AM
  • Hack the front page to get the desired result?
I believe I have looked at that file and could find nothing that changed the front page.  I will look again.


edit:  Actually I do not see a TPortal.template.php with this theme.

This website is proudly hosted on Crocweb Cloud Website Hosting.