[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 Sniper_E » 11 Jul 2012, 09:13

I'll look at those templates later and compare them to what I have.

That is not the way to go Stud. Making a group for mobile users is not what you need. I'll have to check into how to make that link work.

[ Post made via HTC Inspire] 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: 6978
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 Hippie459MN » 11 Jul 2012, 09:19

Sniper... Here is the change to the ucp_register.html

Open template/ucp_register.html

Find:
Code: Select all
<!-- IF S_CONFIRM_CODE -->
<hr />
<br />

<hr />
<table cellspacing="0">
   <tr>
      <th>{L_CONFIRMATION}</th>
   </tr>
</table>

<hr />
<table cellspacing="0">
   <tr class="row2">
      <td><span class="gensmall">{L_CONFIRM_EXPLAIN}</span></td>
   </tr>
</table>

<hr />
<table cellspacing="0">
   <tr class="row1">
      <td align="center">{CONFIRM_IMG}</td>
   </tr>
   <tr class="row1">
      <td><b class="genmed">{L_CONFIRM_CODE}: </b><br /><span class="gensmall">{L_CONFIRM_CODE_EXPLAIN} <!-- IF S_CONFIRM_REFRESH -->{L_VC_REFRESH_EXPLAIN}<!-- ENDIF --></span></td>
   </tr>
   <tr class="row1">
      <td><input class="post" type="text" name="confirm_code" size="8" maxlength="8" /><!-- IF S_CONFIRM_REFRESH -->&nbsp;<input type="submit" value="{L_VC_REFRESH}" class="btnlite" /><!-- ENDIF --></td>
   </tr>
</table>
<!-- ENDIF -->


Replace with:
Code: Select all
      <!-- IF CAPTCHA_TEMPLATE -->
      <!-- INCLUDE {CAPTCHA_TEMPLATE} -->
      <!-- ENDIF -->


Thats the only change to the ucp_register.html. I just decided to include all the files but you can certainly just make the edit as well.

Oh yeah, and my members are happy they can register from there mobile device now and you can use the built in anti spam features in phpBB now :D
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

Re: [DEV] phpBBmobile Device Browser Style

Postby Studsir » 11 Jul 2012, 11:20

Thank you sniper

the change to the ucp_register.html, should we do it to our file also?
Studsir
Crewman
Crewman
 
Posts: 5
Joined: 08 Jul 2012, 12:39
Gender: Male
phpBB Knowledge: 3

Re: [DEV] phpBBmobile Device Browser Style

Postby Hippie459MN » 11 Jul 2012, 11:27

Studsir wrote:Thank you sniper

the change to the ucp_register.html, should we do it to our file also?


If you do your going to need the 3 files also that I included along with the ucp_register.html back a page. Just upload them to the template folder and then refresh your template.

I did not edit 2 of the 3 files for the mobile site so you might need to tweak them to your liking.
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

Re: [DEV] phpBBmobile Device Browser Style

Postby Studsir » 11 Jul 2012, 11:30

I see, thank you.
first I should test by register myself using the captcha, may be I do not need changing any.
Studsir
Crewman
Crewman
 
Posts: 5
Joined: 08 Jul 2012, 12:39
Gender: Male
phpBB Knowledge: 3

Re: [DEV] phpBBmobile Device Browser Style

Postby Sniper_E » 11 Jul 2012, 12:26

I have a fresh copy of phpBB 3.0.10 installed and in the ACP / General / Spambot countermeasures

I do not have the plugin of Q&A or the reCaptha - Are these something you have to add?
I'll have to go look at .com and see what's up.
I bet I've never edited those sections of the registration page.
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: 6978
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 Hippie459MN » 11 Jul 2012, 12:40

Ok... I have found another error that I remember fixing on other installs. There is duplicate options on the posting page for attaching your sig and the set topic as normal, stickey, etc...

open template/posting_body.html

Find:
Code: Select all
   <!-- IF S_LOCK_TOPIC_ALLOWED -->
   <tr>
      <td class="row2 genmed"><input type="checkbox" class="radio" name="lock_topic"{S_LOCK_TOPIC_CHECKED} /> {L_LOCK_TOPIC}</td>
   </tr>
   <!-- ENDIF -->
   <!-- IF S_LOCK_POST_ALLOWED -->
   <tr>
      <td class="row2 genmed"><input type="checkbox" class="radio" name="lock_post"{S_LOCK_POST_CHECKED} /> {L_LOCK_POST} [{L_LOCK_POST_EXPLAIN}]</td>
   </tr>
   <!-- ENDIF -->

Delete that find

Find:
Code: Select all
<!-- IF S_SIG_ALLOWED -->
   <tr class="row1">
      <td><input type="checkbox" class="radio" name="attach_sig"{S_SIGNATURE_CHECKED} /></td>
      <td class="gen">{L_ATTACH_SIG}</td>
   </tr>
<!-- ENDIF -->


Find again:
Code: Select all
<!-- IF S_SIG_ALLOWED -->
   <tr class="row1">
      <td><input type="checkbox" class="radio" name="attach_sig"{S_SIGNATURE_CHECKED} /></td>
      <td class="gen">{L_ATTACH_SIG}</td>
   </tr>
<!-- ENDIF -->

Delete the second find.

Find:
Code: Select all
   <!-- IF S_TYPE_TOGGLE -->
   <tr class="row1">
      <td>&nbsp;</td>
      <td class="gen"><!-- IF S_EDIT_POST -->{L_CHANGE_TOPIC_TO}<!-- ELSE -->{L_POST_TOPIC_AS}<!-- ENDIF -->: <!-- BEGIN topic_type --><input type="radio" class="radio" name="topic_type" value="{topic_type.VALUE}"{topic_type.S_CHECKED} />{topic_type.L_TOPIC_TYPE}&nbsp;&nbsp;<!-- END topic_type --></td>
   </tr>
   <!-- ENDIF -->

Delete that find.

Now save your changes then refresh your template files.

Also, Do the edits in that order. I chose to just for a little cleaner look
Attachments
2012-07-11_13-13-06.png
After Edits...
2012-07-11_13-07-06.png
Before Edits...
2012-07-11_13-06-16.png
After Edits...
2012-07-11_12-48-09.png
Before edits...
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

Re: [DEV] phpBBmobile Device Browser Style

Postby Hippie459MN » 11 Jul 2012, 12:49

Sniper_E wrote:I have a fresh copy of phpBB 3.0.10 installed and in the ACP / General / Spambot countermeasures

I do not have the plugin of Q&A or the reCaptha - Are these something you have to add?
I'll have to go look at .com and see what's up.
I bet I've never edited those sections of the registration page.


Its in there. Nothing I installed.

Here is some screen shots of my ACP.
Attachments
acp1.jpg
acp2.jpg
acp3.jpg
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

Re: [DEV] phpBBmobile Device Browser Style

Postby Sniper_E » 15 Jul 2012, 12:37

Hippie, I'm not sure about your edits up there.
The sig codes that are duplicated... you should actually take out the first one, not the second one.
Taking out all of that other code doesn't look right either.

Pull up one window in your mobile style and pull up another window in the subsilver2 style.
With these windows side by side, going to the same pages in each, you can see the comparison.
I think you are trying to get rid of too much code in there.

This style was made four years ago when most phones could not pull in the stylesheets classes.
It had to be made simple. Technology has evolved and most phone's browsers can handle web pages fine.
It may be time to pull out another mobile style using more features that couldn't be used back then.

With my smart phone I can even add a smilie in a post like I couldn't do four years ago.
There are all kinds of things we can do now with our mobile devices that were impossible back then.
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: 6978
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 Hippie459MN » 16 Jul 2012, 06:05

I certainly could have left them in there but then it causes the options shown to appear twice on every mobile device I have tried it on. (4 so far. 3 different androids and an iPhone)

I just removed the edits I did for look I was after. I could have left the first ones in there for both the edits. The board still seems to function as normal with them removed. I can still sticky, lock, delete, etc... topics/posts.

I will look at the SubSilver2 file and see what that looks like. I do not currently have subsilver installed on my board but I just might to see what it looks like
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 7 guests