Announcement link color

All style (template, theme and imageset) related questions for the new release; advice, feedback here please.
Post Reply
harmlessgoat22
Posts: 108
Joined: Sun Nov 27, 2005 12:25 am

Announcement link color

Post by harmlessgoat22 »

Is there a way to make the link color for announcements different that regular posts, without going through too much trouble?
alphaPORTAL
phpBB3 Integration MOD:
Create Pages in phpBB3
Portal
Many Modules including Login, Welcome, Search, Top Posters, Online Now, Menu, Offsite Links, and more

ElbertF
Registered User
Posts: 583
Joined: Fri Dec 03, 2004 4:35 pm
Location: tracing..
Contact:

Re: Announcement link color

Post by ElbertF »

Should be pretty easy with IF-statements:

Code: Select all

<!-- IF topicrow.S_TOPIC_TYPE_SWITCH eq 1 -->
1 For announcements, 0 for regular topics.

harmlessgoat22
Posts: 108
Joined: Sun Nov 27, 2005 12:25 am

Re: Announcement link color

Post by harmlessgoat22 »

I have to put <!-- IF topicrow.S_TOPIC_TYPE_SWITCH eq 1 --> before it right? But what do I put after the code I add.

EDIT
Nevermind, I figured I put <!-- ENDIF --> from looking at the other code.


Hold on, It's not working. It doesn't do anything different. Heres what I changed

Was

Code: Select all

<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a>
Is Now

Code: Select all

<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle"><!-- IF topicrow.S_TOPIC_TYPE_SWITCH eq 1 --><span style="color:#c00703"><!-- ENDIF -->{topicrow.TOPIC_TITLE}<!-- IF topicrow.S_TOPIC_TYPE_SWITCH eq 1 --></span><!-- ENDIF --></a>
alphaPORTAL
phpBB3 Integration MOD:
Create Pages in phpBB3
Portal
Many Modules including Login, Welcome, Search, Top Posters, Online Now, Menu, Offsite Links, and more

ElbertF
Registered User
Posts: 583
Joined: Fri Dec 03, 2004 4:35 pm
Location: tracing..
Contact:

Re: Announcement link color

Post by ElbertF »

Well.. It does work.

Code: Select all

<!-- IF topicrow.S_TOPIC_TYPE_SWITCH eq 1 -->
bla
<!-- ELSE -->
bla
<!-- ENDIF -->

itunes66
Registered User
Posts: 169
Joined: Tue Feb 08, 2005 12:28 am

Re: Announcement link color

Post by itunes66 »

urggh.. spambot lol

Use This:

Code: Select all

<!-- IF topicrow.S_TOPIC_TYPE_SWITCH eq 1 -->
<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle" style="color: #c00703;">{topicrow.TOPIC_TITLE}</a>
<!-- ELSE -->
<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a>
<!-- ENDIF -->
2 things i like about you hmm.. ill have to get back to you on that one

harmlessgoat22
Posts: 108
Joined: Sun Nov 27, 2005 12:25 am

Re: Announcement link color

Post by harmlessgoat22 »

http://www.burningthunder.net/boards/vi ... 833115fafa" target="_blank

Doesn't show as red for announcements...

I'm sure I added the code right
alphaPORTAL
phpBB3 Integration MOD:
Create Pages in phpBB3
Portal
Many Modules including Login, Welcome, Search, Top Posters, Online Now, Menu, Offsite Links, and more

Post Reply