1. Infinite Scroll

Infinite Scroll

  |   10
Now how to implement it:
1: get the source code from : http://www.fieg.nl/infinite-ajax-scroll-a-jquery-plugin
2:Some consideration is to load the script only where necessary and not all pages
in your main.tpl add (Add it to the bottom of main.tpl that's ok);

[aviable=main|cat|search]
<script type="text/javascript" src="{THEME}/js/jquery.ias.min.js"></script>
<script type="text/javascript">
$.ias({container : '#dle-content',item:'.item_p',pagination: '.page_navigation1',next: 'div#page_navigation1 a:last-child',loader: '<p><img src="{THEME}/images/spinner.gif"/> Loading next page...</p>'});
</script>
[/aviable]

in navigation.tpl add

<div id="page_navigation1" class="page_navigation1">[next-link]Next[/next-link]</div>

you could just replace the whole normal navigation with the one above but as a fallback keep it.

Last you could style it with css if you like i leave that up to you!

ONE CONSIDERATION:
whatever is at the bottom of the page like links will never be reached!
Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.

Details

+6

Comments 10

ShoMpeT
ShoMpeT
Members
Commented By ShoMpeT on June 23, 2012 (6:55 am)
not working for me
N/A 3Forum topics : 6Forum replies : 15Forum likes : 1
steven
steven
V.I.P.
Commented By steven on June 24, 2012 (9:03 pm)
ShoMpeT
Yes, i believe it's the settings

$.ias({container : '#dle-content',item:'.item_p',pagination: '.page_navigation1',next: 'div#page_navigation1 a:last-child',loader: '<p><img src="{THEME}/images/spinner.gif"/> Loading next page...</p>'});

make sure: the content is in dle-content tag or change it to whatever you have.
next: every piece of news is wrapped into a div so in the case above whatever you have in shortstory.tpl is wrapped in a div with class .item_p.
Try that you see it will work.
The code was copied from http://www.scriptzmafia.org where you can see it in action
3 22Forum topics : 6Forum replies : 123Forum likes : 5

<?php
echo base64_decode("WW91IGdvdCBtb25leT8=");
ShoMpeT
ShoMpeT
Members
Commented By ShoMpeT on June 25, 2012 (12:40 am)
steven,
Now its working, thank u love
N/A 3Forum topics : 6Forum replies : 15Forum likes : 1
steven
steven
V.I.P.
Commented By steven on June 26, 2012 (9:00 am)
ShoMpeT,
You are welcome, i advise looking trough the plugin detail on the website there are more options available, but the ones above seem to work well
3 22Forum topics : 6Forum replies : 123Forum likes : 5

<?php
echo base64_decode("WW91IGdvdCBtb25leT8=");
ShoMpeT
ShoMpeT
Members
Commented By ShoMpeT on June 26, 2012 (9:08 am)
steven,
do u know how we can get and show total of pages? i checked the author page and i did not find a code or option to get total pages.

somthing like this:
Pages: 2 From 6
N/A 3Forum topics : 6Forum replies : 15Forum likes : 1
steven
steven
V.I.P.
Commented By steven on June 26, 2012 (9:58 am)
ShoMpeT,
Not really sure what you mean,
in the url you will see what page you are currently at!
3 22Forum topics : 6Forum replies : 123Forum likes : 5

<?php
echo base64_decode("WW91IGdvdCBtb25leT8=");
CrasHandBurN
Commented By CrasHandBurN on July 23, 2012 (6:26 pm)
Comment contains invalid or inacceptable tags or code death
Administrators Are you crazy? One comment posted the 30 minutes are here! foo

Here is a working hack for Loading of pages on Ajax, that works on 9.6:

Link to archive: _http://depositfiles.com/files/i3opuu191
N/A 3Forum topics : 0Forum replies : 1Forum likes : 0

<?php
echo base64_decode("Um9jayduJ3JvbGxh");
GanjaMan
GanjaMan
Members
Commented By GanjaMan on July 24, 2012 (4:32 am)
CrasHandBurN,
What are you trying to say?

To all others, I can confirm that this works on DLE 9.3 (not for search pages, tho)
N/A 2Forum topics : 5Forum replies : 19Forum likes : 0
noobos
noobos
DLE TEAM
Commented By noobos on July 24, 2012 (10:06 am)
CrasHandBurN,
I believe you are dle expert when you said that....here is what your expertise don't know...in comment form, you can only use the bbcode available, if you are trying to use bbcode or html code that are not allowed then you will get error message, for example all members are not allowed to use links in comments so any words starting with http or www will get error...admins are not crazy but you don't know what's limit in it.
16 302Forum topics : 12Forum replies : 1036Forum likes : 170
reletobg
reletobg
Members
Commented By reletobg on October 6, 2012 (4:20 am)
Don't work. recourse
N/A 1Forum topics : 1Forum replies : 1Forum likes : 0
Information!Would you like to leave your comment? Please Login to your account to leave comments. Don't have an account? You can create a free account now.