Poseidon2
-
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
-
-
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
-
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.;..
-
3 hours ago, opentype said:
I could do exactly what I wanted with this in <div> balise in my template.
Thank's a lot!
-
in fact I have a bloc that is quite good in standard web browser be that is really not good view with a smartphone 😞
-
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
-
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
-
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 🙂
-
19 minutes ago, bfarber said:
But be careful as this would result in an error if you promote anything other than a custom Pages database record.
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 ?
-
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 ?
-
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
-
Thanks a lot.
Last question and I will be fine I think.
How do we know the available field/function for $record ?
Florian
-
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..... 😞
-
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...
-
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 ?
-
Thanks that's perfect !!!
thanks You. I did not think about that.....
-
from 4.4 to 4.6 Problem on Logo and forum
in Technical Problems
Posted
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"