Requested feature in the Forum
-
@Han-Solo I don't believe it shows the ignored person they've been ignored, but does keep track of who you have ignored
-
@haitch It would be nice to. Anyhow nice one. Thank You again.
-
Haitchø
How is the space doing. ;)
-
@daWallet It's driving me a little nuts .....
Can some JavaScript programmer please explain how I put a space before the icon in this command, I'd really appreciate it:
//We add the element on the page, in the place we want $('li[component="post"][data-pid="'+post.pid+'"]').find('a[itemprop="author"]').after('<a href="#" itemprop="ignorespot" data-uid="'+post.uid+'" class="fa '+icon+' '+className+'"></a>'); if(config['theme:id']!=='nodebb-theme-lavender'){ $('li[component="post"][data-pid="'+post.pid+'"] div.content').after('<div class="original-content hide" component="post/original-content" itemprop="text">'+post.originalContent+'</div>'); }else{ $('li[component="post"][data-pid="'+post.pid+'"] div.post-content').after('<div class="original-content hide" component="post/original-content" itemprop="text">'+post.originalContent+'</div>'); } if(postClass!=null){ $('li[component="post"][data-pid="'+post.pid+'"]').addClass('ignored'); }
-
@haitch just add this css ;) it will make 6px space on both ends of eye and amke it slightly bigger ;)
a[itemprop="ignorespot"] { margin: 0 6px; font-size: 1.3em; }or if you like colored ones
a[itemprop="ignorespot"].ignore { margin: 0 6px; font-size: 1.3em; color: green; } a[itemprop="ignorespot"].unignore { color: red; }
-
@LithStud said in Requested feature in the Forum:
{
margin: 0 6px;
font-size: 1.3em;
}Thanks, however it appears the css is being dynamically generated, so how would I add that to this?
if(!iconsHasBeenChanged){ $('a[itemprop="ignorespot"][data-uid="'+post.attr('data-uid')+'"]').removeClass('ignore').addClass('unignore').removeClass('fa-eye-slash').addClass('fa-eye'); iconsHasBeenChanged= true;Just it after the "ignorespot" ?
-
@haitch its not :) just put it into css file and link it in the head, or another way put it in head (somewhere near closing head tag) like this
<style id="custom _burst_team_css" type="text/css"> a[itemprop="ignorespot"] { margin: 0 6px; font-size: 1.3em; } </style>
-
If the script has a template folder it should be in the header.tpl file
-
@Energy No header.tpl unfortunately, just the client.js which I can't figure out and an ignored.tpl seems to be related to changes on your profile page for the extra buttons
-
@haitch I do not know the script, node.js is not mine, but a few days ago I was curious to try it when renting the new server and I have been looking at the themes https://github.com/NodeBB/nodebb-theme-lavender and There you have that folder, I thought it would be the same as in php scripts.
You will not have in the admin panel a theme editor like wordpress ???
-
@haitch If your administration panel is like this you have to go to appearance, custom html and in Custom Header you can modify it

-
-
@LithStud Yes, I saw it but you were talking about putting it in the head.
It could be done both ways
What is not is whether it is a plugin or is included in the script, since the screenshot is from the 14-day test of https://nodebb.org
-
@Energy i never used nodeBB so i dont know what files there is. i just assume that there should be some kind of main template/html file with that head tag.
if program lets you define custom css then it should be fine (as it will put that css in head automatically)
-
@LithStud I do not know anything about nodeBB, if you put me away from the php scripts and it's like they speak to me in Chinese
I am not a programmer but I have been using php scripts for many years and I am better at handling them
-
Holy crap! Throwing it into the custom CSS worked! No more Haitchø !
Thanks guys - much appreciated!
