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.

Prefix color problem.

View previous topic View next topic Go down

In progress Prefix color problem.

Post by Babybok on May 26th 2015, 7:28 pm

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

Babybok
Forumember

Male Posts : 136
Reputation : 0
Language : Filipino, English
Location : Philippines

http://rl-rp.board.st

Back to top Go down

In progress Re: Prefix color problem.

Post by Sir. Mayo on May 26th 2015, 8:52 pm


Sir. Mayo
Forumember

Male Posts : 969
Reputation : 87
Language : English, Some french.
Location : Working 11Pm-7Am EST I will try to respond ASAP

http://sir-mayo.forumotion.com/

Back to top Go down

In progress Re: Prefix color problem.

Post by Babybok on May 27th 2015, 4:49 am


Babybok
Forumember

Male Posts : 136
Reputation : 0
Language : Filipino, English
Location : Philippines

http://rl-rp.board.st

Back to top Go down

In progress Re: Prefix color problem.

Post by SLGray on May 27th 2015, 5:31 am

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


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: Prefix color problem.

Post by Babybok on May 27th 2015, 5:36 am

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..

Babybok
Forumember

Male Posts : 136
Reputation : 0
Language : Filipino, English
Location : Philippines

http://rl-rp.board.st

Back to top Go down

In progress Re: Prefix color problem.

Post by SLGray on May 27th 2015, 5:47 am

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?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: Prefix color problem.

Post by Babybok on May 27th 2015, 5:59 am

@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..

Babybok
Forumember

Male Posts : 136
Reputation : 0
Language : Filipino, English
Location : Philippines

http://rl-rp.board.st

Back to top Go down

In progress Re: Prefix color problem.

Post by SLGray on May 27th 2015, 6:04 am



When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: Prefix color problem.

Post by Babybok on May 27th 2015, 6:16 am

@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);
          });
      }
    });

Babybok
Forumember

Male Posts : 136
Reputation : 0
Language : Filipino, English
Location : Philippines

http://rl-rp.board.st

Back to top Go down

In progress Re: Prefix color problem.

Post by SLGray on May 27th 2015, 7:40 am

Was this set to yes?
Enable Javascript code management : Yes No


Did you also check the In All Pages circle?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: Prefix color problem.

Post by Babybok on May 27th 2015, 8:05 am

@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?

Babybok
Forumember

Male Posts : 136
Reputation : 0
Language : Filipino, English
Location : Philippines

http://rl-rp.board.st

Back to top Go down

In progress Re: Prefix color problem.

Post by SLGray on May 28th 2015, 8:02 pm

I tried it on my Invision forum, and it worked.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: Prefix color problem.

Post by Babybok on May 29th 2015, 7:26 am

@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

Babybok
Forumember

Male Posts : 136
Reputation : 0
Language : Filipino, English
Location : Philippines

http://rl-rp.board.st

Back to top Go down

In progress Re: Prefix color problem.

Post by SLGray on May 29th 2015, 10:38 pm

Do you have other JavaScripts?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: Prefix color problem.

Post by Babybok on May 30th 2015, 4:58 am

@SLGray wrote:Do you have other JavaScripts?

Yeap I have other Java script sir..

Babybok
Forumember

Male Posts : 136
Reputation : 0
Language : Filipino, English
Location : Philippines

http://rl-rp.board.st

Back to top Go down

In progress Re: Prefix color problem.

Post by SLGray on May 30th 2015, 5:02 am

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.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: Prefix color problem.

Post by Babybok on May 30th 2015, 5:18 am

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?

Babybok
Forumember

Male Posts : 136
Reputation : 0
Language : Filipino, English
Location : Philippines

http://rl-rp.board.st

Back to top Go down

In progress Re: Prefix color problem.

Post by Babybok on May 31st 2015, 3:35 am

BUMP! Need answer please.. thanks

Babybok
Forumember

Male Posts : 136
Reputation : 0
Language : Filipino, English
Location : Philippines

http://rl-rp.board.st

Back to top Go down

In progress Re: Prefix color problem.

Post by Babybok on June 1st 2015, 9:19 am

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

Babybok
Forumember

Male Posts : 136
Reputation : 0
Language : Filipino, English
Location : Philippines

http://rl-rp.board.st

Back to top Go down

In progress Re: Prefix color problem.

Post by Babybok on June 5th 2015, 6:50 am

Bump! need help!

Babybok
Forumember

Male Posts : 136
Reputation : 0
Language : Filipino, English
Location : Philippines

http://rl-rp.board.st

Back to top Go down

In progress Re: Prefix color problem.

Post by SLGray on June 5th 2015, 8:43 pm

Sorry, but I do not know how to achieve what you want.  Maybe someone else will know.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: Prefix color problem.

Post by Babybok on June 7th 2015, 6:32 am

@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.. Smile thanks!


BUMP! Anyone can help me?

Babybok
Forumember

Male Posts : 136
Reputation : 0
Language : Filipino, English
Location : Philippines

http://rl-rp.board.st

Back to top Go down

In progress Re: Prefix color problem.

Post by Babybok on June 13th 2015, 12:07 pm

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?


Babybok
Forumember

Male Posts : 136
Reputation : 0
Language : Filipino, English
Location : Philippines

http://rl-rp.board.st

Back to top Go down

In progress Re: Prefix color problem.

Post by Babybok on June 13th 2015, 12:41 pm

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?

Babybok
Forumember

Male Posts : 136
Reputation : 0
Language : Filipino, English
Location : Philippines

http://rl-rp.board.st

Back to top Go down

In progress Re: Prefix color problem.

Post by Babybok on June 13th 2015, 1:08 pm

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.. Sad check the image above to see what prefix is..

Babybok
Forumember

Male Posts : 136
Reputation : 0
Language : Filipino, English
Location : Philippines

http://rl-rp.board.st

Back to top Go down

In progress Re: Prefix color problem.

Post by Babybok on June 14th 2015, 11:35 am

BUMP! Anyone could help me with this problem please?

Babybok
Forumember

Male Posts : 136
Reputation : 0
Language : Filipino, English
Location : Philippines

http://rl-rp.board.st

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