News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

The Rules

Started by Deprecated, August 25, 2008, 05:42:14 PM

Previous topic - Next topic

Ghozt64

Looks like a great mod, unfortunately it doesn't work with the Hasan theme. How do I remedy this?

Sabre™

This will make it visible for all in the Hasan theme

Search for this in your index.template.php
// Show the [help] button.
echo '<li', $current_action == 'help' ? ' id="active"' : '', '><a href="', $scripturl, '?action=help">' , $txt[119] , '</a></li>';


and add this directly after it, or where you feel you would like to
    // Show the [rules] button.
echo '<li', $current_action == 'rules' ? ' id="active"' : '', '><a href="', $scripturl, '?action=rules">' , $txt['rules_title_rules'] , '</a></li>';
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Ghozt64

Thanks a million  :D

LHW

Just wanted to say thanks for a nice Mod.  We love the 3-in-1 page idea!

Thanks!  :D


Gladman


Kat9119

Easy way to make this for 1.1.9?

LHW

It installed fine on our board, and we're running v1.1.9.


Kat9119

Quote from: Lord High Warlock on July 07, 2009, 12:12:19 PM
It installed fine on our board, and we're running v1.1.9.

Great, I'll have to give it a try..thank you for responding so quickly!

MATTEK

Love this mod. There is now NO excuse as to why they didn't see the rules.
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

MrCreatoR

Thanx for the mod, very nice.

I made a russian translation (russian-utf8):

$txt['the_rules_not_configured'] = 'Эта опция ещё не установлена администратором';
$txt['agreement'] = 'Соглашение';
$txt['rules_enable_guest_access'] = 'Включить доступ гостям:';
$txt['rules_enable_member_access'] = 'Включить доступ участникам:';
$txt['the_rules_display_name'] = 'Отображаемое имя страницы с правилами:';
$txt['the_rules_agreement_display_name'] = 'Отображаемое имя страницы с соглашением:';
$txt['mods_cat_rules'] = 'The Rules';
$txt['rules'] = 'Правила';
$txt['rules_tab_label'] = 'Имя вкладки "Rules":';
$txt['rules_title']='The Rules';
$txt['rules_title_rules'] = 'Правила';
$txt['the_rules_text'] = 'Текст для отображения:';
$txt['additional'] = 'Дополнительно';
$txt['the_rules_additional_display_name'] = 'Отображаемое имя дополнительной страницы:';
$txt['the_rules_additional_text'] = 'Дополнительный текст для отображения:';
$txt['the_rules_enable_additional'] = 'Включить отображение дополнительной страницы:';
$txt['rules_title_additional'] = 'Дополнительно';
$txt['rules_title_agreement'] = 'Соглашение';
$txt['the_rules_enable_agreement'] = 'Включить отображение страницы agreement.txt:';
$txt['the_rules_edit_name'] = 'Править agreement.txt';

dwaned

Hi all and thanks for a great Mod.

I had the mod working fine and today decided to try a new theme ...not so good. Anyway back to smf 1.1.10 using the default core theme.
The problem I'm having with 'The Rules' mod is that this txt
'$txt['the_rules_not_configured'] = 'This feature has not yet been configured by the administrator.'; $txt['agreement'] = 'Agreement'; $txt['rules_enable_guest_access'] = 'Enable guest access:'; $txt['rules_enable_member_access'] = 'Enable member access:'; $txt['the_rules_display_name'] = 'Display name of rules page:'; $txt['the_rules_agreement_display_name'] = 'Display name of agreement page:'; $txt['mods_cat_rules'] = 'The Rules'; $txt['rules'] = 'Rules'; $txt['rules_tab_label'] = 'Rules tab label:'; $txt['rules_title']='The Rules'; $txt['rules_title_rules'] = 'Rules'; $txt['the_rules_text'] = 'Text to display:'; $txt['additional'] = 'Additional'; $txt['the_rules_additional_display_name'] = 'Display name of additional page:'; $txt['the_rules_additional_text'] = 'Additional text to display:'; $txt['the_rules_enable_additional'] = 'Enable display of additional page:'; $txt['rules_title_additional'] = 'Additional'; $txt['rules_title_agreement'] = 'Agreement'; $txt['the_rules_enable_agreement'] = 'Enable display of agreement.txt page:'; $txt['the_rules_edit_name'] = 'Edit agreement.txt';'

is showing on the top of the page above the top line of the Forum. The Rules button lists and is fine however the options button under Features and Options does not show.
Hope you can help me out and again thank your for a great mod.

Sabre™

Go into your  Modifications.english.php  in your languages folder, and search for  ?>
Move that to the bottom of the template, as you will see that it is placed before this line at the moment
$txt['the_rules_not_configured'] = 'This feature has not yet been configured by the administrator.';

This also applies if your are using Modifications.english-utf8.php  or another language.
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


dwaned

Sabre  O:),
Thank you so much! Worked perfect.
DwaneD

Sabre™

My pleasure DwaneD.
Enjoy :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


d0brin

can you make it to work with smf 1.1.10 ?

Costa

this mod works in SMF 1.1.10
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

d0brin


ɔɔɔɔɔɔuɥoɾ

Hi, nice mod.

I installed the mod, it seems to have worked, there were no errors and the extra tab was added fine too


also, Im getting an error on the admin section too:


I get this error in the config area area though

function ModifyRulesSettings($return_config = false) { global $txt, $scripturl, $context, $settings, $sc; $config_vars = array( array('check', 'rules_enable_guest_access'), array('check', 'rules_enable_member_access'), array('text', 'rules_tab_label', '20'), '', array('text', 'the_rules_display_name', '20'), array('large_text', 'the_rules_text', '12'), '', array('check', 'the_rules_enable_agreement'), array('text', 'the_rules_agreement_display_name', '20', 'postinput' => $txt['the_rules_edit_agreement_pre_html'] . $scripturl . '?action=admin;area=regcenter;sa=agreement">' . $txt['the_rules_edit_name'] . $txt['the_rules_edit_agreement_post_html']), '', array('check', 'the_rules_enable_additional'), array('text', 'the_rules_additional_display_name', '20'), array('large_text', 'the_rules_additional_text', '12'), ); if ($return_config) return $config_vars; if (isset($_GET['save'])) { checkSession(); saveDBSettings($config_vars); writeLog(); redirectexit('action=admin;area=modsettings;sa=rules'); } $context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=rules'; $context['settings_title'] = $txt['rules_title']; prepareDBSettingContext($config_vars); }
Fatal error: Call to undefined function: modifyrulessettings() in /home/reque4/public_html/Sources/ManageSettings.php on line 212


Any Ideas?


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Sabre™

1.) Attach your themes index.template.php to fix the button.
2.) Go to  Admin -> Configuration -> Modifications -> The Rules  to set it up.
3.) Look for ?> in your ManageSettings.php and move it to the bottom of the template.
It will be located just before this line at the moment:
function ModifyRulesSettings($return_config = false)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


ɔɔɔɔɔɔuɥoɾ

#299
Quote from: Sabre™ on September 29, 2009, 08:43:04 PM
1.) Attach your themes index.template.php to fix the button.
2.) Go to  Admin -> Configuration -> Modifications -> The Rules  to set it up.
3.) Look for ?> in your ManageSettings.php and move it to the bottom of the template.
It will be located just before this line at the moment:
function ModifyRulesSettings($return_config = false)

There is nothing wrong with the button, it works, I just cant edit the config to assign a link/topic to the button.

So, I need to edit managersettings.php?

so lookm for ?> in that file and move it right to the bottom?

EDIT,

Fixed!

I think I know how this happened, the find and replace system should have probably been, Find ?> add before lol..


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Advertisement: