News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Ad within post neighbor of avatar (right side)

Started by cector, October 06, 2010, 12:23:15 PM

Previous topic - Next topic

cector

Hi,

I want to add ad within post neighbor of avatar (right side) and left side of message.

Waiting for your helpful response...
Computers & Technology | Entertainment | Movies | Health | Artist's Corner | Fashion & Style Forums

http://forum.digitallylink.com

cector

Computers & Technology | Entertainment | Movies | Health | Artist's Corner | Fashion & Style Forums

http://forum.digitallylink.com

Kindred

wow.... how intrusive. :(


You'll have to modify display.template.php
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

cector

Dear Kindred,

Thanks for quick response. Actually, I am using smf_2-0-rc3 with default theme. I inserted below code after the Show avatar code:

// Show avatars, images, etc.?
         if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
            echo '
                        <li class="avatar" style="overflow: auto;">
                           <a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
                              ', $message['member']['avatar']['image'], '
                           </a>
                        </li>';
[I inserted here below google code]

Google ads code which I used:
=====================

if ($context['first_message']==$message['id'])
echo '
         <div align="center">
        <script type="text/javascript"><!--
   google_ad_client = "pub-7489237948723";
   google_ad_slot = "8787307207";
   google_ad_width = 300;
   google_ad_height = 250;
   //-->
   </script>
   <script type="text/javascript"
   src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
   </script>
   </div>
         ';

But Ad display after the avatar and also overwrite content of post. I want to display code neighbor of avatar also not overwrite content, picture I attached in my last post.

Kindly find the attached file where ad is display in my forum.

Helpful solution is awaiting...
Computers & Technology | Entertainment | Movies | Health | Artist's Corner | Fashion & Style Forums

http://forum.digitallylink.com

Hj Ahmad Rasyid Hj Ismail

#4
There is a mod that can do this one of them is Simple Ad and the other is Googad. You might want to try and use them instead. Otherwise, I did write a tip and trick on this here.

cector


Thanks  ahrasis..

Waiting for your  tip and trick for this situation.
Computers & Technology | Entertainment | Movies | Health | Artist's Corner | Fashion & Style Forums

http://forum.digitallylink.com

Hj Ahmad Rasyid Hj Ismail


cector

Computers & Technology | Entertainment | Movies | Health | Artist's Corner | Fashion & Style Forums

http://forum.digitallylink.com

cector

Computers & Technology | Entertainment | Movies | Health | Artist's Corner | Fashion & Style Forums

http://forum.digitallylink.com

Hj Ahmad Rasyid Hj Ismail

That has been advised there. Since you have solved this problem, I'll mark this as solved ok? Feel free to reopen it, if you still in need of further assistance.

Advertisement: