The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

new icon

View previous topic View next topic Go down

In progress new icon

Post by GummyBear on November 17th 2013, 7:58 pm

Can someone help me how to add a new icon when there is a new topic created just like this



my forum version is punbb
http://muonline.forums.com.bz

GummyBear
Forumember

Posts : 71
Reputation : 2
Language : English

http://haxactivity.forum.com.bz

Back to top Go down

In progress Re: new icon

Post by Ange Tuteur on November 18th 2013, 10:39 pm

Hello GummyBear,

You could add that by checking for the new posts image.

Administration Panel > Modules > HTML & JAVASCRIPT > Javascript codes management

Create a new javascript
Name: What you wish
Placement: In the homepage
Source:
Code:
jQuery(function () {
jQuery('.tcl:has(img[src="IMAGE"])').prepend('<span class="newPosts">NEW</span>');
});
For the script to work you need to place you image displayed when new posts are made here:
.tcl:has(img[src="IMAGE"])

When finished save. thumright

Now go to CSS
Administration Panel > Display > Pictures and colors > Colors > CSS stylesheet

Paste the codes below and submit.
Code:
.newPosts{
float:right;
padding:5px;
margin-right:5px;
border-radius:5px;
color:#ff5;
background:#AAA;
box-shadow:0px 6px 6px rgba(255,255,255, 0.1) inset, 0px -6px 6px rgba(0,0,0, 0.1) inset;
}
The result:

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: new icon

Post by GummyBear on November 19th 2013, 8:07 am

i think its not an image
check this
http://coding-spot.darkbb.com/f15-garbage

GummyBear
Forumember

Posts : 71
Reputation : 2
Language : English

http://haxactivity.forum.com.bz

Back to top Go down

In progress Re: new icon

Post by GummyBear on November 20th 2013, 5:19 am

Up

GummyBear
Forumember

Posts : 71
Reputation : 2
Language : English

http://haxactivity.forum.com.bz

Back to top Go down

View previous topic View next topic Back to top


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