Advertisement:

Author Topic: SMF4iPhone Theme  (Read 66834 times)

Offline kaamaru

  • Full Member
  • ***
  • Posts: 488
  • Gender: Male
    • iHackMyi
Re: SMF4iPhone Theme
« Reply #20 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.

Offline Raffaele1977

  • Jr. Member
  • **
  • Posts: 335
Re: SMF4iPhone Theme
« Reply #21 on: April 23, 2010, 09:54:52 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 - 10.8
SMF 2.0.2
Safari 6.0 or Chrome 20.0.1132.57

Offline kaamaru

  • Full Member
  • ***
  • Posts: 488
  • Gender: Male
    • iHackMyi
Re: SMF4iPhone Theme
« Reply #22 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.

Offline Raffaele1977

  • Jr. Member
  • **
  • Posts: 335
Re: SMF4iPhone Theme
« Reply #23 on: April 23, 2010, 10:18:51 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 - 10.8
SMF 2.0.2
Safari 6.0 or Chrome 20.0.1132.57

Offline kaamaru

  • Full Member
  • ***
  • Posts: 488
  • Gender: Male
    • iHackMyi
Re: SMF4iPhone Theme
« Reply #24 on: April 23, 2010, 11:09:33 AM »
Np, I would also like a way to display the portal.

Offline freerunnering

  • Semi-Newbie
  • *
  • Posts: 32
    • iHackerPro
Re: SMF4iPhone Theme
« Reply #25 on: April 25, 2010, 03:57:53 PM »
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

Offline freerunnering

  • Semi-Newbie
  • *
  • Posts: 32
    • iHackerPro
Re: SMF4iPhone Theme
« Reply #26 on: April 25, 2010, 04:23:17 PM »
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

Offline freerunnering

  • Semi-Newbie
  • *
  • Posts: 32
    • iHackerPro
Re: SMF4iPhone Theme
« Reply #27 on: April 25, 2010, 04:42:46 PM »
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!
Code: [Select]
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

Offline freerunnering

  • Semi-Newbie
  • *
  • Posts: 32
    • iHackerPro
Re: SMF4iPhone Theme
« Reply #28 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

Offline butchs

  • SMF Hero
  • ******
  • Posts: 1,484
  • The Jarred of spam bots, lost 7GB in 1 month!
    • EastCoastRollingThunder
Re: SMF4iPhone Theme
« Reply #29 on: April 25, 2010, 09:17:02 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.
My mods.

My putty is either totally insane or is merely yanking chains...

Offline butchs

  • SMF Hero
  • ******
  • Posts: 1,484
  • The Jarred of spam bots, lost 7GB in 1 month!
    • EastCoastRollingThunder
Re: SMF4iPhone Theme
« Reply #30 on: April 25, 2010, 09:20:17 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.
My mods.

My putty is either totally insane or is merely yanking chains...

Offline butchs

  • SMF Hero
  • ******
  • Posts: 1,484
  • The Jarred of spam bots, lost 7GB in 1 month!
    • EastCoastRollingThunder
Re: SMF4iPhone Theme
« Reply #31 on: April 27, 2010, 06:37:59 AM »
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.
My mods.

My putty is either totally insane or is merely yanking chains...

Offline Raffaele1977

  • Jr. Member
  • **
  • Posts: 335
Re: SMF4iPhone Theme
« Reply #32 on: May 05, 2010, 10:52:43 AM »
i stopped using it... too many little problems...

time of posts is always worng... someone knows why?
MacOsX - 10.8
SMF 2.0.2
Safari 6.0 or Chrome 20.0.1132.57

Offline ~DS~

  • SMF Hero
  • ******
  • Posts: 2,599
  • Gender: Male
  • "Stay Hungry. Stay Foolish." ~Steve Jobs
    • The iApple Cafe
Re: SMF4iPhone Theme
« Reply #33 on: May 07, 2010, 04:39:44 AM »
I am geting alot of this errors in my logs lately
Code: [Select]
SMF4iPhone Mod failed to connect to detectfreethe 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

Offline butchs

  • SMF Hero
  • ******
  • Posts: 1,484
  • The Jarred of spam bots, lost 7GB in 1 month!
    • EastCoastRollingThunder
Re: SMF4iPhone Theme
« Reply #34 on: May 07, 2010, 07:25:01 AM »
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)
My mods.

My putty is either totally insane or is merely yanking chains...

Offline sattninja

  • Sr. Member
  • ****
  • Posts: 701
    • Appfuzion.com
Re: SMF4iPhone Theme
« Reply #35 on: May 07, 2010, 02:16:18 PM »
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

Offline sattninja

  • Sr. Member
  • ****
  • Posts: 701
    • Appfuzion.com
Re: SMF4iPhone Theme
« Reply #36 on: May 07, 2010, 02:37:05 PM »
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

Offline sattninja

  • Sr. Member
  • ****
  • Posts: 701
    • Appfuzion.com
Re: SMF4iPhone Theme
« Reply #37 on: May 07, 2010, 02:50:29 PM »
i am cracking up forget it again i found it

sorry

 ??? ??? ???

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

Offline roomeat

  • Jr. Member
  • **
  • Posts: 204
  • Gender: Male
    • Ozsportsbikes
Re: SMF4iPhone Theme
« Reply #38 on: May 07, 2010, 03:46:07 PM »
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?

Offline ballin

  • Semi-Newbie
  • *
  • Posts: 86
  • Gender: Male
Re: SMF4iPhone Theme
« Reply #39 on: May 07, 2010, 09:22:15 PM »
Dang, you need to make it for 1.1.x
Webdesigner:
- SMF Forum Setup($2-5)
- SMF Custom Themes($20)
- SMF Pre-Made Themes($5)
- SMF Simple theme edits($2-5)
- SMF Mod installation($3)
- SMF forum posting service($5-20)
- Website template design($10-50)
- Other forum system theme design($20-50)
- PHP Script writing($20-60)
- Anything else not included here, contact me via private message!