solved possible seemless order by created bug?

soaringeagle
@soaringeagle
10 years ago
3,304 posts
https://www.dreadlockssite.com/gallery
that page is the gallery module page and shows order by created
https://www.dreadlockssite.com/newest-photos
shows them in no particular order at all that i can figure out
ive tried both using the construction jkit to build the seemles lost and using include tool include a template that has the seemless code neither way affects the order

i will verify that the images uploaded by tiny turtle in the 1st link were the most recent ones added
the images shown 1st in the newest photos list..ihave no idea when they were added



--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/22/16 11:55:59AM
michael
@michael
10 years ago
7,821 posts
dreadlockssite.com/gallery is controlled by the module, so its structure comes from:
/modules/jrGallery/templates/index.tpl

To over-ride that copy it to
/skins/(YOUR SKIN)/jrGallery_index.tpl

Then adjust the {jrCore_list ....} to order how you want it to order:

"{jrCore_list}"
http://www.jamroom.net/the-jamroom-network/documentation/development/89/jrcore-list

dreadlockssite.com/newest-photos looks like it is a template in your skin because i dont recognise the module name, so look for:
/skins/(YOUR SKIN)/newest-photos.tpl

and adjust the {jrCore_list} to whatever order your after.
soaringeagle
@soaringeagle
10 years ago
3,304 posts
itsa seemless list the template code is

<div class="item photosearch"><h3><a href="{$jamroom_url}/gallery">Uploaded Photos</a> <a href="{$jamroom_url}/flickr">Flickr Photos</a></h3></div>
{jrSeamless_list modules="jrFlickr,jrGallery" pagebreak="16" pager=true order_by="_created numerical_desc" template="newest_galleries.tpl" page=$_post.p}


and i tried just desc too but thats the point its not listing them by _created atall


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
douglas
@douglas
10 years ago
2,806 posts
Try listing without the numerical_ in the order_by...

<div class="item photosearch"><h3><a href="{$jamroom_url}/gallery">Uploaded Photos</a> <a href="{$jamroom_url}/flickr">Flickr Photos</a></h3></div>
{jrSeamless_list modules="jrFlickr,jrGallery" pagebreak="16" pager=true order_by="_created desc" template="newest_galleries.tpl" page=$_post.p}



--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
soaringeagle
@soaringeagle
10 years ago
3,304 posts
like i said i did try and had no effect but ill do it again just to make s=ure i didnt forget tockear cache


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
10 years ago
3,304 posts
yup no effect

its not taking the _created_by order in seemless


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
10 years ago
10,149 posts
soaringeagle:
yup no effect

its not taking the _created_by order in seemless

It is not _created_by - it is just _created - i.e.

order_by="_created desc"

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
10 years ago
3,304 posts
ah geez thst would explain it i just looked some ofthose were posted 5 years agoi lol


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
10 years ago
3,304 posts
thsatis what i have _created desc


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
10 years ago
3,304 posts
i tried _created asc it switched the orfer but it showslike 3000+ pages however thge last 1000 or so are blank
i think somethings wrong since the server rebuild mustascrewedd siome things uop bad


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
10 years ago
3,304 posts
ok corection only like the 1st 100-200 or so pages are working in the seemless list in the refgulsar gallery 5000+ pages work


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
10 years ago
3,304 posts
do u see any issues here
{if isset($_items)}
{jrCore_module_url module="jrGallery" assign="murl"}
{jrCore_module_url module="jrFlickr" assign="furl"}

    <div class="container">
        {foreach from=$_items item="item"}
{if $item.seamless_module_name == "jrGallery"}
        {if $item@iteration == 1 || $item@iteration == 5}
        <div class="row">
        {/if}
            <div class="col3{if $item@iteration is div by 4} last{/if}">
                <div class="img-profile"{if jrCore_is_mobile_device()} style="margin-bottom:50px;"{/if}>
                    <a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.gallery_image_name|urlencode}" title="{$item.gallery_caption|default:$item.gallery_image_name|jrCore_entity_string}">{jrCore_module_function function="jrImage_display" module="jrGallery" type="gallery_image" item_id=$item._item_id size="xlarge" crop="auto" class="iloutline img_scale" alt=$item.gallery_image_name title=$item.gallery_image_name style="max-width:292px;max-height:292px;"}</a><br>{if isset($item.gallery_image_title)}
                    {$item.gallery_image_title|truncate:30:"...":false}
                {else}
                    {$item.gallery_image_name|truncate:30:"...":true}
                {/if}<br>
                    <a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.gallery_title_url}" title="{$item.gallery_title}">{$item.gallery_title|truncate:25:"...":false}</a><br>
                    <a href="{$jamroom_url}/{$item.profile_url}" style="margin-bottom: 10px;">@{$item.profile_url}</a><br>
