Ajax news pagination

Download plugins, language packs and stuff.

Ajax news pagination

Postby FI-DD » Wed Apr 04, 2007 7:23 pm

This plugin turns your pagination into a AJAX pagination.



Example: http://english.cutenews.ru/cuteru/example



Installation:



1. Upload everything to the plugins/ folder and activate the plugin.



2. Put this between the <head> tags of your news page:

Code: Select all
<script type="text/javascript" src="<?=$config_http_script_dir; ?>/plugins/ajaxnewspagination/ajaxnewspagination.js"></script>




3. Put this above your include code:

Code: Select all
echo '<div id="ajaxnews">';




4. Put this below your include code:

Code: Select all
echo '</div>';




So your include code might look like this:

Code: Select all
echo '<div id="ajaxnews">';



$number = 7;

$category = "1";

include $cutepath.'/show_news.php';



echo '</div>';
Attachments
ajax_news_pagination.zip
(4.22 KiB) Downloaded 496 times
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby scottdallas » Wed Apr 04, 2007 7:46 pm

Sounds easy enough. What an awesome new implementation.



So I'm assuming.. if I don't use ajax pagination, regular pagination will show up in it's place?
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby Heya Im Me » Wed Apr 04, 2007 11:28 pm

:D :D :D :D :D
Heya Im Me
 
Posts: 189
Joined: Wed Feb 01, 2006 4:06 am

Postby KArkhon » Thu Apr 19, 2007 10:13 pm

I have a problem with this plugin. When I activate it, the first page of my news looks normal, but all the others have letters ČĆŠĐŽ replaced with simbols. (everything looks fine when the plugin is off)

Here's an example : http://www.sfcentar.com/crogater/main.php

I've set up encoding to windows-1250 in both main.php and global.ini.



Tnx in advance for any help.
KArkhon
 
Posts: 31
Joined: Wed Jan 24, 2007 2:27 pm
Location: Montenegro

Postby FI-DD » Mon Apr 23, 2007 3:01 pm

Try setting the encoding to UTF-8.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

windows-1250

Postby gauss » Tue Apr 24, 2007 8:33 am

I have a problem with this plugin. When I activate it, the first page of my news looks normal, but all the others have letters ČĆŠĐŽ replaced with simbols. (everything looks fine when the plugin is off)

Here's an example : http://www.sfcentar.com/crogater/main.php

I've set up encoding to windows-1250 in both main.php and global.ini.



Did you fix it? I think it does not work for me? :(
User avatar
gauss
 
Posts: 23
Joined: Wed Sep 06, 2006 11:13 am

Postby Heya Im Me » Wed Apr 25, 2007 4:15 am

Hm, FI-DD, how come the headline links using this paginiation, it adds weird code at the end of every link once you start to skip through?



For example, use your cutenews setup, click to the next page, and then click a news title on that 2nd page, you'll notice it adds coding like this:



Code: Select all
template=Default&number=7&categories=a:11:{i:0;s:1:|5|;i:1;s:1:|3|;i:2;s:1:|5|;i:3;s:1:|1|;i:4;s:1:|3|;i:5;s:1:|2|;i:6;s:1:|5|;

i:7;s:1:|3|;i:8;s:1:|5|;i:9;s:1:|4|;i:10;s:1:|5|;}&mysort=a:2:{i:0;s:4:|date|;i:1;s:4:|DESC|;}




Any ideas?



-HIM
Heya Im Me
 
Posts: 189
Joined: Wed Feb 01, 2006 4:06 am

Postby FI-DD » Wed Apr 25, 2007 8:13 pm

I made some changes to the files.



Please redownload it and replace plugins/ajaxnewspagination/ajaxnewspagination.php with the latest file.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby Heya Im Me » Wed Apr 25, 2007 10:28 pm

Fixed!



Thanks, FI-DD!



-HIM
Heya Im Me
 
Posts: 189
Joined: Wed Feb 01, 2006 4:06 am

All users here use IE.

Postby RAMMSTEIN12 » Tue May 15, 2007 11:01 am

Because with firefox this plugin don't work. Works only with I.E.



That mean than only 50% of visitors can see the other news.



nice try for the plugin "FI-DD" but is worthless.



The same think hapend with every ajax plugin.(rate, polls, comments....)

Try it yourself with the example.
MAKE CUTENEWS BETTER



my cutenews site: http://www.Down66.com
User avatar
RAMMSTEIN12
 
Posts: 29
Joined: Sun May 06, 2007 6:59 pm
Location: Greece

Postby astrostart » Tue May 15, 2007 11:20 am

Ajax rating works in FF.



And in the future I think FF will adjust to AJAX, so we just have to wait.
My site: http://www.astrostart.nl | Thanks to everyone here who has helped me!
User avatar
astrostart
 
Posts: 124
Joined: Sun Feb 11, 2007 6:08 pm
Location: The Netherlands

Re: All users here use IE.

Postby Heya Im Me » Tue May 15, 2007 2:44 pm

RAMMSTEIN12 wrote:Because with firefox this plugin don't work. Works only with I.E.



That mean than only 50% of visitors can see the other news.



nice try for the plugin "FI-DD" but is worthless.



The same think hapend with every ajax plugin.(rate, polls, comments....)

Try it yourself with the example.




No, I actually use FireFox as my main and use IE/Opera (and Safari on my mac) to check my sites for alignment and function across these major browsers. This AJAX plugin works 100% on all of those browsers as does the rest of CuteNews.ru. Why do you suggest this plugin doesn't work in FireFox and claim we all use IE? What error are you getting to justify this statement?



-HIM
Heya Im Me
 
Posts: 189
Joined: Wed Feb 01, 2006 4:06 am

Postby FI-DD » Tue May 15, 2007 2:56 pm

Every AJAX plugin is working in Firefox.



Rating:

http://astrostart.nl/index.php/2007/05/ ... tform.html



Comments pagination:

http://www.scottdizzle.com/view.php?lin ... emake.html



Polls:

http://www.tastypolls.com/



(You are right, it stopped working on the example page - no idea why.)
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby astrostart » Tue May 15, 2007 3:29 pm

I don't know why, but the AJAX comments system and the page navigation doesn't work for me when I use Firefox.



I just get a blank page with a loading picture (that round thing)
My site: http://www.astrostart.nl | Thanks to everyone here who has helped me!
User avatar
astrostart
 
Posts: 124
Joined: Sun Feb 11, 2007 6:08 pm
Location: The Netherlands

Postby FI-DD » Tue May 15, 2007 4:10 pm

Hmm, on Scott's page the comments pagination is working. On the example page nothing is working in FF 2.0.0.3.



I think it stopped working on the example page after I upgraded to the latest version of FF. But why is it still working on Scott's pages using the same browser?
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Next

Return to Additional Downloads



Who is online

Users browsing this forum: No registered users and 0 guests

cron