Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-11-2007, 10:51 AM
New Pligger
Pligg Version: 9.8
Pligg Template: default
 
Join Date: Dec 2007
Posts: 16
Thanks: 1
Thanked 0 Times in 0 Posts
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 Thumbnails
making-right-side-advertisement-block-pligana.jpg   making-right-side-advertisement-block-css.jpg   making-right-side-advertisement-block-flash.jpg   making-right-side-advertisement-block-javascript.jpg   making-right-side-advertisement-block-last.jpg  
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Advertisement Block position problem harrypatel Customization Assistance 1 10-08-2008 06:29 PM
How to display advertisement banners above/below the side bar slick33 General Help 2 08-15-2008 09:24 PM
Wanting to have 'Side by Side' submissions advisorgarage General Help 1 11-13-2007 03:39 PM
Left side bar? Added it using user_panel.tpl, but it shows on the bottom right? Lancelot_one "Mollio-Beat" 6 08-01-2006 03:27 AM


Search Engine Friendly URLs by vBSEO 3.2.0