Advertisement:

Author Topic: [SMF Tip] Various Ad Placements  (Read 41570 times)

Offline abidejaz4u

  • Jr. Member
  • **
  • Posts: 387
Re: [SMF Tip] Various Ad Placements
« Reply #20 on: July 17, 2011, 08:25:56 AM »
i want to put ads in the post???

Offline Anthony`

  • Sophist Member
  • *****
  • Posts: 1,347
  • Gender: Male
  • Formerly Project Evolution
    • AnthonyCalandra on GitHub
Re: [SMF Tip] Various Ad Placements
« Reply #21 on: July 17, 2011, 11:07:04 AM »
i want to put ads in the post???

Look at the last heading.

Offline DragonLady

  • Semi-Newbie
  • *
  • Posts: 98
    • Stitcher's Guild Sewing Forum
Re: [SMF Tip] Various Ad Placements
« Reply #22 on: August 02, 2011, 01:00:15 AM »
Hi everyone! :D

I'm trying to add a row of small banners to Curve theme, but everytime I try I give myself parse errors.  Can anyone give me a step-by-step like the one in the OP for putting them along the bottom under "who's online"?

I'd appreciate it very, very much!

Thanks in advance,

DL

edited to say 'curve' not 'core'
« Last Edit: August 02, 2011, 01:06:23 AM by DragonLady »

Offline DragonLady

  • Semi-Newbie
  • *
  • Posts: 98
    • Stitcher's Guild Sewing Forum
Re: [SMF Tip] Various Ad Placements
« Reply #23 on: August 02, 2011, 01:11:11 AM »
Ah...got it!  Thank-you!!!!! :D

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,077
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: [SMF Tip] Various Ad Placements
« Reply #24 on: August 13, 2011, 11:22:54 AM »
Very cool tip.
The ad mod has an annoying copyright in the footer.  This tip is the way to go.

Offline moguns

  • Semi-Newbie
  • *
  • Posts: 73
Re: [SMF Tip] Various Ad Placements
« Reply #25 on: August 14, 2011, 12:16:40 PM »
If I wanted to ad this:
Quote
<div align="center"><a href="http://membership.nrahq.org/default.asp?campaignid=XR024435"><img alt="JOIN_NRA07" src="http://www.mogunowners.net/JOIN_NRA07.gif" style="border: 0px solid; margin: 0px;"></a><a href="http://membership.nrahq.org/default.asp?campaignid=XR024435"><font color="#ff0000" face="'Arial Black', Helvetica, sans-serif" size="3">10$ off discount for full year NRA memberships through MOGO!</font><font color="#ff0000">&nbsp;</font></a></div>

What do I do? I put it in and I get a error.

Any help would be great
« Last Edit: August 14, 2011, 12:37:30 PM by moguns »

Offline Anthony`

  • Sophist Member
  • *****
  • Posts: 1,347
  • Gender: Male
  • Formerly Project Evolution
    • AnthonyCalandra on GitHub
Re: [SMF Tip] Various Ad Placements
« Reply #26 on: August 14, 2011, 12:53:54 PM »
I need to know what sort of error you get.

Offline moguns

  • Semi-Newbie
  • *
  • Posts: 73
Re: [SMF Tip] Various Ad Placements
« Reply #27 on: August 14, 2011, 01:12:48 PM »
I get this:

Quote
Parse error: syntax error, unexpected T_STRING in .../Themes/default/Display.template.php on line 506
when I add this.
Quote
echo '
        <div class="inner" id="msg_', $message['id'], '"', '>' . ($message['counter'] == 0 ? '<div style="text-align: left;">
<div align="center"><a href="http://membership.nrahq.org/default.asp?campaignid=XR024435"><img alt="JOIN_NRA07" src="http://www.mogunowners.net/JOIN_NRA07.gif" style="border: 0px solid; margin: 0px;"></a><a href="http://membership.nrahq.org/default.asp?campaignid=XR024435"><font color="#ff0000" face="'Arial Black', Helvetica, sans-serif" size="3">10$ off discount for full year NRA memberships through MOGO!</font><font color="#ff0000">&nbsp;</font></a></div>
</div>
<br />' : '') . '', $message['body'], '</div>


Thank you for you help

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,077
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: [SMF Tip] Various Ad Placements
« Reply #28 on: August 14, 2011, 01:45:22 PM »
Looks like you forgot to add the '; after the last div..... and it may also need an echo' to start the rest of the default code.

Offline moguns

  • Semi-Newbie
  • *
  • Posts: 73
Re: [SMF Tip] Various Ad Placements
« Reply #29 on: August 14, 2011, 02:42:29 PM »
I have it showing. But it highlights the hole message as a link. Is that right?

Thanks

