Jump to content

New Topic Rules


Adriano Faria
 Share

Recommended Posts

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.

 

Link to comment
Share on other sites

  • 2 months later...

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...
  • 2 months later...
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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