Coinbase

Author Topic: Corporate America Theme Not Compatible with SMF Ads?  (Read 11014 times)

0 Members and 1 Guest are viewing this topic.

Offline Craw

  • Jr. Member
  • **
  • Posts: 14
Corporate America Theme Not Compatible with SMF Ads?
« on: July 29, 2008, 10:38:06 pm »
Hi,

I'm using the Corporate America theme  :P ::) :D but it seems SMF Ads don't work well with it by default. What do I need to edit and which files so this mod will work?

Thanks.

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #1 on: July 29, 2008, 10:44:22 pm »
You'll be needing to edit the theme you're using by editing the core templates via FTP. How do I use FTP? / What is FTP?

The location of the files is %root%/%smf_root%/Themes/*name of theme*/

If you want, attach your index.template.php file here and I'll take you through it step by step.

Offline Craw

  • Jr. Member
  • **
  • Posts: 14
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #2 on: July 29, 2008, 10:51:11 pm »
Thanks for the quick reply, ccbtimewiz  :)

I'm familiar with FTP, so I'm attaching the index.template.php file.

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #3 on: July 29, 2008, 11:02:01 pm »
Here you are.

Offline Craw

  • Jr. Member
  • **
  • Posts: 14
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #4 on: July 29, 2008, 11:05:50 pm »
Thanks again. I'll try it out :)

EDIT: It still won't work :(
« Last Edit: July 29, 2008, 11:50:29 pm by Craw »

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #5 on: July 30, 2008, 08:49:18 am »
Strange, are you sure that is the theme you're set to using?

Are you sure that index.template.php file is from %smf_root%/Themes/*your_theme*/?

Offline Craw

  • Jr. Member
  • **
  • Posts: 14
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #6 on: July 30, 2008, 09:20:09 am »
Yes sir.

Hold on, lemme try to attach it again. I'll do it again slowly to be sure :D

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #7 on: July 30, 2008, 10:19:58 am »
Alright, try this out..

Offline Craw

  • Jr. Member
  • **
  • Posts: 14
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #8 on: July 30, 2008, 07:12:36 pm »
Hi ccbtimewiz,

It's still not working. I made sure admins can see ads and I tested it with AdSense but it's still not showing. I've refreshed a few times already but the ads still don't appear.

 :'(

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #9 on: July 30, 2008, 09:15:48 pm »
The edits I made only make the top ads appear. Make certain you're putting ads into the top of your forum at the moment.

Offline Craw

  • Jr. Member
  • **
  • Posts: 14
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #10 on: July 30, 2008, 09:27:23 pm »
Oh, OK. The slot I was testing was the one after the last post.

I edited it and it's now showing at the topmost part of the page (above the main header & nav).

I guess we still need more editing?

Thank you, now we're getting somewhere  :) :)

Offline riversen

  • Jr. Member
  • **
  • Posts: 31
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #11 on: July 31, 2008, 12:31:13 am »
Just use the SMF Packet Parser to see where you need to do your edits:

http://sleepycode.com/PackageParser/index.php
« Last Edit: July 31, 2008, 06:28:18 am by riversen »

Offline Craw

  • Jr. Member
  • **
  • Posts: 14
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #12 on: July 31, 2008, 06:26:24 am »
Just use the SMF Packet Parser to see where you need to do your edits:
I'm using SMF 1.1.5 and the highest option is 1.1.3... will it work?

Offline riversen

  • Jr. Member
  • **
  • Posts: 31
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #13 on: July 31, 2008, 06:28:32 am »
Just use the SMF Packet Parser to see where you need to do your edits:
I'm using SMF 1.1.5 and the highest option is 1.1.3... will it work?

Sorry... wrong link.. I've edited it.

Offline Craw

  • Jr. Member
  • **
  • Posts: 14
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #14 on: July 31, 2008, 07:12:56 am »
Thanks. I'm trying it out now but I got stuck as the parser was telling me to look for:

Code: [Select]
echo '
</div>';

in BoardIndex.template.php but that snippet of code does not exist... I need to add:

Code: [Select]
//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

after... any idea where I should add this? Thanks.

Offline riversen

  • Jr. Member
  • **
  • Posts: 31
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #15 on: July 31, 2008, 07:15:44 am »
try comparing with the same file in the default theme (check where the ad code has been inserted).  Not all theme have the same code thus the search might be unsuccessful.

Offline Craw

  • Jr. Member
  • **
  • Posts: 14
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #16 on: July 31, 2008, 07:21:07 am »
Not all theme have the same code thus the search might be unsuccessful.
Yeah, I've thought of that. Thanks for the quick reply :) Back to work for me  :o

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #17 on: July 31, 2008, 10:08:32 am »
Not all theme have the same code thus the search might be unsuccessful.
Yeah, I've thought of that. Thanks for the quick reply :) Back to work for me  :o

How are you doing with that so far?

Offline Craw

  • Jr. Member
  • **
  • Posts: 14
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #18 on: August 01, 2008, 07:04:12 am »
Hi ccbtimewiz,

I finished editing but I wasn't able to upload the files just yet as I had to go, and now I just arrived so I'll upload the files in a few mins :)

EDIT: Hi ccbtimewiz, I uploaded the edited files and I seem to have made a mistake in where I placed some of the codes as they don't appear where they should appear. Another thing is maybe it's also because of the way the theme is presented/displayed.

I listed the options that I think are displaying wrongly:
  • Within boards - my test ad didn't show
  • Within posts
  • After categories - my test ad didn't show
  • Welcome User Area - it's creating a new column on the left side, it doesn't blend. It looks like a left tower ;D
  • Left & Right towers - not displaying properly. It doesn't look anything like tower ads

Thanks :)
« Last Edit: August 02, 2008, 12:12:00 am by Craw »

Offline Craw

  • Jr. Member
  • **
  • Posts: 14
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #19 on: August 02, 2008, 07:59:05 am »
Ideas, anyone? About how I can fix this? I'm sorry, I'm not good with PHP  :'(

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #20 on: August 04, 2008, 09:40:08 am »
Can you attach the files you edited?

Offline Craw

  • Jr. Member
  • **
  • Posts: 14
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #21 on: August 04, 2008, 05:49:05 pm »
Sure. Here they are.

Offline Craw

  • Jr. Member
  • **
  • Posts: 14
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #22 on: August 04, 2008, 05:50:52 pm »
More (only 4 attachments per post).

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #23 on: August 04, 2008, 08:35:37 pm »
Alright, I'll look over them when I have time.  :)

Offline Craw

  • Jr. Member
  • **
  • Posts: 14
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #24 on: August 04, 2008, 08:37:00 pm »
Thanks ccbtimewiz, I really appreciate it :)

SMF Ads Support Forum

Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #24 on: August 04, 2008, 08:37:00 pm »
.