SMF Ads Support Forum

Themes/Language => Theme Support => Topic started by: gibsongk55 on April 20, 2009, 11:06:11 AM

Title: Ad Mod on AnyWhere Theme
Post by: gibsongk55 on April 20, 2009, 11:06:11 AM
Hi,

After an unsuccessful attempt with this mod on DreamLike theme, I attempted to try another theme "AnyWhere".  Still cannot get this thing to load a template after the modification to code.  I don't understand why the forum cannot update themes only the default.  Is it that difficult to do?  Anyway I posted earlier about the dreamlike them and no response. I am hoping someone could help get this to work.  My last attempt here.

Thanks,

Gibs
Title: Re: Ad Mod on AnyWhere Theme
Post by: Fragenstein on April 20, 2009, 08:18:35 PM
Don't see any themes named "AnyWhere". Is this the one anyWhere but Home (http://custom.simplemachines.org/themes/index.php?lemma=1271) ?
Title: Re: Ad Mod on AnyWhere Theme
Post by: gibsongk55 on April 20, 2009, 08:54:49 PM
Hi,
Yes that is the one.


Thanks,

Gibs
Title: Re: Ad Mod on AnyWhere Theme
Post by: Fragenstein on April 21, 2009, 05:02:04 PM
You won't have full ad functionality placement, but try these (make sure You backup the originals)...
Title: Re: Ad Mod on AnyWhere Theme
Post by: gibsongk55 on April 23, 2009, 04:08:49 AM
Hey,

Thanks that worked great.  I tried to follow what you did for the dreamlike theme twice and still that won't work.  Dreamlike theme code is similar to the anywhere theme code.  I cannot understand why it won't work when i add the code in as you have.  If you wouldn't mind one more time for the dreamlike code.  I greatly appreciate it.

The dreamlike theme is here:  http://custom.simplemachines.org/themes/index.php?lemma=599 (http://custom.simplemachines.org/themes/index.php?lemma=599)

Thanks again,

Gibs
Title: Re: Ad Mod on AnyWhere Theme
Post by: Fragenstein on April 23, 2009, 10:04:00 PM
I'll have a look at it tomorrow night (Fri.)  ;)
Title: Re: Ad Mod on AnyWhere Theme
Post by: gibsongk55 on April 25, 2009, 05:25:24 AM
Great!! Thanks so much for your help and expertise!

Gibs
Title: Re: Ad Mod on AnyWhere Theme
Post by: Fragenstein on April 25, 2009, 05:54:35 PM
Here You go...
Title: Re: Ad Mod on AnyWhere Theme
Post by: gibsongk55 on April 25, 2009, 07:59:59 PM
Hey Frag,

I uploaded the files but i get this:



An Error Has Occurred!
Unable to load the 'main' template.


Gibs
Title: Re: Ad Mod on AnyWhere Theme
Post by: Fragenstein on April 25, 2009, 09:18:44 PM
Try this one...
Title: Re: Ad Mod on AnyWhere Theme
Post by: gibsongk55 on April 25, 2009, 10:10:35 PM
Hi,

Thanks, but that didn't work either.  Same error message.

Gibs
Title: Re: Ad Mod on AnyWhere Theme
Post by: Fragenstein on April 25, 2009, 10:30:41 PM
Sorry but I can't find the problem. I checked both files with php syntax check and they were OK.
Title: Re: Ad Mod on AnyWhere Theme
Post by: gibsongk55 on April 25, 2009, 10:41:33 PM
the problem is in the boardindex.template file.  The index.template file alone works no problem.

Thanks,

Gibs
Title: Re: Ad Mod on AnyWhere Theme
Post by: gibsongk55 on April 25, 2009, 10:56:46 PM
Hey Frag,

I got it to work.  I compared the boardindex.template with the one you did for anywhere theme.  Only difference in the smfad code was that two of these '{'  where a little off in place or on the line above.  I changed it to be identical and it works.  Doesn't change anything the way the code should work like you said.  Geez smf sure is picky and touchy.  Crazy no wonder i had so much trouble.  Thanks again for all your help.  I really appreciate it.

Gibs
Title: Re: Ad Mod on AnyWhere Theme
Post by: Fragenstein on April 26, 2009, 12:07:03 PM
Good job! Most times You just have to play around with it a little bit. I'm surprised the syntax checker didn't find the discrepancy...