[DEV] phpBBmobile Device Browser Style

MOD Authors: Discuss and post updates on new MODs in development for phpBB3, Receive feedback and Feature requests for MODs in development.

To submit your MOD or style, go to the STG MOD Manager
Forum rules
go to the STG MOD Manager to post your MOD in development.
Discuss and receive feedback for any MOD in development for phpBB3.
Suggest features for MODs in development.

No Support or MOD Requests
-- exceptions for MODs only posted here as Beta or Alpha.
Support requests for a MOD should be requested in the respective MOD topic.

Re: [DEV] STG-Mobile Device Browser Style

Postby manhhung » 19 Mar 2011, 06:52

no no!
I'd say that when using opera mini Full Editor to reload will fail,
although I have not click the button
reload before you click button :((
manhhung    
Crewman
Crewman
 
Posts: 8
Joined: 19 Mar 2011, 05:08
Gender: Male
phpBB Knowledge: 1


Re: [DEV] STG-Mobile Device Browser Style

Postby manhhung » 19 Mar 2011, 06:57

please review my first video test again
http://www.youtube.com/watch?v=_N8tX8_d2vE
reload page before I click on the full editor button
manhhung    
Crewman
Crewman
 
Posts: 8
Joined: 19 Mar 2011, 05:08
Gender: Male
phpBB Knowledge: 1

Re: [DEV] STG-Mobile Device Browser Style

Postby Sniper_E » 19 Mar 2011, 08:59

After typing a message in the quick reply and hitting Reload my message is still there.
But this is on my desktop in the mobile style.

My daughter is playing with my mobile phone today so I will test this with it later.
It may work fine with my mobile and it want work on yours that way. I'll check later and see.

What I'm getting at is all mobile devices are not the same. Some have features that others don't have.
Some can upload attachments and others are not able to do that.
Some can refresh the page or go to the full editor and retain their message, some can not.
You might have one of those phones that can not do this.

I'll test that later on mine and let you know what I find.
I will take the steps you took in your video.
I'm thinking in the lines of what Hippie posted, but we'll see.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6979
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [DEV] STG-Mobile Device Browser Style

Postby manhhung » 19 Mar 2011, 09:20

Sniper_E wrote:After typing a message in the quick reply and hitting Reload my message is still there.
But this is on my desktop in the mobile style.

My daughter is playing with my mobile phone today so I will test this with it later.
It may work fine with my mobile and it want work on yours that way. I'll check later and see.

What I'm getting at is all mobile devices are not the same. Some have features that others don't have.
Some can upload attachments and others are not able to do that.
Some can refresh the page or go to the full editor and retain their message, some can not.
You might have one of those phones that can not do this.

I'll test that later on mine and let you know what I find.
I will take the steps you took in your video.
I'm thinking in the lines of what Hippie posted, but we'll see.

thank
I use opera mini 5.1 on nokia n73 , n95 , n82 , windows mobile
please test http://www.opera.com/mobile/download/versions/
manhhung    
Crewman
Crewman
 
Posts: 8
Joined: 19 Mar 2011, 05:08
Gender: Male
phpBB Knowledge: 1

Re: [DEV] STG-Mobile Device Browser Style

Postby Sniper_E » 19 Mar 2011, 09:46

Testing

[ Post made via Android] Image

Nope... Refresh did not carry over my words on my mobile. Going to Post Reply did not carry over my words either.
On my desktop it did carry over my words so it must be that mobile devices are not setup to do that.
I'll look at the codes later to make sure it's not a template problem. But, I don't think it is.
Attachments
IMAG0009-1.jpg
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6979
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [DEV] STG-Mobile Device Browser Style

Postby manhhung » 19 Mar 2011, 10:44

Thank you
I did this fix it
reason is the opera mini browser does not support script
Fix :
open posting_body.html on foder style mobile
find
Code: Select all
<td class="row1"><textarea name="message" rows="5" cols="16" tabindex="5" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" style="width: 98%;">{MESSAGE}</textarea></td>

replace
Code: Select all
<td class="row1"><textarea name="message" rows="5" cols="16" tabindex="5" style="width: 98%;">{MESSAGE}</textarea></td>

:good:
my forum http://daivietpda.com
manhhung    
Crewman
Crewman
 
Posts: 8
Joined: 19 Mar 2011, 05:08
Gender: Male
phpBB Knowledge: 1

Re: [DEV] STG-Mobile Device Browser Style

Postby Sniper_E » 19 Mar 2011, 15:46

I didn't see this mobile style at that address.
You had a Wap style installed there.
Is that what you're editing in this thread? :shock:

[ Post made via Android] Image
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6979
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [DEV] STG-Mobile Device Browser Style

Postby manhhung » 19 Mar 2011, 20:10

Sniper_E wrote:I didn't see this mobile style at that address.
You had a Wap style installed there.
Is that what you're editing in this thread? :shock:

[ Post made via Android] Image

Yes .
I have edited from your mobile style
manhhung    
Crewman
Crewman
 
Posts: 8
Joined: 19 Mar 2011, 05:08
Gender: Male
phpBB Knowledge: 1

Re: [DEV] STG-Mobile Device Browser Style

Postby Sniper_E » 19 Mar 2011, 22:08

I didn't see my style when I went to your link on my mobile. I saw a wap style.

Oh, here it is: http://daivietpda.com/?style=3

Hey manhhung... Looks like you took the credits out of the footer and put yours in there.

NOT GOOD - You will not receive any support on any mod that you remove the credits from.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6979
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [DEV] STG-Mobile Device Browser Style

Postby Sniper_E » 20 Mar 2011, 17:24

There is something else I was trying, by COC: viewtopic.php?p=122802#p122802

I'm trying to have the Full Phone Name ($real_name) show with the Short_Name.png ($status) for the image.

Those edits gives this in the post:
Code: Select all
[size=80][b][i][ Post made via C ][/i][/b][/size] [img]http://sniper_e.ifastnet.com/phpBB3/images/T.png[/img]

Results are $status[2] = C and $status[1] = T


Is there something I don't have right?

Open includes/mods/mobile_device_detect.php
FIND
Code: Select all
   $accept         = (!empty($_SERVER['HTTP_ACCEPT'])) ? $_SERVER['HTTP_ACCEPT'] : getenv('HTTP_ACCEPT');
ADD after
Code: Select all
   $real_name      = '';
FIND
Code: Select all
               $status = 'BlackBerry Curve';
REPLACE with
Code: Select all
               $real_name = 'BlackBerry Curve';
               $status = 'BB8300';
FIND
Code: Select all
            return array($mobile_browser,$status);
REPLACE with
Code: Select all
            return array($mobile_browser,$status,$real_name);

Open posting.php
FIND
Code: Select all
      $message_parser->message .= "\n\n[size=80][b][i][ Post made via " . $status[1] . " ][/i][/b][/size] [img]http://www.yoursite.com/forums/images/" . $status[1] . ".png[/img]";
REPLACE with
Code: Select all
      if (empty($status[2]))
      {
         $status = $status[1];
      }
      else
      {
         $status = $status[2];
      }

         $message_parser->message .= "\n\n[size=80][b][i][ Post made via " . $status[2] . " ][/i][/b][/size] [img]http://www.yoursite.com/forums/images/" . $status[1] . ".png[/img]";
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6979
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

PreviousNext

Return to MODs in Development

Who is online

Users browsing this forum: AhrefsBot and 9 guests