Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Ajax news pagination
Goto page 1, 2  Next
 
Reply to topic    Forum Index » Additional Downloads View previous topic
View next topic
Ajax news pagination
Author Message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2668
Location: Germany

Post Ajax news pagination Reply with quote
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:
<script type="text/javascript" src="<?=$config_http_script_dir; ?>/plugins/ajaxnewspagination/ajaxnewspagination.js"></script>




3. Put this above your include code:

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




4. Put this below your include code:

Code:
echo '</div>';




So your include code might look like this:

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



$number = 7;

$category = "1";

include $cutepath.'/show_news.php';



echo '</div>';




ajax_news_pagination.zip
 Description:

Download
 Filename:  ajax_news_pagination.zip
 Filesize:  4.22 KB
 Downloaded:  224 Time(s)

Wed Apr 04, 2007 7:23 pm View user's profile Send private message
Guest








Please login to hide the ads.

scottdallas



Joined: 04 May 2006
Posts: 1802
Location: US

Post Reply with quote
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?

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Wed Apr 04, 2007 7:46 pm View user's profile Send private message Visit poster's website AIM Address
Heya Im Me



Joined: 01 Feb 2006
Posts: 189

Post Reply with quote
Very Happy Very Happy Very Happy Very Happy Very Happy
Wed Apr 04, 2007 11:28 pm View user's profile Send private message
KArkhon



Joined: 24 Jan 2007
Posts: 23
Location: Montenegro

Post Reply with quote
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.
Thu Apr 19, 2007 10:13 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2668
Location: Germany

Post Reply with quote
Try setting the encoding to UTF-8.
Mon Apr 23, 2007 3:01 pm View user's profile Send private message
gauss



Joined: 06 Sep 2006
Posts: 23

Post windows-1250 Reply with quote
Quote:
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? Sad
Tue Apr 24, 2007 8:33 am View user's profile Send private message
Heya Im Me



Joined: 01 Feb 2006
Posts: 189

Post Reply with quote
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:
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
Wed Apr 25, 2007 4:15 am View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2668
Location: Germany

Post Reply with quote
I made some changes to the files.



Please redownload it and replace plugins/ajaxnewspagination/ajaxnewspagination.php with the latest file.
Wed Apr 25, 2007 8:13 pm View user's profile Send private message
Heya Im Me



Joined: 01 Feb 2006
Posts: 189

Post Reply with quote
Fixed!



Thanks, FI-DD!



-HIM
Wed Apr 25, 2007 10:28 pm View user's profile Send private message
RAMMSTEIN12



Joined: 06 May 2007
Posts: 29
Location: Greece

Post All users here use IE. Reply with quote
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: www.Down66.com
Tue May 15, 2007 11:01 am View user's profile Send private message Visit poster's website
astrostart



Joined: 11 Feb 2007
Posts: 124
Location: The Netherlands

Post Reply with quote
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!
Tue May 15, 2007 11:20 am View user's profile Send private message Visit poster's website
Heya Im Me



Joined: 01 Feb 2006
Posts: 189

Post Re: All users here use IE. Reply with quote
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
Tue May 15, 2007 2:44 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2668
Location: Germany

Post Reply with quote
Every AJAX plugin is working in Firefox.



Rating:

http://astrostart.nl/index.php/2007/05/14/atlantis-gaat-dinsdag-al-naar-lanceerplatform.html



Comments pagination:

http://www.scottdizzle.com/view.php?line-rider-remake.html



Polls:

http://www.tastypolls.com/



(You are right, it stopped working on the example page - no idea why.)
Tue May 15, 2007 2:56 pm View user's profile Send private message
astrostart



Joined: 11 Feb 2007
Posts: 124
Location: The Netherlands

Post Reply with quote
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!
Tue May 15, 2007 3:29 pm View user's profile Send private message Visit poster's website
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2668
Location: Germany

Post Reply with quote
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?
Tue May 15, 2007 4:10 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Additional Downloads All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 of 2

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.