SMF4iPhone Theme

Started by Fabius85, April 15, 2010, 11:01:00 AM

Previous topic - Next topic

Fabius85

Quote from: zx71 on July 23, 2010, 01:16:52 AM
Also i've found two problems with this theme:

1. If a profile pic is larger than the space available, only a part of it is shown.

2. Long thread titles go out of their "block", so to speak.
1. this is exactly how it was meant to be, that's just an effect, if you want it to be resized you can change this in the css :)
2. gonna fix it in next release

steve51184

#101
Quote from: Fabius85 on July 23, 2010, 01:05:32 PM
Quote from: zx71 on July 23, 2010, 01:16:52 AM
Also i've found two problems with this theme:

1. If a profile pic is larger than the space available, only a part of it is shown.

2. Long thread titles go out of their "block", so to speak.
1. this is exactly how it was meant to be, that's just an effect, if you want it to be resized you can change this in the css :)
2. gonna fix it in next release


1. which bit do i edit to make them all a certain size? like on the default there you can set them all to 150
2. cool ty

the only bit i can find is this but changing them seems to do nothing:

#profileheader #avatar{

height: 62px;
width: 62px;
-webkit-border-radius: 3px;
background: url(images/noavatar.png) #fff center no-repeat;
border: 1px solid #9f9f9f;
float: left;

}   
#avatar{

height: 62px;
width: 62px;
-webkit-border-radius: 3px;
background: url(images/noavatar.png) #fff center no-repeat;
border: 1px solid #9f9f9f;
float: left;

}

Fabius85

Sorry, it wasnt in css, but in the php code.

So, to do what you want to do, you have to open Display.template.php and search for:
echo '<div id="avatar" style="background: url('.str_replace(' ','%20', $message['member']['avatar']['href']).') #fff center no-repeat !important;"></div>';

then replace it with:
echo '<div><img src="'.$message['member']['avatar']['href'].'" height="62" width="62" /></div>';

then, in Profile.template.php search for:
echo ($context['member']['avatar']['href']) ? '
<div id="profileheader">

<div><img src="'.$message['member']['avatar']['href'].'" height="62" width="62" /></div>

<div id="username"><h3>', $context['member']['name'] ,'</h3><h4>', $context['member']['group'] ,'</h4></div>

</div>


and replace it with:
echo '
<div id="profileheader">

<div id="avatar">';
echo ($context['member']['avatar']['href']) ? '<img src="'.$context['member']['avatar']['href'].'" height="62" width="62" />' : '<img src="'.$settings['theme_url'].'/images/noavatar.png" height="62" width="62" />', '
</div>

<div id="username"><h3>', $context['member']['name'] ,'</h3><h4>', $context['member']['group'] ,'</h4></div>

</div>


steve51184

that works perfectly thank you very much

also when is the next release out that'll fix the other problem i mentioned?

Fabius85

Quote from: zx71 on July 23, 2010, 08:12:09 PM
that works perfectly thank you very much

also when is the next release out that'll fix the other problem i mentioned?
unfortunately i can give an ETA atm cause i'm really, really, busy in this perdiod :-\

searchgr

Is there any easy way to make the attachments (pictures) to appear in the messages?

Fabius85

Quote from: searchgr on July 24, 2010, 02:30:52 PM
Is there any easy way to make the attachments (pictures) to appear in the messages?
There's no "easy" way, but i could manage to add an "attachments box" at the end of the posts, in next release of the theme :)

searchgr

Perfect. This is the best. Thank you.

steve51184

hey is this going to get 'unread replies' any time soon?

Fabius85

Quote from: steve51184 on July 26, 2010, 10:58:29 PM
hey is this going to get 'unread replies' any time soon?
maybe i can add a little link at the end of the index for that :)

steve51184

Just noticed another rather big bug: when viewing a topic/post with images the topic name is shown under all the images

Will post a screenshot if you wish

Fabius85


steve51184

Quote from: Fabius85 on August 13, 2010, 07:56:07 PM
Quote from: steve51184 on August 13, 2010, 03:04:47 PM
Will post a screenshot if you wish
that would be helpful

here's the topic via a browser and everything is normal:



and here it is on the iphone with this mod:



also after a little testing this is due to the 'Highslide Image Viewer' mod any fix for that?

butchs

I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

Fabius85

i'll check that, but that's probably something that only Highslide Image Viewer's developer could fix.

butchs

Looks like a  'Highslide Image Viewer' mod problem not a SMF4Iphone theme problem.
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

WaitroseCarpark

#116
**EDIT**
I went to a regular web browser and checked all the themes, using the url '/index.php?theme=1', then theme=2, 3, 4 etc until I hit the iphone theme, then set it to that.

From an earlier post I didn't realise it used numbers instead of the actual theme name. As soon as I knew the theme number I could set the theme number correctly. Thanks anyway!

**END EDIT**


Great work!

I've installed the mod and the theme (and uninstalled/reinstalled, in different orders as well) but the where I select the theme # ID I only have either blanks or numbers that I can select (1 to 6, or blank).

Can anyone help?


Am using 2.0 RC3. I did have the old smf4iphone theme installed, but uninstalled it before reinstalling SMF4iphone (note caps).

Thanks for any help in advance.

Fabius85

the numbers refers to the ids of the themes you have installed on your forum.
you have to select the id of smf4iphone theme

Raffoz

how can i disable iphone theme for iPad?
i prefer that ipad uses the same visualization as normal browers

i tried to remove "safari mobile" but it doesn't work
MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)

butchs

Remove it from the phrase list in the mod.
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

Advertisement: