News:

Wondering if this will always be free?  See why free is better.

Main Menu

SMF Topic Prefix Lite Mod

Started by Nibogo, April 19, 2009, 10:27:22 AM

Previous topic - Next topic

mincel

#20
Quote from: casp3r on April 22, 2009, 06:38:43 AM
Quotecan I change the color of the prefix and also make it to where the prefix isn't part of the link to that topic?

QuoteBoth are possible, but I will have to edit all the pages where the topics can be shown (unread, notifications, recent) so I will not do that
An excellent mod and one I would really like to use but I think these additions are a must - the next version maybe? :)

casp3r, i think that i'm a able to help You. But NIBOGO will be pleased to veryfy my post.


So then... i tyhink thet putting in concret places some html tags will help... while showing the subject. It should be made in Post.php
Quote from: till now it was
Quote from: find in unchanged file ./Sources/Post.php// At about this point, we're posting and that's that.
   ignore_user_abort(true);
   @set_time_limit(300);
Quote from: as fare we were adding this text after//Topic Prefix Mod
   if (isset($_POST['post_prefix']))
      $_POST['subject'] = $_POST['post_prefix'] . '  ' . $_POST['subject'];


Sytuation from above was normaly, but i think than we can made somethin like this:
Quote from: i think that we can
Quote from: find in unchanged file ./Sources/Post.php// At about this point, we're posting and that's that.
   ignore_user_abort(true);
   @set_time_limit(300);
Quote from: put this text after//Topic Prefix Mod
   if (isset($_POST['post_prefix']))
      $_POST['subject'] = '<b>[ ' .$_POST['post_prefix'] . ' ] :</b> ' . $_POST['subject'];

Only text marked on violet is diferent than standard version.
I was puttin it in that way from two reasons:
1. I suppose that SMF 2.0 RC1 is saving html tags in database,
2. I think that it is easier to creat in admin panel prefix eg. 'TEST' without any addons, becaus this smal diferrence which i made will add this differenc while paking the post. So, when You chous TEST as a prefix for Your subject, this will create, while putin in to db, [ TEST ] : plus subject without bolded fonts.
I see only some problems with colors... The same way as bold text we can add some color for prefix, but it will be only one color for ann prefixs.



Quote from: if You already instaled Topic PostPrefix Mod on Your SMF 2.0 RC1
Quote from: find in ./Sources/Post.php$_POST['subject'] = $_POST['post_prefix'] . '  ' . $_POST['subject'];
Quote from: Replace With$_POST['subject'] = '<b>[ ' .$_POST['post_prefix'] . ' ] :</b> ' . $_POST['subject'];

I'v foud some problems with showing this... as only i will find solution i will put it hear
Somewere in bord code is function like htmlspecialchars_decode() and all html tags are deformed... i efect ther are no posibility to show bold font becaus each eg. when we put Jane & 'Tarzan' ino db this function remade it for Jane &amp; &#039;Tarzan&#039;
... i can't find where this function is, to stop it... :-[


Apocalypse.

Hey Ive installed this mod after being looking for it for some time.

But i have a problem.

I have a prefix set up but it only works in 1 thread at a time.

I have setup 3 prefixs for one thread and 3 for another but it will only show up in one thread.

What could be causing this problem?

Nibogo

What do you mean??

You can use a prefix just in 1 topic???

Quote from: Apocalypse. on May 09, 2009, 11:09:57 AM
Hey Ive installed this mod after being looking for it for some time.

But i have a problem.

I have a prefix set up but it only works in 1 thread at a time.

I have setup 3 prefixs for one thread and 3 for another but it will only show up in one thread.

What could be causing this problem?

bloodfire

I encounter the same problem... set up a few prefix but only the 1st prefix i created is working... while the rest of the prefixes are not showing in the threads i've assigned...

Apocalypse.

Sorry I meant Boards not threads.