<div class="gallery_rating">
                        {jrCore_module_function function="jrRating_form" type="star" module="jrGallery" index="1" item_id=$item._item_id current=$item.gallery_rating_1_average_count|default:0 votes=$item.gallery_rating_1_count|default:0}
                    </div>
                </div>
            </div>
        {if $item@iteration is div by 4}
        </div><div style="clear:both"></div>
        {/if}
{elseif $item.seamless_module_name == "jrFlickr"}
{if $item@iteration == 1 || $item@iteration == 5}
        <div class="row">
        {/if}
            <div class="col3{if $item@iteration is div by 4} last{/if}">
                <div class="img-profile"{if jrCore_is_mobile_device()} style="margin-bottom:50px;"{/if}>
                    <a href="{$jamroom_url}/{$item.profile_url}/{$furl}/{$item._item_id}/{$item.gallery_image_name|urlencode}" title="{$item.gallery_caption|default:$item.gallery_image_name|jrCore_entity_string}">{jrCore_module_function function="jrImage_display" module="jrGallery" type="gallery_image" item_id=$item._item_id size="xlarge" crop="auto" class="iloutline img_scale" alt=$item.gallery_image_name title=$item.gallery_image_name style="max-width:292px;max-height:292px;"}</a><br>{if isset($item.gallery_image_title)}
                    {$item.gallery_image_title|truncate:30:"...":false}
                {else}
                    {$item.gallery_image_name|truncate:30:"...":true}
                {/if}<br>
                    <a href="{$jamroom_url}/{$item.profile_url}/{$furl}/{$item._item_id}/{$item.gallery_title_url}" title="{$item.gallery_title}">{$item.gallery_title|truncate:25:"...":false}</a><br>
                    <a href="{$jamroom_url}/{$item.profile_url}" style="margin-bottom: 10px;">@{$item.profile_url}</a><br>
<div class="gallery_rating">
                        {jrCore_module_function function="jrRating_form" type="star" module="jrGallery" index="1" item_id=$item._item_id current=$item.gallery_rating_1_average_count|default:0 votes=$item.gallery_rating_1_count|default:0}
                    </div>
                </div>
            </div>
        {if $item@iteration is div by 4}
        </div><div style="clear:both"></div>
        {/if}
{/if}
        {/foreach}
{/if}



--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
10 years ago
3,304 posts
yea its something in that templater i cant figure it out but both the pages that share that template have the same issue with thousands of blank pages


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
10 years ago
10,149 posts
That's the list template - it does not pagination, so I don't believe the issue is there.

Is this the Seamless call you are using?

{jrSeamless_list modules="jrFlickr,jrGallery" pagebreak="16" pager=true order_by="_created numerical_desc" template="newest_galleries.tpl" page=$_post.p}

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
10 years ago
3,304 posts
i believe so yes but i also just noticed im having the exact same issues on my music pages that are seemless lists


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
10 years ago
3,304 posts
{jrSeamless_list modules="jrFlickr,jrGallery" pagebreak="16" pager=true order_by="_created desc" template="newest_galleries.tpl" page=$_post.p}
though ive donre both numerical and not


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
michael
@michael
10 years ago
7,821 posts
Here's what I came up with:

The seamless call:
{jrSeamless_list modules="jrFlickr,jrGallery" pagebreak="16" pager=true order_by="_created desc" template="newest_galleries.tpl" page=$_post.p}
The newest_galleries.tpl file:
{if isset($_items)}
    {jrCore_module_url module="jrGallery" assign="murl"}
    {jrCore_module_url module="jrFlickr" assign="furl"}

    <div class="container">
    {foreach $_items as $item}

        {if $item@first || ($item@iteration % 4) == 1}
            <div class="row">
        {/if}
        <div class="col3">
            {if $item.seamless_module_name == "jrGallery"}
                <div class="img-profile"{if jrCore_is_mobile_device()} style="margin-bottom:50px;"{/if}>
                    <a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.gallery_image_name|urlencode}" title="{$item.gallery_caption|default:$item.gallery_image_name|jrCore_entity_string}">{jrCore_module_function function="jrImage_display" module="jrGallery" type="gallery_image" item_id=$item._item_id size="xlarge" crop="auto" class="iloutline img_scale" alt=$item.gallery_image_name title=$item.gallery_image_name style="max-width:292px;max-height:292px;"}</a><br>{if isset($item.gallery_image_title)}
                        {$item.gallery_image_title|truncate:30:"...":false}
                    {else}
                        {$item.gallery_image_name|truncate:30:"...":true}
                    {/if}<br>
                    <a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.gallery_title_url}" title="{$item.gallery_title}">{$item.gallery_title|truncate:25:"...":false}</a><br>
                    <a href="{$jamroom_url}/{$item.profile_url}" style="margin-bottom: 10px;">@{$item.profile_url}</a><br>

                    <div class="gallery_rating">
                        {jrCore_module_function function="jrRating_form" type="star" module="jrGallery" index="1" item_id=$item._item_id current=$item.gallery_rating_1_average_count|default:0 votes=$item.gallery_rating_1_count|default:0}
                        <br>
                        {$item._created|jrCore_date_format:true:"relative"}
                    </div>
                </div>
            {elseif $item.seamless_module_name == "jrFlickr"}
                <div class="img-profile"{if jrCore_is_mobile_device()} style="margin-bottom:50px;"{/if}>
                    <a href="{$jamroom_url}/{$item.profile_url}/{$furl}/{$item._item_id}/{$item.gallery_image_name|urlencode}" title="{$item.gallery_caption|default:$item.gallery_image_name|jrCore_entity_string}">{jrCore_module_function function="jrImage_display" module="jrGallery" type="gallery_image" item_id=$item._item_id size="xlarge" crop="auto" class="iloutline img_scale" alt=$item.gallery_image_name title=$item.gallery_image_name style="max-width:292px;max-height:292px;"}</a><br>{if isset($item.gallery_image_title)}
                        {$item.gallery_image_title|truncate:30:"...":false}
                    {else}
                        {$item.gallery_image_name|truncate:30:"...":true}
                    {/if}<br>
                    <a href="{$jamroom_url}/{$item.profile_url}/{$furl}/{$item._item_id}/{$item.gallery_title_url}" title="{$item.gallery_title}">{$item.gallery_title|truncate:25:"...":false}</a><br>
                    <a href="{$jamroom_url}/{$item.profile_url}" style="margin-bottom: 10px;">@{$item.profile_url}</a><br>

                    <div class="gallery_rating">
                        {jrCore_module_function function="jrRating_form" type="star" module="jrGallery" index="1" item_id=$item._item_id current=$item.gallery_rating_1_average_count|default:0 votes=$item.gallery_rating_1_count|default:0}
                        <Br>
                        {$item._created|jrCore_date_format:true:"relative"}
                    </div>
                </div>
            {/if}
        </div>
        {if $item@last || ($item@iteration % 4) == 0}
            </div>
        {/if}
    {/foreach}
{/if}

I added in the:
{$item._created|jrCore_date_format:true:"relative"}
to make sure it was ordering nicely. Think this is what your after. :)

--edit--
Screenshot attached
jpg
 •  237KB


updated by @michael: 04/16/15 02:44:31AM
soaringeagle
@soaringeagle
10 years ago
3,304 posts
ok ill try it but can u explain why i have so many pages that are "empty' there was a weird issue with the server rebuild and its possible some media files are in the wrong locations
but is there any way i could have 1 of uyou take a look at it for me when im backi and test this ill send an email ticket


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
10 years ago
3,304 posts
i tried your suggestion seemed like nothing changed
and i have a whole lot of blankpages in the seemless lists
like mostofthem theres like 3000+ pages but only the 1st 100+ have images
somethings really funky with it


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
10 years ago
10,149 posts
What is the URL you are seeing the issue on?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
10 years ago
10,149 posts
Is it this one:

https://www.dreadlockssite.com/gallery


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
10 years ago
10,149 posts
I randomly loaded about 15 pages between 1 and 5,000 and see no issues there.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
10 years ago
3,304 posts
no its the ones undfrr it in the menu like newest photos highest rated photos and well not feaatured that i know of think the other 2

now gallery should have the same order by _created that newest photos has except newest photos has flickerincluded (could they be combined like audio/video0

but the orders not right the newest photos are nowhere to beseen and after the 1st few hundred pages the rest areblank


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
10 years ago
3,304 posts
also notice the 1st 2 are flickr photos...withg the wrongthumbnails


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
10 years ago
3,304 posts
really need help figuring this 1 out guys.... its a kinda major issue


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
10 years ago
10,149 posts
Seamless has an internal "sort limit" that is by default set to 2500 items - it could be you are hitting that. Try adding this:

sort_limit=250000

To the {jrSeamless_list} call in your template and see if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
10 years ago
3,304 posts
finaly wow thank you no wonder there was no way to figure that out u might want to add a lil note to the documentation


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
10 years ago
10,149 posts
Awesome - glad to hear that. I think I'll get the default bumped up a lot higher, a well as get it in the docs.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
10 years ago
3,605 posts
Wow- is that something I too can or should set in one of my jrSeamless templates?
If so... please where do I add that new sort limit code?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
brian
@brian
10 years ago
10,149 posts
Strumelia:
Wow- is that something I too can or should set in one of my jrSeamless templates?
If so... please where do I add that new sort limit code?

This is not something that will impact you unless you have more than 5,000 entries in the result set (i.e. between the 2 items you are combining in Seamless).

I'll be releasing an update that will raise that up to where it is not an issue for 99% of sites.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
10 years ago
3,605 posts
Ok I'll wait for the update. Thanks. SE- glad you got your issue fixed!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

Tags