SMF4iPhone Theme

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

Previous topic - Next topic

Lolafish

Quote from: butchs on October 03, 2010, 07:39:49 PM
Did you delete and then reinstall the theme and then install the mod?


Hubby does the programming end, but I believe he first uninstalls, then deletes, then reinstalls one at a time.  That way you're not accidentally overwriting something that may still have some coding left behind.  I'm guessing though that perhaps there's some extra or missing code somewhere...what should we look at first?

AquaPuppies - A Goldfish Community
www.aquapuppies.com

Running SMF 2.0.2 & SimplePortal 2.3.5

butchs

Chances are the them ID changed and you or the hubby need to find the new id and enter it in the admin panel.  There are instructions in one of these threads threads.
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

Lolafish

Quote from: butchs on October 03, 2010, 09:23:50 PM
Chances are the them ID changed and you or the hubby need to find the new id and enter it in the admin panel.  There are instructions in one of these threads threads.


Yes, we know that too.  We only have two choices.  One is the default, so the other should be the iphone theme.  Any other ideas?

AquaPuppies - A Goldfish Community
www.aquapuppies.com

Running SMF 2.0.2 & SimplePortal 2.3.5

butchs

Actually that is not true.  The theme ID numbers can change when you uninstall and reinstall themes.
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

Lolafish

Quote from: butchs on October 04, 2010, 01:38:04 PM
Actually that is not true.  The theme ID numbers can change when you uninstall and reinstall themes.


Exactly.  They did.  :)

Still doesn't work though.  I can't give up because I have too many people counting on this theme/mod to work.  Is there some code I can post to see if something looks wrong?  Even though it installed with no errors, there could still be something wrong, correct?  Is there any other mod that it could conflict with?  I know Google Map is finicky with some mods, but we don't have that installed. 

I appreciate you trying to help. 

AquaPuppies - A Goldfish Community
www.aquapuppies.com

Running SMF 2.0.2 & SimplePortal 2.3.5

butchs

If the theme is not loading then you have the wrong theme id.  I actually saw one site with an id of 30 where all the other themes were less than 5. Try this:

http://www.yoursite.com/smf/index.php?theme=X;
where x is 1 and then try x as 2 and keep going up until you find the theme id.  Then enter it in the admin panel.


ie:
http://www.yoursite.com/smf/index.php?theme=1;
http://www.yoursite.com/smf/index.php?theme=2;
...
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

Lolafish

Quote from: butchs on October 04, 2010, 03:08:03 PM
If the theme is not loading then you have the wrong theme id.  I actually saw one site with an id of 30 where all the other themes were less than 5. Try this:

http://www.yoursite.com/smf/index.php?theme=X;
where x is 1 and then try x as 2 and keep going up until you find the theme id.  Then enter it in the admin panel.


ie:
http://www.yoursite.com/smf/index.php?theme=1;
http://www.yoursite.com/smf/index.php?theme=2;
...


I went up to about 30.  How far should I go?  BTW, did that before even posting here.  lol  Trust me...we read through the entire forums looking for answers before posting.  Guess we'll just keep starting over until it works. 

AquaPuppies - A Goldfish Community
www.aquapuppies.com

Running SMF 2.0.2 & SimplePortal 2.3.5

butchs

If the theme is there and not loading then try copying the files directly.  Sometimes they install empty.  make sure they have some girth.

Then you can look at it in phpmyadmin and see if you can get the theme id.  It is under "smf_themes", browse until you find the theme "name".

This is all I got, unless Fabius85 has some ideas.  ::)

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

Lolafish

I just saw that you replied again, but guess what?  I'm the Wo-MAN!!!  lol

Spent the last few hours trouble-shooting. I went through every page of code to match against the parse (actually found a lot of double, triple, etc...code so cleaned up while I was in there), played with the ID's a bit, and finally found a combo that worked. 

Back in BUSINESS!! Woot!

I LOVE this theme and mod!!!! You'all rock!

Thanks for trying to help.   ;D

AquaPuppies - A Goldfish Community
www.aquapuppies.com

Running SMF 2.0.2 & SimplePortal 2.3.5

rendy1287

It's very nice themes, good job
http://www.komikita.net [nofollow] - Komunitas Komikus Indonesia - Komik

Fabius85

Quote from: swatstj on September 30, 2010, 08:59:43 PM
Quote from: Fabius85 on September 19, 2010, 06:03:45 AM
Quote from: swatstj on September 16, 2010, 10:35:19 PM
will you can tell me where i can find this code and where to put it in the smf4iphone i just want my def. from any ones you can change the size to make it fit so it would look nice but the most one im work on is buttons to go too the last post or to the first post that one be awesome to have where you can go into a post that not new and you want to make a post there that button to the last page :)
the file you're looking for is "Display.template.php" to add user infos you wanna add under the avatar.
"BoardIndex.template.php" is to add "Go down" and "Go up" buttons (these will surely be added in next release of the theme, which i think i'm gonna work on in october)

can you ponit out what im looking for thanks you :)

here it is :)

// START SMF4iPhone-Mod
global $detectfree_check, $iphone_runonce, $iphonename, $iphone_switchlink, $webmaster_email;
$iphonename = '4iphone';
$iphone_runonce = $detectfree_check = $iphone_switchlink = "false";

require_once($sourcedir . '/DetectFree.php');
iphone_getProperties($user_info['ip']);

if (($detectfree_check == "true") && ($iphone_runonce  == "false"))  { // <- PUT HERE YOUR ADDITIONAL IF CONDITION
iphone_themeSwitch($user_info['ip']); }
unset($detectfree_check, $iphone_runonce, $iphonename); //  clean up
// END SMF4iPhone-Mod

swatstj

Thank You So Much :)

this is awesome im going give it a try

swatstj

Quote from: Fabius85 on October 05, 2010, 08:36:13 AM
Quote from: swatstj on September 30, 2010, 08:59:43 PM
Quote from: Fabius85 on September 19, 2010, 06:03:45 AM
Quote from: swatstj on September 16, 2010, 10:35:19 PM
will you can tell me where i can find this code and where to put it in the smf4iphone i just want my def. from any ones you can change the size to make it fit so it would look nice but the most one im work on is buttons to go too the last post or to the first post that one be awesome to have where you can go into a post that not new and you want to make a post there that button to the last page :)
the file you're looking for is "Display.template.php" to add user infos you wanna add under the avatar.
"BoardIndex.template.php" is to add "Go down" and "Go up" buttons (these will surely be added in next release of the theme, which i think i'm gonna work on in october)

can you ponit out what im looking for thanks you :)

here it is :)

// START SMF4iPhone-Mod
global $detectfree_check, $iphone_runonce, $iphonename, $iphone_switchlink, $webmaster_email;
$iphonename = '4iphone';
$iphone_runonce = $detectfree_check = $iphone_switchlink = "false";

require_once($sourcedir . '/DetectFree.php');
iphone_getProperties($user_info['ip']);

if (($detectfree_check == "true") && ($iphone_runonce  == "false"))  { // <- PUT HERE YOUR ADDITIONAL IF CONDITION
iphone_themeSwitch($user_info['ip']); }
unset($detectfree_check, $iphone_runonce, $iphonename); //  clean up
// END SMF4iPhone-Mod



ok i try it in the borad.index can you help me and tell me where to put at

Thank You :)

Exion


crash01ita

Works great, but I have also Android  and dont work with my Legend:(

If I go in 3d with youtube video preview, that preview isnt resized and the preview looks like very big for mobile phone; is possible disable youtube tag with smf4iphone? Something like an auto-disable mod?

Raffoz

fabius, any plan for next release?

thanks for the work! :)
MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)

Fabius85

Quote from: swatstj on October 09, 2010, 12:43:35 PM
ok i try it in the borad.index can you help me and tell me where to put at

Thank You :)
sorry this was the the reply to Snape's question (where to put code in Load.php) to exclude some users to load mobile theme.

swatstj


farfromperfection

Does this plugin randomly show a donate button on the forum sometimes? I only have this and another plugin and my users have complained about a yellow donate button that has appeared on my forum...

Fabius85

Quote from: farfromperfection on November 04, 2010, 02:13:16 AM
Does this plugin randomly show a donate button on the forum sometimes? I only have this and another plugin and my users have complained about a yellow donate button that has appeared on my forum...
this is surely not caused by SMF4iPhone Theme and/or Mod as not me nor butchs included anything like that. you'd better take a look at the other plugin you installed, or make a search for *paypal* in the source of all files of your forum ;)

Advertisement: