Jump to content

Poseidon2

Members
  • Posts

    36
  • 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 Poseidon2

  1. On 9/24/2021 at 5:51 PM, Marc Stridgen said:

    The reason for this is that those blocks are cached, and so previously could actually be incorrect

    Hello

     

    First thanks for the answer.

    You're right, I was talking of the stream version of the forum.

    I"m sorry I did not reaaly understood the reason and if there is way to have it working has it was before ?

     

    Florian

     

    PS: We found the good parameters for the "logo"

  2. Hello all.

     

    On 1001bd.Com we just goes from 4.4 to 4.6.

    Previously we had a pretty beautifull Banner at the top of the site.

    I saw that now the "banner" is now consider has a "Logo" that is absolutly not what we want 🙂

    Any idea on how to do what was available before ? (I mean having a banner/picture at the top of the page above the menu)

     

    Another problem : on the forum we do not have any more information to indicate that a subjet is "unread" (when a new mesage is post). Any idea why ?

    Thanks a lot for your helps !

     

    Florian

  3. THanks to you I achieve to do what i wanted :

    <div class='ipsPad_half ipsWidget_inner'>
                <ul class='ipsDataList  ipsContained_container'>
                  {{shuffle($records);}}
                  {{ $record = $records[0];}}
    
                        <li class='ipsDataItem'>
                          <div class='ipsType_break ipsContained'>
                                    <a href="{$record->url()->setQueryString( 'do', 'getLastComment' )}" title='{lang="view_this_cmsrecord" sprintf="\IPS\Member::loggedIn()->language()->addToStack( 'content_db_lang_sl_' . $record::$customDatabaseId, FALSE ), $record->_title"}' class='ipsDataItem_title'>{$record->_title}</a>
                                </div>
                                <div class='ipsType_break ipsContained'>
                                    <a href="{$record->url()->setQueryString( 'do', 'getLastComment' )}" title='{lang="view_this_cmsrecord" sprintf="\IPS\Member::loggedIn()->language()->addToStack( 'content_db_lang_sl_' . $record::$customDatabaseId, FALSE ), $record->_title"}' class='ipsDataItem_title'>{$record->customFieldDisplayByKey('lien-image-pour-forum')|raw}</a>
                                </div>
                              <div> <a href="https://www.1001bd.com/best_of/">Voir l'integralité des  best of </a></div>
                        </li>
    
                </ul>
            </div>

    Like that each time someone connect the selection is different.

     

    Better thing would to have it change automatically after 1 minutes. Can we do that sort of thing without reloading the page ?

  4. Hello

     

    I am creating a bloc where I want to show 1 result BUT I want it to change every...10s I don't know.

    I have my block and a understood how to filter my record using the ID.= :

    {if !empty( $records ) }}
    	<h3 class='ipsWidget_title ipsType_reset'>{$title}</h3>
    	{{$Count = 0;}}
    	{{if $orientation == 'vertical'}}
    		<div class='ipsPad_half ipsWidget_inner'>
    			<ul class='ipsDataList  ipsContained_container'>
                  {{foreach $records as $record}}
                  {$record->_id}
    				{{if $record->_id === 29}}
    					<li class='ipsDataItem'>
                          <div class='ipsType_break ipsContained'>
    								<a href="{$record->url()->setQueryString( 'do', 'getLastComment' )}" title='{lang="view_this_cmsrecord" sprintf="\IPS\Member::loggedIn()->language()->addToStack( 'content_db_lang_sl_' . $record::$customDatabaseId, FALSE ), $record->_title"}' class='ipsDataItem_title'>{$record->_title}</a>
    							</div>
    							<div class='ipsType_break ipsContained'>
    								<a href="{$record->url()->setQueryString( 'do', 'getLastComment' )}" title='{lang="view_this_cmsrecord" sprintf="\IPS\Member::loggedIn()->language()->addToStack( 'content_db_lang_sl_' . $record::$customDatabaseId, FALSE ), $record->_title"}' class='ipsDataItem_title'>{$record->customFieldDisplayByKey('lien-image-pour-forum')|raw}</a>
    							</div>
    					</li>
                 	 {{endif}}
    				{{endforeach}}
    			</ul>
    		</div>
    {{endif}}

    The first thing I would like to know is :

    - how to know the number of item in "$records" ? In another way than doing :

    {{$Count = 0;}}
    
     {{foreach $records as $record}}
    
    {{$Count = $Count+1;}}
    
    {{endforeach}}

     

    Then ; is their any way of accessing a specific result ?  Like the third item ?

    last question : do you know any random function ? or do we have to use the rand(x,y) function from HTML ?

     

    Thanks a lot for your help !

  5. Hi all.

    It will sound strange to you but, even if I know how to developp with standard langage like C++, QT and so one, I can't even make a if working fine on my theme....

    I tried a basic thing that did not work :

    {{if  {$value} == 'yes'}} <b> OK! </b>

    {{endif}}

    (to only show something if a checkbox is selected)

    And it did not work at all 🙂 

     

    So I am looking for some kind of documentation to allow me to stop bothering you at each problem I have 🙂

    Thanks in advance.

    Florian

  6. Hi all.

     

    I'd loved to put some private fields in my Our Picks preview. I found the right place to do it :

    <div class='cPromotedWidgetItem_contentInner'>
                            {{if $text = $item->getText('internal', true)}}
                                  <div class="ipsType_richText ipsType_medium ipsSpacer_both ipsSpacer_half">Note : {$item->customFieldDisplayByKey('my_key', 'display')|raw}</div>
                                <div class="ipsType_richText ipsType_medium ipsSpacer_both ipsSpacer_half" data-ipsTruncate data-ipsTruncate-type='remove' data-ipsTruncate-size='4 lines'>{$text|raw}</div>
                            {{endif}}
                            {{$reactionClass = $item->objectReactionClass;}}
                            {{if $reactionClass || $item->objectDataCount}}
                                <ul class='ipsList_inline ipsType_light ipsSpacer_bottom'>
                                    {{if $reactionClass}}
                                    <li>{template="reactionOverview" group="global" app="core" params="$reactionClass, FALSE"}</li>
                                    {{endif}}
                                    
                                    {{if $counts = $item->objectDataCount}}
                                        <li><i class='fa fa-comment'></i> {$counts['words']}</li>
                                    {{endif}}
                                </ul>
                            {{endif}}
                        </div>

     

    But I could not acces to my rivte field using {$item->customFieldDisplayByKey('my_key', 'display')|raw}

    Can anyone explain me my mistake ??

     

    Thanks in advance

     

  7. Hello.

     

    I have a databse which allow me to create articles and that work fine.

    I choose the option to autamtically create a subject in the forum. This work fine also BUT my subjet in the forum only have raw text. No pciture at all....

     

    How can I change that to have at least the picture of what we are talking about ?

    And also in my subject I have (title): (value)

     

    Any what clue what is that and where it come from ?

     

    Thanks for your help

     

    Florian

     

    An Example :

    My record :

    image.thumb.png.f62079184adda2d32e5a2a4e41e1be77.png

     

    The subject created :

    image.thumb.png.468745fedc485e81b3ab23fae947e681.png

     

    I only have the core text part...

     

×
×
  • Create New...