Prefix color problem.
3 posters
Page 1 of 1
Prefix color problem.
SOLVED wrote:Hello, forumotion, I would like to ask if is it possible to have a prefix in each forum? What I mean of prefix is thi, see image
and howcan I add a solved icon in my forum and add also another icon that forumotion have.. like this one.
New problem: Is there a possibility to put the prefix in my specific forum/category only? and how do I put some colors to each words?
Last edited by Babybok on June 13th 2015, 12:37 pm; edited 1 time in total
Re: Prefix color problem.
You can read this for the solved icon:
https://help.forumotion.com/t86303-topic-icons-how-to-add-a-solved-icon
https://help.forumotion.com/t86303-topic-icons-how-to-add-a-solved-icon
Re: Prefix color problem.
Sir. Mayo wrote:You can read this for the solved icon:
https://help.forumotion.com/t86303-topic-icons-how-to-add-a-solved-icon
Re: Prefix color problem.
Why did you just quote Sir. Mayo's post?
Last edited by SLGray on May 27th 2015, 6:04 am; edited 1 time in total
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Prefix color problem.
I can't post a reply using quotes, grr, sh**brix laptop.. I would like to ask the first question I ask.. so you've answer it sir.. thanks and sorry for the quote thing..
___________________________________________________________
I will just test this if it is work then I will mark this thread as solved..
___________________________________________________________
I will just test this if it is work then I will mark this thread as solved..
Re: Prefix color problem.
I edited my post to remove the link. It was a link to a tutorial that add more prefixes to the edit title box which you do not want. You want one for the topic title. Correct?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Prefix color problem.
SLGray wrote:I edited my post to remove the link. It was a link to a tutorial that add more prefixes to the edit title box which you do not want. You want one for the topic title. Correct?
Yeap sir, I want one for the topic title, that can be seen in the first title etc. thing.. sorry for my bad english..
Re: Prefix color problem.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Prefix color problem.
@SLGray : I have used this code, but it didn't work in my forum, my forum version is Invision..
- Code:
var prefixes = ["prefix1","prefix2","prefix3","prefix4"];
var _pm = false;
var chk = false;
function toMenu(a) {
var htmlpre = '<select style="margin-right:5px" id="prefix" size="1"><option value="">(None)</option>';
for (i in a)
htmlpre += '<option value="' + a[i] + '">' + a[i] + '</option>';
htmlpre += '</select>';
return htmlpre;
}
function checkpre(ar, input) {
for (i in ar) {
var p = new RegExp("\\" + ar[i], "g");
var title = input.substr(0, input.indexOf(']'));
if (p.test(title)) return ar[i];
}
return "";
}
$(function () {
if (_pm) chk = /\privmsg/.test(location.href);
if (/\/post/.test(location.href) || chk) {
$(toMenu(prefixes)).insertBefore("input[name=subject][type=text]");
var mw = $("#prefix").width() + 5;
$("input[name=subject]").css("width", $("input[name=subject]").width() - mw);
var t = $("[name=subject]").val();
var cur = checkpre(prefixes, t);
if (cur != "") {
$("[value=" + cur + "]").attr("selected", "selected");
$("input[name=subject]").val(t.replace('[' + cur + ']', '').trim());
}
$("input[name=post]").click(function () {
var sub = $("input[name=subject]").val().trim();
if (sub != "" && $("#prefix").val() != "")
$("input[name=subject]").val("[" + $("#prefix").val() + "] " + sub);
});
}
});
Re: Prefix color problem.
Was this set to yes?
Enable Javascript code management : Yes No
Did you also check the In All Pages circle?
Enable Javascript code management : Yes No
Did you also check the In All Pages circle?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Prefix color problem.
SLGray wrote:Was this set to yes?
Enable Javascript code management : Yes No
Did you also check the In All Pages circle?
Yeap it is already set to yes, and also set to In All Pages... but it doesn't work..
Is it for version punBB use only?
Re: Prefix color problem.
I tried it on my Invision forum, and it worked.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Prefix color problem.
SLGray wrote:I tried it on my Invision forum, and it worked.
Hmmm,why mine doesn't work, weird... I've follow all the tut, no skip..but it doesn't worked.. hmmm
Re: Prefix color problem.
Do you have other JavaScripts?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Prefix color problem.
SLGray wrote:Do you have other JavaScripts?
Yeap I have other Java script sir..
Re: Prefix color problem.
Try this remove all of them. DO not forget to save the JavaScripts somewhere before removing them. Then add them one by one to see if some are conflicting with each other.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Prefix color problem.
Now its working.. thanks SGL, last question.. Is there a possibility to put the prefix in my specific forum/category only? and how do I put some colors to each words?
Re: Prefix color problem.
BUMP! I need help please, question is :
Is there a possibility to put the prefix in my specific forum/category only? and how do I put some colors to each words?
_______________________________________-
@SLGray Need help
Is there a possibility to put the prefix in my specific forum/category only? and how do I put some colors to each words?
_______________________________________-
@SLGray Need help
Re: Prefix color problem.
Sorry, but I do not know how to achieve what you want. Maybe someone else will know.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Prefix color problem.
SLGray wrote:Sorry, but I do not know how to achieve what you want. Maybe someone else will know.
Ow ok, thanks for the help SLGray... I'll just wait for other to reply and help me with this problem.. thanks!
BUMP! Anyone can help me?
Re: Prefix color problem.
BUMP! Any possibilities?
Is there a possibility to put the prefix in my specific forum/category only? and how do I put some colors to each words?
Is there a possibility to put the prefix in my specific forum/category only? and how do I put some colors to each words?
Re: Prefix color problem.
Richiejay wrote:If I understood you correctly, you want to add the "solved, in progress, etc" sort of small icons in topics like that of the support forum?
Nope, my problem was is it possible that my prefix can be put in a desired category/forum and how can the prefix be colorized, I mean the words?
Re: Prefix color problem.
Richiejay wrote:Your query still keeps me in perplexity. Check if this is what you want here: http://niceplug.niceboard.com
there's no prefix in that forumm.. check the image above to see what prefix is..
Similar topics
» Color Problem
» Color Codes Problem
» [PHPBB3] Background color problem
» Username in color problem
» Admin And Mod Color Problem
» Color Codes Problem
» [PHPBB3] Background color problem
» Username in color problem
» Admin And Mod Color Problem
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum