Go Back   Pligg CMS Forum > Pligg Help > General Help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-11-2007, 09:29 AM
New Pligger
Pligg Version: Pligg Beta 9.8.2
Pligg Template: default - yteg
 
Join Date: Nov 2007
Location: France
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Inserting images and Adsense

Is there anywhere here where I can get pretty simple info, everything I've found so far seems to be about the more technical side of things. For example:

"How do I put my own logo into a template - or the Pligg default style, which I really like? I don't have to do it page by page do I?"

"How do I put Adsense code into either the header or, better yet, beneath the menu bars?"

"How can I make the 'vote' and 'voted' text on the digg style buttons say something else"?

many thanks.
Reply With Quote
  #2 (permalink)  
Old 08-07-2008, 09:32 AM
New Pligger
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
header.tpl code

Here is the code I used to put the adsense code in the header. The file is the default one with the adsense added, change the adsense to your own pub id.

See it here Puyce / Published News

<ul class="search2">
<li>
{if isset($templatelite.get.search)}
{assign var=searchboxtext value=$templatelite.get.search|sanitize:2}
{else}
{assign var=searchboxtext value=#PLIGG_Visual_Search_SearchDefaultText#}
{/if}

{if $SearchMethod eq 4}
<!-- SiteSearch Google -->
<form method="get" action="{$my_base_url}{$my_pligg_base}/search.php" target="_top">
<label for="sbi" style="display: none">"{$searchboxtext}</label>
<input name="q" type="text" size="15" value="{$searchboxtext}" onfocus="if(this.value == '{$searchboxtext}') {ldelim}this.value = '';{rdelim}" onblur="if (this.value == '') {ldelim}this.value = '{$searchboxtext}';{rdelim}" />
<label for="sbb" style="display: none">{#PLIGG_Visual_Search_Go#}</label>
<input type="submit" name="sa" value="{#PLIGG_Visual_Search_Go#}" />

<input type="hidden" name="sitesearch" value="{$my_base_url}{$my_pligg_base}" id="ss1"></input>

<input type="hidden" name="flav" value="0002"></input>
<input type="hidden" name="client" value="pub-3797448603073305"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH :center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000F F;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:11"></input>
<input type="hidden" name="hl" value="en"></input>
</form>
<!-- SiteSearch Google -->
{else}
<form action="{$my_pligg_base}/search.php" method="get" name="thisform-search" id="thisform-search">
<input type="text" size="15" name="search" id="searchsite" value="{$searchboxtext}" onfocus="if(this.value == '{$searchboxtext}') {ldelim}this.value = '';{rdelim}" onblur="if (this.value == '') {ldelim}this.value = '{$searchboxtext}';{rdelim}"/>
<input type="submit" value="{#PLIGG_Visual_Search_Go#}" class="submit" />
</form>
{/if}
</li>
</ul>

<div id="headbar" style="padding-bottom:2px;">
<ul>
<li>
{if $user_authenticated eq true}
{#PLIGG_Visual_Welcome_Back#} {if $UseAvatars neq "0"} <img src="{$Current_User_Avatar_ImgSrc}" alt="Avatar" align="absmiddle"/>{/if} {$user_logged_in}!&nbsp;&nbsp;
{if isset($isgod) && $isgod eq 1} <a href="{$URL_admin}"> {#PLIGG_Visual_Header_AdminPanel#}</a> &nbsp;&nbsp; {/if}
<a href='{$my_base_url}{$my_pligg_base}'>{#PLIGG_Visu al_Home#}</a> &nbsp;&nbsp;
<a href="{$URL_userNoVar}"> {#PLIGG_Visual_Profile#}</a> &nbsp;&nbsp;
{checkActionsTpl location="tpl_sidebar_logged_in_just_below_profile "} &nbsp;&nbsp;
{if $Enable_Live eq 'false'} <a href='{$URL_live}'> {#PLIGG_Visual_Live#}</a> &nbsp;&nbsp; {/if}
<a href='{$URL_topusers}'> {#PLIGG_Visual_Top_Users#}</a> &nbsp;&nbsp;
{if $Enable_Tags eq 'true'}<a href="{$URL_tagcloud}">{#PLIGG_Visual_Tags#}</a> &nbsp;&nbsp; {/if}
<a href="{$URL_logout}"> {#PLIGG_Visual_Logout#}</a>
{else}
<a href='{$my_base_url}{$my_pligg_base}'>{#PLIGG_Visu al_Home#}</a> &nbsp;&nbsp;
<a href='{$URL_login}'>{#PLIGG_Visual_Login_Title#}</a> &nbsp;&nbsp;
<a href='{$URL_register}'>{#PLIGG_Visual_Register#}</a> &nbsp;&nbsp;
{if $Enable_Live eq 'false'} <a href='{$URL_live}'> {#PLIGG_Visual_Live#}</a> &nbsp;&nbsp; {/if}
<a href='{$URL_topusers}'> {#PLIGG_Visual_Top_Users#}</a> &nbsp;&nbsp;
{if $Enable_Tags eq 'true'}<a href="{$URL_tagcloud}">{#PLIGG_Visual_Tags#}</a> &nbsp;&nbsp; {/if}
{/if}
</li>
</ul>
</div>

<br/>
{checkActionsTpl location="tpl_banner_location_main"}

<div id="cab">
<ul>
{if $pagename eq "upcoming"}
<li><a href="{$my_base_url}{$my_pligg_base}" class="navbut3"><span>{#PLIGG_Visual_Published_New s#}</span></a></li>
<li><a href="{$URL_upcoming}" class="navbut4"><span>{#PLIGG_Visual_Pligg_Queued# }</span></a></li>
<li><a href="{$URL_submit}" class="navbut3"><span>{#PLIGG_Visual_Submit_A_New_ Story#}</span></a></li>
{elseif $pagename eq "published"}
<li><a href="{$my_base_url}{$my_pligg_base}" class="navbut4"><span>{#PLIGG_Visual_Published_New s#}</span></a></li>
<li><a href="{$URL_upcoming}" class="navbut3"><span>{#PLIGG_Visual_Pligg_Queued# }</span></a></li>
<li><a href="{$URL_submit}" class="navbut3"><span>{#PLIGG_Visual_Submit_A_New_ Story#}</span></a></li>
{elseif $pagename eq "submit"}
<li><a href="{$my_base_url}{$my_pligg_base}" class="navbut3"><span>{#PLIGG_Visual_Published_New s#}</span></a></li>
<li><a href="{$URL_upcoming}" class="navbut3"><span>{#PLIGG_Visual_Pligg_Queued# }</span></a></li>
<li><a href="{$URL_submit}" class="navbut4"><span>{#PLIGG_Visual_Submit_A_New_ Story#}</span></a></li>
{else}
<li><a href="{$my_base_url}{$my_pligg_base}" class="navbut3"><span>{#PLIGG_Visual_Published_New s#}</span></a></li>
<li><a href="{$URL_upcoming}" class="navbut3"><span>{#PLIGG_Visual_Pligg_Queued# }</span></a></li>
<li><a href="{$URL_submit}" class="navbut3"><span>{#PLIGG_Visual_Submit_A_New_ Story#}</span></a></li>
{/if}
</ul>
</div>

<div id="navbar">
<ul>
<li>
<a href = "{$my_base_url}{$my_pligg_base}">{#PLIGG_Visual_Br eadcrumb_SiteName#} {#PLIGG_Visual_Breadcrumb_Home#}</a>
{if $navbar_where.link1 neq ""} » <a href="{$navbar_where.link1}">{$navbar_where.text1} </a>{elseif $navbar_where.text1 neq ""} » {$navbar_where.text1}{/if}
{if $navbar_where.link2 neq ""} » <a href="{$navbar_where.link2}">{$navbar_where.text2} </a>{elseif $navbar_where.text2 neq ""} » {$navbar_where.text2}{/if}
{if $navbar_where.link3 neq ""} » <a href="{$navbar_where.link3}">{$navbar_where.text3} </a>{elseif $navbar_where.text3 neq ""} » {$navbar_where.text3}{/if}
{if $navbar_where.link4 neq ""} » <a href="{$navbar_where.link4}">{$navbar_where.text4} </a>{elseif $navbar_where.text4 neq ""} » {$navbar_where.text4}{/if}
</li>
</ul>

<ul id="sorts">
<li>
{if $pagename eq "upcoming"}
<strong>
{if !isset($templatelite.get.category)}
{#PLIGG_Visual_Pligg_Sort_News_By#}:
{else}
{#PLIGG_Visual_Pligg_Queued_Sort#} {$category} {#PLIGG_Visual_Pligg_Queued_Sort_By#}:
{/if}
</strong>
{if !isset($paorder)}
{ assign var="paorder" value=""" }
{/if}
{if $paorder eq "" || $paorder eq "newest"}{#PLIGG_Visual_Pligg_Newest_St#}{else }<a href="{$upcoming_url_newest}">{#PLIGG_Visual_Pligg _Newest_St#}</a>{/if} |
{if $paorder eq "oldest"}{#PLIGG_Visual_Pligg_Oldest_St#}{else }<a href="{$upcoming_url_oldest}">{#PLIGG_Visual_Pligg _Oldest_St#}</a>{/if} |
{if $paorder eq "mostpopular"}{#PLIGG_Visual_Pligg_Most_Pop#}{else }<a href="{$upcoming_url_mostpopular}">{#PLIGG_Visual_ Pligg_Most_Pop#}</a>{/if} |
{if $paorder eq "leastpopular"}{#PLIGG_Visual_Pligg_Least_Pop#}{el se}<a href="{$upcoming_url_leastpopular}">{#PLIGG_Visual _Pligg_Least_Pop#}</a>{/if} |
<a href="{$URL_rssqueued}" target="_blank"><img src="{$my_pligg_base}/templates/{$the_template}/images/rss.gif" align="top" alt="RSS" /></a>
{elseif $pagename neq "story"}
{if $Voting_Method eq 1}
<strong>
{if !isset($templatelite.get.category)}
{#PLIGG_Visual_Pligg_Sort_News_By#}:
{else}
{#PLIGG_Visual_Pligg_Queued_Sort#} {$category} {#PLIGG_Visual_Pligg_Queued_Sort_By#}:
{/if}
</strong>
{if !isset($setmeka)}
{ assign var="setmeka" value=""" }
{/if}
{if $setmeka eq "" || $setmeka eq "recent"}{#PLIGG_Visual_Recently_Pop#}{else}<a href="{$index_url_recent}">{#PLIGG_Visual_Recently _Pop#}</a>{/if} |
{if $setmeka eq "today"}{#PLIGG_Visual_Top_Today#}{else}<a href="{$index_url_today}">{#PLIGG_Visual_Top_Today #}</a>{/if} |
{if $setmeka eq "yesterday"}{#PLIGG_Visual_Yesterday#}{else}<a href="{$index_url_yesterday}">{#PLIGG_Visual_Yeste rday#}</a>{/if} |
{if $setmeka eq "week"}{#PLIGG_Visual_This_Week#}{else}<a href="{$index_url_week}">{#PLIGG_Visual_This_Week# }</a>{/if} |
{if $setmeka eq "month"}{#PLIGG_Visual_This_Month#}{else}<a href="{$index_url_month}">{#PLIGG_Visual_This_Mont h#}</a>{/if} |
{if $setmeka eq "year"}{#PLIGG_Visual_This_Year#}{else}<a href="{$index_url_year}">{#PLIGG_Visual_This_Year# }</a>{/if} |
{/if}
<a href="{$URL_rss}" target="_blank"><img src="{$my_pligg_base}/templates/{$the_template}/images/rss.gif" align="top" alt="RSS" /></a>
{/if}
</li>
</ul><br></br>
<div align="center"><script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxxxxxxxx";
/* 468x15, created 07/08/08 */
google_ad_slot = "7029781809";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
</div>
Reply With Quote
  #3 (permalink)  
Old 08-09-2008, 05:49 AM
New Pligger
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
But how to insert an image header?
Reply With Quote
  #4 (permalink)  
Old 08-09-2008, 09:49 AM
Casual Pligger
 
Join Date: Jul 2008
Posts: 33
Thanks: 2
Thanked 0 Times in 0 Posts
Dont' u see this is plain html when w/o { }? Just add you <img> tag to place you'd like your banner to be
Reply With Quote
  #5 (permalink)  
Old 08-09-2008, 10:52 AM
New Pligger
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Well yeah but what it does is breaking the template at least covering a part of the header.
Le:nvm,i had to insert a <br>

Last edited by skorn; 08-09-2008 at 06:41 PM..
Reply With Quote
  #6 (permalink)  
Old 09-06-2008, 06:08 AM
New Pligger
Pligg Version: Pligg
 
Join Date: Sep 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Where do we put the code?

The image and adsense code script above is shown but where do I insert the code. I don't see any header.php file on the template files
Reply With Quote
  #7 (permalink)  
Old 09-06-2008, 12:20 PM
rubber2002's Avatar
Pligg Donor
 
Join Date: Jul 2007
Posts: 239
Thanks: 30
Thanked 6 Times in 5 Posts
Ok, Where exactly you want to add the adsense code. In header, sidebar or bottom/footer?
Reply With Quote
  #8 (permalink)  
Old 09-22-2008, 05:37 PM
New Pligger
Pligg Version: old
 
Join Date: Sep 2008
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
i tell u. u have add photo in ur header.

<a href="http://www.ur site url..com"><IMG SRC="images/index_13.jpg" WIDTH=64 HEIGHT=19 border="0"></a>
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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Search Engine Friendly URLs by vBSEO 3.2.0