I have assigned 3 prefixes to say the Request Board and 3 to the Help Board, but when you got to the post screen only the Request Board works, the Help board doesnt show the prefixes this also applys to all other Boards I assign to. Only 1 board applys the mod

Mr ChriZ

I've installed this mod using the packagemanager and it is now showing up under installed packages,
however it's not showing up under Forum from admin, and that's with full admin rights.

the_shadow

there is some modification to insted appear some prefix like Presentation ( for example )...appears one image that we define?


thnkx


blow

Quote from: Apocalypse. on May 12, 2009, 06:24:15 AM
I have assigned 3 prefixes to say the Request Board and 3 to the Help Board, but when you got to the post screen only the Request Board works, the Help board doesnt show the prefixes this also applys to all other Boards I assign to. Only 1 board applys the mod

Same problem here. Only the first assigned prefix works, next ones doesn't.

Nibogo

Changelogs:

Version 1.1 - May 25, 2009
- Now the mod shows the name of each membergroups in the Admin Panel
- Fixed some bugs in the Topic Prefix Version Page.
- Fixed a little bug in the Post page.
- Fixed a bug in Topic Prefix strings with the Permission Name and Description

General_Naga

I've installed this excellent mod for the second time and this time the prefix box is visible in editor view even when there's no prefix available.

How can I stop it showing when there's nothing to show?

malcomxar

When will this EXTREMELLY EXCELLENT MOD be available for 1.1.x ??

I think it was developed once but the author gave up (or sth like that) but I am really looking forward dor you o make it for 1.1.x :P

Regards!

Nibogo

Quote from: malcomxar on June 15, 2009, 10:49:42 PM
When will this EXTREMELLY EXCELLENT MOD be available for 1.1.x ??

I think it was developed once but the author gave up (or sth like that) but I am really looking forward dor you o make it for 1.1.x :P

Regards!

No, try the PostPrefix mod works property on SMF 1.1.X

Bruno36

   
Hello!

it is possible to add a color choice of the prefix?
Bruno36 the French
SMF 2.0.9


malcomxar

Quote from: NIBOGO on June 16, 2009, 03:03:27 PM

No, try the PostPrefix mod works property on SMF 1.1.X

Hi again, i tried to install this mod on a test forum but it said that it was not compatible...

What did you mean by "try the PostPrefix mod works property on SMF 1.1.X"??

Thanks again!

Balaban

Quote from: casp3r on April 19, 2009, 03:30:45 PM
Great mod, installed and worked first time no problems. Suggestion for future versions - separate the prefix from the topic title so that they become two separate clickable entities e.g.

'prefix 1 topic header'
becomes two clickable entities
'prefix 1' and 'topic header'
Clicking 'prefix 1' would then list all topics with the same prefix.
Make sense? :)

agree with u. :D
can make ?
.

Nibogo

Quote from: justblbn99 on June 23, 2009, 09:24:28 AM
Quote from: casp3r on April 19, 2009, 03:30:45 PM
Great mod, installed and worked first time no problems. Suggestion for future versions - separate the prefix from the topic title so that they become two separate clickable entities e.g.

'prefix 1 topic header'
becomes two clickable entities
'prefix 1' and 'topic header'
Clicking 'prefix 1' would then list all topics with the same prefix.
Make sense? :)

agree with u. :D
can make ?

No, because I don't set any prefix in the db as the prefix of the topic because I don't want to edit all the files of have topics (Recent, Unread, UnreadReplies, Notifications, BoardIndex, MessageIndex....)

So the mod will keep simple

SPerroud

Who can adapt it to v1.1.x please?
Version SMF: 1.1.11
Theme: Black Default Theme for SMF
CMS (Portal): TinyPortal v0.9.8

- Deja siempre tu versión del foro y el tema que usas para ayudarte mejor.

Preguntas Frecuentes: SMF FAQ

Am'

nice mod thx

how i can add color for the prefix please ?
اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Advertisement: