[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] phpBBmobile Device Browser Style

Postby cisco007 » 23 Oct 2012, 19:04

well i guess it seems i never changed it! or never updated it! might have to redownload the package and check it!
it's all good then.
cisco007
Supporter
Supporter
 
Posts: 64
Joined: 19 Jul 2008, 13:59
Favorite Team: Florida Gators
Gender: Male
phpBB Knowledge: 5


Re: [DEV] phpBBmobile Device Browser Style

Postby andrew99 » 03 Dec 2012, 20:27

I'm really excited about getting this style installed. I have the following mods installed on my forum:

User Blog Mod
Ultimate Points
phpBB Gallery
PHPBB Statistics
Thanks For Posts
Share Topic Mod
Board3 Portal
Social Network
TH23 Autolinks
User Reminder
phpBB SEO

How does this template work with these mods?
Are there some mods I should not try to install in the mobile template?
If I don't install some of the mods, will there be database issues?

I'm just trying to get some ideas of how this all fits together before jumping in. Thank you for any ideas of suggestions.
andrew99    
Crewman
Crewman
 
Posts: 8
Joined: 25 Feb 2009, 12:17
Gender: Male
phpBB Knowledge: 2

Re: [DEV] phpBBmobile Device Browser Style

Postby neuropass » 14 Dec 2012, 12:27

is there a 3.0.11 version of that mobile style? :confused:

Would the script detector work without mobile style. Silly questions sorry.
User avatar
neuropass
Supporter
Supporter
 
Posts: 36
Joined: 27 Nov 2009, 07:38
Gender: Male
phpBB Knowledge: 2

Re: [DEV] phpBBmobile Device Browser Style

Postby Sniper_E » 15 Dec 2012, 15:47

@ neuropass, this style works in all versions of phpBB, including 3.0.11 (working on an update)
The mobile detection script will work with any style.
You just select which style # you want your mobile users to be directed to.

@ andrew99, this style will work fine no matter what mods you have installed.
You will have to choose which mods you add to this style. You don't have to add all of them.
Some of those mods have templates. Use the subsilver2 template for this style.
Of course some of those template may need to be modified for this style's layout.
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: 6983
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [DEV] phpBBmobile Device Browser Style

Postby MikeSmith » 18 Jan 2013, 13:10

Hi everyone, I need some help :)

I have installed the style and used automod to install the detection script. When I attempt to look at my forums through a mobile phone however I get the following error:

General Error
Could not get style data

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/includes/session.php
LINE: 1678
CALL: trigger_error()

FILE: [ROOT]/adm/index.php
LINE: 27
CALL: user->setup()

I have gone in and changed the session.php line from $style = false to $style = 3 and an array of different numbers and nothing seems to work, I continue to get the same result but only for mobile the regular portion of my board work.

Any suggestions?
MikeSmith
Crewman
Crewman
 
Posts: 2
Joined: 18 Jan 2013, 12:56
Gender: Male
phpBB Knowledge: 7

Re: [DEV] phpBBmobile Device Browser Style

Postby Sniper_E » 18 Jan 2013, 16:35

Look at your files again.

The edit in the includes/session.php has this added:
Code: Select all
      // phpBB_mobile_detect - Mobile Stlye Redirect MOD
         $this->data['is_mobile'] = false;
         include_once($phpbb_root_path . 'includes/mods/mobile_device_detect.' . $phpEx);
         $this->data['is_mobile'] = mobile_device_detect();

         if ($this->data['is_mobile'] == true)
         {
            $style = 3;
            $this->data['is_mobile'] = true;
         }
      // phpBB_mobile_detect End

Leave everything the way it is except for this line:
Code: Select all
            $style = 3;

Find out what style number your mobile style installed as.
Look in the ACP / Styles / and click on Details of your mobile style.
In the address bar you will see ?style=4 <- Or what ever number your mobile style is.

Change that style number to what you find. If it is installed as ?style=4 then change that one line:
Code: Select all
            $style = 4;

