[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 Sniper_E » 27 May 2009, 09:25

I'll look at it later. My page looks a lot different than yours for some reason.
Did you change the search_body.html template also?

Here is what I see with the above edits on the search_results.html template:
search_results.gif

Compare what you discribed with what you see in the subsilver2's search results page.

EDIT:Dude, I'm working on the search pages not the active topic pages.
The active topics may be edits needed in the top of the search_results.html template.
I didn't focus on the top of that page yet. I need a minute.
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: 6991
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: [DEV] STG-Mobile Device Browser Style

Postby Sniper_E » 27 May 2009, 10:08

Here is what I see when viewing the active topics in my 240x320 mobile view:
active_topics.gif
(18.07 KiB) Downloaded 12 times

This is the top of that template, which needs the work. I'll work on this.
Mobile devices have a 240px X 320px screen so 2 columns will not happen.
I try to fit all in the 320x240 view, but it has to squeeze in the 240x320 view also.
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: 6991
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 » 27 May 2009, 12:49

Aight Lucian....

I have updated the codes for the search_results.html template in this post: viewtopic.php?p=105918#p105918
Update your search_results.html template with that code and see how it looks. I just rewrote it from scratch.

Tanks for the nudge.... I've been slack on this style for awhile.
I've updated the mobile style here as well so you can check it out here too.
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: 6991
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 Lucian_rider » 27 May 2009, 16:51

Sniper_E wrote:Aight Lucian....

I have updated the codes for the search_results.html template in this post: viewtopic.php?p=105918#p105918
Update your search_results.html template with that code and see how it looks. I just rewrote it from scratch.

Tanks for the nudge.... I've been slack on this style for awhile.
I've updated the mobile style here as well so you can check it out here too.


Please call me Chris:-)

I did the updates, didn't realize I had to do the Search_body.html as well and now it is working perfectly!!!
The single column style is fine... No problem to navigate it.
I must say that this is a great addition to any forum. I have been checking in and answering posts using my Blackberry... Sweet.

I really thank you for the effort you have put into this.
Lucian_rider    
Cadet I
Cadet I
 
Posts: 17
Joined: 31 Oct 2008, 09:10
Location: St. Lucia West Indies
Favorite Team: MotoGP
Gender: Male
phpBB Knowledge: 4

Re: [DEV] STG-Mobile Device Browser Style

Postby Sniper_E » 27 May 2009, 23:38

Hey Chris,

I just noticed after you bringing this layout problem up in the Active Topics page,
that I took the "View active topics" link out of the index page earlier. To put it back in, do this:

Open the index_body.html

FIND
Code: Select all
         <!-- IF S_DISPLAY_SEARCH -->
         <td width="50%"><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a></td>
         <td width="50%" align="{S_CONTENT_FLOW_END}"><a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></td>
         <!-- ENDIF -->
REPLACE WITH
Code: Select all
         <!-- IF S_DISPLAY_SEARCH -->
         <td width="50%"><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><br />
            <a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a></td>
         <td width="50%" align="{S_CONTENT_FLOW_END}"><a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a><br />
            <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></td>
         <!-- ENDIF -->
SAVE and Refresh Templates
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: 6991
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 zenrei » 28 May 2009, 14:14

I have users that are getting a different template when they log in via mobile.

they said they used to get the mobile theme, now it's going to one of the other ones.

When I log in, I get the right one.

Any idea what would cause this??
zenrei
Cadet II
Cadet II
 
Posts: 28
Joined: 13 Oct 2008, 15:39
Gender: Female
phpBB Knowledge: 5

Re: [DEV] STG-Mobile Device Browser Style

Postby Sniper_E » 28 May 2009, 15:18

The ony thing that could cause their mobile device to pick up on a different style is the mobile browser detection script.

They need to connect to your site on their mobile device so that you can go to Who's Online and copy their mobile device browser info.

Then make sure their device is listed in the array list.

You do know that the mobile device style is not suppose to be set as active? It is not suppose to be a selectable choice in their UCP.

Check your array list in the session.php file and make sure they are listed.

[ Post made via Mobile Device ] Image
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6991
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 zenrei » 29 May 2009, 07:43

I knew it wasn't supposed to be active, but I had to make it active, so that they could get to it since it was sending them to the wrong theme.

But I'll keep an eye on their info. Thank you!
zenrei
Cadet II
Cadet II
 
Posts: 28
Joined: 13 Oct 2008, 15:39
Gender: Female
phpBB Knowledge: 5

Re: [DEV] STG-Mobile Device Browser Style

Postby zenrei » 29 May 2009, 10:17

ok, so I got one of them to do it... and what I get is:

Mozilla/4.0 (compatible; MSIE 4.01; Windows CE; Sprint:PPC-6700; PPC; 240x320)

I'm assuming I have to add sprint or PCC to this part of the script?

Code: Select all
$browsers_array = array('240x320', '320x240', 'apple', 'blackberry', 'diablo', 'Googlebot-Mobile', 'iphone', 'mobilephone', 'iemobile', 'microB', 'minimobile', 'mobile', 'opera mini', 'pda', 'phone', 'pocket', 'psp', 'sharp', 'symbian', 't-shark', 'wireless', 'X11');
      foreach ($browsers_array as $ua_match)
      {
         if (strpos($user_browser, $ua_match) !== false)
         {
            $style = 3;
            $this->data['is_mobile'] = true;
            break;
         }
      }
      // end mobile browser detection mod
zenrei
Cadet II
Cadet II
 
Posts: 28
Joined: 13 Oct 2008, 15:39
Gender: Female
phpBB Knowledge: 5

Re: [DEV] STG-Mobile Device Browser Style

Postby Sniper_E » 29 May 2009, 10:59

Yes, try adding 'sprint', to your array list and see what happens.

'iphone' needs to be removed because they can view a full page.

After adding 'sprint' have them select a normal style for their default style on their desktop. Make your mobile style so it is not active. You want the script to force the mobile style on their detected mobile browser without it being their default style.

Let me know how it goes.

[ Post made via Mobile Device ] Image
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6991
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: No registered users and 9 guests