The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Code to make visited posts go unbold

2 posters

Go down

Code to make visited posts go unbold Empty Code to make visited posts go unbold

Post by Brad38 January 30th 2009, 9:12 am

Hi again HTML/Code specialists,

I was wondering if someone has a small code to make viewed posts go from bold to not bold. Right now on my forum if you pull up any listing of posts in any forum, all post titles are bold and remain bold. I would like it to be that once you've viewed a post it will go unbold and UNTIL a new post is made in that topic again (where) it would go bold again.

Thank you for any help as always. Smile
Brad38
Brad38
Forumember

Male Posts : 667
Reputation : 32
Language : english

http://pigeonchat.forumakers.com/

Back to top Go down

Code to make visited posts go unbold Empty Re: Code to make visited posts go unbold

Post by Guest February 2nd 2009, 10:24 pm

Heya Smile

What version of the forum are you currently using also can you post a link to your forum to help assist me Very Happy

regards






Craig
avatar
Guest
Guest


Back to top Go down

Code to make visited posts go unbold Empty Re: Code to make visited posts go unbold

Post by Guest February 4th 2009, 11:53 am

Heya Smile

Ok so to make it that all read and visited links and posts are NOT bold

1. Log into the Admin Panel and navigate to

Display\Colours\CSS Style Sheet

2. Add one of the following codes and press "Submit" to save

Just visited link:

Code:
a:visited {
   font-weight: normal !important;
   font-style: normal !important;
    }


Visited links and forums:
Code:
a:visited {
   font-weight: normal !important;
   font-style: normal !important;
    }
a.forumtitle:visited {
   font-weight: normal !important;
   font-style: normal !important;
    }


Visited links, threads and forums:
Code:
a:visited {
   font-weight: normal !important;
   font-style: normal !important;
    }
a.forumtitle:visited {
   font-weight: normal !important;
   font-style: normal !important;
    }
a.topictitle:visited {
   font-weight: normal !important;
   font-style: normal !important;
    }

3. Refresh your forum and let me know if that works Very Happy

Regards







Craig
avatar
Guest
Guest


Back to top Go down

Code to make visited posts go unbold Empty Re: Code to make visited posts go unbold

Post by Brad38 February 5th 2009, 2:03 pm

Hi Craig,

The only code you supplied that I thought might be what I wanted was this, and it didn't work:

Code:
a.topictitle:visited {
  font-weight: normal !important;
  font-style: normal !important;
    }

I only would like the titles of posts to go unbold when viewed, not any other links on my forum. When you bring up a listing of posts in any of your forum categories, the post titles are the links that I would like to change. However, I would like them to go back to being bold when a new post is made in a topic. Hope you understand what I mean. Smile
Brad38
Brad38
Forumember

Male Posts : 667
Reputation : 32
Language : english

http://pigeonchat.forumakers.com/

Back to top Go down

Code to make visited posts go unbold Empty Re: Code to make visited posts go unbold

Post by ankillien February 5th 2009, 3:49 pm

Code:
a.topictitle{
 font-weight: bold;
}
a.topictitle:visited{
 font-weight: normal;
}

This should work to unbold the viewed topic titles.
But I don't know the code to make the title bold when new post made in it.
ankillien
ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

Back to top Go down

Code to make visited posts go unbold Empty Re: Code to make visited posts go unbold

Post by Brad38 February 5th 2009, 4:19 pm

Thanks Kvl_Share...yep, this worked. It is important though that I find out if there is a code or if it's possible to make the post titles go back to bold when there is a new post in that topic however. Otherwise the whole reason I wanted this will not work how I want it to.

Thanks very much though, I'll save this code for future reference. Smile
Brad38
Brad38
Forumember

Male Posts : 667
Reputation : 32
Language : english

http://pigeonchat.forumakers.com/

Back to top Go down

Code to make visited posts go unbold Empty Re: Code to make visited posts go unbold

Post by ankillien February 5th 2009, 5:40 pm

I don't think it is possible. But not sure about it.
Glad to help you. Very Happy
ankillien
ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

Back to top Go down

Code to make visited posts go unbold Empty Re: Code to make visited posts go unbold

Post by Brad38 March 5th 2009, 4:57 pm

Hi Kvl_Share or anyone,

Ok, I've been fiddling around with this more and with colours instead of bold/unbold. Is there a way to have visited topic titles change colour, then when a new post is made in that same topic title, it goes back to it's original colour?
Brad38
Brad38
Forumember

Male Posts : 667
Reputation : 32
Language : english

http://pigeonchat.forumakers.com/

Back to top Go down

Code to make visited posts go unbold Empty Re: Code to make visited posts go unbold

Post by ankillien March 6th 2009, 12:09 pm

Okey, I think you can do it but not sure about changing to original color when added something to the topic.
Try this code :

Code:

a.topictitle{
color: COLOR NAME; /*for unvisited topic titles*/
}
a.topictitle:visited{
color: COLOR NAME; /*for visited topic titles*/
}

Hope this helps Very Happy
ankillien
ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

Back to top Go down

Code to make visited posts go unbold Empty Re: Code to make visited posts go unbold

Post by Brad38 March 11th 2009, 1:37 pm

Hi Kvl_Share,

Sorry to get back to you after so long. That code worked, but not for what I wanted it to do. I guess there is no way for the forum's cookies to remember when I post is new and put the appropriate colour indicating a new post in a particular forum.

Thanks for the help and suggestions though. Smile
Brad38
Brad38
Forumember

Male Posts : 667
Reputation : 32
Language : english

http://pigeonchat.forumakers.com/

Back to top Go down

Code to make visited posts go unbold Empty Re: Code to make visited posts go unbold

Post by ankillien March 11th 2009, 5:40 pm

Is doesn't seem to be possible with CSS only.
It may need some other scripting like PHP or something similar. :/
I don't know about that, sorry.
ankillien
ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum