News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

create topics using wap 1 protocol from old phones (addin for wap smf)

Started by sadiqbaig, March 29, 2006, 09:36:00 AM

Previous topic - Next topic

sadiqbaig




// download more wapscripts
// http://wapscripts.net
function template_wap_post()
{
global $context, $settings, $options, $scripturl, $txt;
echo '
        <card id="main">
            <p align="center">', $context['page_title'], '</p>
            <p>
                Subject:<br/>
                <input type="text" name="subject" value="', $context['subject'], '" maxlength="80" /><br/>
                Message:<br/>
                <input type="text" name="message" value="', $context['message'], ' " /><br/>
            <anchor>', $context['submit_label'], '
                <go href="', $scripturl, '?action=', $context['destination'], ';board=', $context['current_board'], '.0;wap" method="post">
                    <postfield name="subject" value="$subject" />
                    <postfield name="message" value="$message" />
                    <postfield name="icon" value="wireless" />
                    <postfield name="seqnum" value="', $context['form_sequence_number'], '" />
                    <postfield name="sc" value="', $context['session_id'], '" />', isset($context['current_topic']) ? '
                    <postfield name="topic" value="' . $context['current_topic'] . '" />' : '', '
                    <postfield name="notify" value="', $context['notify'] || !empty($options['auto_notify']) ? '1' : '0', '" />
                </go>
            </anchor></p>


        </card>';
}


Advertisement: