[SMF Tip] Various Ad Placements

Started by ascaland, April 22, 2011, 11:27:52 AM

Previous topic - Next topic

abidejaz4u


ascaland


DragonLady

#22
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'

DragonLady


Mick.

Very cool tip.
The ad mod has an annoying copyright in the footer.  This tip is the way to go.

moguns

#25
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

ascaland

I need to know what sort of error you get.

moguns

I get this:

QuoteParse error: syntax error, unexpected T_STRING in .../Themes/default/Display.template.php on line 506
when I add this.
Quoteecho '
        <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

Mick.

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.

moguns

I have it showing. But it highlights the hole message as a link. Is that right?

Thanks

Nitesh Kunnath

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:

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

ascaland

Try placing it under the call to template_menu().

Nitesh Kunnath

Quote from: Project Evolution on September 17, 2011, 12:10:31 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.


Nitesh Kunnath

I am unable to attach any file here :(
Why so ??

ascaland

Then it would probably be under where <div class="wrapper"> is.

bigletterj

#35
I just installed the google ads successfully but the <br> doesn't work after the Google ad code. Even the <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.

ascaland

Quote from: bigletterj on October 25, 2011, 01:37:33 PM
I just installed the google ads successfully but the <br> doesn't work after the Google ad code. Even the <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?

Bulldog091

Thanks for the tip, works like a Swiss watch  :D

ayex

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.

ascaland

Quote from: ayex 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.

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

Advertisement: