[RC] Rules Page Advanced

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
User avatar
Dakin Quelia
Registered User
Posts: 300
Joined: Thu Feb 14, 2008 10:07 pm
Location: Belgium
Name: Daniel Chalsèche
Contact:

[RC] Rules Page Advanced

Post by Dakin Quelia »

Modification Name: Rules Page Advanced
Author: Dakin Quelia

Modification Description:: Add a rules page on your forum. You can manage this page in ACP.
Modification Version:: 1.0.3

Requirements: None

Features:
  • Activate/desactivate print function
  • Activate/desactivate notify errors function
  • Set mail to receive the notifications
  • Write Rules (with BBCodes)
Screenshots:
  • Image Image Image
Demo URL: None
Demo Username: None
Demo Password: None

Modification Download: Rules Page Mod
Last edited by Dakin Quelia on Fri Oct 16, 2009 1:25 pm, edited 4 times in total.
User avatar
imkingdavid
Former Team Member
Posts: 2673
Joined: Sun Jul 26, 2009 7:59 pm
Location: EST
Name: David King

Re: [RC] Rules Pages

Post by imkingdavid »

Looks good. I'll test it out some time and let you know how it runs. ;)
Don't forget to smile today. :)
Please do NOT contact for support via PM or email.
User avatar
Ashley.S.
Registered User
Posts: 469
Joined: Mon Aug 04, 2008 6:01 pm
Location: Falmouth, Cornwall, UK
Name: Ashley .S.
Contact:

Re: [RC] Rules Pages

Post by Ashley.S. »

looks nice, might have to try it out
Regards,
-Ashley.S. [ PurephpBB Founder ]
User avatar
imkingdavid
Former Team Member
Posts: 2673
Joined: Sun Jul 26, 2009 7:59 pm
Location: EST
Name: David King

Re: [RC] Rules Pages

Post by imkingdavid »

The MOD installed successfully via AutoMOD. However, I have gotten a few issues beyond that.
List of things to fix:
  • Move the fr.xml file to the contrib/ folder or else AutoMOD displays two identical MODs to be installed (although I'm assuming that one is the french translation--even still translations belong in the contrib/ folder).
  • In ACP Rules settings module, there is an undefined language variable ACP_RULES_SETTINGS_EXPLAIN, so if phpBB's debug is on, I can't view the page past that error. I have added my own definition of that variable to the language/en/acp/rules.php language file but you should make your own.
  • I am also getting following error in that module:
    [phpBB Debug] PHP Notice: in file /adm/index.php on line 291: Undefined index: rules_enable
    [phpBB Debug] PHP Notice: in file /adm/index.php on line 292: Undefined index: rules_enable
    [phpBB Debug] PHP Notice: in file /adm/index.php on line 291: Undefined index: rules_print_enable
    [phpBB Debug] PHP Notice: in file /adm/index.php on line 292: Undefined index: rules_print_enable
    [phpBB Debug] PHP Notice: in file /adm/index.php on line 291: Undefined index: rules_notify_enable
    [phpBB Debug] PHP Notice: in file /adm/index.php on line 292: Undefined index: rules_notify_enable
    [phpBB Debug] PHP Notice: in file /adm/index.php on line 273: Undefined index: rules_mail
    Which means that for whatever reason, those variables are not getting set.
List of feature requests:
  • Rule categories
  • UMIL installer (so I don't have to manually add modules, permissions, and SQL.
I have uninstalled the MOD until the above error is fixed.
I may add to either list above in a new post later as I find new problems or think of other features.
Don't forget to smile today. :)
Please do NOT contact for support via PM or email.
User avatar
Dakin Quelia
Registered User
Posts: 300
Joined: Thu Feb 14, 2008 10:07 pm
Location: Belgium
Name: Daniel Chalsèche
Contact:

Re: [RC] Rules Pages

Post by Dakin Quelia »

Thanks imkingdavid. :)

For features, thank you but it's a simple mod (maybe later). I don't want use UMIL (I don't undersant it) for some reasons. I prefer only MODX format. :)

Updated package. ;)
User avatar
imkingdavid
Former Team Member
Posts: 2673
Joined: Sun Jul 26, 2009 7:59 pm
Location: EST
Name: David King

Re: [RC] Rules Pages

Post by imkingdavid »

You're welcome.

And that's alright. The features are just a matter of preference, so it should work just fine how it is. :)

I'll try the updated files out when I get the time. ;)
Don't forget to smile today. :)
Please do NOT contact for support via PM or email.
User avatar
Dakin Quelia
Registered User
Posts: 300
Joined: Thu Feb 14, 2008 10:07 pm
Location: Belgium
Name: Daniel Chalsèche
Contact:

Re: [RC] Rules Pages

Post by Dakin Quelia »

In this package I added the Prosilver Modifications to add a link in header and updated French Translation. :)

