[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 tiovince1 » 19 May 2011, 09:17

Thank you!!
tiovince1
Crewman
Crewman
 
Posts: 2
Joined: 19 May 2011, 02:56
Gender: Male
phpBB Knowledge: 1




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: [DEV] STG-Mobile Device Browser Style

Postby kloups » 27 May 2011, 03:16

Hello,

i would like to ad smillies in posting_body.html...

I open STG-Mobile/template/posting_body.html and insert :

<!-- INCLUDE posting_body.html -->
before

<script type="text/javascript">


The smilies appear but when i clic on, nothing happens.

Thank and sorry for my english ;-)
kloups
Crewman
Crewman
 
Posts: 2
Joined: 29 Apr 2010, 01:36
Gender: Male
phpBB Knowledge: 7

Re: [DEV] STG-Mobile Device Browser Style

Postby Sniper_E » 29 May 2011, 22:49

To add smilies to your mobile posting page... Try this:

Open posting_body.html

FIND
Code: Select all
<!-- IF not S_PRIVMSGS -->
Before ADD
Code: Select all
<!-- IF S_SMILIES_ALLOWED -->
<script type="text/javascript">
// <![CDATA[
   var form_name = 'postform';
   var text_name = 'message';
// ]]>
</script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/editor.js"></script>
<hr />
<table cellspacing="0">
   <tr>
      <td class="row3 genmed" align="center"><b>{L_SMILIES}</b></td>
   </tr>
   <tr>
      <td class="row3 genmed"><!-- BEGIN smiley --><a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;" style="line-height: 20px;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" hspace="2" vspace="2" /></a><!-- END smiley --></td>
   </tr>
</table>
<!-- ENDIF -->

Note:
The mobile style was created for fast load. Any and all images that could come out was removed.
My posting page loaded at 15kb... After adding the smilies in, it loaded at 109kb. Your choice...
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] STG-Mobile Device Browser Style

Postby ryonangt » 30 May 2011, 02:18

Hi Sniper_E, thank you very much for this great mod...
Is it possible that you add a link at the bottom of the page to change to normal style and another link to change back to mobile style? Or can you guide me on how to do this please?

Thank you very much... :beg:


nvm: found my answer at viewtopic.php?f=39&t=5386&start=1170#p125376
ryonangt
Crewman
Crewman
 
Posts: 1
Joined: 30 May 2011, 02:01
Gender: Male
phpBB Knowledge: 3

Re: [DEV] STG-Mobile Device Browser Style

Postby Amylittlehands » 06 Jun 2011, 09:38

Installing this now on my iPhone 3G OS 4.0.2

Will upload screenshots and let you know how it goes :)
Edit: I have a problem, I installed it but when I try to access the forum on my iPhone it states 'could not get style information' Now I did the edits in session and posting but I'm not 100% sure which ID the mobile has on my forum, I've tried 1, 2 and also 3 (I have 3 installed) I made the mobile theme unactive but I'm still not sure why it isn't working. How do I find the exact ID of the style?


Edit: EDIT- All fixed now! The style ID was 12. Anyway here's some screenshots.


IMG_0141.PNG
Bit of a worry with the first one, there's an image in this post and for some reason the font has exceptionally larger than those who replied to the post. Although in another post theres an image but the font size is fine. Hmm strange.
IMG_0140.PNG
IMG_0139.PNG
IMG_0138.PNG
IMG_0137.PNG



I know this is still in development (Brilliant job Ed). I was wondering if a few things will be possible soon;
* A simple chat integration to be put in the mobile theme.
* Is there an easy way to customize the theme to look like our own-ish?
* Will Ultimate Points System be integrated into this?

Again, thanks for the MOD. Brilliant job!
(I'm always on my iPhone so it's very handy.)
Last edited by Amylittlehands on 06 Jun 2011, 10:22, edited 1 time in total.
Forum Information:
PHPBB - 3.0.10
URL - http://www.mouldingminefield.com
Theme - Commun [Modified]
Template - Prosilver
User avatar
Amylittlehands    
Lt. Jr Grade
Lt. Jr Grade
 
Posts: 180
Joined: 06 Aug 2008, 20:16
Location: Cardiff, UK
Gender: Female
phpBB Knowledge: 4

Re: [DEV] STG-Mobile Device Browser Style

Postby Sniper_E » 06 Jun 2011, 10:20

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] STG-Mobile Device Browser Style

Postby Lossie Loon » 07 Jun 2011, 04:51

Hi, I am running my forum on phpbb 3.0.6 and think I should be changing to 3.0.8 now. I use the STG Mobile style for folks accessing via mobile devices (and this is an absolute godsend as I rely on folk posting live from football matches and also have folk checking other football scores at the same time on mobile devices).

Basically, what consideration should I be giving this style template and stuff when performing the 3.0.6 to 3.0.8 update so that it still works after the update?
Lossie Loon    
Crewman
Crewman
 
Posts: 5
Joined: 02 Feb 2010, 17:03
Gender: Male
phpBB Knowledge: 3

Re: [DEV] STG-Mobile Device Browser Style

Postby Sniper_E » 07 Jun 2011, 09:10

Yes Amy, the chat page is already built into your mobile style. Go to chat.php on your iPhone.
You can edit the overall_header and add a link to the chat if you want.
Edit the stylesheet.css and change all of the colors to match your default theme.
I know nothing about the Ultimate Points System or if it would work on a mobile. Maybe.?.

You're good Loosie, we run it on 3.0.8 right now.
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] STG-Mobile Device Browser Style

Postby Lossie Loon » 07 Jun 2011, 11:44

Thanks Sniper_E - it was more an idea of what to do with this style as it's a non-default style. Do I simply download the current version in your first post and upload that to my Styles folder to replace the existing version I use? Any things I should look out for or be mindful of?
Lossie Loon    
Crewman
Crewman
 
Posts: 5
Joined: 02 Feb 2010, 17:03
Gender: Male
phpBB Knowledge: 3

Re: [DEV] STG-Mobile Device Browser Style

Postby Sniper_E » 07 Jun 2011, 13:45

Yes, just copy them over and replace the existing files. The templates may be the only changes.
Refresh your templates for the mobile style after copying them over.

IF you have customized your style to look like your default style in the stylesheet.css, I would leave that alone.
IF not... copy everything over and Refresh all for the mobile style after you have updated your server.

Edit the imageset.cfg and put your site's logo in the header. Or replace the one in there. Make it small enough to fit.
Edit the theme.cfg and put your credits in there. Edit the stylesheet.css and change colors to your default colors.
(I like seeing this mobile style matching everyone's default style's colors on their sites.)
Edit the overall_footer.html and put your mobile name in there. 'My Site Mobile' I made a place for that.
The only thing I would hold copyright to would be the templates. But you can add to them also.

Go crazy with 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: 6983
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 8 guests