News:

Join the Facebook Fan Page.

Main Menu

PostPrefix

Started by JayBachatero, June 28, 2006, 10:26:20 AM

Previous topic - Next topic

JayBachatero

Link to Mod
Review this Mod

This will add a prefix to the subject.  The prefix can be selected from a dropdown menu.

To add a prefix just go to Admin > Posts and Topics and enter the prefix separated by a comma.  You would enter a prefix like this: "Prefix 1, Prefix 2, Prefix 3".

This will only work on 1.1 RC2.  I will NOT backport this mod to 1.0.7.

Ver. 1.1
+ Added the ability to specify what boards to show prefix options on.

Ver. 1.0.1
! Fixed a bug that it added ":" even though there was no prefix selected.
+ Added permission.  How you can select who can use the prefix.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

PrizeLive.com

Looks cool, but what would you use this for?
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

JayBachatero

It was a request from someone so I just made the mod.  It adds a prefix to the subject line of a topic.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

K_4_kelly

oh!!! i like this one...
thanks ya ^__^
will install it and tell you if it works fine or not...
cheers!

K_4_kelly

unfortunately,  i got this:

Execute Modification ./Sources/ManagePermissions.php Test failed   :(

JayBachatero

What version of SMF do you have?  What mods do you have installed?  If you can send me a copy of your ManagePermissions.php tp [email protected].  It might be a conflict with another mod.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

K_4_kelly

#6
hello,

thanks for your reply..
I have manually edited the coding by following the 'install XML' document in the zip file.
and it works well for me. ^_^ thanks!

but now, there's another problem....
it could not support chinese word... when i enter the chinese word in the 'List of prefix to show before a post.: ' which is in the control panel, it end up with the random coding...
for example if i type:   [原创] , it end up with something like this>>>> &395678&,
do you think that you have a way to solve this problem?

thanks!

Kel

PrizeLive.com

Installations actions for "Post Prefix":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/Post.php    Test successful
2.    Execute Modification    ./Sources/ManagePosts.php    Test successful
3.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
4.    Execute Modification    ./Themes/default/Admin.template.php    Test successful
5.    Execute Modification    ./Themes/default/Post.template.php    Test successful
6.    Execute Modification    ./Themes/default/languages/Admin.english.php    Test successful
7.    Execute Modification    ./Themes/default/languages/Post.english.php    Test successful
8.    Execute Modification    ./Themes/default/languages/ManagePermissions.english.php    Test successful

How can I fix this?
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!


JayBachatero

Kel I have never dealth with UTF-8 Characters before so I really don't know how to fix this.  I would have to talk to a dev for further assistance.

SE what mods do you have installed?
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

K_4_kelly

Quote from: JayBachatero on June 29, 2006, 07:54:42 PM
Kel I have never dealth with UTF-8 Characters before so I really don't know how to fix this.  I would have to talk to a dev for further assistance.

SE what mods do you have installed?

Hello JayBachatero ,

Thanks for your reply!
No problem, i understand!
however, please do let me know when you have a way to solve this ^_^
thanks!

Kel

PrizeLive.com

Quote from: JayBachatero on June 29, 2006, 07:54:42 PM
Kel I have never dealth with UTF-8 Characters before so I really don't know how to fix this.  I would have to talk to a dev for further assistance.

SE what mods do you have installed?

i have a ton, like 20+..!
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

JayBachatero

Kel once I get some help on it I'll let you know.

SE one of those mods is causing the install to fail.  What you can do is manually made the changes that it does to ManageSettings.php.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

PrizeLive.com

Quote from: JayBachatero on June 30, 2006, 11:43:46 AM
Kel once I get some help on it I'll let you know.

SE one of those mods is causing the install to fail.  What you can do is manually made the changes that it does to ManageSettings.php.

Don't you mean ManagePermissions.php?
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

JayBachatero

Yea ManagePermissions.php.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

rosoner

error:
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

????
Ko je ukrao moj sir?

JayBachatero

Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

daragor

thanks, works fine for me, and i can translate to spanish...

it posible add this in a forum special only?? sorry for my english
Webscom: Wordpress + SMF
Software Libre, Noticias y Entretenimiento.-

JayBachatero

Yea if you want translate the strings and I'll add them.

I saw your reply on the review.  Yea it can be done.  If I have some time today I'll look into it and implement it.




Si tu quieres translada los strings de texto a español y lo agregare al mod.

Yo vi el post tuyo en el review del mod.  Se puede hacer.  Si tengo tiempo hoy voy a ver si le agrego esto.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

daragor

OK, fine, mate! spanish translate here:


<file name="$languagedir/Admin.spanish.php">
<operation>
<search position="before">
<![CDATA[ $txt['edit_disable_time_zero'] = '0 para desactivar';
  ]]>
  </search>
  <add>
<![CDATA[ $txt['post_prefix'] = 'Lista de Prefijos a mostrar.';
$txt['post_prefix_note'] = 'Separe cada prefijo con comas (<b>,</b>)';
  ]]>
  </add>
  </operation>
  </file>



<file name="$languagedir/Post.spanish.php">
  <operation>
  <search position="end" />
  <add>
<![CDATA[ $txt['post_prefix'] = 'Prefijo';
  ]]>
  </add>
  </operation>
  </file>



<file name="$languagedir/ManagePermissions.spanish.php">
  <operation>
  <search position="end" />
  <add>
<![CDATA[
//PostPrefix permissions.
$txt['permissionname_post_prefix'] = 'Prefijos en Post';
$txt['permissionhelp_post_prefix'] = 'Si activas este permiso a un grupo de usuarios ellos podrán utilizar prefijos en el título del tema.';
  ]]>
  </add>
  </operation>
  </file>
Webscom: Wordpress + SMF
Software Libre, Noticias y Entretenimiento.-

Advertisement: