[News block] Other colors on topic title depending on forum

Current Version: 1.0.6
Released: 09.01.10
Forum rules
Before creating a new support thread, please take a look in the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked

Topic author
wood72
Active Member
Posts: 5
Joined: 12. December 2008 12:59

[News block] Other colors on topic title depending on forum

Post by wood72 »

Your Portal Version: 1.0.0RC3
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Basic Knowledge
Boardlink: http://www.exalted-aoc.com/forums

PHP Version: 3.0.2

What have you done before the problem was there?
I have searched this forum for answers.

What have you already tryed to solve the problem?
Nothing apart from searhing on how'to :)

Description and Message
Hi,

I have gotten your excellent portal up and running properly, but am missing a very useful feature I had on my old forums (phpbb2).

It is regarding the news block and how I can make certain topic titles stand out more than others. As an example I would like to have the posts done on the officers forums in a completely different colour so that they are not missed by the officers. I would also like to have the applications stand out more. This is more visible at my old forums: http://exalted-aoc.com/phpbb2/portal.php

So question is simple; is this doable? To have different colours on topic titles in the news block depending on the forum id?


To get some clever brains around here some ideas; Here is how the genius that helped me on the old portal did it (5'th response I think) : http://www.phpbb.com/community/viewtopi ... 7&t=817355

Topic author
wood72
Active Member
Posts: 5
Joined: 12. December 2008 12:59

Re: [News block] Other colors on topic title depending on forum

Post by wood72 »

Shameless bump on this one as it really makes the portal a better place for us :)

This is the way it was done on phpbb2:
OPEN

portal.php

FIND

Code: Select all

       $template->assign_block_vars('recent_topic_row', array(
BEFORE ADD

Code: Select all

    $recent_topic_title_row = $recent_topic_row[$i]['topic_title'];
    if ( $recent_topic_row[$i]['forum_id'] == '134')
    {
      $recent_topic_title_row = '<span style="color: red">' . $recent_topic_title_row . '</span>';
    }
    elseif ( $recent_topic_row[$i]['forum_id'] == '14' )
    {
      $recent_topic_title_row = '<span style="color: pink">' . $recent_topic_title_row . '</span>';
    }
FIND

Code: Select all

    'L_TITLE' => $recent_topic_row[$i]['topic_title'],
REPLACE WITH

Code: Select all

    'L_TITLE' => $recent_topic_title_row,
to use it change the 134 and 14 to the forum ids you want and the color: red and color: pink to whatever color you want.
So I assume it's the /forums/portal/block/news.php that needs this incorporated, but I just don't know how to :)

Somebody clever, please help! :D

Topic author
wood72
Active Member
Posts: 5
Joined: 12. December 2008 12:59

Re: [News block] Other colors on topic title depending on forum

Post by wood72 »

Still nobody able to dig into this one? :)

Topic author
wood72
Active Member
Posts: 5
Joined: 12. December 2008 12:59

Re: [News block] Other colors on topic title depending on forum

Post by wood72 »

I'm still very interested in hearing if anybody knows a way around this one..

Farmand
Active Member
Posts: 8
Joined: 19. January 2011 12:52

Re: [News block] Other colors on topic title depending on fo

Post by Farmand »

Sorry for bringing up this topic again.

Can anyone help, please? I would also very much like this feature for my forum.

In the news block on the portal to have another text color for topicnames from
specific forums (one or more).

Thanks in advance and sorry for my poor english.

Have a nice day everybody

Kind regards

Farmand
User avatar

archivar
Portal Professional
Posts: 1959
Joined: 19. April 2009 21:34
phpBB.de User: archivar
phpBB.com User: archivar
Location: Deutschland

Re: [News block] Other colors on topic title depending on fo

Post by archivar »

Excuse!!!!!!!!!!!!!!!!!!!!!!! :oops:
If was my guilt!!!!!!!!!!!!! :oops:
I change this.
V.G. archivar
sorry for my bad english

Farmand
Active Member
Posts: 8
Joined: 19. January 2011 12:52

Re: [News block] Other colors on topic title depending on fo

Post by Farmand »

:D :D :D
User avatar

archivar
Portal Professional
Posts: 1959
Joined: 19. April 2009 21:34
phpBB.de User: archivar
phpBB.com User: archivar
Location: Deutschland

Re: [News block] Other colors on topic title depending on fo

Post by archivar »

Farmand wrote:Sorry for bringing up this topic again.

Can anyone help, please? I would also very much like this feature for my forum.

In the news block on the portal to have another text color for topicnames from
specific forums (one or more).

Thanks in advance and sorry for my poor english.

Have a nice day everybody

Kind regards

Farmand
I do not that it is possible to change this via the portal think.
V.G. archivar
sorry for my bad english
Locked

Return to “board3 Portal 1.0.x - English Support”