Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: MrCrude - toukokuu 22, 2011, 01:40:54 AP

Otsikko: New Post Indicators?
Kirjoitti: MrCrude - toukokuu 22, 2011, 01:40:54 AP
I'm currenty using UBB.threads forum software and I like how they have indicators when somebody posts a new topic such as hot topics that have fire and new column colors. I was wondering if SMF has anything like this as a default or would it be possible to add something? I think it helps forums from looking like they are stale and gives them a bit of life. 

Here is a screen grab of what I mean. The top colors are recent post and its hard to see but hot topics have a "fire" animate gif.

http://forum.surfermag.com/forum/postlist.php?Cat=0&Board=UBB1&page=0 (http://forum.surfermag.com/forum/postlist.php?Cat=0&Board=UBB1&page=0)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi56.tinypic.com%2F20h28m1.png&hash=58dd12d58ea183840f8a3efae069eae426a2e90c)


**** And, are there any good recommended photo hosting sites/mods that work with SMF?



Otsikko: Re: New Post Indicators?
Kirjoitti: HunterP - toukokuu 22, 2011, 06:08:10 AP
Lainaus käyttäjältä: MrCrude - toukokuu 22, 2011, 01:40:54 AP
I'm currenty using UBB.threads forum software and I like how they have indicators when somebody posts a new topic such as hot topics that have fire and new column colors. I was wondering if SMF has anything like this as a default or would it be possible to add something?

In "Topic Settings" you can define the number of posts for a "hot topic" and "very hot topic" :

http://docs.simplemachines.org/index.php?topic=116.0

Is this what you mean?

Can also be found below the topic list : http://www.simplemachines.org/community/index.php?board=147.0
Otsikko: Re: New Post Indicators?
Kirjoitti: Illori - toukokuu 22, 2011, 06:14:52 AP
i think part of what you are asking is covered in the attached image. for the image hosting part check the mod site there are a few gallery mods.
Otsikko: Re: New Post Indicators?
Kirjoitti: MrCrude - toukokuu 22, 2011, 11:10:27 AP
No I don't think you understand what I mean. Visit the Surfermag forum link and I think you will get the idea. When there are new postings, the rows turn to a different color at the top. Is this possible with SMF?
Otsikko: Re: New Post Indicators?
Kirjoitti: mashby - toukokuu 22, 2011, 11:16:30 AP
So you want the rows for New topics/replies to be a different color? I think that's what your screen shot is indicating. The MessageIndex.template.php would likely be the place to have a look. That's the equivalent of your screen shot anyway. You'll see from here how the "new" image gets generated:
// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
You could apply something similar to the entire row which is just a line above that.
Otsikko: Re: New Post Indicators?
Kirjoitti: MrCrude - toukokuu 22, 2011, 11:25:19 AP
Lainaus käyttäjältä: mashby - toukokuu 22, 2011, 11:16:30 AP
So you want the rows for New topics/replies to be a different color? I think that's what your screen shot is indicating. The MessageIndex.template.php would likely be the place to have a look. That's the equivalent of your screen shot anyway. You'll see from here how the "new" image gets generated:
// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
You could apply something similar to the entire row which is just a line above that.

OK so is that PHP I have to edit? in the Ubb.threads forum its just CSS. I'll have to learn PHP it looks like.
Otsikko: Re: New Post Indicators?
Kirjoitti: mashby - toukokuu 22, 2011, 11:34:22 AP
Maybe UBB has some built-in feature then? And yes, the display of the rows is certainly CSS, but the logic to apply it is within the PHP file.
Otsikko: Re: New Post Indicators?
Kirjoitti: MrCrude - toukokuu 22, 2011, 11:45:55 AP
It is a built in feature - all you have to do is modify the css.

Also, where can I change this image?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.crudebehaviour.com%2Fforum%2FThemes%2FCurve_Minimal_Multicolor_RC5%2Fimages%2Ftopic%2Fmy_hot_post.gif&hash=98c736b04c9b5e82987b14e62a86dcfd064e35fa)
Otsikko: Re: New Post Indicators?
Kirjoitti: mashby - toukokuu 22, 2011, 11:52:28 AP
Using FTP, overwrite that image with a file of the same name and format (GIF). Should do the trick.

Per the highlighted rows, you could ask in this board for one (http://www.simplemachines.org/community/index.php?board=79.0).
Otsikko: Re: New Post Indicators?
Kirjoitti: HunterP - toukokuu 22, 2011, 12:06:04 IP
Lainaus käyttäjältä: MrCrude - toukokuu 22, 2011, 11:10:27 AP
When there are new postings, the rows turn to a different color at the top. Is this possible with SMF?

What theme are you using?
Otsikko: Re: New Post Indicators?
Kirjoitti: MrCrude - toukokuu 22, 2011, 12:10:42 IP
Lainaus käyttäjältä: HunterP - toukokuu 22, 2011, 12:06:04 IP
Lainaus käyttäjältä: MrCrude - toukokuu 22, 2011, 11:10:27 AP
When there are new postings, the rows turn to a different color at the top. Is this possible with SMF?

What theme are you using?

BAD COMPANY
Otsikko: Re: New Post Indicators?
Kirjoitti: HunterP - toukokuu 22, 2011, 12:13:50 IP
Lainaus käyttäjältä: MrCrude - toukokuu 22, 2011, 12:10:42 IP
BAD COMPANY

Does it use a custom MessageIndex.php ?
Otsikko: Re: New Post Indicators?
Kirjoitti: MrCrude - toukokuu 22, 2011, 12:23:04 IP
Yes
Otsikko: Re: New Post Indicators?
Kirjoitti: HunterP - toukokuu 22, 2011, 12:25:10 IP
Lainaus käyttäjältä: MrCrude - toukokuu 22, 2011, 12:23:04 IP
Yes

Please attach it, as well as the CSS.
Otsikko: Re: New Post Indicators?
Kirjoitti: MrCrude - toukokuu 22, 2011, 12:29:12 IP
Lainaus käyttäjältä: HunterP - toukokuu 22, 2011, 12:25:10 IP
Lainaus käyttäjältä: MrCrude - toukokuu 22, 2011, 12:23:04 IP
Yes

Please attach it, as well as the CSS.
Otsikko: Re: New Post Indicators?
Kirjoitti: HunterP - toukokuu 22, 2011, 12:46:27 IP

Currently, lines don't have one color, topic name, number of replies and times read have the same color, depending on sticky, locked or normal, other cells have a default color.

What is it exact that you want? Do you want to keep all those different colors or don't you care about sticky etc?
Otsikko: Re: New Post Indicators?
Kirjoitti: HunterP - toukokuu 22, 2011, 12:49:06 IP

Also, I'd like to have a link to your forum.
Otsikko: Re: New Post Indicators?
Kirjoitti: MrCrude - toukokuu 22, 2011, 01:04:59 IP
Lainaus käyttäjältä: HunterP - toukokuu 22, 2011, 12:49:06 IP

Also, I'd like to have a link to your forum.

sent via PM thx
Otsikko: Re: New Post Indicators?
Kirjoitti: HunterP - toukokuu 22, 2011, 01:19:09 IP
Lainaus käyttäjältä: MrCrude - toukokuu 22, 2011, 01:04:59 IP
sent via PM thx

Ok, and what about this question?

Lainaus käyttäjältä: HunterP - toukokuu 22, 2011, 12:46:27 IP
Currently, lines don't have one color, topic name, number of replies and times read have the same color, depending on sticky, locked or normal, other cells have a default color.
What is it exact that you want? Do you want to keep all those different colors or don't you care about sticky etc?
Otsikko: Re: New Post Indicators?
Kirjoitti: MrCrude - toukokuu 22, 2011, 01:31:33 IP
Lainaus käyttäjältä: HunterP - toukokuu 22, 2011, 01:19:09 IP
Lainaus käyttäjältä: MrCrude - toukokuu 22, 2011, 01:04:59 IP
sent via PM thx

Ok, and what about this question?

Lainaus käyttäjältä: HunterP - toukokuu 22, 2011, 12:46:27 IP
Currently, lines don't have one color, topic name, number of replies and times read have the same color, depending on sticky, locked or normal, other cells have a default color.
What is it exact that you want? Do you want to keep all those different colors or don't you care about sticky etc?

I want a new "hot topic" to turn a darker color and the next hot topic alternates to a similiar color. If you look at the surfer mag forums, you can see how this works. When the topic dies out after interest, they go back to being a lighter color. The link is posted above. I think this gives more life to a forum.  ;) Its also cool how the subjects go bold too like in the stickies.

