TinyPortal

Development => Support => Topic started by: zaphio on August 24, 2008, 06:33:00 PM

Title: Tp forum-post on frontpage problem.
Post by: zaphio on August 24, 2008, 06:33:00 PM
SMF version: SMF 1.1.5
TP version: 1.0.5
Theme name and version: DS-Natural
Link: www.mnogo.nu (http://www.mnogo.nu)

Hi guys! i got some questions about tp and news on fronpage.

1. First of all i have set the Front page to "Forum-posts and articles - sorted on date" and linked to the forum "Guild News". This works pretty fine. But the problem is:
When i write a forum-post you can see it on the frontpage the avatar shows there also, this is something i want to remove. So how do i turn off this feature?

2. When you enter the forumpost http://www.mnogo.nu/index.php?topic=6.0 (http://www.mnogo.nu/index.php?topic=6.0) the avatar isn´t there in the post? how do i activate this feature? i have also tried to remove the avatar and put it back again. Still doesnt work. It both with built-in avatars and external.


3. When i post a forumpost that one isn´t the same level as the right and left menu. i got a exampel on another site where it seems to work. http://www.flatline-guild.eu/index.php (http://www.flatline-guild.eu/index.php)  Maybee they post news in another way the we do?

Title: Re: Tp forum-post on frontpage problem.
Post by: SMFnub on September 29, 2008, 11:46:34 PM
I also have this problem and hate it.  I saw some post from Ichbin saying have to edit some index.php file, but have no idea what to do.

I really want to get rid of the avatars on my front page and I use forum posts for my front page.
Title: Re: Tp forum-post on frontpage problem.
Post by: G6Cad on September 30, 2008, 06:31:04 AM
1, no option to remove the avatar from there at this point

2. SMF holds the answer to avatars in the forum and board

3. What news are you talking about ?  The SMF news or your own news posted in a board ?
Title: Re: Tp forum-post on frontpage problem.
Post by: madmakz on October 12, 2008, 04:01:58 AM
Quote from: zaphio on August 24, 2008, 06:33:00 PM
....
When i write a forum-post you can see it on the frontpage the avatar shows there also, this is something i want to remove. So how do i turn off this feature?
....

TP 1.0.5 Beta 1

open  "Themes/default/TPortal.template.php"

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

          // any options for author and date?

(Line 476-481)

Replace with:
// show authors avatar?
/*if(isset($story['options']['avatar']) && !empty($story['avatar']['image']))
echo '
<div class="tp_avatar' , ($context['TPortal']['mycat']!='' || !empty($context['TPortal']['is_front'])) ? '_category' : '' , '"><a href="' , $story['poster']['href'] , '" title="' , $story['poster']['name'] , '">' , $story['avatar']['image'] , '</a></div>';
*/
          // any options for author and date?

(Just comented the part with /* */)

_Makz