Go Back   Pligg Forum > Pligg Help > General Help
Reply
 
LinkBack Thread Tools Display Modes
  #41 (permalink)  
Old 10-06-2007, 06:12 PM
rockmymonkey's Avatar
rockmymonkey rockmymonkey is offline
Send a message via MSN to rockmymonkey Send a message via Skype™ to rockmymonkey
Casual Pligger
 
Join Date: Sep 2007
Location: Lacey, WA 98503
Posts: 62
Downloads: 6
Uploads: 0
Thanks: 14
Thanked 0 Times in 0 Posts
What if you have an ad agent other then Ad Sense? Is there a simple tutorial to just ad your own code? I tried just doing "a href" thing and nothing showed. So I must be missing something. Does it have to be done in PHP or can I use simple HTML?
Reply With Quote
Sponsored Links
  #42 (permalink)  
Old 10-09-2007, 08:40 PM
wishmaster22 wishmaster22 is offline
New Pligger
 
Join Date: Aug 2007
Posts: 5
Downloads: 10
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by aurem View Post
Yes I'm interested in those to.

Like this: Pligg / Veröffentlichte News
Has anyone figured out how to ad google adsense like on this site????


Please post , I really want this..


THanks
Reply With Quote
  #43 (permalink)  
Old 11-06-2007, 04:43 AM
Nabeel Nabeel is offline
New Pligger
Pligg Version: NA
Pligg Template: NA
 
Join Date: Nov 2007
Posts: 1
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Hi, This post of mine is very beneficial and informative, however there are some specific facts or information that I require. If anyone can help me in this matter then please send me a private message. Best Regards,
Reply With Quote
  #44 (permalink)  
Old 11-21-2007, 08:07 AM
Prophet Tenebrae Prophet Tenebrae is offline
New Pligger
 
Join Date: Aug 2007
Posts: 13
Downloads: 6
Uploads: 0
Thanks: 1
Thanked 3 Times in 3 Posts
Ok, here is my ad placement question.

I've got an ad in my header - that's pretty easy. What I want to do now is put a vertical banner down the left hand side of the page... Of course, this isn't an area the template covers... so, is there anyway to insert an ad in that area?
Reply With Quote
  #45 (permalink)  
Old 11-21-2007, 09:54 AM
bbrian017 bbrian017 is offline
Banned
Pligg Version: 9.9.5
 
Join Date: Oct 2007
Location: Canada
Posts: 917
Downloads: 30
Uploads: 0
Thanks: 171
Thanked 17 Times in 17 Posts
Can anyone help me with 9.8.2 I'm trying to add google code on these to places but when I try I continue to get errors :(

Blog Engage

and

Blog Engage on the footer :)

Thanks in advance
Reply With Quote
  #46 (permalink)  
Old 02-06-2008, 08:45 PM
Koshin's Avatar
Koshin Koshin is offline
Casual Pligger
Pligg Version: 9.9.0
Pligg Template: Convergence v9.9.0
 
Join Date: Jan 2008
Posts: 34
Downloads: 1
Uploads: 0
Thanks: 1
Thanked 0 Times in 0 Posts
HI there.

can anyone help me in implimenting this ad placement, the first code (728x90) works fine for me except that it repeats the page twice, u see the news or story twice and thats not right, i have only thus far 6 stories and i set the number to 10 before it goes to page 2, so not sure if that is why its doing this but what i want is the add to appear after every 5 posts so twice per page.

and the side bar one or 200x200 doesnt work for me coz i cant find what you said find, here is my code in bothe cases im using the Yget template on 9.9.0 version.

here is my first code, pligg.tpl

PHP Code:
                        {config_load file="/languages/lang_".$pligg_language.".conf"}
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

    <
head>
        {include 
file="meta.tpl"}
    
        <
link rel="stylesheet" type="text/css" href="{$my_pligg_base}/templates/{$the_template}/css/main.css" media="screen" />

        {if 
$Voting_Method eq 2}
            <
style type="text/css" media="screen">    
                .
top {literal}{{/literal}padding:0 0 0 5px;margin-left:-0px;{literal}}{/literal}
                .
news-submitted {literal}{{/literal}font-size:85%;margin-bottom:3px;color:#999999; {literal}}{/literal}
                
.news-body-text {literal}{{/literal}margin:10px 0px 0px 0pxfont-size:96%;{literal}}{/literal}
                .
news-details {literal}{{/literal}margin:0;font-size:85%;{literal}}{/literal}
            </
style>
            <
link rel="stylesheet" type="text/css" href="{$my_pligg_base}/templates/{$the_template}/css/star_rating/star.css" media="screen" />
        {/if}

        {* 
this is an IE6 specific 'hack' for the yget template *}
        <!--[if 
lte IE 6]>
            <
link rel="stylesheet" type="text/css" href="{$my_pligg_base}/templates/{$the_template}/css/ie6.css" media="screen" />
            <
script type="text/javascript">
                if (
typeof blankImg == 'undefined') var blankImg '{$my_pligg_base}/templates/{$the_template}/images/blank.gif';
            
</script>
            <style type="text/css" media="screen">
                body {ldelim}behavior:url({$my_pligg_base}/templates/{$the_template}/css/iehfix.htc); {rdelim}
                img {ldelim}behavior:url({$my_pligg_base}/templates/{$the_template}/css/iepngfix.htc); {rdelim}
            </style>    
        <![endif]-->

        {checkActionsTpl location="tpl_pligg_pre_title_thickbox"}
    
        {checkForCss}
        {checkForJs}        
    
        {checkActionsTpl location="tpl_pligg_pre_title_lightbox"}

        {if $pagename neq "published" && $pagename neq "upcoming"}
            {if $Spell_Checker eq 1}            
                <script src="{$my_pligg_base}/3rdparty/speller/spellChecker.js" type="text/javascript"></script>
            {/if}
        {/if}    

        <title>{if isset($pretitle)}{$pretitle}{/if}{#PLIGG_Visual_Name#}{if isset($posttitle)}{$posttitle}{/if}</title>
        <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="{$my_base_url}{$my_pligg_base}/rss.php"/>
        <link rel="icon" href="{$my_pligg_base}/favicon.ico" type="image/x-icon"/>    
    </head>

    <body {$body_args}>
    
        <div id="wrap">
        
            <div id="header">
                {include file=$tpl_header.".tpl"}
            </div><!-- header end -->
            
            <div id="content-wrap2">  
                
                <div id="contentbox" {if $pagename eq "editor"}style="width:100%"{/if}>            
                    {checkActionsTpl location="tpl_pligg_above_center"}
                    {include file=$tpl_center.".tpl"}
                    {checkActionsTpl location="tpl_pligg_below_center"}    
                </div><!-- contentbox end -->
                
                <div id="sidebar">
                    {if $pagename neq "editor"}{include file=$tpl_right_sidebar.".tpl"}{/if}
                </div><!-- sidebar end -->

            </div><!-- content-wrap end --> 
{if $pagename eq "index" || $pagename eq "story"}
<div align="left" style="float: left">

<script type="text/javascript"><!--
google_ad_client = "pub-0781249496911609";
/* 300x250, created 2/6/08 */
google_ad_slot = "8966375401";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

</div>
<div align="right">

/* remove this line and put adbrite medium rectangle ad code */

</div>
<div style="clear: both"></div>
{/if}

                <div id="inside">
                        {checkActionsTpl location="tpl_pligg_above_center"}

                  {include file=$tpl_center.".tpl"}
                  
                        {checkActionsTpl location="tpl_pligg_below_center"}

                  </div><!-- inside end -->
                      
                </div><!-- contentbox end -->
                
            </div><!-- content-wrap end --> 

{if $pagename eq "index" || $pagename eq "story"}
<div align="center">

/* remove this line and put 728x90 link unit adsense code */

/* remove this line and put 728x90 text link ads code */

<script type="text/javascript"><!--
google_ad_client = "pub-0781249496911609";
/* 728x90, created 2/6/08 */
google_ad_slot = "2359816335";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

</div>
{/if}                   
        </div><!-- wrap end -->

        {include file=$tpl_footer.".tpl"}

        <script src="{$my_pligg_base}/js/xmlhttp.php" type="text/javascript"></script> {* this line HAS to be towards the END of pligg.tpl *}
            
    </body>
</html> 
And finally the sidebar.tpl

PHP Code:
        {if $user_authenticated ne true} {* show only if NOT logged in *}
    {
assign var=sidebar_module value="about_box"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}
{/if}

{
checkActionsTpl location="tpl_sidebar_top"
 
{if 
$user_authenticated ne true} {assign var=sidebar_module value="login"}{include file=$the_template_sidebar_modules."/wrapper2.tpl"} {/if}

{
assign var=sidebar_module value="sidebar_stories_u"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}

{
assign var=sidebar_module value="sidebar_stories"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}

{
assign var=sidebar_module value="categories"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}

{
assign var=sidebar_module value="sidebar_comments"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}

{if 
$Enable_Tags eq 'true'} {assign var=sidebar_module value="tags"}{include file=$the_template_sidebar_modules."/wrapper.tpl"} {/if} 
And by the way im running the Adsense module so dunno what effect that is having on these codes,.
Reply With Quote
  #47 (permalink)  
Old 02-20-2008, 07:23 PM
pharcyded pharcyded is offline
New Pligger
 
Join Date: Feb 2008
Posts: 8
Downloads: 8
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
I am using 9.9.0 too and have no idea how to tweak my code in order to get it to run adsense the way I want. Here is my code:

Code:
						{config_load file="/languages/lang_".$pligg_language.".conf"}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

	<head>
		{include file="meta.tpl"}
	
	<link rel="stylesheet" type="text/css" href="{$my_pligg_base}/templates/{$the_template}/css/main.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="{$my_pligg_base}/templates/{$the_template}/css/newhorizon.css" media="screen" />

	{checkActionsTpl location="tpl_pligg_pre_title_thickbox"}
	
	{checkForCss}
	{checkForJs}		
	
	{checkActionsTpl location="tpl_pligg_pre_title_lightbox"}

	{if $pagename neq "published" && $pagename neq "upcoming"}
		{if $Spell_Checker eq 1}			
		<script src="{$my_pligg_base}/3rdparty/speller/spellChecker.js" type="text/javascript"></script>
		{literal}
		<script language="javascript" type="text/javascript">
			function openSpellChecker(commentarea) {
				var txt = document.getElementById(commentarea);
				var speller = new spellChecker( txt );
				speller.openChecker();
			}
		</script>
		{/literal}
		{/if}
	{/if}	

	{if $pagename eq "story"}
		{literal}
			<style type="text/css">
			  /* allow room for 3 columns */
			  div#idwhovotedwrapper ol {width: 35em; list-style-type: none; }
			  div#idwhovotedwrapper ol li {float: left; width: 10em; }
			  div#idwhovotedwrapper br { clear: left; }
			  div#idwhovotedwrapper div.whovotedwrapper { margin-bottom: 1em; }
			</style>
		{/literal}
	{/if}	
	
	<title>{if isset($pretitle)}{$pretitle}{/if}{#PLIGG_Visual_Name#}{if isset($posttitle)}{$posttitle}{/if}</title>
	<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="{$my_base_url}{$my_pligg_base}/rss.php"/>
	<link rel="icon" href="{$my_pligg_base}/favicon.ico" type="image/x-icon"/>	
</head>

	<body {$body_args}>
	
	<!-- header starts here -->
				{include file=$tpl_header.".tpl"}

				
	<!-- content-wrap starts here -->
	<div id="content-wrap"><div id="content">	 
		<div id="sidebar" >	
				<div class="sep"></div>
                {if $pagename neq "editor"}{include file=$tpl_right_sidebar.".tpl"}{/if}
		</div>
        
        <div id="main">		
					{checkActionsTpl location="tpl_pligg_above_center"}
					{include file=$tpl_center.".tpl"}
					{checkActionsTpl location="tpl_pligg_below_center"}	
        </div>
	
	<!-- content-wrap ends here -->		
	</div></div>
	<div id="footer-wrap">
		{include file=$tpl_footer.".tpl"}
		<script src="{$my_pligg_base}/js/xmlhttp.php" type="text/javascript"></script>
		<script src="{$my_pligg_base}/js/jspath.php" type="text/javascript"></script>
	</div>	
            
	</body>
</html>

Anybody know what to do?
Reply With Quote
  #48 (permalink)  
Old 02-25-2008, 04:07 PM
calnole calnole is offline
New Pligger
 
Join Date: Feb 2008
Posts: 9
Downloads: 6
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
bump, need instructions on adding 9.9
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

vB code is On
Smilies are Off
[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
Pligg and Advertising popo General Help 2 01-16-2007 12:16 AM
Pligg Fundraiser Yankidank Retired Threads 21 10-25-2006 04:17 PM
Page titles & breadcrumbs AshDigg Core Development 11 06-30-2006 06:35 PM


LinkBacks Enabled by vBSEO 3.0.0