[ERLEDIGT] AdSense in overall_header

Alles zu Styles, Templates, Icons und Smilies für phpBB 2.0, sowie allgemeine Designfragen zur Integration von phpBB in bestehende Websites.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
wwwthomasbauerattf
Mitglied
Beiträge: 1151
Registriert: 30.01.2006 15:15
Kontaktdaten:

[ERLEDIGT] AdSense in overall_header

Beitrag von wwwthomasbauerattf »

Hallo!

Möchte meine Google AdSense werbung links oder rechts neben meinem template einfügen...

Code: Alles auswählen

<script type="text/javascript"><!--
google_ad_client = "pub-7851269002472985";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_type = "text_image";
//2007-05-10: Events, Fußball, Laufcup, Laufen, Partyfotos
google_ad_channel = "5851830517+0694428677+5795824107+5121344097+1290518790";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
das ist der code für google adsense...

und das ist der vom template:

Code: Alles auswählen

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
{META}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/Saphic/{T_HEAD_STYLESHEET}" type="text/css">
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
	if ( {PRIVATE_MESSAGE_NEW_FLAG} )
	{
		window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
	}
//-->
</script>
<!-- END switch_enable_pm_popup -->
<script language="JavaScript" type="text/javascript">
<!--
window.status="{PRIVATE_MESSAGE_INFO}"
// -->
</script>
<SCRIPT LANGUAGE="Javascript">
var win = null;
function Gk_PopTart(mypage,myname,w,h,scroll)
{
  LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
  settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable';
  win = window.open(mypage,myname,settings);
}
</SCRIPT>

<SCRIPT LANGUAGE="Javascript">
var win = null;
function Trophy_Popup(mypage,myname,w,h,scroll)
{
  LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
  settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable';
  win = window.open(mypage,myname,settings);
}
</SCRIPT>
</head>
<body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}">

<a name="top"></a>

<table width="780" cellspacing="0" cellpadding="10" border="0" align="center"> 
	<tr> 
		<td class="bodyline">
			<table width="753" cellspacing="0" cellpadding="0" border="0" align="center">
				<tr> 
					<td width="102" align="center"><a href="index.php" border="0"><img src="templates/Saphic/images/top.gif" alt="top" border="0"></a></td>
  <!-- BEGIN adminbanners -->
		<td width="651" style="background-image:url(templates/Saphic/images/cellpic2b.GIF);"><a href="{adminbanners.adminbannersImg}" target="_blank" class="gensmall"><img src="{adminbanners.word}" border="0" align="right"></a>
  <!-- END adminbanners -->
</td>
				</tr>
				<tr> 
					<td colspan="2" height="25" class="nav1" align="center">
						<ul class="nav_top">
							<li><a href="portal.php">home</a>
							<li><a href="album.php">fotos</a>
							<li><a href="Sonstiges1.htm">allgemein</a>
							<li><a href="Sonstiges2.htm">forum</a>
							<li><a href="Sonstiges3.htm">members</a>
							<li><a href="Sonstiges4.htm">gaming-zone</a>
							<li><a href="Sonstiges5.htm">infos</a>
						</ul>
					</td>
				</tr>				<tr> 
					<td colspan="2" height="25" class="nav1" align="center">
						<ul class="nav_top">
<!-- BEGIN switch_user_logged_out -->
<a href="{U_REGISTER}" class="mainmenu"><font size=1>{L_REGISTER}</font></a></span>
<!-- END switch_user_logged_out -->
<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><font size=1>{L_LOGIN_LOGOUT}</font></a>&nbsp;
<a href="{U_PRIVATEMSGS}" class="mainmenu"><font size=1>{PRIVATE_MESSAGE_INFO}</font></a>
<!-- BEGIN switch_user_logged_in --><a href="javascript:void(0);" onclick="window.open('{S_JOIN_CHAT}','{CHATBOX_NAME}','scrollbars=no,width=540,height=450')" class="mainmenu"><font size=1>Chat</font></a><!-- END switch_user_logged_in -->
	<!-- BEGIN Shownickpagebutton -->
	<a href="{Shownickpagebutton.U_NICKPAGE}" class="mainmenu"><font size=1>Nickpage</font></a>
	<!-- END Shownickpagebutton -->	
						</ul>
					</td>
				</tr>
			</table>


		<br />
website: www.THOMASBAUER.at.tf
Zuletzt geändert von wwwthomasbauerattf am 14.06.2007 23:49, insgesamt 1-mal geändert.
Kewwwin

Beitrag von Kewwwin »

... und das ist das zuständige Thema dafür :D: http://www.phpbb.de/viewtopic.php?t=99899 ;)
wwwthomasbauerattf
Mitglied
Beiträge: 1151
Registriert: 30.01.2006 15:15
Kontaktdaten:

Beitrag von wwwthomasbauerattf »

danke... aba da steht nur über dem template... nicht rechts oda links...
Kewwwin

Beitrag von Kewwwin »

Dann denke ich ist dass das richtige für dich ;)

http://www.phpbb.de/doku/kb/werbung_rechts
wwwthomasbauerattf
Mitglied
Beiträge: 1151
Registriert: 30.01.2006 15:15
Kontaktdaten:

Beitrag von wwwthomasbauerattf »

hallo!

funktionierte nicht ganz

hab variante 3 gewählt

jetzt ist aber der footer nach rechts verschoben

overall_footer:

Code: Alles auswählen

			<td valign="top" width="15%">
				<table height="500" width="100%" cellpadding="3" cellspacing="1" border="0">
					<tr>
						<td valign="top" class="row1" align="center">
						<br />
						<!-- Anfang Werbung -->
<script type="text/javascript"><!-- 
google_ad_client = "pub-7851269002472985"; 
google_ad_width = 120; 
google_ad_height = 600; 
google_ad_format = "120x600_as"; 
google_ad_type = "text_image"; 
//2007-05-10: Events, Fußball, Laufcup, Laufen, Partyfotos 
google_ad_channel = "5851830517+0694428677+5795824107+5121344097+1290518790"; 
//--> 
</script> 
<script type="text/javascript" 
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> 
</script> 
						<!-- Schluss Werbung -->
						<br>
						&nbsp;
						</td>
					</tr>
				</table>
				<br />


			</td>
		</td>
	</tr>
</table>

<div align="center"><br /><span class="gensmall">{ADMIN_LINK}</span>

<!--
	We request you retain the full copyright notice below including the link to www.phpbb.com.
	This not only gives respect to the large amount of time given freely by the developers
	but also helps build interest, traffic and use of phpBB 2.0. If you cannot (for good
	reason) retain the full copyright we request you at least leave in place the 
	Powered by phpBB {PHPBB_VERSION} line, with phpBB linked to www.phpbb.com. If you refuse
	to include even this then support on our forums may be affected. 

	The phpBB Group : 2002
// -->
<table width="753" cellspacing="0" cellpadding="0" border="0" align="center">
  <tr>
    <td class="copyright" height="28">
    &nbsp;&nbsp;Powered by <a href="http://www.phpbb.com/" class="copyright">phpBB</a> &copy; 2001, 2005 phpBB Group <br />
    </td>
    <td class="copyright" align="right" >
    Saphic 1.5 // Theme created by <a href="http://www.stylerbb.net/" class="copyright">Sopel&nbsp;&nbsp;</a> 
    </td>
  </tr>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>
overall_header:

Code: Alles auswählen

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
{META}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/Saphic/{T_HEAD_STYLESHEET}" type="text/css">
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
	if ( {PRIVATE_MESSAGE_NEW_FLAG} )
	{
		window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
	}
//-->
</script>
<!-- END switch_enable_pm_popup -->
<script language="JavaScript" type="text/javascript">
<!--
window.status="{PRIVATE_MESSAGE_INFO}"
// -->
</script>
<SCRIPT LANGUAGE="Javascript">
var win = null;
function Gk_PopTart(mypage,myname,w,h,scroll)
{
  LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
  settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable';
  win = window.open(mypage,myname,settings);
}
</SCRIPT>

<SCRIPT LANGUAGE="Javascript">
var win = null;
function Trophy_Popup(mypage,myname,w,h,scroll)
{
  LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
  settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable';
  win = window.open(mypage,myname,settings);
}
</SCRIPT>
</head>
<body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}">

<a name="top"></a>

<table width="780" cellspacing="0" cellpadding="10" border="0" align="center"> 
	<tr> 
		<td class="bodyline">
			<table width="753" cellspacing="0" cellpadding="0" border="0" align="center">
				<tr> 
					<td width="102" align="center"><a href="index.php" border="0"><img src="templates/Saphic/images/top.gif" alt="top" border="0"></a></td>
  <!-- BEGIN adminbanners -->
		<td width="651" style="background-image:url(templates/Saphic/images/cellpic2b.GIF);"><a href="{adminbanners.adminbannersImg}" target="_blank" class="gensmall"><img src="{adminbanners.word}" border="0" align="right"></a>
  <!-- END adminbanners -->
</td>
				</tr>
				<tr> 
					<td colspan="2" height="25" class="nav1" align="center">
						<ul class="nav_top">
							<li><a href="portal.php">home</a>
							<li><a href="album.php">fotos</a>
							<li><a href="Sonstiges1.htm">allgemein</a>
							<li><a href="Sonstiges2.htm">forum</a>
							<li><a href="Sonstiges3.htm">members</a>
							<li><a href="Sonstiges4.htm">gaming-zone</a>
							<li><a href="Sonstiges5.htm">infos</a>
						</ul>
					</td>
				</tr>				<tr> 
					<td colspan="2" height="25" class="nav1" align="center">
						<ul class="nav_top">
<!-- BEGIN switch_user_logged_out -->
<a href="{U_REGISTER}" class="mainmenu"><font size=1>{L_REGISTER}</font></a></span>
<!-- END switch_user_logged_out -->
<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><font size=1>{L_LOGIN_LOGOUT}</font></a>&nbsp;
<a href="{U_PRIVATEMSGS}" class="mainmenu"><font size=1>{PRIVATE_MESSAGE_INFO}</font></a>
<!-- BEGIN switch_user_logged_in --><a href="javascript:void(0);" onclick="window.open('{S_JOIN_CHAT}','{CHATBOX_NAME}','scrollbars=no,width=540,height=450')" class="mainmenu"><font size=1>Chat</font></a><!-- END switch_user_logged_in -->
	<!-- BEGIN Shownickpagebutton -->
	<a href="{Shownickpagebutton.U_NICKPAGE}" class="mainmenu"><font size=1>Nickpage</font></a>
	<!-- END Shownickpagebutton -->	
						</ul>
					</td>
				</tr>
			</table>


		<br />
Kewwwin

Beitrag von Kewwwin »

Wo kann ich denn eine Demo sehen?
wwwthomasbauerattf
Mitglied
Beiträge: 1151
Registriert: 30.01.2006 15:15
Kontaktdaten:

Beitrag von wwwthomasbauerattf »

auf meiner homepage:
www.thomasbauer.at.tf

da siehst du dann eh gleich die google werbung rechts

edit: habe gleich noch eine frage

kann man den cash-mod mit der google-werbung in verbindung bringen... also ZB wenn ein user auf eine google-werbung klickt bekommt er 50 an cash gutgeschrieben... das wär echt supa...
Kewwwin

Beitrag von Kewwwin »

Binde die Googel Werbung doch unter der Google Suche ein ;)
ann man den cash-mod mit der google-werbung in verbindung bringen... also ZB wenn ein user auf eine google-werbung klickt bekommt er 50 an cash gutgeschrieben... das wär echt supa...
Können würde man das schon aber das ist wieder eine Verleitung dazu einen Zwang-Klick zu machen und das ist bei Google nicht erlaubt.

Google ist da auch sehr streng und sperrt Leute sofort. Daher empfehle ich dir das nicht.

Gruß
wwwthomasbauerattf
Mitglied
Beiträge: 1151
Registriert: 30.01.2006 15:15
Kontaktdaten:

Beitrag von wwwthomasbauerattf »

aso, danke. na dann muss man eh auf das verzichten...



und weiß jemand schon etwas wie ich das problem lösen kann, das der footer wieder in korrekter position ist
Kewwwin

Beitrag von Kewwwin »

Der kam doch nur durch die Googlewerbung zustande oder?
Antworten

Zurück zu „phpBB 2.0: Styles, Templates und Grafiken“