News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

more features for wap 2

Started by sadiqbaig, November 23, 2005, 03:05:33 PM

Previous topic - Next topic

sadiqbaig


like online list
buddy list

or if u could help me in

i was thinking about adding more features
to wap 2 smf
i just wanted to know
like if i want to add who's online list in wap 2
what i ave to do
like which templates to edit nd add functions
nd do i have to add it in sql
but the default smf templates are not in sql
i know that i should edit wireless.template
wireless.css for the colors
nd wireless.english
but i want to know just few examples
and about action where does it takes from
like when calling ?action=login2;wap2"
please give some examples
i assure you that when i complete the wap mod
i will give the download option
btw i have my own site where i have uploaded
17 wapscripts nd mysite works on WAP ND WEB

sadiqbaig


i can edit php files
if u r thinking
that i cant
take a look at my site WAP or WEB

http://www.waplinks3.com

just give me sum examples
how to add xtra functions to wap smf

Dannii

Please write more legibly if you want good responses.

I don't know how to do what you're asking, but wireless.template.php is probably where it is.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

sadiqbaig

for example this is xhtml
to get this in proper alignment
i just ave to add <p align="center" class="windowbg.....
when i do the same thing for register template
it doesnt work
the register template is not in proper alignment on wap
whereas the login wireless template is in proper alignment on wap

function template_wap2_login()
{
   global $context, $settings, $options, $scripturl, $txt;

   echo '
      <form action="', $scripturl, '?action=login2;wap2" method="post">
         <p class="catbg">', $txt[34], '</p>';
   if (isset($context['login_error']))
      echo '
         <p class="windowbg" style="color: #ff0000;"><b>', $context['login_error'], '</b></p>';
   echo '
         <p class="windowbg">', $txt[35], ':</p>
         <p class="windowbg"><input type="text" name="user" size="10" /></p>
         <p class="windowbg">', $txt[36], ':</p>
         <p class="windowbg"><input type="password" name="passwrd" size="10" /></p>
         <p class="windowbg"><input type="submit" value="', $txt[34], '" /><input type="hidden" name="cookieneverexp" value="1" /></p>
         <p class="catbg">', $txt['wireless_navigation'], '</p>
         <p class="windowbg">
  • <a href="', $scripturl, '?wap2" accesskey="0">', $txt['wireless_navigation_up'], '</a></p>
          </form>';
    }

sadiqbaig


like if i want to add buddy option
in front page of wap after login successful
i will have to add this in

function template_wap2_boardindex()

            else...........
                                    <p align="center" class="windowbg"><a href="', $scripturl, '?action=addbuddy;wap2">', $txt['wireless_pm_add_buddy'], '</a></p>
                }
           
}

but it doesnt work

what else i have to do

sadiqbaig


i have replaced all bg colors in wireless.css
to #33FFFF
but i dont want any white color space in between
i mean i want to have complete bg into one color

.catbg, tr.catbg td
{
   background-color: #33FFFF;
   color: #330099;
}
.titlebg, .titlebg a, .titlebg a:link, .titlebg a:visited
{
   background-color: #33FFFF;
   color: #330099;
   text-decoration: none;
}
.windowbg, tr.windowbg td
{
   background-color: #33FFFF;
   color: #330099;
}
.windowbg2, tr.windowbg2 td
{
   background-color: #33FFFF;
   color: #330099;
}
.new, a:link.new, a:visited.new
{
   background-color: #33FFFF;
   color: #330099;
}
.updated
{
   color: #330099;
}

sadiqbaig


if i want to add
how many users are online
total number of users registered
in frontpage of wap
where users have the option of login and signup
followed by user online and reg users
ony total numbers

sadiqbaig


try this

if u like ne theme nd want 2ave the same theme template
4ur wap version
just copy style.css
nd dont forget to leave the style.css also
nd rename it to wireless.css
nd u ave the same theme on wap
ur not getting wat i am saying
just c these files u get

lik style.css------> style.css
copy of style.css------> rename to wireless.css

style.css nd wireless.css

hartiberlin

Can you please add the Edit function for a posting into
the Wireless.template.php

I often am doing Typos and want to edit them out on my PDA.
Many thanks.

hartiberlin

Also it would be nice, if posted pictures as attachments would be rescaled to less than 50 kbytes.

Some of my users post pictures with 3 MBytes as these are very large.

It would be good,
if there would be an online rescale function, that can rescale these pics to about
640x480 with less than 50kbytes.
Many thanks.

hartiberlin

Is nobody working on the Wireless.template.php to add
a few more features ?
Many thanks.

Grudge

2.0 has post editing, basic moderation and I think I even added banning...
I'm only a half geek really...

H

You did..

From the changelog

Quote+ It is now possible to ban users using wireless mode. (Profile.php, ManageBans.php, Wireless template, Wireless language files)
! Allow post editing and basic moderation when in wireless mode - only wap2 or imode. (Display.php, LockTopic.php, Wireless template)
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

hartiberlin

#13
Sounds good,
but could these features not just also be added to version 1.1.3 ?

Would it be possible to just edit the Wireless.template.php
file and add these features just there alone or does it need
more files to edit ?

Has anybody else done something simular for SMF version 1.1.3 ?

What I also really would like to see, that posted image attachments would
be rescaled and resized and would be automatically downsized to 240x320 pixels
and would be only a few kbytes big.

This way one could really save much download time on a PDA which is
just connected only via slow GPRS.

Also it would be nice, if the Admin could delete other postings via WAP2,
when he sees anybody who has posted spam.

Many thanks.

Regards, Stefan.

Advertisement: