SMF Ads Support Forum

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

Title: Ad Mod on AnyWhere Theme
Post by: gibsongk55 on April 20, 2009, 10: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, 07: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, 07: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, 04: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, 03: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, 09: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, 04: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, 04:54:35 pm
Here You go...
Title: Re: Ad Mod on AnyWhere Theme
Post by: gibsongk55 on April 25, 2009, 06: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, 08:18:44 pm
Try this one...
Title: Re: Ad Mod on AnyWhere Theme
Post by: gibsongk55 on April 25, 2009, 09: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, 09: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, 09: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, 09: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, 11:07:03 am
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...