Jump to content

New Topic Rules


Recommended Posts

Posted

About This File

This plugin will create a specific rule for the forums you want, so users of specific groups, set by the administrator, must agree before they are able to create topics.

Global Settings:

  • Number of days to expire the cookie
  • Cookie prefix. If you want everybody to agree again to your rules, just change the cookie prefix

Per Forum Settings:

  • Enable the plugin in the forum
  • Message style: option to choose between 4 predefined styles
  • Groups that will be required to agree to the rules
  • Rule Content

The rule content is translatable, which means that you can use a specific message for each language you have installed on your board.

 

  • 2 months later...
Posted (edited)

Good day, @Adriano Faria

I download and install New Topic Rules plugin.

When i try disable forum rules system show error: 

EX1054 Something went wrong. Please try again.

UPDATE `ibf2_forums_forums` forums_forums  SET `skin_id`='0',`can_view_others`=true,`permission_showtopic`=false,`show_rules`='2',`forum_allow_rating`=true,`disable_sharelinks`=false,`inc_postcount`=true,`allow_poll`=true,`topicrules_onoff`=false,`topicrules_texto`=NULL,`sub_can_post`=NULL,`redirect_on`=true WHERE id=false 
IPS\Db\Exception: Unknown column 'topicrules_texto' in 'field list' (1054)
#0 /system/Db/Db.php(836): IPS\_Db->preparedQuery('UPDATE `ibf2_fo...', Array)
#1 /system/Patterns/ActiveRecord.php(460): IPS\_Db->update('forums_forums', Array, Array)
#2 /system/Node/Model.php(1974): IPS\Patterns\_ActiveRecord->save()
#3 /system/Node/Model.php(2613): IPS\Node\_Model->save()
#4 /system/Node/Controller.php(376): IPS\Node\_Model->saveForm(Array)
#5 /applications/forums/modules/admin/forums/forums.php(124): IPS\Node\_Controller->form()
#6 [internal function]: IPS\forums\modules\admin\forums\_forums->form()
#7 /system/Dispatcher/Controller.php(85): call_user_func(Array)
#8 /system/Node/Controller.php(63): IPS\Dispatcher\_Controller->execute()
#9 /applications/forums/modules/admin/forums/forums.php(40): IPS\Node\_Controller->execute()
#10 /system/Dispatcher/Dispatcher.php(129): IPS\forums\modules\admin\forums\_forums->execute()
#11 /control/index.php(13): IPS\_Dispatcher->run()
#12 {main}

* i copy current settings from other forum branch.

What i need todo to fix it?

Edited by klierik
Posted
IPS\Db\Exception: Unknown column 'topicrules_texto' in 'field list' (1054)

This happened on my dev install and thought I uploaded the fix. Sorry. Give one hour max and I'll upload the fix.

Disable the plugin in the meantime.

Posted (edited)

Thank you ^_^

Also i defined that front-end notification don't support HTML-format, for example text bold (test is in Russian lang, but don't care).

Text format in AdminCP:
Изменение раздела: Проблемы верстки 2016-05-02 15-25-46.png

So as you can see i make some word bold and that what get on front-end:

Правила Новой Темы - htmlforum для разработчиков 2016-05-02 15-25-24.png

Edited by klierik
Posted
47 minutes ago, klierik said:

Thank you ^_^

Also i defined that front-end notification don't support HTML-format, for example text bold (test is in Russian lang, but don't care).

Text format in AdminCP:
Изменение раздела: Проблемы верстки 2016-05-02 15-25-46.png

So as you can see i make some word bold and that what get on front-end:

Правила Новой Темы - htmlforum для разработчиков 2016-05-02 15-25-24.png

Not sure I follow this. Are you saying that the format you used on ACP isn't showing on front end ? If so, works for me:

Capturar.png

Capturar.png

Posted

Yes, it is true... i recheck and get the same. Maybe something i've done wrong before.

Also i try copy settings to other branch and get

 Forums 2016-05-02 16-40-25.png

like infinity loading... never finish

Posted
8 minutes ago, klierik said:

Also i try copy settings to other branch and get

like infinity loading... never finish

Not sure... works fine for me too: http://www.screencast.com/t/Gayet727

Maybe because of the error you posted before... as it ajaxed, the output wasn't throwing the error.

I will update the file here on IPS. Give it a try.

What's New in Version 4.0.1:

  • Fixed error when disabling the rules in a forum
Posted
16 minutes ago, klierik said:

Now disable work fine. Thanks. 

But redirect don't work. And "Copy" feature too... Video: http://take.ms/4FcnX

How can i help you the define why this happened?

I guess you are kinda confused on how COPY SETTINGS works. Your video shows clearly you copying the Enable New Topic Rules setting for other category. All it does it copy THAT setting to the selected categories, not the ENTIRE form.

To make sure, I have made a quick test on DOWNLOADS and FORUMS and made a quick video on FORUMS. Same behaviour: http://www.screencast.com/t/52JYbKgULTB

Btw, the COPY SETTING feature does not appear to Editor fields.

  • 1 month later...
  • 2 months later...
  • 2 months later...
Posted (edited)

Hi,

Could be possible to display rules directly before the new topic form (with and without checkbox) ? And without cookie (I would like to display rules all the time) ?

Edited by Li3D
Posted

I bought the plugin to customize the page of writing a new topic :s

Is it possible to display it directly on the form page ?

Is it possible to disable cookie (I want to display the message for every new topic) ?

Posted
2 minutes ago, Li3D said:

I bought the plugin to customize the page of writing a new topic :s

Well, the description is pretty clear:

On 08/02/2016 at 6:39 PM, Adriano Faria said:

This plugin will create a specific rule for the forums you want, so users of specific groups, set by the administrator, must agree before they are able to create topics.

If you had doubt, you could ask before you buy.

3 minutes ago, Li3D said:

Is it possible to display it directly on the form page ?

No.

3 minutes ago, Li3D said:

Is it possible to disable cookie (I want to display the message for every new topic) ?

No, minimum days is 1.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...