In the posting.php edits change this line to your sites url address:
Code: Select all
      $message_parser->message .= "\n\n[size=75][b][i][ Post made via " . $status[1] . " ][/i][/b][/size] [img]http://sniper.hostei.com/phpBB3/images/mobile/" . $status[1] . ".png[/img]";
Change the http://sniper.hostei.com/phpBB3/ to your forum's url address.
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: 6983
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [DEV] phpBBmobile Device Browser Style

Postby MikeSmith » 18 Jan 2013, 17:05

Awesome, that was my problem I just didnt know where to find the exact style #. I changed it and everything is working awesome!!! Thanks so much

[ Post made via Motorola Droid] Image
MikeSmith
Crewman
Crewman
 
Posts: 2
Joined: 18 Jan 2013, 12:56
Gender: Male
phpBB Knowledge: 7

Re: [DEV] phpBBmobile Device Browser Style

Postby Dark_curse » 16 Feb 2013, 01:18

sir, when i upload the file, it said it has a virus.. see attachment.. thanks! i want to use your mod but cant upload it. tried to check, scan and rezipped but nothin happens..
Attachments
Capture.PNG
(7.87 KiB) Not downloaded yet
Dark_curse    
Crewman
Crewman
 
Posts: 1
Joined: 16 Feb 2013, 01:12
Gender: Male
phpBB Knowledge: 1

Re: [DEV] phpBBmobile Device Browser Style

Postby DJ Andre » 13 Mar 2013, 23:54

Hello,

Thank you very much for your MOD. It works good on my site. I've spent almost all day tweaking the css file to match my current style (but it's prosilver)--so I did my best to make the subsilver2 template match the color theme of my current style.

Anyways, I later realized that nobody on their phones will be able to register with it, until I add the following code to the ucp_register.html file. It's the Birthday on Registration mod. I tried it, but somehow it's not working -- it gives me a Birthday is not correct error. So after wrestling for a few hours, I decided to ask here to see if you or someone else can assist me.

The code is simple, but I am having a hard time adjusting the table so it fits the style on your file. Because if I just add it straight, it will break up the width and the rows on your pattern.

Here is the code that needs to be added -- hopefully you can tell me how to rearrange it so it fits your row pattern.

Code: Select all
Open: styles/subsilver2/template/ucp_register.html

FIND:
Code: Select all
   <td class="row2"><input class="post" type="password" name="new_password" size="25" value="{PASSWORD}" /></td>
</tr>

Add after
Code: Select all
<!-- IF S_BIRTHDAYS_ENABLED -->
<tr>
    <td class="row1"><b class="genmed">{L_BIRTHDAY}: </b><br /><span class="gensmall">{L_BIRTHDAY_EXPLAIN}</span></td>
    <td class="row2"><span class="genmed">{L_DAY}:</span> <select name="bday_day">{S_BIRTHDAY_DAY_OPTIONS}</select> <span class="genmed">{L_MONTH}:</span> <select name="bday_month">{S_BIRTHDAY_MONTH_OPTIONS}</select> <span class="genmed">{L_YEAR}:</span> <select name="bday_year">{S_BIRTHDAY_YEAR_OPTIONS}</select></td>
</tr>
<!-- ENDIF -->
User avatar
DJ Andre
Crewman
Crewman
 
Posts: 6
Joined: 13 Mar 2013, 23:39
Gender: Male

Re: [DEV] phpBBmobile Device Browser Style

Postby Hippie459MN » 14 Mar 2013, 04:26

I have this installed also, I will look in a bit and see how its installed on mine but if you goto http://www.hydrostreamforums.com on your mobile device you can see how it looks on mine.
User avatar
Hippie459MN    
Supporter
Supporter
 
Posts: 205
Joined: 08 Feb 2008, 09:40
Location: Minnesota, USA
Favorite Team: Your moms team
Gender: Male
phpBB Knowledge: 6

PreviousNext

Return to MODs in Development

Who is online

Users browsing this forum: No registered users and 11 guests