Topic Prefix Help, Please?
4 posters
Page 1 of 1
Topic Prefix Help, Please?
Hey! I'm new here. But I've been using Forumotion for ages now. I was wondering if you can help me with something. It won't take long, I think.
So, I want topic prefixes for my forum, something that IPB has. I believe it is possible, see the image below:

So, I want topic prefixes for my forum, something that IPB has. I believe it is possible, see the image below:

Yes, I know this is one of the countless, annoying and stupid threads of its kind. But all of them are unsolved. I would like this to be a solved thread nonetheless, not one of the other threads.
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);
});
}
});
This Code ain't working!
Already tried this, too. Can you make it work for the English version?
I really need this to be solved and worked out. Help me out guys! Please?
Details, details:
- phpBB3
- Customized Halloweed F&M theme
- iOS and Android Development and Hacking forum
- URL - http://www.chaotic.great-forum.com
Thanks a bunch
Thanks a bunch but, I don't know how to use it.Rhino.Freak wrote:Hi!
Have you tried this code?
http://www.fmcodes.com/t930-add-prefixes-for-your-topics-list
Here's da code:
- Code:
$(document).ready(function(){$('img[src="IMAGELINK"]').replaceWith('<span class="imageA">TitleA</span>')});
- you will change ImageLink with the image that you have set in the ACP
- you will change titleA with the text you want to show
- you will change class="imageA" if you want to have more than one (the class must be unique)
Need help with this.
Re: Topic Prefix Help, Please?
As far as I understand this,
First you have to add topic icons by
ACP > Display > Pics Management > Topic Icons
Then add new topic icon, copy that image's URL.. that is your ImageLink
TitleA would be TUTORIAL in your example image
imageA would be the class used to style the text "TUTORIAL"
Do it by adding this in CSS :
Please report back of it works
What it will do is replace the image url provided by topic icon with your text...
First you have to add topic icons by
ACP > Display > Pics Management > Topic Icons
Then add new topic icon, copy that image's URL.. that is your ImageLink
TitleA would be TUTORIAL in your example image
imageA would be the class used to style the text "TUTORIAL"
Do it by adding this in CSS :
- Code:
.imageA { background: blue; border: 1px solid black; }
Please report back of it works

What it will do is replace the image url provided by topic icon with your text...
Re: Topic Prefix Help, Please?
Rhino.Freak wrote:As far as I understand this,
First you have to add topic icons by
ACP > Display > Pics Management > Topic Icons
Then add new topic icon, copy that image's URL.. that is your ImageLink
TitleA would be TUTORIAL in your example image
imageA would be the class used to style the text "TUTORIAL"
Do it by adding this in CSS :
- Code:
.imageA { background: blue; border: 1px solid black; }
Please report back of it works
What it will do is replace the image url provided by topic icon with your text...

No luck with this one.

Here is what a thread looks like. No luck.
Again, thanks for helping me out!
Re: Topic Prefix Help, Please?
Topic moved to the correct section.
Jophy- ForumGuru
-
Posts : 17924
Reputation : 836
Language : English
Location : Somewhere
Re: Topic Prefix Help, Please?
umm..
sorry then.
Did you try SocialAcademy's link ?? its a completely different method..

Did you try SocialAcademy's link ?? its a completely different method..

» Topic Prefix problem
» Topic Prefix
» Help please with topic prefix!
» Topic prefix
» Topic/message Prefix
» Topic Prefix
» Help please with topic prefix!
» Topic prefix
» Topic/message Prefix
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum