Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Depreciated on August 30, 2010, 06:41:34 PM

Title: [Depreciated]
Post by: Depreciated on August 30, 2010, 06:41:34 PM
Link to the mod (https://custom.simplemachines.org/index.php?mod=2696)


'Read the Rules' Link Above Post Button v2.0
~{By PaulpBaker}~ (http://custom.simplemachines.org/mods/index.php?action=profile;u=259685)

Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2696) | My Mods (http://custom.simplemachines.org/mods/index.php?action=profile;u=259685) | Support Topic (http://www.simplemachines.org/community/index.php?topic=398388.0)

Compatibility
SMF 2.0

Description
Adds a 'Read the Rules' link above post/preview buttons for n00bs ;)

Users can enable/disable and change the link to the rules page for this mod via admin settings.

Installation
Any previous versions of this mod MUST be uninstalled BEFORE installing this version.

Install the package on the SMF Default 'Curve' Theme ONLY. Other themes will need manual edits.

Useful Links
SMF Package Parser (http://sleepycode.com/PackageParser/)
Manual Installation Of Mods (http://docs.simplemachines.org/index.php?topic=402)
How Do I Modify Files? (http://www.simplemachines.org/community/index.php?topic=24110.0)

Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)

Changelog
v2.0 - 20th August 2010: Total rewrite of the mod to allow users to enable/disable the mod and change the link to anything they want.
v1.0 - 8th August 2010: Initial Version
Title: Re: 'Read the Rules' Link Above Post Button
Post by: iPhoneDestek on September 06, 2010, 06:49:05 PM
modificatıons.turkish.php Turkish translation added it but did not happen. Add modification.english.php but I worked in the Turkish language. What could be the reason
Title: Re: 'Read the Rules' Link Above Post Button
Post by: Depreciated on September 06, 2010, 06:52:27 PM
Quote from: ®SirtLan on September 06, 2010, 06:49:05 PM
modificatıons.turkish.php Turkish translation added it but did not happen. Add modification.english.php but I worked in the Turkish language. What could be the reason

sorry could you explain a little better what the problem is?
Title: Re: 'Read the Rules' Link Above Post Button
Post by: iPhoneDestek on September 06, 2010, 07:08:20 PM
in Turkish translation into modification.turkisch.php not functional. need to replace the English with Turkish translation into modification.english.php
Title: Re: 'Read the Rules' Link Above Post Button
Post by: Depreciated on September 06, 2010, 07:15:53 PM
mod updated please try and see if this fixes your problem
Title: Re: 'Read the Rules' Link Above Post Button
Post by: iPhoneDestek on September 06, 2010, 07:32:59 PM
error message when modification.turkisch.php. is no error in the translation, the modification of multi-language
Title: Re: 'Read the Rules' Link Above Post Button
Post by: Depreciated on September 06, 2010, 07:36:31 PM
Quote from: ®SirtLan on September 06, 2010, 07:32:59 PM
error message when modification.turkisch.php. is no error in the translation, the modification of multi-language

sorry but i'm lost :-\

really not sure what you talking about sorry :-\
Title: Re: 'Read the Rules' Link Above Post Button
Post by: KensonPlays on September 07, 2010, 02:37:12 AM
paulpbaker: could you integrate support with "the rules" mod if thats installed it will take you there? if not thats ok...
Title: Re: 'Read the Rules' Link Above Post Button
Post by: Depreciated on September 07, 2010, 02:52:43 AM
Quote from: Kcmartz on September 07, 2010, 02:37:12 AM
paulpbaker: could you integrate support with "the rules" mod if thats installed it will take you there? if not thats ok...

that was the original intention of this mod and is exactly what v1 was but smf don't allow mod that depend on (or are add-ons) for other mods so i had to make it selectable/changeable

so yeah just change the option in your admin cp to 'rules'
Title: Re: 'Read the Rules' Link Above Post Button
Post by: iPhoneDestek on September 27, 2010, 06:08:25 AM
NEW Translation by MOD Translator SirtLanVadisi in turkish and turkish-utf8 languages






<file name="$themedir/languages/Modifications.turkish.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Read the Rules MOD Translation by SirtLanVadisi.NeT
$txt['read_the_rules_text1'] = '<b>Lütfen';
$txt['read_the_rules_text2'] = 'Board Kurallarını</b>';
$txt['read_the_rules_text3'] = 'Yeni Konu açmadan önçe mutlaka okuyalım!</b>';
$txt['read_the_rules_enable'] = 'Board Kuralları Oku aktif';
$txt['read_the_rules_link'] = 'Kuralları Oku Mod linki';
$txt['read_the_rules_link_text'] = 'Default is index.php?action=help but this can be any link you like.';
// END Read the Rules MOD Translation by SirtLanVadisi.NeT
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.turkish-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Read the Rules MOD Translation by SirtLanVadisi.NeT
$txt['read_the_rules_text1'] = '<b>Lütfen';
$txt['read_the_rules_text2'] = 'Board Kurallarını</b>';
$txt['read_the_rules_text3'] = 'Yeni Konu açmadan önçe mutlaka okuyalım!</b>';
$txt['read_the_rules_enable'] = 'Board Kuralları Oku aktif';
$txt['read_the_rules_link'] = 'Kuralları Oku Mod linki';
$txt['read_the_rules_link_text'] = 'Default is index.php?action=help but this can be any link you like.';
// END Read the Rules MOD Translation by SirtLanVadisi.NeT
]]></add>
</operation>
</file>




Translation by MOD Translator SirtLanVadisi in german and german-utf8 languages






<file name="$themedir/languages/Modifications.german.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Read the Rules MOD Translation by SirtLanVadisi.NeT
$txt['read_the_rules_text1'] = '<b>Befor Sie';
$txt['read_the_rules_text2'] = 'einen neuen Thema öffnen,</b>';
$txt['read_the_rules_text3'] = 'bitte unbedingt den Allgemeinen Boardregeln lesen!</b>';
$txt['read_the_rules_enable'] = 'Allgemeine Boardregeln aktiv';
$txt['read_the_rules_link'] = 'Allgemeine Boardregeln Link';
$txt['read_the_rules_link_text'] = 'Default is index.php?action=help but this can be any link you like.';
// END Read the Rules MOD Translation by SirtLanVadisi.NeT
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.german-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Read the Rules MOD Translation by SirtLanVadisi.NeT
$txt['read_the_rules_text1'] = '<b>Befor Sie';
$txt['read_the_rules_text2'] = 'einen neuen Thema öffnen,</b>';
$txt['read_the_rules_text3'] = 'bitte unbedingt den Allgemeinen Boardregeln lesen!</b>';
$txt['read_the_rules_enable'] = 'Allgemeine Boardregeln aktiv';
$txt['read_the_rules_link'] = 'Allgemeine Boardregeln Link';
$txt['read_the_rules_link_text'] = 'Default is index.php?action=help but this can be any link you like.';
// END Read the Rules MOD Translation by SirtLanVadisi.NeT
]]></add>
</operation>
</file>

