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.

Perfix from Modification Title to title

View previous topic View next topic Go down

Solved Perfix from Modification Title to title

Post by Luffy on December 4th 2014, 11:45 am

Hello,

I would like to add these type of perfixes to my forum but to all titles as the other list ones available. But i tried adding this tutorial http://help.forumotion.com/t134270-buttons-to-add-prefixes-in-topic-titles#903824 but it wont add anything next to the title. Can you help me?


Last edited by MrMind on December 12th 2014, 11:17 am; edited 1 time in total
avatar
Luffy
Manager
Manager

Male Posts : 4506
Reputation : 457
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Perfix from Modification Title to title

Post by Ange Tuteur on December 4th 2014, 12:07 pm

Hi MrMind,

That tutorial adds buttons to insert text into the title. e.g. [solved]

See if this tutorial is what you're looking for :
http://help.forumotion.com/t133869-style-topic-title-keywords
avatar
Ange Tuteur
Forumaster

Male Posts : 13122
Reputation : 2810
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Perfix from Modification Title to title

Post by Luffy on December 4th 2014, 9:13 pm

No none of this works. I don't know why but for some reason it won't show at all the perfixes.





avatar
Luffy
Manager
Manager

Male Posts : 4506
Reputation : 457
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Perfix from Modification Title to title

Post by Luffy on December 6th 2014, 1:27 am

Bump





avatar
Luffy
Manager
Manager

Male Posts : 4506
Reputation : 457
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Perfix from Modification Title to title

Post by Luffy on December 7th 2014, 8:04 pm

Bump





avatar
Luffy
Manager
Manager

Male Posts : 4506
Reputation : 457
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Perfix from Modification Title to title

Post by Luffy on December 9th 2014, 7:10 pm

MrMind wrote:No none of this works. I don't know why but for some reason it won't show at all the perfixes.
Bump
avatar
Luffy
Manager
Manager

Male Posts : 4506
Reputation : 457
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Perfix from Modification Title to title

Post by Ange Tuteur on December 9th 2014, 10:10 pm

So, what is it that you're trying to do ? Could you explain a little more ?

Thanks
avatar
Ange Tuteur
Forumaster

Male Posts : 13122
Reputation : 2810
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Perfix from Modification Title to title

Post by Luffy on December 9th 2014, 10:15 pm

I am trying to add the #perfix code to a forum but the perfixes won't show. I am trying to use these codes. I will send you the information of the forum and login details via pm
Here are the code i am trying to use but won't work:
JS (placement: in all the pages and tested only in the topics - same result)

Code:
jQuery(document).ready(function(){jQuery(".tcl.tdtopics, .module a, .tcr a, .posthead a, .pun-crumbs p, .pun h2, .module .main-head, .pun h3, .pun input, .pun select, .pun th").each(function(){jQuery(this).html(jQuery(this).html().replace(/testperfix/g,"<span id='testperfix'>Test Perfix:</span> "))})});
function tagprefixo(){jQuery("input[name=subject]").val(jQuery("select[name=tags4]").val()+jQuery("input[name=subject]").val())}jQuery(document).ready(function(){jQuery('input[name="subject"]').after('<dd/><select name=tags4 onchange=tagprefixo()><option value="">Χωρίς θέμα</option><option value="testperfix">Test Perfix: </option>')});
jQuery(document).ready(function(){var b=jQuery("input[value=reply]").val();"reply"==b?jQuery("select[name=tags4]").css("display","none"):"quote"==b&&jQuery("select[name=tags4]").css("display","none")});

and CSS

Code:
#testperfix{background:#0079FF;border-radius:3px;color:#fff;font-size:9px!important;font-weight:bold;margin:1px;padding:2px 3px;text-shadow:0 0 5px #808080}

For some reason the perfix box won't show anywhere...
avatar
Luffy
Manager
Manager

Male Posts : 4506
Reputation : 457
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Perfix from Modification Title to title

Post by Ange Tuteur on December 9th 2014, 10:20 pm

I will report this error. Thanks for not editing your post. Wink
avatar
Ange Tuteur
Forumaster

Male Posts : 13122
Reputation : 2810
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Perfix from Modification Title to title

Post by Ange Tuteur on December 11th 2014, 8:58 pm

I checked your forum and this script was missing a semi-colon; it caused an error.
Code:
$(document).ready(function() {
  $.getScript('https://raw.github.com/lokesh/lightbox2/master/js/lightbox.js');
});
$(function () {
  $('input[name="description"]').change(function () {
  var ValidFileExtension = ['jpg', 'JPG', 'jpeg', 'JPEG', 'png', 'PNG', 'gif', 'GIF', 'bmp','BMP'];
  if ($.inArray($(this).val().split('.').pop().toLowerCase(), ValidFileExtension) == -1) {
  alert("Sorry, the allowed file extensions are: '.jpeg','.jpg', '.png', '.gif', '.bmp'");
  }
  })
})

Is it working for you now ?
avatar
Ange Tuteur
Forumaster

Male Posts : 13122
Reputation : 2810
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Perfix from Modification Title to title

Post by Luffy on December 12th 2014, 11:15 am

Now all is ok! Problem Solved! Thanks!!





avatar
Luffy
Manager
Manager

Male Posts : 4506
Reputation : 457
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Perfix from Modification Title to title

Post by Ange Tuteur on December 12th 2014, 7:38 pm

You are welcome ^^

Topic archived
avatar
Ange Tuteur
Forumaster

Male Posts : 13122
Reputation : 2810
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

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