Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: vbgamer45 on April 23, 2009, 11:00:25 AM

Title: Rules On Post V1
Post by: vbgamer45 on April 23, 2009, 11:00:25 AM
Link to the mod (https://custom.simplemachines.org/index.php?mod=1790)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fbit.ly%2FkZVDB6&hash=7836fdef4323714489209ed06cd4e4f88c199aea)
Rules On Post V1 Full Version
Developed by 4kstore (http://www.smfsimple.com/index.php?action=profile;u=55) & Lean (http://www.smfsimple.com/index.php?action=profile;u=1) for SMFSimple.com (http://www.smfsimple.com/)
SMF RC5 - 2.0



[glow=black,2,300]Description:[/glow]
This mod allows the administrator to display the forum rules in the area of the user posting the preferred range.

[glow=black,2,300]Descripcion:[/glow]
Este mod le permite al administrador mostrar las reglas del foro en el area de posteo a los usuarios del rango que prefiera.



[glow=black,2,300]Features:[/glow]


[glow=black,2,300]Caracteristicas:[/glow]



[glow=black,2,300]Screenshots | Imagenes[/glow]

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1135.photobucket.com%2Falbums%2Fm638%2Fsmfsimple%2Fca1rulesonpost.png&hash=1b117a5c0a0a9047d2baf87038aaf18bfb6c1df5)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1135.photobucket.com%2Falbums%2Fm638%2Fsmfsimple%2Fca1rulesonpost.png&hash=1b117a5c0a0a9047d2baf87038aaf18bfb6c1df5)


Language Support | Lenguajes Soportados
- English
- Spanish_latin
- Spanish_latin-utf8
- Spanish_es
- Spanish_es-utf8



[glow=black,2,300]Rules On Post V1 Full Version[/glow]

[glow=black,2,300]Copyright 2011 | SMFSimple.com (http://www.smfsimple.com/)[/glow]

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.creativecommons.org%2Fl%2Fby-nc-sa%2F3.0%2F88x31.png&hash=be27368905a4a8052533722bf679594f2501899d) (http://creativecommons.org/licenses/by-nc-sa/3.0/)
Title: Re: RulesOnPost
Post by: JBlaze on April 23, 2009, 01:17:07 PM
Very nice.

First comment :)
Title: Re: RulesOnPost
Post by: edi67 on April 23, 2009, 01:19:40 PM
nice this mod, will be intersting be possible to show it selecting user groups and not only one number of post

Thx for this mod
Title: Re: RulesOnPost
Post by: bullbreedluverz on April 23, 2009, 01:36:12 PM
very nice
Title: Re: RulesOnPost
Post by: Sudhakar Arjunan on April 23, 2009, 02:43:20 PM
Good Mod, Thank you 4kstore.
Title: Re: RulesOnPost
Post by: 4Kstore on April 23, 2009, 11:00:52 PM
Quote from: edi67 on April 23, 2009, 01:19:40 PM
nice this mod, will be intersting be possible to show it selecting user groups and not only one number of post

Thx for this mod

maybe in the next release
Thanks for the comments..
Title: Re: RulesOnPost
Post by: tbk22 on April 25, 2009, 08:11:47 AM
Will you make it 1.1.x compatible?  Please ;)

Thanks in advance
Title: Re: RulesOnPost
Post by: 4Kstore on April 25, 2009, 10:44:13 AM
Quote from: tbk22 on April 25, 2009, 08:11:47 AM
Will you make it 1.1.x compatible?  Please ;)

Thanks in advance

Yes, now this mod is compatible with 1.1.x
Enjoy!
Title: Re: RulesOnPost
Post by: M-DVD on April 25, 2009, 12:55:43 PM
Very good, congratulations :)
Title: Re: RulesOnPost
Post by: njtat2dguy on May 03, 2009, 11:05:04 PM
Would there be a way to make this so it only shows up for selected forum categories?

I have all my new members going into a selected forum when they first register, I'd love to make the rules show up there and no where else on my site. Could that be possible?
Title: Re: RulesOnPost
Post by: FragaCampos on June 23, 2009, 08:13:39 PM
Quote from: njtat2dguy on May 03, 2009, 11:05:04 PM
Would there be a way to make this so it only shows up for selected forum categories?

I have all my new members going into a selected forum when they first register, I'd love to make the rules show up there and no where else on my site. Could that be possible?

I second that. This would be extremely useful. Is it possible?
Title: Re: RulesOnPost
Post by: bjraines on July 14, 2009, 11:32:45 PM
i have been using this module faithfully, today i had to reinstall it in 1.1.9 and I got the following error

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: RulesOnPost
Post by: JeremyB. on July 15, 2009, 02:36:36 AM
Nice mod,

Danish Translation:
$txt['rulesonpost_enable']='Aktiver Regler om Post';
$txt['rulesonpost_message']='Besked, der skal vises til medlemmerne i post-området';
$txt['rulesonpost_posts']='Viser, at det bruger meget lidt mindre "x" stillinger';

Portuguese Translation:
$txt['rulesonpost_enable']='Ativar Regras de postagem';
$txt['rulesonpost_message']='Mensagem a ser apresentado aos membros em pós área.';
$txt['rulesonpost_posts']='Mostra-usuário Whit menos "x" lugares';

-JB
Title: Re: RulesOnPost
Post by: Akyhne on July 16, 2009, 11:31:57 PM
JeremyB.: Did you translate that yourself? Looks like you used Google to translate it.
Title: Re: RulesOnPost
Post by: Quexinos on November 27, 2009, 02:27:28 AM
sorry to bump this, but would this be possible for just one topic?  Like  a troublesome topic?
Title: Re: RulesOnPost
Post by: eigthy on January 11, 2010, 10:26:53 PM
alguien instaló este mod en la version 1.1.11?
Title: Re: RulesOnPost
Post by: 4Kstore on January 31, 2010, 10:24:07 PM
Now SMF 2.0 Rc2 Compatible!!
Byes!
Title: Re: RulesOnPost (COMPATIBLE 2.0RC2)
Post by: Bugo on February 19, 2010, 02:56:16 PM
Russian translation:

// RulesOnPost
$txt['rulesonpost_enable'] = 'Активировать правила при написании сообщений';
$txt['rulesonpost_message'] = 'Сообщение для показа пользователям при написании сообщений';
$txt['rulesonpost_posts'] = 'Показывать этот текст пользователю, у которого меньше "х" сообщений';
Title: Re: RulesOnPost (COMPATIBLE 2.0RC2)
Post by: tonnybarros on February 19, 2010, 05:52:00 PM
What does this function:
Show custom homepage instead of the board index when accessing your site directly 
Title: Re: RulesOnPost (COMPATIBLE 2.0RC2)
Post by: 4Kstore on February 19, 2010, 06:11:57 PM
Quote from: tonnybarros on February 19, 2010, 05:52:00 PM
What does this function:
Show custom homepage instead of the board index when accessing your site directly 

Please see the screenshots:
http://custom.simplemachines.org/mods/index.php?mod=1790

Quote from: Bugo on February 19, 2010, 02:56:16 PM
Russian translation:

// RulesOnPost
$txt['rulesonpost_enable'] = 'Активировать правила при написании сообщений';
$txt['rulesonpost_message'] = 'Сообщение для показа пользователям при написании сообщений';
$txt['rulesonpost_posts'] = 'Показывать этот текст пользователю, у которого меньше "х" сообщений';


Quote from: JeremyB. on July 15, 2009, 02:36:36 AM
Nice mod,

Danish Translation:
$txt['rulesonpost_enable']='Aktiver Regler om Post';
$txt['rulesonpost_message']='Besked, der skal vises til medlemmerne i post-området';
$txt['rulesonpost_posts']='Viser, at det bruger meget lidt mindre "x" stillinger';

Portuguese Translation:
$txt['rulesonpost_enable']='Ativar Regras de postagem';
$txt['rulesonpost_message']='Mensagem a ser apresentado aos membros em pós área.';
$txt['rulesonpost_posts']='Mostra-usuário Whit menos "x" lugares';

-JB

Thanks for the translation!

Title: Re: RulesOnPost (COMPATIBLE 2.0RC2)
Post by: Siirist on April 02, 2010, 05:48:34 PM
We are calling this SOLVED.

We upgraded again so we will go slower this time and install themes and mods one per day.


Hello,

Installed this 2 days ago on SMF ver 2.0RC3 without a problem.
Now want to un-install all mods (including this one) and themes due to problems on forum. :-[

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently.

2.     Execute Modification     ./Sources/ManageSettings.php     Test failed
1.     Replace                          ./Sources/ManageSettings.php    Test failed

Solution?

Thanks in advance.

Be Well,
Cloud 8)
Title: Re: RulesOnPost (COMPATIBLE 2.0RC2)
Post by: luuuciano on May 29, 2010, 05:49:38 PM
Quote from: FragaCampos on June 23, 2009, 08:13:39 PM
Quote from: njtat2dguy on May 03, 2009, 11:05:04 PM
Would there be a way to make this so it only shows up for selected forum categories?

I have all my new members going into a selected forum when they first register, I'd love to make the rules show up there and no where else on my site. Could that be possible?

I second that. This would be extremely useful. Is it possible?

+1 to this feature request...

for example, I want to show it in sections where we need a "right way to post"... and the other sections have more flexibility
Title: Re: RulesOnPost (COMPATIBLE 2.0RC2)
Post by: Siirist on May 30, 2010, 12:35:11 AM
Well,

I know that this is  (COMPATIBLE 2.0RC2), however, the PARSE did function for 2.0 RC3.

So I made all the necessary changes MANUALLY. When I attempted to login, I got a parse error that stated that line 1994 was wrong.
Here is line 1994:

         array('check', 'rulesonpost_enable'),

Here is the complete entry as per the parse:
1990           // Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!
1991
1992       );
1993
1994         array('check', 'rulesonpost_enable'),
1995         array('large_text', 'rulesonpost_message', '20'),
1996         array('int','rulesonpost_posts'),
1997         
1998       if ($return_config)
1999        return $config_vars;



I am guessing that even though it parsed for 2.0 RC3, it must not be fully compatible.

I also noticed that people are asking for different words.
I thought that this would allow a different saying on each board, but I guess that cannot be true because it is changing the Source file.

Cloud
Title: Re: RulesOnPost (COMPATIBLE 2.0RC2)
Post by: MrCreatoR on July 14, 2010, 05:39:02 AM
Nice mod.

Russian translation:

Quote <file name="$themedir/languages/Modifications.russian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['rulesonpost_enable']='Показывать правила форума при отправке сообщении';
$txt['rulesonpost_message']='Отображаемое участнику содержимое правил над заголовком создаваемого сообщения';
$txt['rulesonpost_posts']='Показывать участникам с количеством сообщении меньше чем "x"';
]]></add>
</operation>
</file>
Title: Re: RulesOnPost (COMPATIBLE 2.0RC2)
Post by: Bugo on July 14, 2010, 06:49:50 AM
MrCreatoR, http://www.simplemachines.org/community/index.php?topic=306303.msg2507800#msg2507800 :)
Title: Re: RulesOnPost (COMPATIBLE 2.0RC2)
Post by: MrCreatoR on July 14, 2010, 08:47:42 AM
Bugo
Oh i didn't see that, sorry.
Then why after 6 month the translation still not added to the mod?
Title: Re: RulesOnPost (COMPATIBLE 2.0RC2)
Post by: Bugo on July 14, 2010, 09:36:11 AM
Maybe he doesn't know how to do this?..
Title: Re: RulesOnPost (COMPATIBLE 2.0RC2)
Post by: MrCreatoR on July 14, 2010, 11:48:38 AM
Bugo [?] (http://www.simplemachines.org/community/index.php?topic=306303.msg2701805#msg2701805)
QuoteMaybe he doesn't know how to do this?..
How to do what, add the languages?

just add before </modification> in «languages.xml» the lines from my first post in this thread, and save the file with utf8 encoding, thats it :)

but i am sure that author of this mod knows how to do that ;)
Title: Re: RulesOnPost (COMPATIBLE 2.0RC2)
Post by: luuuciano on July 14, 2010, 02:22:10 PM
maybe he do not have time to do the "split" thing... because the utf-8 encoding
Title: Re: RulesOnPost (COMPATIBLE 2.0RC2)
Post by: MrCreatoR on July 14, 2010, 02:39:40 PM
Quote from: luuuciano on July 14, 2010, 02:22:10 PM
maybe he do not have time to do the "split" thing... because the utf-8 encoding
There is no "split" stuff involved, just addition to another file, but in utf-8 encoding.
Title: Re: RulesOnPost (COMPATIBLE 2.0RC2)
Post by: Bugo on July 14, 2010, 04:14:34 PM
Quote from: luuuciano on July 14, 2010, 02:22:10 PM
maybe he do not have time to do the "split" thing... because the utf-8 encoding
Of course, this operation requires six months ... :)
Title: Re: RulesOnPost (COMPATIBLE 2.0RC2)
Post by: luuuciano on July 14, 2010, 05:37:06 PM
ok... maybe he died....
my condolences :(
Title: Re: RulesOnPost (COMPATIBLE 2.0RC2)
Post by: MrCreatoR on July 14, 2010, 06:16:57 PM
Quote from: luuuciano on July 14, 2010, 05:37:06 PM
ok... maybe he died....
my condolences :(

Nope (http://www.simplemachines.org/community/index.php?action=profile;u=134279):
QuoteLast Active:                                      Today at 04:04:19 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ffiles.myopera.com%2FCreat0R%2FOpera_AC%2FIcons%2Fwhistle.gif&hash=b463a7a5f361486e1fc887fed195705a19ef377f)
Title: Re: RulesOnPost (COMPATIBLE 2.0RC2)
Post by: luuuciano on July 14, 2010, 06:23:31 PM
his phantom!

:-\ :o
Title: Re: RulesOnPost (COMPATIBLE 2.0RC2)
Post by: 4Kstore on July 14, 2010, 08:29:06 PM
I have no time, I'm not dead ...
When I have time I add languages, thanks for the collaboration.
Title: Re: Rules On Post V1 - SMF RC5 / 2.0
Post by: lean on June 15, 2011, 10:52:31 PM
New features!
Compatible with smf 2.0
You can use html and bbcode (new feature in V1)
Can use your custom css code (new feature in V1)
Title: Re: Rules On Post V1 - SMF 2.0
Post by: MrCreatoR on June 16, 2011, 01:58:37 AM
Lean [?] (http://www.simplemachines.org/community/index.php?topic=306303.msg3077044#msg3077044)
QuoteNew features!
And still no russian translation (http://www.simplemachines.org/community/index.php?topic=306303.msg2701555#msg2701555) :(
Title: Re: Rules On Post V1 - SMF 2.0
Post by: lean on June 16, 2011, 07:04:01 AM
$txt['rulesonpost_enable']='Enable Rules on Post';
$txt['rulesonpost_message']='Message to be displayed to members in post area. <br />Can use Html or BBcode';
$txt['rulesonpost_posts']='Show it to user whit less "x" posts';
$txt['rulesonpost_css']='You can use customized CSS for this block.';


Let me and Ill add translations, because they add a new variable.
Title: Re: Rules On Post V1 - SMF 2.0
Post by: MrCreatoR on June 16, 2011, 07:23:47 AM
Quote$txt['rulesonpost_enable']='Показывать правила форума при отправке сообщения';
$txt['rulesonpost_message']='Отображаемое участнику содержимое правил над заголовком создаваемого сообщения.<br />Поддерживается Html и BBCode';
$txt['rulesonpost_posts']='Показывать участникам с количеством сообщении меньше чем "x"';
$txt['rulesonpost_css']='Вы можете изменить CSS для этого блока.';
should be added for the Modifications.russian.php and for Modifications.russian-utf8.php.
Title: Re: Rules On Post V1 - SMF 2.0
Post by: lean on June 16, 2011, 09:10:47 AM
Thanks!
Title: Re: Rules On Post V1 - SMF 2.0
Post by: SSimple Team on August 29, 2011, 07:00:16 PM
Full Version Released
New Features:

Link: http://custom.simplemachines.org/mods/index.php?mod=1790
Title: Re: Rules On Post V1 - SMF 2.0
Post by: OCJ on September 17, 2011, 12:00:41 PM
Does the job - nice mod.

I get non-critical errors though on every posting or edit- a lot:

http://......./index.php?action=post;msg=2365;topic=1357.0

Undefined index: rulesonpost_css

File: /home2/...../public_html/Sources/Subs.php
Line: 4700

Title: Re: Rules On Post V1 - SMF 2.0
Post by: SSimple Team on September 17, 2011, 12:53:42 PM
Quote from: igirisjin on September 17, 2011, 12:00:41 PM
Does the job - nice mod.

I get non-critical errors though on every posting or edit- a lot:

http://......./index.php?action=post;msg=2365;topic=1357.0

Undefined index: rulesonpost_css

File: /home2/...../public_html/Sources/Subs.php
Line: 4700


Ok! I checked and repaired promptly.
thanks
Title: Re: Rules On Post V1 - SMF 2.0
Post by: OCJ on September 17, 2011, 11:18:19 PM
Thanks!
Title: Re: Rules On Post V1 - SMF 2.0
Post by: OCJ on September 19, 2011, 11:07:53 PM
Not sure about the repair ... im getting errors still after downloading and installing again.



http://.........................com/index.php?action=post;msg=2327;topic=1346.0;calendar;eventid=178;e192fafa=5952c9a231b7ad309ed8add47e098bf0

8: Undefined index: rulesonpost_css

File: /home/....../public_html/Sources/Subs.php
Line: 4700
Title: Re: Rules On Post V1 - SMF 2.0
Post by: OCJ on September 28, 2011, 02:36:20 AM
New lite version also giving pages of error messages

http://............com/index.php?action=post;board=39.0

8: Undefined index: rulesonpost_css

File: /home/...../public_html/Sources/Subs.php
Line: 4829
Title: Re: Rules On Post V1 - SMF 2.0
Post by: lean on September 29, 2012, 10:37:56 AM
Sorry, SSimple Team not supported in English language at the moment.
In SMFSimple.com We are looking for partners with this language to provide better support to all.
Thanks for understanding.
Title: Re: Rules On Post V1 - SMF 2.0
Post by: vkot on October 19, 2012, 01:32:30 PM
Greek translation:
http://www.simplemachines.org/community/index.php?topic=488658
Title: Re: Rules On Post V1 - SMF 2.0
Post by: 4Kstore on October 19, 2012, 05:16:17 PM
Quote from: vkot on October 19, 2012, 01:32:30 PM
Greek translation:
http://www.simplemachines.org/community/index.php?topic=488658

Thanks!
Title: Re: Rules On Post V1 - SMF 2.0
Post by: theshaddii on July 10, 2013, 02:26:58 PM
Um ok. The mod installed correctly and is working. Its just that... well as adminstrator i have all permissions. and well that includes the permission to view the rules. I only wanted this to show the rules on someones first post. For every other group it works perfectly but for admin it shows up every time. Its very annoying. This is the first time i didn't want the admin to have a permission. Is there anyway to fix this. you can't edit the administrators permissions so i have been unable to fix this.
Title: Re: Rules On Post V1 - SMF 2.0
Post by: 4Kstore on July 10, 2013, 03:01:54 PM
Try this, edit the file: Sources/Subs.php

Code (search) Select
global $board, $user_settings, $modSettings;

Code (replace) Select
global $board, $user_info, $modSettings;

Code (search) Select
if (@$modSettings['rulesonpost_enable'])

Code (replace) Select
if (@$modSettings['rulesonpost_enable'] && !$user_info['is_admin'])


With these, you as an administrator will never see the message
I really need to update this mods....
Title: Re: Rules On Post V1 - SMF 2.0
Post by: theshaddii on July 10, 2013, 04:50:34 PM
Quote from: 4Kstore on July 10, 2013, 03:01:54 PM
Try this, edit the file: Sources/Subs.php

Code (search) Select
global $board, $user_settings, $modSettings;

Code (replace) Select
global $board, $user_info, $modSettings;

Code (search) Select
if (@$modSettings['rulesonpost_enable'])

Code (replace) Select
if (@$modSettings['rulesonpost_enable'] && !$user_info['is_admin'])


With these, you as an administrator will never see the message
I really need to update this mods....

Easy fix. Thanks so much for the quick response. This mod is Excellent mod. Hope its around for years to come.
Title: Re: Rules On Post V1 - SMF 2.0
Post by: 4Kstore on July 10, 2013, 05:58:01 PM
You're welcome :)