SunQuest
           WAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreWAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old December 18th, 2005, 05:15 AM
sadiqbaig sadiqbaig is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2005
Posts: 13 sadiqbaig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 25 m 17 sec
Reputation Power: 0
Please help me convert this to wml php script

PHP Code:
if ($context['user']['is_guest'])

            echo 
'<p class="catbg">'$txt['wireless_options'], '</p>
                <p class="windowbg"><a href="'
$scripturl'?action=login;wap2">'$txt['wireless_options_login'], '</a><br/>

                <a href="'
$scripturl'?action=register;wap2">'$txt['wireless_options_register'], '</a></p>';

            else
                {
                    echo 
'
                        <p class="titlebg">'
$txt['wireless_options'], '</p>
                        <p class="windowbg"><a href="'
$scripturl'?action=pm;wap2">', empty($context['user']['unread_messages']) ? $txt['wireless_pm_inbox'] : sprintf($txt['wireless_pm_inbox_new'], $context['user']['unread_messages']), '</a></p>';
                            echo 
'
                            <p class="windowbg"><a href="'
$scripturl'?action=unread;wap2">'$txt['wireless_recent_unread_posts'], '</a></p>
                            <p class="windowbg"><a href="'
$scripturl'?action=unreadreplies;wap2">'$txt['wireless_recent_unread_replies'], '</a></p>
                            <p class="windowbg"><a href="'
$scripturl'?action=logout;sesc='$context['session_id'], ';wap2">'$txt['wireless_options_logout'], '</a></p>';
                }
            



Reply With Quote
  #2  
Old December 18th, 2005, 05:18 AM
sadiqbaig sadiqbaig is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2005
Posts: 13 sadiqbaig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 25 m 17 sec
Reputation Power: 0
i just want the login n logout part in this wml script

PHP Code:
function template_wap_boardindex()
{
    global 
$context$settings$options$scripturl;

    
// This is the "main" card...
    // !!! card title=""
    
echo '
    <card id="main">
        <p><b>'
$context['forum_name'], '</b><br /></p>';

    
// Show an anchor for each category.
    
foreach ($context['categories'] as $category)
        echo 
'
        <p><a href="#c'
$category['id'], '">'$category['name'], '</a><br /></p>';

    
// Okay, that's it for the main card.
    
echo '
    </card>'
;

    
// Now fill out the deck of cards with the boards in each category.
    
foreach ($context['categories'] as $category)
    {
        
// Begin the card, and make the name available.
        // !!! card title=""
        
echo '
    <card id="c'
$category['id'], '">
        <p><b>'
$category['name'], '</b><br /></p>';

        
// Now show a link for each board.
        
foreach ($category['boards'] as $board)
            echo 
'
        <p><a href="'
$scripturl'?board='$board['id'], '.0;wap">'$board['name'], '</a><br /></p>';

        echo 
'
    </card>'
;
    }


Reply With Quote
  #3  
Old December 18th, 2005, 05:20 AM
sadiqbaig sadiqbaig is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2005
Posts: 13 sadiqbaig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 25 m 17 sec
Reputation Power: 0
my current site which i m working to add features on wap

is

http://www.waplinks3.com/wapforum/ <----------- PC USERS

http://wapforum.waplinks3.com <----------- MOBILE USERS ( Xhtml / Wap 2.0 )

http://wapchat.waplinks3.com <----------- MOBILE USERS with OLD Phones ( Wml / Wap 1.0 )

Reply With Quote
  #4  
Old December 25th, 2005, 03:28 AM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Back in HEL
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Feb 2002
Location: Finland
Posts: 8,670 jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)  Folding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner Folder
Time spent in forums: 3 Months 3 Weeks 4 Days 6 h 10 m 50 sec
Reputation Power: 1618
Send a message via ICQ to jabba_29 Send a message via AIM to jabba_29 Send a message via MSN to jabba_29 Send a message via Yahoo to jabba_29 Send a message via Google Talk to jabba_29 Send a message via Skype to jabba_29
Facebook
Not sure exactly what you problem is - haven't got the time currently to investigate further - but the thing that stands out is this, for example:
PHP Code:
<?php
//yadda yadda
echo '<card id="c'$category['id'], '">';
// etc..... should be
echo '<card id="c'$category['id'] .'">';
?>
__________________
Cheers,

Jamie


# skiFFie | Home of the 'accessibility module' for Drupal
# Jamie Burns [me] Accessibility Module [drupal]
# guidelines | search | wap resources | not getting help | fold to cure

# Any form of employment is strictly prohibited ......


__________________

Let the might of your compassion arise to bring a quick end
to the flowing stream of the blood and tears .....
Please hear my anguished words of truth.

__________________

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > Please help me convert this to wml php script


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway