Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
WML News for WAP Phones

 
Reply to topic    Forum Index » Suggestions View previous topic
View next topic
WML News for WAP Phones
Author Message
ksen



Joined: 04 Jun 2006
Posts: 142

Post WML News for WAP Phones Reply with quote
Hey i've been thinkin of requesting for WAP for cutenews.ru for sometime now. And suddenly 2day i came accross this very interesting articles!! Have a look..



http://cutephp.com/forum/lofiversion/index.php/t1278.html



http://uk.geocities.com/new_rebus/



Any possibilties of integrating wap facility to cutenews.ru?? I think it wud be simply fascinating. Atleast to view the news items under each category...
Sun Aug 20, 2006 2:52 pm View user's profile Send private message
Guest








Please login to hide the ads.

ksen



Joined: 04 Jun 2006
Posts: 142

Post Reply with quote
hi guys, did any one have a chance to chek this out???
Wed Aug 23, 2006 2:48 pm View user's profile Send private message
Syrion



Joined: 02 Aug 2006
Posts: 173

Post Reply with quote
http://uk.geocities.com/new_rebus/ <- You can download that package and install it? If it's usable for the "normal" cutenews it should be usable for cutenews.ru as well.
Wed Aug 23, 2006 5:07 pm View user's profile Send private message
ksen



Joined: 04 Jun 2006
Posts: 142

Post Reply with quote
hi i tried this out.



Created a test page and put it up. I had to include the head.php to retrieve the news though. The test file works when i open it directly in the browser but if i go thru the normal way it doesnt work. Got this error once



Code:
<b>Warning</b>:  fopen(http://wap.mydomain.com/news.php): failed to open stream: HTTP request failed!  in <b>c:\hosting\path\to\script\wap\inc\html_to_wml.php</b> on line <b>50</b>




And sometimes, after a long time the file tries to download the .php file!!



This is the code arounf line 50



Code:
function getOutputFromURL($url)

{

   $handle = fopen($url, "rb");

   $contents = "";



   do {

      $data = fread($handle, 8192);

      if (strlen($data) == 0) {

         break;

      }

      $contents .= $data;

   } while (true);



   fclose($handle);

   return $contents;

}




This actually looks more like a file handling code to me!! I dont know Smile Any help pls??



Thanx



CuteNews - WAP wml_news_v1_0.zip
 Description:
WAP WML plugin for cutenews

Download
 Filename:  CuteNews - WAP wml_news_v1_0.zip
 Filesize:  6.42 KB
 Downloaded:  157 Time(s)

Thu Oct 12, 2006 7:50 pm View user's profile Send private message
ksen



Joined: 04 Jun 2006
Posts: 142

Post Reply with quote
hi, any luck with this pls??
Sat Oct 14, 2006 5:00 am View user's profile Send private message
ksen



Joined: 04 Jun 2006
Posts: 142

Post Reply with quote
hey i just found out --> Without using this plugin, if i just put the include show_news.php command into a blank php file with the variables that i want and i access it from my mobile it works!!!!



So then does anybody know why these wml stuff is required????



For example i put the following code in a file and accessed it directly from my mobile and it works!!!



Code:
<?php

include '../news/head.php';

?>

<?PHP

   $category = "1";      // category use is optional...

   $number = 2;

   $template = "WAP";

        include("../news/show_news.php");

?>




I just used the WAP template cos its a barebone template. Here it is.



Code:
<?PHP

///////////////////// TEMPLATE WAP /////////////////////

$template_active = <<<HTML

<p>

  <big>{title}</big> - {date}

</p>

<p>{short-story} [full-link]more...[/full-link] (by {author})</p>

HTML;





$template_full = <<<HTML

<p>

  <big>{title}</big> - {date}

</p>

<p>{full-story}</p>

<p><b>{date} by {author}</b></p>

HTML;





$template_comment = <<<HTML



HTML;





$template_form = <<<HTML



HTML;





$template_prev_next = <<<HTML

<p>

[prev-link]&lt; Prev[/prev-link]&nbsp;&nbsp; [next-link]Next &gt;[/next-link]

</p>

HTML;

?>


Thu Oct 19, 2006 5:08 am View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Suggestions All times are GMT + 1 Hour
Page 1 of 1

 
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.