[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 » 19 May 2009, 22:32

rukusgetdown wrote:hey sniper..is it possible for me to make some of the text a little bigger...like the login link etc

Are you talking about the login link in the index_body.html template?
Code: Select all
<input type="submit" class="btnmain" name="login" value="{L_LOGIN}" />

It uses the class="btnmain", so look in the theme/stylesheet.css file.
Code: Select all
.btnmain {
   font-weight: bold;
   background-color: #ECECEC;
   border: 1px solid #A9B8C2;
   cursor: pointer;
   padding: 1px 5px;
   font-size: 1.1em;
}

Change the font-size: 1.1em; to what looks good to you.

Find what class any text uses and adjust the size of it in the stylesheet.css to your liking.
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: 6985
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 rukusgetdown » 19 May 2009, 22:36

sounds good to me...harder to find classes since i cant cheat with firebug etc..wonder if google chrome has an addon like that...is there an easy way to find the classes ?
rukusgetdown
Supporter
Supporter
 
Posts: 33
Joined: 14 May 2009, 19:23
Gender: Male
phpBB Knowledge: 1

Re: [DEV] STG-Mobile Device Browser Style

Postby Sniper_E » 19 May 2009, 22:39

You can always highlight the text you want to change the size of.... then right click and select view selected source.
It should pull up the codes showing you what class that text uses.

Try it....
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: 6985
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 rudolfpietersma » 20 May 2009, 01:29

rudolfpietersma wrote:
rudolfpietersma wrote:Before on my site with my Google G1 I could log in to my site. Now erverytime I go there I fill in my username and password but doesn't log me in. What could be the problem?


Bump? :beg:


Anybody?
rudolfpietersma    
Cadet II
Cadet II
 
Posts: 29
Joined: 28 Dec 2008, 05:21
Favorite Team: Soccer: Cruzeiro
Gender: Male
phpBB Knowledge: 5

Re: [DEV] STG-Mobile Device Browser Style

Postby damian0612 » 20 May 2009, 04:49

Hi

I have uploaded the files my styles folder, made the amendements to the script and updated the path for the new style (folder is called mobilestyle). I can access my site normally on a pc, but when I connect with my iphone, I get the error message

'General Error

SQL Error [my sql4]
unknown column 'mobilestyle' in 'where clause' [1054]'

Does anyone know why this would be?

thanks
Damian
damian0612
Crewman
Crewman
 
Posts: 1
Joined: 27 Feb 2009, 06:19
Gender: Male
phpBB Knowledge: 2

Re: [DEV] STG-Mobile Device Browser Style

Postby cyrus » 22 May 2009, 06:57

if any help use this post as fyi, i just removed 'apple' from the list and chrome worked.

hey .. thanks for an execellent and simple script for detection of handhelds :)

( i know this topic has been discussed but what is the solution? )

I got one question regarding Google Chrome .. it is detected as a mobile device and therefore sent to the mobi theme i have choosen. I havent been able to test alot but IE7, IE8 and Firefox 3.0.10 works great.. Chrome version 1 or 2 does not.

As detected by Apache:
IE7 (Windows Vista)
Code: Select all
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2; Tablet PC 2.0)"

IE8 (Windows 7 RC)
Code: Select all
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)"

FF 3.0.10 (Windows 7 RC)
Code: Select all
"Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"

Google Chrome 2 (Windows 7 RC)
Code: Select all
"Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.28 Safari/530.5"

Google Chrome 1 (Windows Vista)
Code: Select all
"Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.65 Safari/525.19"


I would appreciate any help on changing the script or anything else that would correct this problem.

Know working device for me atm:
Nokia E71
Opera Mini
G1 Google phone (Android 1.5 native browser)

P1010467.JPG


Testing continues ofcourse :)
cyrus
Crewman
Crewman
 
Posts: 2
Joined: 08 Jan 2007, 17:04
Gender: Male

Re: [DEV] STG-Mobile Device Browser Style

Postby Sniper_E » 22 May 2009, 08:37

The array list in the script is what redirects your browser to the mobile device. I think the first post shows the listed browsers we have in the array list on our site. Dose your desktop default to the mobile style when you connect here?

You need to take one of the browser names out of your list which is causing this problem. We need to do the same here if the problem you're having is happening when you connect here at our site.

Let me know what it's doing here. Work on removing a name in the array list on your site and let me know what you had to take out so I can update our site if needed.

[ Post made via Mobile Device ] Image
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6985
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 » 22 May 2009, 15:41

I'm going to test it out in just a minute.

If i install a portal, will it mess anything up?
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 » 22 May 2009, 17:41

zenrei wrote:If i install a portal, will it mess anything up?

No, but you will have to add a template to this mobile style for the portal.

Is that how a portal works? Each style has to have a template added for the main page?
How ever you make the portal work for a normal style.... same with this mobile style.
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: 6985
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 » 23 May 2009, 12:10

Sniper_E wrote:
zenrei wrote:If i install a portal, will it mess anything up?

No, but you will have to add a template to this mobile style for the portal.

Is that how a portal works? Each style has to have a template added for the main page?
How ever you make the portal work for a normal style.... same with this mobile style.

Oh, I can do that, that's cake :)
zenrei
Cadet II
Cadet II
 
Posts: 28
Joined: 13 Oct 2008, 15:39
Gender: Female
phpBB Knowledge: 5

PreviousNext

Return to MODs in Development

Who is online

Users browsing this forum: Majestic-12 [Bot], Sosospider and 5 guests