Updated package. ;)
User avatar
imkingdavid
Former Team Member
Posts: 2673
Joined: Sun Jul 26, 2009 7:59 pm
Location: EST
Name: David King

Re: [RC] Rules Pages

Post by imkingdavid »

I tried installing again, and I am still recieving the following error:
[phpBB Debug] PHP Notice: in file /adm/index.php on line 291: Undefined index: rules_enable
[phpBB Debug] PHP Notice: in file /adm/index.php on line 292: Undefined index: rules_enable
It seems you forgot to add the rules_enable value to the SQL inserts in the .xml file. Or something. I will try adding it manually and see if it works.

EDIT: Well, looking at the .xml file, it's there. Not sure why it didn't add it using automod, but it added the others. Anyway, I added it manually and it works fine. :)
Don't forget to smile today. :)
Please do NOT contact for support via PM or email.
User avatar
imkingdavid
Former Team Member
Posts: 2673
Joined: Sun Jul 26, 2009 7:59 pm
Location: EST
Name: David King

Re: [RC] Rules Pages

Post by imkingdavid »

Also, the Rules link in the header simply links back to the index page. I'll change it manually to link to the rules page, but I thought I'd let you know. ;)
Don't forget to smile today. :)
Please do NOT contact for support via PM or email.
User avatar
Dakin Quelia
Registered User
Posts: 300
Joined: Thu Feb 14, 2008 10:07 pm
Location: Belgium
Name: Daniel Chalsèche
Contact:

Re: [RC] Rules Pages

Post by Dakin Quelia »

For the error, I don't knw why. I don't have errors. :?

Here are Forum demo

Oops, for the link. Mea culpa. :oops:

Updated package.
User avatar
imkingdavid
Former Team Member
Posts: 2673
Joined: Sun Jul 26, 2009 7:59 pm
Location: EST
Name: David King

Re: [RC] Rules Pages

Post by imkingdavid »

The error is in the ACP module for the Rules Settings module. The Rules write module works fine and the rules page itself works fine. As I said, I manually created the row and it worked fine then. Not sure why it did all of the other config entries except that one. They're all correct in the xml file unless I missed something.
Don't forget to smile today. :)
Please do NOT contact for support via PM or email.
User avatar
Dakin Quelia
Registered User
Posts: 300
Joined: Thu Feb 14, 2008 10:07 pm
Location: Belgium
Name: Daniel Chalsèche
Contact:

Re: [RC] Rules Pages

Post by Dakin Quelia »

I don't understand the functionning of AutoMod. :?
User avatar
DoYouSpeakWak
Registered User
Posts: 2310
Joined: Fri Jul 25, 2008 1:32 pm
Location: Island of Wak-Wak
Contact:

Re: [RC] Rules Pages

Post by DoYouSpeakWak »

Dakin Quelia wrote:I don't understand the functionning of AutoMod. :?
Its not that complicated. Start with making the install file file finds and edits listed alphabetically that should make it work unless there are other problems.
Whatever you share comes back. Support the phpBB Communities
My Validated and Released Modifications
Offering paid services. 10+ years of experience with phpBB3 and as System Administrator.
User avatar
Dakin Quelia
Registered User
Posts: 300
Joined: Thu Feb 14, 2008 10:07 pm
Location: Belgium
Name: Daniel Chalsèche
Contact:

Re: [RC] Rules Pages

Post by Dakin Quelia »

Indeed, it isn't. ;)

I don't want compatibility with AutoMod (for moment). Sorry. ;)

ps: Updated Package. Thanks DoYouSpeakWak. ;)
Huchinotte
Registered User
Posts: 13
Joined: Sat Jan 05, 2008 11:35 am

Re: [RC] Rules Pages

Post by Huchinotte »

Hi ..........

is there only BBCode or can i try html also?

Gruß Huch
Locked

Return to “[3.0.x] MODs in Development”