MyBB Support

How can i add this to mybb?

Submitted by redd, , Thread ID: 22493

Thread Closed
24-07-2016, 06:59 PM
#1
I want that if there are new posts in a section it will show like this.

[Image: 277653d05caa36d7c5c490bb60a671f4.png]

The new posts tag itself is what i made in cssreal quick. but i want when new posts are posted in the section to show this tag any idea how i can implant this?

RE: How can i add this to mybb?

#2
24-07-2016, 06:59 PM
redd Wrote:
I want that if there are new posts in a section it will show like this.

[Image: 277653d05caa36d7c5c490bb60a671f4.png]

The new posts tag itself is what i made in cssreal quick. but i want when new posts are posted in the section to show this tag any idea how i can implant this?

I cant remember the template atm but i have this when i find it il post
[Image: pcX8d00.gif]
Thanks for you're contribution! : PenguinGuy
[Image: pcX8d00.gif]

RE: How can i add this to mybb?

#3
forumbit_depth2_forum

Code:
<span class="forum_status forum_{$lightbulb['folder']} ajax_mark_read" title="{$lightbulb['altonoff']}" id="mark_read_{$forum['fid']}"></span>


CSS:

Code:
.forum_on {
  padding: 2px 4px;
  color: #fff;
  font-size: 11px;
}

.forum_on:before {
  content: "\New";
}

Didn't try it out :>

RE: How can i add this to mybb?

#4
Aoki's should work gl let me know if it doesnt
[Image: pcX8d00.gif]
Thanks for you're contribution! : PenguinGuy
[Image: pcX8d00.gif]

RE: How can i add this to mybb?

OP
This post was last modified: 24-07-2016, 11:05 PM by redd
#5
24-07-2016, 10:53 PM
Aoki Wrote:
forumbit_depth2_forum

Code:
<span class="forum_status forum_{$lightbulb['folder']} ajax_mark_read" title="{$lightbulb['altonoff']}" id="mark_read_{$forum['fid']}"></span>


CSS:

Code:
.forum_on {
  padding: 2px 4px;
  color: #fff;
  font-size: 11px;
}

.forum_on:before {
  content: "\New";
}

Didn't try it out :>
Any way i could still keep the ficons?

24-07-2016, 10:58 PM
GamesPuff Wrote:
Aoki's should work gl let me know if it doesnt

It doesntit shows in front of the section where the ficons were. But not like in the pic

RE: How can i add this to mybb?

#6
24-07-2016, 11:02 PM
redd Wrote:
Any way i could still keep the ficons?

I assume your ficons use the same classes and therefore they're not working anymore.

Just replace the code I gave you with:

Code:
<span class="forumstatus_{$lightbulb['folder']} ajax_mark_read" title="{$lightbulb['altonoff']}" id="mark_read_{$forum['fid']}"></span>

Code:
.forumstatus_on {
padding: 2px 4px;
color: #fff;
font-size: 11px;
}

.forumstatus_on:before {
content: "\New";
}

This should work.

RE: How can i add this to mybb?

#7
24-07-2016, 11:02 PM
redd Wrote:
24-07-2016, 10:53 PM
Aoki Wrote:
forumbit_depth2_forum

Code:
<span class="forum_status forum_{$lightbulb['folder']} ajax_mark_read" title="{$lightbulb['altonoff']}" id="mark_read_{$forum['fid']}"></span>


CSS:

Code:
.forum_on {
  padding: 2px 4px;
  color: #fff;
  font-size: 11px;
}

.forum_on:before {
  content: "\New";
}

Didn't try it out :>
Any way i could still keep the ficons?

24-07-2016, 10:58 PM
GamesPuff Wrote:
Aoki's should work gl let me know if it doesnt

It doesntit shows in front of the section where the ficons were. But not like in the pic



PM me your skype and il help its just faster
[Image: pcX8d00.gif]
Thanks for you're contribution! : PenguinGuy
[Image: pcX8d00.gif]

RE: How can i add this to mybb?

OP
#8
24-07-2016, 11:05 PM
Aoki Wrote:
24-07-2016, 11:02 PM
redd Wrote:
Any way i could still keep the ficons?

I assume your ficons use the same classes and therefore they're not working anymore.

Just replace the code I gave you with:

Code:
<span class="forumstatus_{$lightbulb['folder']} ajax_mark_read" title="{$lightbulb['altonoff']}" id="mark_read_{$forum['fid']}"></span>

Code:
.forumstatus_on {
padding: 2px 4px;
color: #fff;
font-size: 11px;
}

.forumstatus_on:before {
content: "\New";
}

This should work.

This just removed the ficons and is not showing new or anything :(

RE: How can i add this to mybb?

#9
24-07-2016, 11:10 PM
redd Wrote:
This just removed the ficons and is not showing new or anything :(

Then you've done something wrong. Not going to spoonfeed you, so try it out yourself. The code is working fine.

RE: How can i add this to mybb?

#10
24-07-2016, 11:12 PM
Aoki Wrote:
24-07-2016, 11:10 PM
redd Wrote:
This just removed the ficons and is not showing new or anything :(

Then you've done something wrong. Not going to spoonfeed you, so try it out yourself. The code is working fine.

Just confirmed it on a dummy setup. There's something conflicting in your templates or stylesheets, you might want to take a look by inspecting the elements.
| | |Zenith | Senpai | Username | | |

[Image: unknown.png]

Users browsing this thread: 6 Guest(s)