I'm not sure if this helps, but here is the CSS from their forums on how this works.


}
.lighttable {
  background: #EAF4F4;
  color: #000000;
}
.darktable {
  background: #D0E8E8;
  color: #000000;
}
.newlighttable {
   background: #418383;
   font-weight: bold;
   color: #FFFFFF;
}
.newdarktable {
   background: #214141;
   font-weight: bold;
   color: #FFFFFF;
Otsikko: Re: New Post Indicators?
Kirjoitti: HunterP - toukokuu 22, 2011, 02:37:44 IP

I understand what you want, but that doesn't answer my question completely. What I need to no, do you still want to see any difference between sticky and normal postings, and do you want the entire line to be the same color? Default (also in your MessageIndex), the cells on one line have different colors. The most easy solution is to have lines only one color. If you want to keep current alternation also, that is possible but abit more difficult.
Otsikko: Re: New Post Indicators?
Kirjoitti: MrCrude - toukokuu 22, 2011, 03:22:34 IP
Lainaus käyttäjältä: HunterP - toukokuu 22, 2011, 02:37:44 IP

I understand what you want, but that doesn't answer my question completely. What I need to no, do you still want to see any difference between sticky and normal postings, and do you want the entire line to be the same color? Default (also in your MessageIndex), the cells on one line have different colors. The most easy solution is to have lines only one color. If you want to keep current alternation also, that is possible but abit more difficult.

sticky should be the same as the rest of the normal forum postings, and the entire line should be the same color. Alternation is key.  :D

man lots of captchas in these forums
Otsikko: Re: New Post Indicators?
Kirjoitti: HunterP - toukokuu 22, 2011, 03:35:18 IP

Try this one.

You have to edit the CSS yourself.

I haven't tested it yourself (so backup the old one!), but it should offer you 3 classes :

.normal_topic
{
   background-color: blue;
}
.hot_topic
{
   background-color: yellow;
}
.veryhot_topic
{
   background-color: red;
}

Or ofcourse, other colors.
Otsikko: Re: New Post Indicators?
Kirjoitti: MrCrude - toukokuu 22, 2011, 03:52:51 IP
thx mang I'll try it out

what method do you use to find code? I'm using the web developer firefox plug-in but man does it suck  :laugh:
Otsikko: Re: New Post Indicators?
Kirjoitti: MrCrude - toukokuu 22, 2011, 04:02:47 IP
Lainaus käyttäjältä: HunterP - toukokuu 22, 2011, 03:35:18 IP

Try this one.

You have to edit the CSS yourself.

I haven't tested it yourself (so backup the old one!), but it should offer you 3 classes :

.normal_topic
{
   background-color: blue;
}
.hot_topic
{
   background-color: yellow;
}
.veryhot_topic
{
   background-color: red;
}

Or ofcourse, other colors.

hmmmmm I can't seem to find those tags anywhere
Otsikko: Re: New Post Indicators?
Kirjoitti: HunterP - toukokuu 22, 2011, 04:10:53 IP

You were supposed to add them yourself, but I added them for you in this attachment.
Otsikko: Re: New Post Indicators?
Kirjoitti: MrCrude - toukokuu 22, 2011, 05:31:34 IP
thanks mang  :laugh:
Otsikko: Re: New Post Indicators?
Kirjoitti: HunterP - toukokuu 22, 2011, 08:59:05 IP
Lainaus käyttäjältä: MrCrude - toukokuu 22, 2011, 05:31:34 IP
thanks mang  :laugh:

And, does it work?
Otsikko: Re: New Post Indicators?
Kirjoitti: Aleksi "Lex" Kilpinen - kesäkuu 14, 2011, 02:47:24 AP
Hi MrCrude, are we ready to mark this solved or is there something you still need help with? :)