Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Ajax news pagination
Goto page Previous  1, 2
 
Reply to topic    Forum Index » Additional Downloads View previous topic
View next topic
Ajax news pagination
Author Message
Partyism



Joined: 25 Sep 2007
Posts: 156

Post Reply with quote
2 Bad it isnt working with sIFR
Mon Nov 19, 2007 10:15 am View user's profile Send private message
Guest








Please login to hide the ads.

alfred_rade



Joined: 01 Dec 2007
Posts: 24
Location: Buenos Aires

Post Reply with quote
Hi again, this is a fantastic script, but... I has a problem. When I press over the page number, the ajax pagination load fine but sends the entire web page to the bottom. Any solution? I want to send to the head.

Thanks, and sorry for my english.
Tue Dec 11, 2007 3:58 am View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
alfred_rade



Joined: 01 Dec 2007
Posts: 24
Location: Buenos Aires

Post Reply with quote
Hello? Any idea to resolv this little problem?
Wed Feb 13, 2008 4:25 am View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Neisen



Joined: 23 Aug 2007
Posts: 14
Location: Latvia

Post Reply with quote
Yeah, the symbols are not showing right - any ideas to fix it? I have everything in UTF-8 encoding!

_________________
Fri Feb 29, 2008 6:26 pm View user's profile Send private message
nolikewise



Joined: 17 Dec 2007
Posts: 41

Post Reply with quote
hi, in a turkish website, it is suggested to use this code to prevent chars showing up wrong.

Code:
<?php
header("Content-Type: text/xml; charset=utf-8");
?>


But i dont know where to put it?

the url is: http://www.ceviz.net/ajax-uygulamalarinda-turkce-karakter-sorunu_a601.html

website is turkish but you understand it if you know php well...

pls let me know about where to put this code...

thank you
Fri Jul 11, 2008 12:20 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2668
Location: Germany

Post Reply with quote
You can change the charset in inc/lang/en/global.ini.
Fri Jul 18, 2008 9:45 am View user's profile Send private message
nolikewise



Joined: 17 Dec 2007
Posts: 41

Post Reply with quote
FI-DD wrote:
You can change the charset in inc/lang/en/global.ini.


I have already done this, and also manually put meta tag of utf-8 to the top of the pages but in vain. it did not work.

Pls have a news which contains "??ş?ğ"

You will see the result...

And i used scottdallas megaplugin pack and editted it...

To see another problem i encountered click: http://forums.cutenewsru.com/bug-utf---8-formatting-t2290.html#13349


Download example global ini and take some Turkish characters from it and then post a message by using UTF-8



global.rar
 Description:

Download
 Filename:  global.rar
 Filesize:  854 Bytes
 Downloaded:  5 Time(s)

Sat Jul 19, 2008 12:15 pm View user's profile Send private message
nolikewise



Joined: 17 Dec 2007
Posts: 41

Post Reply with quote
Hİ, FI-DD, pls have a look how ajax news pagination works. It destroys all utf-8 content, actually turkish chars.

http://www.okuogren.com/yeni/
check it out...

why is that how can i handle this?

Secondly, i have a php file
Code:

<?php

$path_to_images = 'theme/banner/';  // path to your images
$default_img = "site_logo.gif";  // image to display if directory listing fails

function getRandomImage($path, $img) {
    if ( $list = getImagesList($path) ) {
        mt_srand( (double)microtime() * 1000000 );
        $num = array_rand($list);
        $img = $list[$num];
    } 
    return $path . $img;
}

function getImagesList($path) {
    $ctr = 0;
    if ( $img_dir = @opendir($path) ) {
        while ( false !== ($img_file = readdir($img_dir)) ) {
            // can add checks for other image file types here
            if ( preg_match("/(\.gif|\.jpg)$/", $img_file) ) {
                $images[$ctr] = $img_file;
                $ctr++;
            }
        }
        closedir($img_dir); a
        return $images;
    } 
    return false;
}
?>


this shows random logo on the header. on homepage it works, but when you click any link it doesnt


to show images put this on html...
Code:
<img src="<?php echo getRandomImage($path_to_images, $default_img) ?>">
   


where should i put $cutepath.' or <?=$config_http_script_dir; ?>
when i this
Code:
$path_to_images = $cutepath.'/theme/banner/';  // path to your images

it doesnt work when i used <?=$config_http_script_dir; ?> it doesnt work.

how can i give an absolute link?[/code]
Mon Jul 28, 2008 6:49 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2668
Location: Germany

Post Reply with quote
Try to remove this line from plugins/ajaxnewspagination/ajaxnewspagination.php:
Code:
$my_output = utf8_encode($my_output);

Tue Jul 29, 2008 5:47 pm View user's profile Send private message
nolikewise



Joined: 17 Dec 2007
Posts: 41

Post Reply with quote
Thank you, this works perfect...
Thu Jul 31, 2008 12:56 pm View user's profile Send private message
ryuzaki



Joined: 16 Aug 2008
Posts: 5
Location: New York

Post Reply with quote
As always, nice work. I was wondering, does this add-on feature allow multiple categories to displayed instead of limiting it to just one?
Sat Aug 16, 2008 10:04 pm View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Display posts from previous:    
Reply to topic    Forum Index » Additional Downloads All times are GMT + 1 Hour
Goto page Previous  1, 2
Page 2 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.