Offline die2mrw007

  • Jr. Member
  • **
  • Posts: 266
    • GizmoLord on Facebook
    • @Gizmo_Lord on Twitter
    • GizmoLord
Re: [SMF Tip] Various Ad Placements
« Reply #30 on: September 17, 2011, 11:00:34 AM »
I need to have adsense leaderboard layout under the top navigation menu

But there is no such code in my theme index_template.php file

Here is what I found a similar code with template_menu() function:

Quote
echo '
         </div>
      </div>
   </div>
   <div id="toolbar">
      <div class="wrapper">
         ', template_menu(), '
      </div>
   </div>
   <div id="main_body">
      <div class="wrapper">

Offline Anthony`

  • Sophist Member
  • *****
  • Posts: 1,347
  • Gender: Male
  • Formerly Project Evolution
    • AnthonyCalandra on GitHub
Re: [SMF Tip] Various Ad Placements
« Reply #31 on: September 17, 2011, 12:10:31 PM »
Try placing it under the call to template_menu().

Offline die2mrw007

  • Jr. Member
  • **
  • Posts: 266
    • GizmoLord on Facebook
    • @Gizmo_Lord on Twitter
    • GizmoLord
Re: [SMF Tip] Various Ad Placements
« Reply #32 on: September 17, 2011, 12:25:05 PM »
Try placing it under the call to template_menu().

I tried and it worked..but not at the desired location..
And sorry, I actually want it not straight under the navigation menu...

I have attached a screenshot...this is where I want the ad to be present...(currently using a mod)
And I dont wish to use any mod for this.


Offline die2mrw007

  • Jr. Member
  • **
  • Posts: 266
    • GizmoLord on Facebook
    • @Gizmo_Lord on Twitter
    • GizmoLord
Re: [SMF Tip] Various Ad Placements
« Reply #33 on: September 17, 2011, 12:25:56 PM »
I am unable to attach any file here :(
Why so ??

Offline Anthony`

  • Sophist Member
  • *****
  • Posts: 1,347
  • Gender: Male
  • Formerly Project Evolution
    • AnthonyCalandra on GitHub
Re: [SMF Tip] Various Ad Placements
« Reply #34 on: September 17, 2011, 12:42:45 PM »
Then it would probably be under where <div class="wrapper"> is.

Offline bigletterj

  • Semi-Newbie
  • *
  • Posts: 18
Re: [SMF Tip] Various Ad Placements
« Reply #35 on: October 25, 2011, 01:37:33 PM »
I just installed the google ads successfully but the
Code: [Select]
<br> doesn't work after the Google ad code. Even the
Code: [Select]
<br style="clear:both;" /> is not working. So now, it is overlapping the content on the forum. Please see http://forums.kshownow.asia/index.php [nofollow] to see how it looks like now.
« Last Edit: October 25, 2011, 01:41:21 PM by bigletterj »

Offline Anthony`

  • Sophist Member
  • *****
  • Posts: 1,347
  • Gender: Male
  • Formerly Project Evolution
    • AnthonyCalandra on GitHub
Re: [SMF Tip] Various Ad Placements
« Reply #36 on: October 25, 2011, 04:31:48 PM »
I just installed the google ads successfully but the
Code: [Select]
<br> doesn't work after the Google ad code. Even the
Code: [Select]
<br style="clear:both;" /> is not working. So now, it is overlapping the content on the forum. Please see http://forums.kshownow.asia/index.php to see how it looks like now.

I cant seem to find an issue with both IE9 and FF4. Is this happening at a certain area, what browser were you viewing it on?

Offline Bulldog091

  • Newbie
  • *
  • Posts: 3
Re: [SMF Tip] Various Ad Placements
« Reply #37 on: November 19, 2011, 02:09:43 PM »
Thanks for the tip, works like a Swiss watch  :D

Offline ayex

  • Semi-Newbie
  • *
  • Posts: 14
Re: [SMF Tip] Various Ad Placements
« Reply #38 on: November 22, 2011, 02:35:31 AM »
Please where in display.template.php will I edit to show this in message body but below the posts not above. I want the ad to be immediately after the post like its part of the post not in another line like ad management mode did it. I want the add to be part of the message content and not segmented or seperated.

Offline Anthony`

  • Sophist Member
  • *****
  • Posts: 1,347
  • Gender: Male
  • Formerly Project Evolution
    • AnthonyCalandra on GitHub
Re: [SMF Tip] Various Ad Placements
« Reply #39 on: November 22, 2011, 04:54:03 PM »
Please where in display.template.php will I edit to show this in message body but below the posts not above. I want the ad to be immediately after the post like its part of the post not in another line like ad management mode did it. I want the add to be part of the message content and not segmented or seperated.

Does this go above the last edit text? Can I have a picture example?