Making a Right Side Advertisement Block

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 12-11-2007, 11:51 AM
New Pligger
Pligg Version: 9.8
Pligg Template: default
 
Join Date: Dec 2007
Posts: 15
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 Thumbnails
Making a Right Side Advertisement Block-pligana.jpg   Making a Right Side Advertisement Block-css.jpg   Making a Right Side Advertisement Block-flash.jpg   Making a Right Side Advertisement Block-javascript.jpg   Making a Right Side Advertisement Block-last.jpg  
Reply With Quote
  #2 (permalink)  
Old 02-21-2011, 10:39 AM
New Pligger
Pligg Version: 1.1.3
 
Join Date: Feb 2011
Posts: 1
eline sağlık birde türkçe anlatım yaparsan süper olur
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
putting two sidebars side by side? gjrb29 Questions and Comments 2 03-20-2009 12:19 AM
Advertisement Block position problem harrypatel Questions and Comments 1 10-08-2008 07:29 PM
How to display advertisement banners above/below the side bar slick33 Questions and Comments 2 08-15-2008 10:24 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development