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
Everything posted by Poseidon2
-
from 4.4 to 4.6 Problem on Logo and forum
Poseidon2 replied to Poseidon2's topic in Technical Problems
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" -
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
-
How to know, in a bloc, that we are shown on a smartphone ?
Poseidon2 replied to Poseidon2's topic in Technical Problems
I could do exactly what I wanted with this in <div> balise in my template. Thank's a lot! -
How to know, in a bloc, that we are shown on a smartphone ?
Poseidon2 replied to Poseidon2's topic in Technical Problems
in fact I have a bloc that is quite good in standard web browser be that is really not good view with a smartphone 😞 -
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 ?
-
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 !
-
THanks that was the good place !
-
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
-
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
-
How to acces to private field from $item member
Poseidon2 replied to Poseidon2's topic in Developer Connection
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 🙂 -
How to acces to private field from $item member
Poseidon2 replied to Poseidon2's topic in Developer Connection
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 ? -
How to acces to private field from $item member
Poseidon2 replied to Poseidon2's topic in Developer Connection
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 ? -
How to acces to private field from $item member
Poseidon2 replied to Poseidon2's topic in Developer Connection
In fact I don't know how to go from $item to the full record that is currently shown.... -
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
-
Database to forum : how to include the picture
Poseidon2 replied to Poseidon2's topic in Technical Problems
Thanks a lot. Last question and I will be fine I think. How do we know the available field/function for $record ? Florian -
Database to forum : how to include the picture
Poseidon2 replied to Poseidon2's topic in Technical Problems
Thanks for the answer. I will ask you a dummy quetsion but : where did you find this theme template ? I only have available template ofr Page, Database and bloc..... 😞 -
Database to forum : how to include the picture
Poseidon2 replied to Poseidon2's topic in Technical Problems
I reply to myself : I found how to show all my private fields but I did not found how tho show the picture. Could you help me regarding the picture ? -
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 : The subject created : I only have the core text part...
-
My blocs on a page don't refresh immediatly
Poseidon2 replied to Poseidon2's topic in Technical Problems
I found the value. I will try with 2 minutes.... -
Hello I have a strange issue : I have several blocs on my home page (like my picks, or last subjects) and when I promote OR when change something in the forum (new post whatever)... it takes 1 hours to be updated in the home page ! Any idea why ? Thanks in advance
-
Hello We recently update from really old IPB version to IPS 4.4 and we face the following issue : the old post were in BB code and it seems that they are no more interpreted. So they look really awfull. Any clue around this problem ?
-
How can I reset the Content counter for all users
Poseidon2 replied to Poseidon2's topic in Technical Problems
Thanks that's perfect !!! thanks You. I did not think about that..... -
Why does the "Promote" option remove my images ?
Poseidon2 replied to Poseidon2's topic in Technical Problems
Thanks for the answer. You are right. If I add it manually they stay but if I put a link automatically shown by the interface, they disappaer.... I will add it. It is more simple. Florian