[RC2] Coloured link if new post 1.0.2

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Anti-Spam Guide
User avatar
Mickroz
Registered User
Posts: 661
Joined: Thu Mar 06, 2003 11:20 pm
Location: Netherlands
Contact:

[RC2] Coloured link if new post 1.0.2

Post by Mickroz »

MOD Title: Coloured link if new post
MOD Version: 1.0.2
Author: Mickroz
MOD Description: if there is a new post the link color changes.
phpBB Version: 3.0.4

MOD Format: MODX

Language: English

Licence: GNU General Public License v2

MOD Download: http://www.mickroz.nl/forums/index.php?id=7&rb_v=file


Demo: N/A
Last edited by Mickroz on Thu Jan 21, 2010 5:57 pm, edited 7 times in total.
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Q: Whats a hash and a root password?
A: hash gets you high, root password gives you god powers, combine the 2 and you are invincible.
User avatar
Ash Hi Fi Zone
Registered User
Posts: 409
Joined: Fri Feb 09, 2007 11:55 am

Re: [BETA] Coloured link if new post

Post by Ash Hi Fi Zone »

I think it would be nice and helpful if you could add description of your MOD and also the version number and all in the format specified in the Announcement here..... :)
User avatar
Mickroz
Registered User
Posts: 661
Joined: Thu Mar 06, 2003 11:20 pm
Location: Netherlands
Contact:

Re: [BETA] Coloured link if new post

Post by Mickroz »

jups,but i just parked this topic ;) updated first post.
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Q: Whats a hash and a root password?
A: hash gets you high, root password gives you god powers, combine the 2 and you are invincible.
User avatar
TimJBart
Registered User
Posts: 279
Joined: Mon Jan 28, 2002 8:24 pm

Re: [BETA] Coloured link if new post 1.0.0

Post by TimJBart »

What colour does it change the link to? Is is the red of the new topic icons?
User avatar
ac_roma
Registered User
Posts: 317
Joined: Thu Mar 08, 2007 2:48 pm
Location: egypt,alexandria
Contact:

Re: [BETA] Coloured link if new post 1.0.0

Post by ac_roma »

great thanks man :)
User avatar
oddfish
Registered User
Posts: 839
Joined: Mon Mar 19, 2007 8:45 pm
Location: Testing 3.1
Contact:

Re: [BETA] Coloured link if new post 1.0.0

Post by oddfish »

thanks Mickroz.
Country Flag User Edition Clickable Post Count Link

... another record broken without breaking any records ...
Testing phpBB3.1 dark style based on prosilver ... http://www.oddmods.net
User avatar
Mickroz
Registered User
Posts: 661
Joined: Thu Mar 06, 2003 11:20 pm
Location: Netherlands
Contact:

Re: [BETA] Coloured link if new post 1.0.0

Post by Mickroz »

TimJBart wrote:What colour does it change the link to? Is is the red of the new topic icons?
it changes to #FF0000
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Q: Whats a hash and a root password?
A: hash gets you high, root password gives you god powers, combine the 2 and you are invincible.
User avatar
liquidox
Registered User
Posts: 23
Joined: Wed May 23, 2007 11:21 am

Re: [BETA] Coloured link if new post 1.0.0

Post by liquidox »

It does not seem to work in my installation, apparantly since colours.css overrides the settings for links from links.css, not sure how this is supposed to work :?

PS. It worked for me after implementing the CSS changes in colours.css instead of links.css
User avatar
Mickroz
Registered User
Posts: 661
Joined: Thu Mar 06, 2003 11:20 pm
Location: Netherlands
Contact:

Re: [BETA] Coloured link if new post 1.0.0

Post by Mickroz »

ok thanks, i will look into that when i get home.
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Q: Whats a hash and a root password?
A: hash gets you high, root password gives you god powers, combine the 2 and you are invincible.
mko_san
Registered User
Posts: 16
Joined: Sat Feb 14, 2004 3:35 pm

Re: [BETA] Coloured link if new post 1.0.0

Post by mko_san »

liquidox wrote:It does not seem to work in my installation, apparantly since colours.css overrides the settings for links from links.css, not sure how this is supposed to work :?
yup, i can confirm that's true for prosilver. Changing colours.css solves the problem.
User avatar
Mickroz
Registered User
Posts: 661
Joined: Thu Mar 06, 2003 11:20 pm
Location: Netherlands
Contact:

Re: [BETA] Coloured link if new post 1.0.0

Post by Mickroz »

tnx for confirming that,i will change it as soon as i get home!
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Q: Whats a hash and a root password?
A: hash gets you high, root password gives you god powers, combine the 2 and you are invincible.
User avatar
Mickroz
Registered User
Posts: 661
Joined: Thu Mar 06, 2003 11:20 pm
Location: Netherlands
Contact:

Re: [BETA] Coloured link if new post 1.0.1

Post by Mickroz »

2007-05-25 - Version 1.0.1
  • Fixed install file
  • Changed color to fit with prosilver red
  • prosilver xsl
  • RC1
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Q: Whats a hash and a root password?
A: hash gets you high, root password gives you god powers, combine the 2 and you are invincible.
User avatar
oddfish
Registered User
Posts: 839
Joined: Mon Mar 19, 2007 8:45 pm
Location: Testing 3.1
Contact:

Re: [BETA] Coloured link if new post 1.0.1

Post by oddfish »

nice and simple mod, thanks.

Could we allow subforums listed on the index to change color as well?

cheers,
oddfish.
Country Flag User Edition Clickable Post Count Link

... another record broken without breaking any records ...
Testing phpBB3.1 dark style based on prosilver ... http://www.oddmods.net
User avatar
Mickroz
Registered User
Posts: 661
Joined: Thu Mar 06, 2003 11:20 pm
Location: Netherlands
Contact:

Re: [BETA] Coloured link if new post 1.0.1

Post by Mickroz »

hmm maybe,but then it wouldn't be simple i guess...
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Q: Whats a hash and a root password?
A: hash gets you high, root password gives you god powers, combine the 2 and you are invincible.
User avatar
Jhong
Registered User
Posts: 538
Joined: Thu Aug 10, 2006 6:53 pm
Location: In a theme sandwich
Contact:

Re: [BETA] Coloured link if new post 1.0.1

Post by Jhong »

Hello,

I adapted the mod to just unbold topics that have been read -- saves the technicolour!

Also, the mod could be quite a lot simpler. Based on your idea, I just made modifications like the following:

e.g. in prosilver viewforum_body.html , after the edit, the line should look like:

Code: Select all

<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle <!-- IF topicrow.S_UNREAD_TOPIC -->mytopicclassname<!-- ENDIF -->">
then, in links.css I added

Code: Select all

/* unread titles */
a.mytopicclassname {
	font-weight: bold;
}
and changed the topicrow class from font-weight: bold to font-weight: normal.

Similarly for the forum list and search results.

As you can see from the above, there's no need for an 'else' condition in the template, regardless of whether you unbold, like me, or use colours. You could get away with only one CSS addition like the above, but I added two, one for topic titles and one for forum titles, just in case I ever wanted to separate them in the future.

J
phpBB<->WordPress Integration: www.wp-united.com
Locked

Return to “[3.0.x] MODs in Development”