Title: Re: 'Read the Rules' Link Above Post Button
Post by: Depreciated on September 27, 2010, 06:14:01 AM
mod updated thank you
Title: Re: 'Read the Rules' Link Above Post Button
Post by: iPhoneDestek on September 27, 2010, 06:18:17 AM
hello paul,
I have turkish and in German and translated
Title: Re: 'Read the Rules' Link Above Post Button
Post by: Apllicmz on November 10, 2010, 11:09:53 AM
when Update

portuguese

<file name="$themedir/languages/Modifications.portuguese_pt.php" error="skip">
    <operation>
        <search position="end" />
            <add><![CDATA[
// Read the Rules Link Above Post Button Mod
$txt['read_the_rules_text1'] = '<b>Por favor, leia as';
$txt['read_the_rules_text2'] = 'As regras</b>';
$txt['read_the_rules_text3'] = 'Antes de postar!</b>';
$txt['read_the_rules_enable'] = 'Activar e Ler as regras acima Link do bot&atilde;o no Poste';
$txt['read_the_rules_link'] = 'Link para ler as Regras Mod';
$txt['read_the_rules_link_text'] = 'Por Defeito e index.php?action=help mas isso pode ser qualquer link que voc&ecirc; gosta.';
// Read the Rules Link Above Post Button Mod
]]></add>
    </operation>
    </file>   
   
<file name="$themedir/languages/Modifications.portuguese_pt-utf8.php" error="skip">
    <operation>
        <search position="end" />
            <add><![CDATA[
// Read the Rules Link Above Post Button Mod
$txt['read_the_rules_text1'] = '<b>Por favor, leia as';
$txt['read_the_rules_text2'] = 'As regras</b>';
$txt['read_the_rules_text3'] = 'Antes de postar!</b>';
$txt['read_the_rules_enable'] = 'Activar e Ler as regras acima Link do bot&atilde;o no Poste';
$txt['read_the_rules_link'] = 'Link para ler as Regras Mod';
$txt['read_the_rules_link_text'] = 'Por Defeito e index.php?action=help mas isso pode ser qualquer link que voc&ecirc; gosta.';
// Read the Rules Link Above Post Button Mod
]]></add>
    </operation>
    </file>   
   
Title: Re: 'Read the Rules' Link Above Post Button
Post by: Depreciated on November 10, 2010, 11:22:42 AM
thank you very much Joomlamz :)
Title: Re: 'Read the Rules' Link Above Post Button
Post by: Subject13 on November 10, 2010, 09:39:53 PM
I have an issue. I am using SMF 1.1.12 with the following mods:


1.    Remove Reply Prefix    1.0    [ Uninstall ] [ List Files ] [ Delete ]
2.    Ultimate Profile    0.9.1    [ Uninstall ] [ List Files ] [ Delete ]
3.    Favicon    1.3    [ List Files ] [ Delete ]
4.    YouTube BBCode    2.6    [ Uninstall ] [ List Files ] [ Delete ]
5.    Aeva Media    1.4    [ Uninstall ] [ List Files ] [ Delete ]
6.    Advanced Login Form    1.2    [ Uninstall ] [ List Files ] [ Delete ]
7.    'Read the Rules' Link Above Post Button    2.0    [ Uninstall ] [ List Files ] [ Delete ]
8.    Spoiler BBCode    1.1.3    [ Uninstall ] [ List Files ] [ Delete ]
9.    Increase/Decrease Postbox Size    1.0    [ Uninstall ] [ List Files ] [ Delete ]
10.    Subject length on Board Index    1.1    [ List Files ] [ Delete ]

I had no problem installing it, but its not showing the text or anything at all?
Title: Re: 'Read the Rules' Link Above Post Button
Post by: Depreciated on November 10, 2010, 09:44:40 PM
looks like it's a problem with your theme... can you confirm this by selecting the text there as i believe it's just showing up but as black text?
Title: Re: 'Read the Rules' Link Above Post Button
Post by: Subject13 on November 10, 2010, 09:48:07 PM
No nothing is showing up in that area, not even by selecting all to see if it was invisible. But there is nothing there, any help with that?
Title: Re: 'Read the Rules' Link Above Post Button
Post by: Depreciated on November 10, 2010, 09:55:51 PM
Quote from: Subject13 on November 10, 2010, 09:48:07 PM
No nothing is showing up in that area, not even by selecting all to see if it was invisible. But there is nothing there, any help with that?

just tested this on v1.1.12 and it's working fine:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg259.imageshack.us%2Fimg259%2F1148%2Fcaptureiyz.jpg&hash=422e6757c8d3d3f7edae2c746b176285e3e26c5c)

my guess is that is something to do wit hyour theme and i can't offer support for any/all themes sorry :-\
Title: Re: 'Read the Rules' Link Above Post Button
Post by: vkot on December 31, 2010, 12:49:42 PM
Can you add the feature to select the boards where the link will be shown?
And then, the feature to define a different link (and maybe link text) for each selected board?

I wrote the greek translation, if you find it useful:
<file name="$themedir/languages/Modifications.greek.php">
<operation>
<search position="end" />
<add><![CDATA[
// Read the Rules Link Above Post Button Mod
$txt['read_the_rules_text1'] = '<b>Παρακαλούμε διαβάστε';
$txt['read_the_rules_text2'] = 'τους κανονισμούς</b>';
$txt['read_the_rules_text3'] = 'πριν την αποστολή!</b>';
$txt['read_the_rules_enable'] = 'Ενεργοποίηση συνδέσμου Read the Rules πάνω από το κουμπί Αποστολή';
$txt['read_the_rules_link'] = 'Σύνδεσμος για το Read the Rules Mod';
$txt['read_the_rules_link_text'] = 'Ο προκαθορισμένος είναι index.php?action=help αλλά μπορεί να είναι οποιοσδήποτε σύνδεσμος επιθυμείτε.';
// Read the Rules Link Above Post Button Mod
]]></add>
</operation>
</file>
Title: Re: 'Read the Rules' Link Above Post Button
Post by: Kindred on December 31, 2010, 02:48:58 PM
In the 1.1.x series, you will have to manually add ANY mod into all themes other than the default
Title: Re: 'Read the Rules' Link Above Post Button
Post by: impreza on January 02, 2011, 10:01:04 AM
Useful, thank you. I'm starting to try to
Title: Re: 'Read the Rules' Link Above Post Button
Post by: mariusfv on April 22, 2011, 02:12:59 PM
I like the mod, but I think you can make it more flexible, to be possible to be excluded administrators and global moderators and maybe hero members, as you say in your description: "for n00bs", I think administrators, global moderators and respectable users like hero members(>500 posts) aren't n00bs and can be excluded for showing the 'post rules'.

nice job!
Title: Re: 'Read the Rules' Link Above Post Button
Post by: Depreciated on June 13, 2011, 08:44:52 PM
mod updated for smf 2.0 final
Title: Re: 'Read the Rules' Link Above Post Button
Post by: Siirist on June 28, 2011, 09:07:08 PM
Quote from: mariusfv on April 22, 2011, 02:12:59 PM
I like the mod, but I think you can make it more flexible, to be possible to be excluded administrators and global moderators and maybe hero members, as you say in your description: "for n00bs", I think administrators, global moderators and respectable users like hero members(>500 posts) aren't n00bs and can be excluded for showing the 'post rules'.

nice job!

Hi,

I agree, YET, I understand that the above can be um, "challenging?".
My thought, I believe, to be considerably simpler, ie, can you tell me (us, the other users of this mod) how to change the wording from:

"Please read the rules before you post." to
"Please remember the rules and guidelines before you post."
I await your reply.

Sincerely,
Cloud  8)
Title: Re: 'Read the Rules' Link Above Post Button
Post by: Kindred on June 29, 2011, 07:30:48 AM
Change the Text string in modifications.English.php
Title: Re: 'Read the Rules' Link Above Post Button
Post by: Siirist on June 29, 2011, 10:30:09 AM
Quote from: Kindred on June 29, 2011, 07:30:48 AM
Change the Text string in modifications.English.php

Hi Kindred,

AWESOME!!! ;D  Thanks for knowing so much.  :D

Will go do that now and post the results.  ;)

Thanks again,
Cloud  8)


UPDATE:
Functions perfectly.  Thank you again, Cloud
Title: Re: 'Read the Rules' Link Above Post Button
Post by: eric1234 on March 20, 2012, 11:39:20 AM
I searching up and down still dunno where to change the link to my own rules
Title: Re: 'Read the Rules' Link Above Post Button
Post by: dreamfox on May 03, 2012, 12:40:37 PM
Hi,

How can i NOT display the icon before the text?
I dont want to show the icon in the rules
Title: Re: 'Read the Rules' Link Above Post Button
Post by: nevsutt on October 17, 2012, 07:37:51 PM
Where is the text for this
Title: Re: 'Read the Rules' Link Above Post Button
Post by: nevsutt on October 18, 2012, 04:08:44 PM
Anyone
What file has is the rules text
Title: Re: 'Read the Rules' Link Above Post Button
Post by: Kindred on October 18, 2012, 04:59:14 PM
I believe it is in the database... not a file.
Title: Re: 'Read the Rules' Link Above Post Button
Post by: nevsutt on October 18, 2012, 08:25:40 PM
That makes sense as to why I couldn't find it

Now how do I modify it ?
Title: Re: 'Read the Rules' Link Above Post Button
Post by: Kindred on October 18, 2012, 09:10:32 PM
Iirc, here is a field in SMF admin, under mod settings
Title: Re: 'Read the Rules' Link Above Post Button
Post by: nevsutt on October 19, 2012, 07:08:59 PM
Nope
Title: Re: 'Read the Rules' Link Above Post Button
Post by: Kindred on October 19, 2012, 07:35:32 PM
actually, re-reading the mod you enter the URL of the rules page....   it defaults to the action=help page.

So, you would have to use a mod to create another page under your forum and input the url into the settings
Title: Re: 'Read the Rules' Link Above Post Button
Post by: nevsutt on October 20, 2012, 09:35:49 PM
Can you explain how to do this?
Title: Re: 'Read the Rules' Link Above Post Button
Post by: Kindred on October 20, 2012, 10:02:05 PM
well, the admin field should be obvious...
See the mod page, final image
http://custom.simplemachines.org/mods/index.php?mod=2696

as for adding another page... there are literally dozens of mods that do this. Find one that you like and use that
Title: Re: 'Read the Rules' Link Above Post Button
Post by: puw on March 11, 2013, 08:41:48 AM
Hi, with 2.0.4, this fails the default theme. Any advice pls?
Title: Re: 'Read the Rules' Link Above Post Button
Post by: Kindred on March 11, 2013, 09:08:29 AM
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: 'Read the Rules' Link Above Post Button
Post by: puw on March 11, 2013, 10:07:43 AM
Nice 1 kindred - thank you
Title: Re: 'Read the Rules' Link Above Post Button
Post by: SaltedWeb on February 26, 2015, 08:36:43 PM
I remember this Mod having a place to replace the link, but so far no luck finding it.

Was a 403 hiding it found it never mind :)
Title: Re: 'Read the Rules' Link Above Post Button
Post by: Adonix on September 28, 2015, 11:41:23 PM
Mod upgrade requested with extra feature to give links of rules page for different zones and not only just one rule page link which is done by this module presently. Or kindly tell me any similar mod which will make my work :)
Title: Re: 'Read the Rules' Link Above Post Button
Post by: pikeman on February 13, 2022, 07:33:57 AM
Hello, is a modification for 2.1 planned?