Jump to content

Community

Poseidon2

+Clients
  • Posts

    34
  • Joined

  • Last visited

About Poseidon2

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Poseidon2's Achievements

  1. Hello I want to know in what theme/file I have to do something to change the default shared text. Can you help me ? For the moment I juste have the basic thing.;..
  2. I could do exactly what I wanted with this in <div> balise in my template. Thank's a lot!
  3. in fact I have a bloc that is quite good in standard web browser be that is really not good view with a smartphone ๐Ÿ˜ž
  4. Hello guys. Do you know how to know that we are in smartphone mode ? Because in my bloc I only have the following attributs : $records, $title, $orientation='vertical' I don't have any clue of the application reading the site. Is theres any globals informations ? Thanks for you helps
  5. 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 ?
  6. 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 !
  7. Hello. I'd love to duplicate this template to add the image but I could not find WHERE it is physcally located. When I modify my theme I cannot find this "recordRow" anywhere..... thanks fopr the help ! Florian
  8. 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
  9. Found ! {{if $item->object() instanceof \IPS\cms\Records}} <div class="ipsType_richText ipsType_medium ipsSpacer_both">{$item->object()->customFieldDisplayByKey('1001bd_Note')|raw}</div> {{endif}} I have exaclty what I want without error ๐Ÿ™‚
  10. Ok I have exactly what you are saying : it is working for my records but noote for the otehr posts promoted from the forum. Any clue to avid that ? Can I check if my object is a record ?
  11. Mhhh tried that but it did not worked ๐Ÿ˜ž But it is true that we already promote other thing than Custome entry. Is there any way of checking if the specific field is existing ?
  12. In fact I don't know how to go from $item to the full record that is currently shown....
  13. 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
  14. Thanks a lot. Last question and I will be fine I think. How do we know the available field/function for $record ? Florian
ร—
ร—
  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy