Results 1 to 2 of 2
  1. #1
    New Pligger never123456's Avatar
    Joined
    Dec 2007
    Posts
    15

    Making a Right Side Advertisement Block

    Lets Make a right Side advertisement block.

    first of all in pligg.tpl file...

    1. I copied sidebar div and pasted under header div

    2.in css file .find sidebar id and make a copy of it and rename to sidesomething.(I did sidereklam reklam means advertiment in Turkish )

    in css picture that I attached you can see properties of sidereklam id.

    3.now we have a new block showing 1 more side bar. inside of sidereklam div should be like this
    Code:
    <div id="sidereklam"> {include file=$the_template_sidebar_modules."/reklam.tpl"}</div>
    I use template_sidebar_modules folder for everything extra dont forgetto change it or just put reklam.tpl file to there.

    lets go to dreamweaver for a new tpl file after creating a tpl file. (reklam.tpl)
    now lets show some flash movie inside.

    4.in reklam.tpl fileI put a flash object in to a div . and php code for including javascript file
    Code:
    <div><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="165" height="320" align="top">
      <param name="movie" value="http://localhost/haberci/resim/gazete.swf" />
      <param name="quality" value="high" />
      <embed src="http://localhost/haberci/resim/gazete.swf" width="165" height="320" align="top" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed>
    </object>
    </div>
    {php} include('reklam.js'); {/php}
    5.now lets make our JS file. create a new file reklam.js or something.js dont forget to change include part in php code .

    Code:
    <script src="templates/yget3/Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','165','height','320','src','http://localhost/haberci/resim/gazete.swf','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','http://localhost/haberci/resim/gazete.swf' ); //end AC code
    </script>
    Dont forget to change path of AC_RunActiveContent.js.

    That is it I hope I will help our community. for any problems you can write me here or msn : nevermoonarch@hotmail.com.
    Attached Images Attached Images

  2. #2
    New Pligger JpnTr's Avatar
    Joined
    Feb 2011
    Posts
    1
    eline sağlık birde türkçe anlatım yaparsan süper olur

Similar Threads

  1. How can i disable Advertisement in my site?
    By panos1985 in forum Questions & Comments
    Replies: 2
    Last Post: 09-24-2009, 01:09 AM
  2. putting two sidebars side by side?
    By gjrb29 in forum Questions & Comments
    Replies: 2
    Last Post: 03-19-2009, 08:19 PM
  3. Advertisement Block position problem
    By harrypatel in forum Questions & Comments
    Replies: 1
    Last Post: 10-08-2008, 03:29 PM
  4. How to display advertisement banners above/below the side bar
    By slick33 in forum Questions & Comments
    Replies: 2
    Last Post: 08-15-2008, 06:24 PM
  5. Wanting to have 'Side by Side' submissions
    By advisorgarage in forum Questions & Comments
    Replies: 1
    Last Post: 11-13-2007, 12:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting