News:

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

Main Menu

[Solved] Post Prefix MOD question

Started by KaoT, June 28, 2006, 06:27:59 PM

Previous topic - Next topic

KaoT

Hi,

I installed the mod which is called Post Prefix (made by JayBachatero), it works fine but I would like the subjects to appear like this: [Post Prefix] Post instead of Post Prefix: Post.

I tried to search on some modified files (Admin.Template.php and Post.Template.php) but no changes were noted :-\

Can anyone tell me what I have to do ? Thanks you...

:)
Forum : Le Sixième Cercle [nofollow]...

Daniel15

Well, I haven't looked at the MOD (the download didn't work for me, but it's probably my fault, that SMF Mods page doesn't like me :P). Anyways, it most likely changes the subject before inserting the post in the database, so try looking in the Post.php file :)
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

KaoT

OK, Thanks...

I will take a serious look into this file... I will probably be back (even if it is solved, I will give the solution for the others members of this community ;) )
Forum : Le Sixième Cercle [nofollow]...

KaoT

So...

The post to edit is Post.php as said by daniel15... But I am face of a problem that I don't manage to solve.

Quote from: Original Line//This is for the prefix.
   if (!empty($_POST['post_prefix']))
      $_POST['subject'] =$_POST['post_prefix'] .': ' . $_POST['subject'];

It is not difficul to change the two points into a "]" but I don't know how to insert a "[" before $_POST['post_prefix'] (juste after the "=" sign) :-\
Forum : Le Sixième Cercle [nofollow]...

winrules

Quote from: KaoT on June 29, 2006, 06:22:56 AM
So...

The post to edit is Post.php as said by daniel15... But I am face of a problem that I don't manage to solve.

Quote from: Original Line//This is for the prefix.
   if (!empty($_POST['post_prefix']))
      $_POST['subject'] =$_POST['post_prefix'] .': ' . $_POST['subject'];

It is not difficul to change the two points into a "]" but I don't know how to insert a "[" before $_POST['post_prefix'] (juste after the "=" sign) :-\
Try this:
//This is for the prefix.
if (!empty($_POST['post_prefix']))
$_POST['subject'] = '[' . $_POST['post_prefix'] .']' . $_POST['subject'];


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


KaoT

It works =)

Another solution is to keep this line :
Quote//This is for the prefix.
   if (!empty($_POST['post_prefix']))
      $_POST['subject'] =$_POST['post_prefix'] .' ' . $_POST['subject'];
And enter manually: [Type1], [Type2], ... ;)

Thanks you for your help :D
Forum : Le Sixième Cercle [nofollow]...

Advertisement: