Page 1 of 1

'endless scrolling' with LISE problem

Posted: Wed Jul 19, 2017 12:24 am
by Simon66
Hi,
I followed the tutorial on https://www.cmscanbesimple.org for 'endless scrolling' with CMSMS modules.
It's a great tutorial and it works perfectly on a LISE instance except when I turn on pretty URLs.

Has anyone else tried this?
Found a solution?

Cheers
Simon66
----------------------------------------------
Cms Version: 2.2.2

Installed Modules:

AceEditor2: 1.05
AdminSearch: 1.0.4
CGExtensions: 1.56
CGSimpleSmarty: 2.1.6
CGSmartImage: 1.21.9
CMSContentManager: 1.1.5
CMSMailer: 6.2.14
Captcha: 0.5.5
CmsJobManager: 0.1
CustomGS: 3.0
DesignManager: 1.1.3
FileManager: 1.6.3
FilePicker: 1.0
FormBuilder: 0.8.1.6
Gallery: 2.3.1
LISE: 1.3
LISEPhotoGallery: 1.3
MenuManager: 1.50.3
MicroTiny: 2.2
ModuleManager: 2.1.1
Navigator: 1.0.7
News: 2.51.2
Search: 1.51.2

Config Information:

php_memory_limit:
max_upload_size: 128000000
url_rewriting: mod_rewrite
page_extension: .htm
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Australia/Sydney
permissive_smarty: false

Php Information:

phpversion: 5.6.31
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 32759
E_STRICT: 2048
E_DEPRECATED: 8192
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 128M
max_execution_time: 30
register_globals: Off (False)
output_buffering: On
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 64M
upload_max_filesize: 128M
session_save_path: /tmp (0700)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On

Performance Information:

allow_browser_cache: On (True)
browser_cache_expiry: 60
php_opcache: On (True)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
auto_clear_cache_age: On (True)

Server Information:

Server Software: LiteSpeed
Server Api: litespeed
Server Os: Linux 2.6.32-673.26.1.lve1.4.18.el6.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 10.0.31
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
----------------------------------------------

Re: 'endless scrolling' with LISE problem

Posted: Wed Jul 19, 2017 9:32 am
by Rolf
Do you have a link to the site/page? So we can see what happens...

Re: 'endless scrolling' with LISE problem

Posted: Wed Jul 19, 2017 10:04 am
by Simon66
Hi Rolf,
The page is http://genexnews.com/gallery.htm.
This is with pretty URLs turned on.
There are 20 images and they autoscroll with pretty URLs turned off.

Cheers
Simon66

Re: 'endless scrolling' with LISE problem

Posted: Wed Jul 19, 2017 11:15 am
by Jo Morg
LISE is a bit different than most other modules in that it tries to prettify pagination links when possible. When not possible it falls back to ugly URLs without disrupting the items details pretty URLs. Thus, if you add a non default summary template in the calling tag LISE will automatically switch to ugly pagination links to be able to carry on the template data on the URL to the next pages.
Having said that, if you plan to always use pretty pagination links you'll probably need to change the following:

Code: Select all

<a href="{$nexturl}&showtemplate=false" class="jscroll-link" rel="nofollow">load more</a>
to

Code: Select all

<a href="{$nexturl}?showtemplate=false" class="jscroll-link" rel="nofollow">load more</a>
Check the correct smarty variable and syntax as I haven't tested.

Re: 'endless scrolling' with LISE problem

Posted: Thu Jul 20, 2017 4:23 am
by Simon66
Thanks Jo,
I have removed the pretty URLs for the moment.
I'll revisit this at a later date.

Cheers
Simon66