Use custom forum images.

Guides & Snippets for phpBB3. Try the Snippets here and share Your own Snippets
There is no support here! Only Read Access!
heredia21
BBCoder IV
BBCoder IV
Posts: 179
Joined: 07 Apr 2010, 20:42
Contact:

Re: Use custom forum images and coloured notification.

Post by heredia21 »

Sir Xiradorn » 18 Apr 2010, 01:02 wrote:Wery good work.....i had add a small addon to colour also the unread topic title
In viewforum_body.html i modified this

Code: Select all

<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a>
in this way

Code: Select all

<a href="{topicrow.U_VIEW_TOPIC}"<!-- IF topicrow.S_UNREAD_TOPIC -->style="color:#FF0000;"<!-- ENDIF --> class="topictitle">{topicrow.TOPIC_TITLE}</a>
Nice addition! But when you hit view new post, the unread colors are not red there. Is there something else to change for that?
#1 BlackBerry News site - BlackBerry Empire. Come visit us!
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Use custom forum images and coloured notification.

Post by Stoker »

Board rules! No PM support
heredia21
BBCoder IV
BBCoder IV
Posts: 179
Joined: 07 Apr 2010, 20:42
Contact:

Re: Use custom forum images and coloured notification.

Post by heredia21 »

Thanks so the last search is the one that will change the "view new post" unread color and active, etc..?

Also what if we have the last post mod on the index. How can we change that color as well. Would it fall under that last search snippet you made?
#1 BlackBerry News site - BlackBerry Empire. Come visit us!
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Use custom forum images and coloured notification.

Post by cisco007 »

doesn't that mod already have it's own setting in the ACP somewhere?
heredia21
BBCoder IV
BBCoder IV
Posts: 179
Joined: 07 Apr 2010, 20:42
Contact:

Re: Use custom forum images and coloured notification.

Post by heredia21 »

cisco007 » 26 Apr 2010, 20:57 wrote:doesn't that mod already have it's own setting in the ACP somewhere?
You can change the color of the last posts. But it will not change if it is unread.
#1 BlackBerry News site - BlackBerry Empire. Come visit us!
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Use custom forum images and coloured notification.

Post by cisco007 »

i wonder what this snippet does then! :? :? :? (me being sarcastic)
heredia21
BBCoder IV
BBCoder IV
Posts: 179
Joined: 07 Apr 2010, 20:42
Contact:

Re: Use custom forum images and coloured notification.

Post by heredia21 »

Lol it does just that!. But I am talking about if you are using the last posts title mod by NV the unread color stay default. On the index page.
#1 BlackBerry News site - BlackBerry Empire. Come visit us!
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Use custom forum images and coloured notification.

Post by cisco007 »

if you have that installed you will have to modify this code around that mod!
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 803
Joined: 05 Mar 2010, 01:10
Extra Rank: Donator.png
BBCodes: 2000
Favourite BBCode: porn tube
Favourite MOD: Non of Stokers
Location: up your bum
Contact:

Re: Use custom forum images and coloured notification.

Post by Steve »

1st post updated with new edits click on show spoiler to re-do any edits if already installed to fix it.
view here for coloured notification forum and topics : viewtopic.php?f=9&t=648
just dont do these edits in the 1st post.
Open styles/prosilver/template/forumlist_body.html
find:

Code: Select all

<a href="{forumrow.U_VIEWFORUM}" class="forumtitle">{forumrow.FORUM_NAME}</a><br />
replace with:

Code: Select all

<!-- IF forumrow.S_UNREAD_FORUM --><a href="{forumrow.U_VIEWFORUM}" class="forumtitle" style="color:#FF0000;">{forumrow.FORUM_NAME}</a><!-- ELSE --><a href="{forumrow.U_VIEWFORUM}" class="forumtitle">{forumrow.FORUM_NAME}</a><!-- ENDIF --><br />
Sorry!
NAPWR wrote: Nice, Stoker is Hot
heredia21
BBCoder IV
BBCoder IV
Posts: 179
Joined: 07 Apr 2010, 20:42
Contact:

Re: Use custom forum images and coloured notification.

Post by heredia21 »

Thanks a lot Steve. It worked. and aligned.

Anyone have the search_result.html with red coloured unread notification? I followed your steps for forum and posts, and it worked. But cant get Stoker's search unread color notification to work. Posted my file, but still nothing happens.
#1 BlackBerry News site - BlackBerry Empire. Come visit us!
Locked