Jump to content

New Topic Rules

Featured Replies

9 minutes ago, Adriano Faria said:

Well, the description is pretty clear:

On 08/02/2016 at 9: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.

You could do that on main form page :p

6 minutes ago, Adriano Faria said:

You can ask of course... I just don't have any ETA now. Working in other things.

OK, here it is :p

Would be nice if we can display rule content directly in the topic with optionnal mandatory checkbox and for every topic (without cookie).

Thank You !

EDIT : I know this is the New Topic Rules but for me those rules apply to new responses too. Would be great if they were diplayed before the response form too :)

Edited by Li3D

  • Replies 103
  • Views 11.9k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Andrzej Pindor
    Andrzej Pindor

    Hi, css from your plugin breaks default IPS styles: You must adjust padding in this style: I had to add this to my custom.css: to display correctly

  • Sounds good.  Let me know if they fix it.  I can't access the dev forum and the release notes are well - not so informative.

  • Adriano Faria
    Adriano Faria

    That's exacly what it does. Take a look in the last screenshot.

Posted Images

Re,

I have a lot of sub-forums, I would like to have a template system in order to modify them in mass :)

  • Author

Not possible. It doesn't use a template and you need to enable it per forum. 

Misspoke, I would like to have differents messages for some sub-forums and possibility to edit them in mass.

It is one more feature request.

Anyway the plugin is runing, not as I would like exactly but thanks !

  • 2 months later...
On 2/9/2016 at 0:45 PM, Adriano Faria said:

I'll take a look for a new resource. I don't want to mix things here.

Hello Adriano - do you think you could make an option - or maybe better as mentioned above - a new plugin - so that users must accept a rule before beeing able to post in a spesific topic? I still have this topic with thousands of posts that always gets off-topic...

  • Author

Unfortunately, no. Once the user goes to a topic, the editor is already there. User just need to type and hit submit. 

I would use something like that in your specific case: 

 

I understand. In 3.4.x I had this Javascript just covering the editor in that single topic all the time - and they had to push button Yes to be allowed to post there.

58adb4b95a3bc_Skjermbilde2014-05-25kl_21_01_02.thumb.png.fd4749bef98b4ccd037a96b6b1d5fcc3.png

This plugin is working as intended BTW and it is really helpful in the forum for buy and sell.

  • 6 months later...
  • Author

What's New in Version 4.0.2:

  • IPS 4.2 compatible.
  • 4 weeks later...

Just bought this plugin and when I tried to save rules, I've got this error:

UPDATE `forums_forums` forums_forums  SET `parent_id`=3,`icon`=(IPS\File\FileSystem::__set_state(array(
   'temporaryFilePath' => NULL,
   'configuration' => 
  array (
    'dir' => '/var/www/forum.vw-passat.pl/httpdocs/uploads',
    'url' => 'uploads',
  ),
   'configurationId' => 1,
   'storageExtension' => 'forums_Icons',
   'originalFilename' => 'forum_old-48.png',
   'filename' => 'forum_old-48.png.d48ca786900d618a3c495c66230b6ad1.png',
   'container' => 'monthly_2017_09',
   'contents' => NULL,
   'url' => 
  IPS\Http\Url\Internal::__set_state(array(
     'base' => 'none',
     'isInternal' => true,
     'isFriendly' => false,
     'url' => 'https://forum.vw-passat.pl/uploads/monthly_2017_09/forum_old-48.png.d48ca786900d618a3c495c66230b6ad1.png',
     'data' => 
    array (
      'scheme' => 'https',
      'host' => 'forum.vw-passat.pl',
      'port' => NULL,
      'user' => NULL,
      'pass' => NULL,
      'path' => '/uploads/monthly_2017_09/forum_old-48.png.d48ca786900d618a3c495c66230b6ad1.png',
      'query' => '',
      'fragment' => NULL,
    ),
     'queryString' => 
    array (
    ),
     'hiddenQueryString' => 
    array (
    ),
  )),
   'tempId' => NULL,
   'attachmentThumbnailUrl' => NULL,
   'thumbnailName' => NULL,
   'thumbnailContainer' => NULL,
))),`skin_id`='0',`can_view_others`=true,`permission_showtopic`=false,`show_rules`='0',`forum_allow_rating`=true,`disable_sharelinks`=false,`inc_postcount`=true,`allow_poll`=true,`tag_predefined`='',`show_prefix_in_desc`=false,`topicrules_onoff`=true,`topicrules_tipo`='ipsMessage_info ipsMessage_information',`sub_can_post`=true,`redirect_on`=false WHERE id=33 
IPS\Db\Exception: Data too long for column 'topicrules_tipo' at row 1 (1406)
#0 /var/www/forum.vw-passat.pl/httpdocs/system/Db/Db.php(990): IPS\_Db->preparedQuery('/*IPS\\Node\\_Mod...', Array)
#1 /var/www/forum.vw-passat.pl/httpdocs/system/Patterns/ActiveRecord.php(492): IPS\_Db->update('`forums_forums`...', '`parent_id`=?,`...', 'WHERE id=?')
#2 /var/www/forum.vw-passat.pl/httpdocs/system/Node/Model.php(2237): IPS\Patterns\_ActiveRecord->save()
#3 [internal function]: IPS\Node\_Model->save()
#4 /var/www/forum.vw-passat.pl/httpdocs/init.php(448) : eval()'d code(217): call_user_func_array('parent::save', Array)
#5 /var/www/forum.vw-passat.pl/httpdocs/system/Node/Model.php(3021): IPS\Node\advancedtagsprefixes_hook_nodeModel->save()
#6 [internal function]: IPS\Node\_Model->saveForm(Array)
#7 /var/www/forum.vw-passat.pl/httpdocs/init.php(448) : eval()'d code(145): call_user_func_array('parent::saveFor...', Array)
#8 /var/www/forum.vw-passat.pl/httpdocs/system/Node/Controller.php(391): IPS\Node\advancedtagsprefixes_hook_nodeModel->saveForm(Array)
#9 /var/www/forum.vw-passat.pl/httpdocs/applications/forums/modules/admin/forums/forums.php(123): IPS\Node\_Controller->form()
#10 /var/www/forum.vw-passat.pl/httpdocs/system/Dispatcher/Controller.php(85): IPS\forums\modules\admin\forums\_forums->form()
#11 /var/www/forum.vw-passat.pl/httpdocs/system/Node/Controller.php(62): IPS\Dispatcher\_Controller->execute()
#12 /var/www/forum.vw-passat.pl/httpdocs/applications/forums/modules/admin/forums/forums.php(39): IPS\Node\_Controller->execute()
#13 /var/www/forum.vw-passat.pl/httpdocs/system/Dispatcher/Dispatcher.php(146): IPS\forums\modules\admin\forums\_forums->execute()
#14 /var/www/forum.vw-passat.pl/httpdocs/admin/index.php(13): IPS\_Dispatcher->run()
#15 {main}

 

  • Author
33 minutes ago, Andrzej Pindor said:

Just bought this plugin and when I tried to save rules, I've got this error:


UPDATE `forums_forums` forums_forums  SET `parent_id`=3,`icon`=(IPS\File\FileSystem::__set_state(array(
   'temporaryFilePath' => NULL,
   'configuration' => 
  array (
    'dir' => '/var/www/forum.vw-passat.pl/httpdocs/uploads',
    'url' => 'uploads',
  ),
   'configurationId' => 1,
   'storageExtension' => 'forums_Icons',
   'originalFilename' => 'forum_old-48.png',
   'filename' => 'forum_old-48.png.d48ca786900d618a3c495c66230b6ad1.png',
   'container' => 'monthly_2017_09',
   'contents' => NULL,
   'url' => 
  IPS\Http\Url\Internal::__set_state(array(
     'base' => 'none',
     'isInternal' => true,
     'isFriendly' => false,
     'url' => 'https://forum.vw-passat.pl/uploads/monthly_2017_09/forum_old-48.png.d48ca786900d618a3c495c66230b6ad1.png',
     'data' => 
    array (
      'scheme' => 'https',
      'host' => 'forum.vw-passat.pl',
      'port' => NULL,
      'user' => NULL,
      'pass' => NULL,
      'path' => '/uploads/monthly_2017_09/forum_old-48.png.d48ca786900d618a3c495c66230b6ad1.png',
      'query' => '',
      'fragment' => NULL,
    ),
     'queryString' => 
    array (
    ),
     'hiddenQueryString' => 
    array (
    ),
  )),
   'tempId' => NULL,
   'attachmentThumbnailUrl' => NULL,
   'thumbnailName' => NULL,
   'thumbnailContainer' => NULL,
))),`skin_id`='0',`can_view_others`=true,`permission_showtopic`=false,`show_rules`='0',`forum_allow_rating`=true,`disable_sharelinks`=false,`inc_postcount`=true,`allow_poll`=true,`tag_predefined`='',`show_prefix_in_desc`=false,`topicrules_onoff`=true,`topicrules_tipo`='ipsMessage_info ipsMessage_information',`sub_can_post`=true,`redirect_on`=false WHERE id=33 
IPS\Db\Exception: Data too long for column 'topicrules_tipo' at row 1 (1406)
#0 /var/www/forum.vw-passat.pl/httpdocs/system/Db/Db.php(990): IPS\_Db->preparedQuery('/*IPS\\Node\\_Mod...', Array)
#1 /var/www/forum.vw-passat.pl/httpdocs/system/Patterns/ActiveRecord.php(492): IPS\_Db->update('`forums_forums`...', '`parent_id`=?,`...', 'WHERE id=?')
#2 /var/www/forum.vw-passat.pl/httpdocs/system/Node/Model.php(2237): IPS\Patterns\_ActiveRecord->save()
#3 [internal function]: IPS\Node\_Model->save()
#4 /var/www/forum.vw-passat.pl/httpdocs/init.php(448) : eval()'d code(217): call_user_func_array('parent::save', Array)
#5 /var/www/forum.vw-passat.pl/httpdocs/system/Node/Model.php(3021): IPS\Node\advancedtagsprefixes_hook_nodeModel->save()
#6 [internal function]: IPS\Node\_Model->saveForm(Array)
#7 /var/www/forum.vw-passat.pl/httpdocs/init.php(448) : eval()'d code(145): call_user_func_array('parent::saveFor...', Array)
#8 /var/www/forum.vw-passat.pl/httpdocs/system/Node/Controller.php(391): IPS\Node\advancedtagsprefixes_hook_nodeModel->saveForm(Array)
#9 /var/www/forum.vw-passat.pl/httpdocs/applications/forums/modules/admin/forums/forums.php(123): IPS\Node\_Controller->form()
#10 /var/www/forum.vw-passat.pl/httpdocs/system/Dispatcher/Controller.php(85): IPS\forums\modules\admin\forums\_forums->form()
#11 /var/www/forum.vw-passat.pl/httpdocs/system/Node/Controller.php(62): IPS\Dispatcher\_Controller->execute()
#12 /var/www/forum.vw-passat.pl/httpdocs/applications/forums/modules/admin/forums/forums.php(39): IPS\Node\_Controller->execute()
#13 /var/www/forum.vw-passat.pl/httpdocs/system/Dispatcher/Dispatcher.php(146): IPS\forums\modules\admin\forums\_forums->execute()
#14 /var/www/forum.vw-passat.pl/httpdocs/admin/index.php(13): IPS\_Dispatcher->run()
#15 {main}

 

Data too long for column 'topicrules_tipo'

Let me see what has changed. 

Edited by Adriano Faria

  • Author
34 minutes ago, Andrzej Pindor said:

and when I tried to save rules, I've got this error

What's New in Version 4.0.3:

  • Fix error when saving a rule

Hi,

css from your plugin breaks default IPS styles:

image.png.ad84036bee6d5db036a16aeece22a3cf.png

You must adjust padding in this style:

Quote

.ipsMessage {
    padding: 3px 15px 15px 45px;
    border-radius: 2px;
    position: relative;
    margin-bottom: 10px;
}

I had to add this to my custom.css:

Quote

.ipsMessage{
  padding: 15px 45px !important;
}

to display correctly

Edited by Andrzej Pindor

  • 2 months later...

@Adriano Faria I'm having the same issue as on the screen in the picture above. The fix with custom.css helps but not entirely (fontawesome icon is a bit misaligned anyway). This persists even when the plugin is turned off in admin panel, only uninstalling it entirely fixes the issue.

Could you please advise how to remove the problem?

  • Author

No, I don’t know. Need to install it and fix the CSS. I’ll release a new version when it’s done, probably tomorrow. 

Thank you!

  • Author

What's New in Version 4.0.4:

  • Fix error on message styles

w0J3Gwn.png

  • 2 weeks later...

I made some modifications to the plugin.  Here they are if you want them and you know what you're modifying.  Obviously, if you change stuff, make sure you change things back if there is an update.

Normal Message instead of warning:

Template: core/global/plugins/newTopicRulesForm

<!--- MODIFICATION START --->
<div class='ipsType_normal ipsType_richText ipsSpacer_bottom'>
	<div class="ipsAreaBackground ipsPad ipsPad_double">
		{$msg|raw}
    </div>  
</div>
<div class='ipsType_normal ipsType_richText'>
	<div class="ipsAreaBackground ipsPad">
		{$form|raw}
	</div>
</div>
<!--- MODIFICATION END --->

Tip:  Always include the Modification(s) so you can search your template for modifications you made.

You might also have to remove / delete the css file for the plugin.

Use at your own risk and all that fun stuff.

Edited by Bluto

  • Author
1 minute ago, Bluto said:

I made some modifications to the plugin.  Here they are if you want them and you know what you're modifying.  Obviously, if you change stuff, make sure you change things back if there is an update.

Normal Message instead of warning:

Template: core/global/plugins/newTopicRulesForm


<!--- MODIFICATION START --->
<div class='ipsType_normal ipsType_richText ipsSpacer_bottom'>
	<div class="ipsAreaBackground ipsPad ipsPad_double">
		{$msg|raw}
    </div>  
</div>
<div class='ipsType_normal ipsType_richText'>
	<div class="ipsAreaBackground ipsPad">
		{$form|raw}
	</div>
</div>
<!--- MODIFICATION END --->

Tip:  Always include the Modification(s) so you can search your template for modifications you made.

You might also have to remove / delete the css file for the plugin.

Use at your own risk and all that fun stuff.

A screenshot?

Sure, it's a dark customized theme, but here it is.  Someone might want to try it out on the default theme.  Though, all the classes are ips classes.

5a3962e0e87d0_Screenshotfrom2017-12-1914-04-02.thumb.png.08a8d102ba4e0ab2836da1c7729629e7.png

@Adriano Faria Just an FYI.  Wiping the cache will delete all the settings for the plugin (cooke expire after and cookie prefix) and result in an error on the front end.  

I have Spacious ACP and just wiped the cache and got an error trying to add something in the forum I set this up for.

Edited by Bluto

Thanks for the info!  I can't read the thread, but it's good to know it's on IPSs end - well maybe it's not that good to know ;) - I'll disable this for now.  Let me know if IPS ends up fixing the issue and I'll re-enable it after that.  I'm afraid I'd wipe the caches and forget to add back the cookie settings.

  • Author

There's a ticket submitted by another dev and Daniel F said that made some change. It will probably be available in 4.2.7, not sure. No new reply for a week.

Sounds good.  Let me know if they fix it.  I can't access the dev forum and the release notes are well - not so informative.

  • 5 weeks later...

Hi Adriano. 
Any plans to add this feature to club topics ? Just asking.

Recently Browsing 0

  • No registered users viewing this page.