News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SMF4iPhone Theme

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

Previous topic - Next topic

kaamaru

This is the Subs-Portal.php file. This won't let you view the portal, but will disable the portal so it doesn't mess up the SMF4iPhone theme.

Raffoz

Quote from: Calumks on April 23, 2010, 09:48:56 AM
This is the Subs-Portal.php file. This won't let you view the portal, but will disable the portal so it doesn't mess up the SMF4iPhone theme.

thanks!

but actually it doesn't mess up anything, because by default the visualization of the portal is disabled... by the first lines of the file index.template of the theme smf4iphone...
MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)

kaamaru

Sorry, I've had SMF4iPhone since version 1 and haven't upgraded because mine is heavily modified. They didn't have that in the original.

Raffoz

Quote from: Calumks on April 23, 2010, 10:09:18 AM
Sorry, I've had SMF4iPhone since version 1 and haven't upgraded because mine is heavily modified. They didn't have that in the original.

thanks anyway my friend! :)
MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)

kaamaru

Np, I would also like a way to display the portal.

freerunnering

I installed the new mod and got this
Quote
Parse error: syntax error, unexpected '*' in /home/h4ck3r/public_html/forum/index.php on line 133

i went into the file and the line was
} */ */

I deleted the second */ and now it's all fine but think it's a problem with the mod.
:D



The mod works well now though!

:D

freerunnering

New error when i went to edit the settings

Quote
Fatal error: Cannot redeclare modsmf4iphonesettings() (previously declared in /home/h4ck3r/public_html/forum/Sources/ManageSettings.php:2030) in /home/h4ck3r/public_html/forum/Sources/ManageSettings.php on line 2133

:D

freerunnering

I was running everything fine until i updated the new mod on page 28 from the one on page 26 in the other thread.

Anyway this seems is in ManageSettings.php twice and they are exactly the same!

function ModSMF4iPhoneSettings($return_config = false)
{
global $txt, $scripturl, $context, $settings, $sc, $modSettings;

$blank = $enabled_themes1 = $enabled_themes2 = $enabled_themes3 = $enabled_default = array();

$blank = array('' => '');

$enabled_themes1 = !empty($modSettings['knownThemes']) ? array_combine(array_merge($blank, explode(',',$modSettings['knownThemes'])),array_merge($blank, explode(',',$modSettings['knownThemes']))) : array($modSettings['id_theme1']);

$enabled_themes2 = !empty($modSettings['knownThemes']) ? array_combine(array_merge($blank, explode(',',$modSettings['knownThemes'])),array_merge($blank, explode(',',$modSettings['knownThemes']))) : array($modSettings['id_theme2']);

$enabled_themes3 = !empty($modSettings['knownThemes']) ? array_combine(array_merge($blank, explode(',',$modSettings['knownThemes'])),array_merge($blank, explode(',',$modSettings['knownThemes']))) : array($modSettings['id_theme3']);

$enabled_default = !empty($modSettings['knownThemes']) ? array_combine(explode(',',$modSettings['knownThemes']),explode(',',$modSettings['knownThemes'])) : array($modSettings['id_default_theme']);

$config_vars = array(
array('select', 'id_theme1', $enabled_themes1),
array('large_text', 'phrase1'),
'',
array('select', 'id_theme2', $enabled_themes2),
array('large_text', 'phrase2'),
'',
array('select', 'id_theme3', $enabled_themes3),
array('large_text', 'phrase3'),
'',
array('text', 'failsafe_link'),
'',
array('select', 'id_default_theme', $enabled_default),
'',
array('check', 'iphone_cache_ignore'),
'',
'postinput' => $txt['notestring'],
'',
);

if ($return_config)
return $config_vars;

if (isset($_GET['save']))
{
checkSession();
saveDBSettings($config_vars);
writeLog();
redirectexit('action=admin;area=modsettings;sa=iphone');
}

$context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=iphone';
$context['settings_title'] = $txt['iphone_desc'];

prepareDBSettingContext($config_vars);
}


:D

freerunnering

Ok I deleted the duplicate one straight after the other one and it's now fixed!

:D

butchs

Quote from: freerunnering on April 25, 2010, 04:46:16 PM
Ok I deleted the duplicate one straight after the other one and it's now fixed!

:D

The mod is designed for the default theme.  You need to modify it for custom themes.
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

butchs

Quote from: agupta1130 on April 25, 2010, 04:12:03 PM
the theme is only opening up when i manually type in www.southasiancampus.com/boston/discuss/index.php?theme=3      on my iphone

anyone know how to fix this?

If that is the case then set "theme #1 ID" in the admin panel to 3 and it will work.
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

butchs

In the admin panel it is a pop up list.  Just click on the ID number and you will get a choice of all the active themes.

If there are not active themes then you need to go to:
Themes and Layout -> hemes that the user is able to select: -> [ Show the list of themes ] (and check the themes)


While you are there make sure that "Allow members to select their own themes.' is checked.
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

Raffoz

i stopped using it... too many little problems...

time of posts is always worng... someone knows why?
MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)

~DS~

I am geting alot of this errors in my logs lately
SMF4iPhone Mod failed to connect to detectfree
the url links are anywhere. No error line, just "SMF4iPhone Mod failed to connect to detectfree"
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

butchs

I noticed a few on April 20, 2010.  This error occurs when the content returned from detect free is empty.  The site could have been down or the information sent to it was not recognizable.
8)
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

sattninja

Hi i cannot find the thread for the mod but i am confused i installed the theme and installed the mod on RC2 and my site will not load on my iphone i dont understand the edits it says to make i have 3 themes installed

SMF Default Theme - Core
SMF4iPhone
Black Racer

is there soething else i need to do

thanks
Running Rc4

sattninja

forget it it seems to be working fine however there is no logo on the top it has some kind of smf thing can someone tell me where i can add a logo
Running Rc4

sattninja

i am cracking up forget it again i found it

sorry

??? ??? ???

:-X :-X :-X :-X :-X
Running Rc4

roomeat

Hi guys.
I have this theme and mod installed and all works great!!
Have a lot of members that now frequent my site a lot more now that they can use their iphone :) :) :)

One comment I have been getting though is.. "Where is a link to view recent topics?"
And after looking at it on my own iphone.. I have to ask the same question.

Can anyone tell me how to add a link somewhere so that users can display recent topics / posts?
We were not given dreams, without also being given the power to achieve them.

ballin

Dang, you need to make it for 1.1.x

Advertisement: