1 (edited by Kushi 2012-06-25 13:00)

Topic: KT Newpost Highlighted

:: Information and features
Highlights Newpost link if there is are some new posts using jQuery.

:: Dependencies
- pun_jquery
:: Screenshoots
http://i.imgur.com/7LyV2.png

:: Download
https://dl.dropbox.com/u/82283017/punbb … ost_hl.zip

If any of my dropbox link fails with 404 error, change dl.dropbox.com/u/56038890/punbb/*.zip in address to 82283017.

Currently working on rPlus - responsive theme for developers to create their own themes basing on this one.

Re: KT Newpost Highlighted

Hi.
This ext is great idea, but i have other idea..
When have new post in some forum, highlight forum name.
Can u add this feature or make other extention ? smile

PunBB Bulgaria - soon
Bulgarian Lang for all versions - soon
Developers, please contact with me skype Linn3x for info

3 (edited by Kushi 2012-06-25 13:06)

Re: KT Newpost Highlighted

I thnik you can handle it yourself smile.
In kt_newpost_hl.js line

            $('#visit-new').addClass('kt_newpost_hl');

means adding to #visit-new .kt_newpost_hl class. So you can just change that to

            $('#brd-title a').addClass('kt_newpost_hl');

and it should add this class to header. Later just edit kt_newpost_hl.css to whatever You want. If you cant see effect try putting !important at the end of parameter in css. EG

.kt_newpost_hl{
    color: red !important;
}
If any of my dropbox link fails with 404 error, change dl.dropbox.com/u/56038890/punbb/*.zip in address to 82283017.

Currently working on rPlus - responsive theme for developers to create their own themes basing on this one.

Re: KT Newpost Highlighted

mm ookey, i'll test..
how to remove from "Test forum ( New posts )" , ( New posts ) ? smile

PunBB Bulgaria - soon
Bulgarian Lang for all versions - soon
Developers, please contact with me skype Linn3x for info

5 (edited by PunBoard-Bulgaria 2012-06-26 22:19)

Re: KT Newpost Highlighted

Aaand other...
When have new posts its colored this okey, but if i not read 'em and only logout , another time i login its not colored.. like havent new posts xD

And.. this doesn't work ;]

 $('#brd-title a').addClass('kt_newpost_hl');

Other id ?




Edit:  I play with id's and classes, and with style css, but cant understand how to make previous thing - higlight topic/forumName when have new topics/posts.

This is the code who bolding the forumName and topicName when have new posts..

#brd-index .main-item .hn span {
font-size:1.084em;
font-weight:700;
}

I tried with adding .new class and color i choose..
tried and with

.main-item .new {
color ...
}

but doesnt work..

PunBB Bulgaria - soon
Bulgarian Lang for all versions - soon
Developers, please contact with me skype Linn3x for info

6

Re: KT Newpost Highlighted

Is this possible also for Active topics, Unanswered topics and PM?

Re: KT Newpost Highlighted

Is there an active link to this?

Re: KT Newpost Highlighted

https://github.com/MioVisman/punbb_exte … newpost_hl

ForkBB
I speak only Russian  :P

Re: KT Newpost Highlighted

Thank you visman

I added this to turn it red

.kt_newpost_hl{
    font-weight: bold;
    color: #C60000;
}

In kt_newpost_hl.css but it did not seem to work

10

Re: KT Newpost Highlighted

try

.kt_newpost_hl > a{
    font-weight: bold;
    color: #C60000;
}
ForkBB
I speak only Russian  :P

11 (edited by KamWest 2021-01-04 12:22)

Re: KT Newpost Highlighted

Yup that worked, I now have it that my PM link and New Post link turns red and bold whenever something new comes up.



I used this to make the PM bold

<span style="color:#C60000;">

Now the PM link turns Bold and Red when a new message is received as well

I Edited: Functions.php in pun_pm and that seemed to work


I wanted it to be consistent for both links and this was a great fix.