Jump to content

Maniutek

Members
  • Posts

    122
  • Joined

  • Last visited

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by Maniutek

  1. 8 hours ago, Darth Gary said:

    Same here. 

    Here you have written ...

    On 2/10/2019 at 2:20 PM, Jujuwar said:

    The fix:

    Edit the file applications/advancedtagsprefixes/hooks/formatPrefix.php and replace (2 places):

    
    \IPS\HTMLENTITIES

    by

    
    ENT_DISALLOWED

    and run the support tools to clear the cache.

     

  2. 4 minutes ago, Adriano Faria said:

    Sorry, not sure I follow. Can you elaborate?

    My point is that when I choose a user, it will show me what groups already have, and so that you can only change or delete, and not add from scratch, because now when I enter the user I show that I do not have groups, I know that he has...

  3. SELECT SQL_CALC_FOUND_ROWS core_members.* FROM `ibf_core_members` AS `core_members` WHERE Array AND Array AND Array ORDER BY member_id ASC
    IPS\Db\Exception: Unknown column 'Array' in 'where clause' (1054)
    #0 xxx/system/Db/Select.php(378): IPS\_Db->preparedQuery('/*IPS\\customnot...', Array, true)
    #1 xxx/system/Db/Select.php(580): IPS\Db\_Select->runQuery()
    #2 xxx/applications/customnotifications/extensions/core/Queue/CustomNotification.php(40): IPS\Db\_Select->count(true)
    #3 xxx/system/Task/Task.php(127): IPS\customnotifications\extensions\core\Queue\_CustomNotification->preQueueData(Array)
    #4 xxx/applications/customnotifications/modules/admin/notifications/notifications.php(133): IPS\_Task::queue('customnotificat...', 'CustomNotificat...', Array, 1)
    #5 xxx/system/Dispatcher/Controller.php(85): IPS\customnotifications\modules\admin\notifications\_notifications->send()
    #6 xxx/system/Node/Controller.php(62): IPS\Dispatcher\_Controller->execute()
    #7 xxx/applications/customnotifications/modules/admin/notifications/notifications.php(32): IPS\Node\_Controller->execute()
    #8 xxx/system/Dispatcher/Dispatcher.php(146): IPS\customnotifications\modules\admin\notifications\_notifications->execute()
    #9 xxx/admin/index.php(13): IPS\_Dispatcher->run()
    #10 {main}

     

  4. Hello! I can not create a new field, I have this error: 

    UPDATE `ibf_templates_fields` templates_fields  SET `field_pf_allow_attachments`=1,`field_key`='12121_12',`field_searchable`=0,`field_type`='Text',`field_content`='[]',`field_multiple`=false,`field_not_null`=true,`field_max_input`=0,`field_input_format`='' WHERE field_id=68 
    IPS\Db\Exception: Unknown column 'field_pf_allow_attachments' in 'field list' (1054)
    #0 /xxx/xxx/xxx/xxx/public_html/system/Db/Db.php(990): IPS\_Db->preparedQuery('/*IPS\\Node\\_Mod...', Array)
    #1 /xxx/xxx/xxx/xxx/public_html/system/Patterns/ActiveRecord.php(492): IPS\_Db->update('`ibf_templates_...', '`field_pf_allow...', 'WHERE field_id=...')
    #2 /xxx/xxx/xxx/xxx/public_html/system/Node/Model.php(2183): IPS\Patterns\_ActiveRecord->save()
    #3 [internal function]: IPS\Node\_Model->save()
    #4 /xxx/xxx/xxx/xxx/public_html/init.php(447) : eval()'d code(217): call_user_func_array('parent::save', Array)
    #5 /xxx/xxx/xxx/xxx/public_html/system/Node/Model.php(2955): IPS\Node\advancedtagsprefixes_hook_nodeModel->save()
    #6 [internal function]: IPS\Node\_Model->saveForm(Array)
    #7 /xxx/xxx/xxx/xxx/public_html/init.php(447) : eval()'d code(145): call_user_func_array('parent::saveFor...', Array)
    #8 /xxx/xxx/xxx/xxx/public_html/system/Node/Controller.php(391): IPS\Node\advancedtagsprefixes_hook_nodeModel->saveForm(Array)
    #9 /xxx/xxx/xxx/xxx/public_html/system/Dispatcher/Controller.php(85): IPS\Node\_Controller->form()
    #10 /xxx/xxx/xxx/xxx/public_html/system/Node/Controller.php(62): IPS\Dispatcher\_Controller->execute()
    #11 /xxx/xxx/xxx/xxx/public_html/applications/templates/modules/admin/templates/fields.php(30): IPS\Node\_Controller->execute()
    #12 /xxx/xxx/xxx/xxx/public_html/system/Dispatcher/Dispatcher.php(142): IPS\templates\modules\admin\templates\_fields->execute()
    #13 /xxx/xxx/xxx/xxx/public_html/admincsone/index.php(13): IPS\_Dispatcher->run()
    #14 {main}
  5. On 8.02.2017 at 5:09 PM, Maniutek said:

    Now:

    
    <div class="ipsSpacer_top">
        {{foreach $data as $fieldKey => $fieldValue}}
        {{if $fieldValue['value'] || !$fieldValue['hide']}}
        <div class="cTemplateField">
            <span class="cTemplateField_label">{{$label = 'template_' . $fieldKey . '_label';}}</span>
            <span class="cTemplateField_value"><b><font color="#38aaff">{$item->$label}:</font></b> {$fieldValue['value']}</span>
        </div>
        {{endif}}
        {{endforeach}}
    </div>

    ibecnie.png.7102c88d4334ce2c6c49327c15290217.png

    Field with a hyperlink, the URL is the URL prefix but disappears "Aktualny nick:"

    
    <div class="ipsSpacer_top">
        {{foreach $data as $fieldKey => $fieldValue}}
        {{if $fieldValue['value'] || !$fieldValue['hide']}}
        <div class="cTemplateField">
            <span class="cTemplateField_label">{{$label = 'template_' . $fieldKey . '_label';}}</span>
            {{if $fieldKey == 'akt_nick'}}
            <span class="cTemplateField_value"><a href="{$fieldValue['value']}">{$fieldValue['value']}</a></span>
            {{else}}
            <span class="cTemplateField_value"><b><font color="#38aaff">{$item->$label}:</font></b> {$fieldValue['value']}</span>
            {{endif}}
        </div>
        {{endif}}
        {{endforeach}}
    </div>

    ibecniee.png.b974536820722175322e0e30c5e3ab20.png

     

    And here's how I add I have nothing:

    ibecnieee.png.93cd3c4d677b11a49e676804efd971bb.png

     

    And my point is that one response was seen only for admin and had hyperlink URL

    Hm?

  6. Now:

    <div class="ipsSpacer_top">
        {{foreach $data as $fieldKey => $fieldValue}}
        {{if $fieldValue['value'] || !$fieldValue['hide']}}
        <div class="cTemplateField">
            <span class="cTemplateField_label">{{$label = 'template_' . $fieldKey . '_label';}}</span>
            <span class="cTemplateField_value"><b><font color="#38aaff">{$item->$label}:</font></b> {$fieldValue['value']}</span>
        </div>
        {{endif}}
        {{endforeach}}
    </div>

    ibecnie.png.7102c88d4334ce2c6c49327c15290217.png

    Field with a hyperlink, the URL is the URL prefix but disappears "Aktualny nick:"

    <div class="ipsSpacer_top">
        {{foreach $data as $fieldKey => $fieldValue}}
        {{if $fieldValue['value'] || !$fieldValue['hide']}}
        <div class="cTemplateField">
            <span class="cTemplateField_label">{{$label = 'template_' . $fieldKey . '_label';}}</span>
            {{if $fieldKey == 'akt_nick'}}
            <span class="cTemplateField_value"><a href="{$fieldValue['value']}">{$fieldValue['value']}</a></span>
            {{else}}
            <span class="cTemplateField_value"><b><font color="#38aaff">{$item->$label}:</font></b> {$fieldValue['value']}</span>
            {{endif}}
        </div>
        {{endif}}
        {{endforeach}}
    </div>

    ibecniee.png.b974536820722175322e0e30c5e3ab20.png

     

    And here's how I add I have nothing:

    ibecnieee.png.93cd3c4d677b11a49e676804efd971bb.png

     

    And my point is that one response was seen only for admin and had hyperlink URL

  7. 5 minutes ago, HeadStand said:

    So, let's say you have a URL field with a key "url_field".

    
    <div class="ipsSpacer_top">
        {{foreach $data as $fieldKey => $fieldValue}}
        {{if $fieldValue['value'] || !$fieldValue['hide']}}
        <div class="cTemplateField">
            <span class="cTemplateField_label">{{$label = 'template_' . $fieldKey . '_label';}}</span>
            {{if $fieldKey == 'url_field'}}
            <span class="cTemplateField_value"><a href="{$fieldValue['value']}">{$fieldValue['value']}</a></span>
            {{else}}
            <span class="cTemplateField_value"><b><font color="#38aaff">{$item->$label}:</font></b> {$fieldValue['value']}</span>
            {{endif}}
        </div>
        {{endif}}
        {{endforeach}}
    </div>

    Now, let's say you have a field that you want to be for group id 4 (which happens to be the Admin group):

    
    <div class="ipsSpacer_top">
        {{foreach $data as $fieldKey => $fieldValue}}
        {{if $fieldValue['value'] || !$fieldValue['hide']}}
        {{if $fieldKey == 'group_field' && member.inGroup( 4 )}}
        <div class="cTemplateField">
            <span class="cTemplateField_label">{{$label = 'template_' . $fieldKey . '_label';}}</span>
            <span class="cTemplateField_value"><b><font color="#38aaff">{$item->$label}:</font></b> {$fieldValue['value']}</span>
        </div>
        {{endif}}
        {{endif}}
        {{endforeach}}
    </div>

    You can use member.isAdmin() to check if the member is an Administrator, or you can check multiple groups by doing member.inGroup( array( 1,2,3) ).

    On another note, I can add to my enhancement list view permissions on the field level. But no timeline.

    All nicely landscaped and I still do not know how usutawić this field on the URL terribly sorry ... but not too much to know in this ...

  8. On 6.02.2017 at 2:36 PM, HeadStand said:

    Again, you can customize the view template any way you want. That means, allowing the URL field to be displayed as a link, or hiding certain fields for certain groups. It uses the same logic as any other template in the IPS theme.

    Hello! And you give me an example?

     

    <div class="ipsSpacer_top">
        {{foreach $data as $fieldKey => $fieldValue}}
        {{if $fieldValue['value'] || !$fieldValue['hide']}}
        <div class="cTemplateField">
            <span class="cTemplateField_label">{{$label = 'template_' . $fieldKey . '_label';}}</span>
            <span class="cTemplateField_value"><b><font color="#38aaff">{$item->$label}:</font></b> {$fieldValue['value']}</span>
        </div>
        {{endif}}
        {{endforeach}}
    </div>

     

×
×
  • Create New...