Reclame "rotative" (pe rand)
Reguli forum
Aveti o problema si vreti sa primiti ajutor? Click aici ! Nu uitati si de regulamentul forumului !
Aveti o problema si vreti sa primiti ajutor? Click aici ! Nu uitati si de regulamentul forumului !
- bogdan
- Mesaje: 10888
- Membru din: 18-Oct-2002, 13:14:27
- Versiune: 3.0.11
- Ext: Da
- Server: UNIX/Linux
- Nivel phpBB: Experimentat
- Nivel php: Mediu
- Localitate: Bucuresti
- Contact:
Re: Reclame "rotative" (pe rand)
Vorbim de acelasi lucru. Acceseaza pagina asta si dai Refresh de cateva ori. O sa vezi ca se schimba baner-ele/link-urile definite.
Ti-am spus mai sus ca se poate integra scriptul in forum. Succes.
Ti-am spus mai sus ca se poate integra scriptul in forum. Succes.
-
- Utilizator înregistrat
- Mesaje: 28
- Membru din: 30-Dec-2010, 12:26:41
- Versiune: 3.0.8
- Ext: Nu
- Server: UNIX/Linux
- Nivel phpBB: Mediu
Re: Reclame "rotative" (pe rand)
In scriptul tau este:bogdan scrie:Vorbim de acelasi lucru. Acceseaza pagina asta si dai Refresh de cateva ori. O sa vezi ca se schimba baner-ele/link-urile definite.
Ti-am spus mai sus ca se poate integra scriptul in forum. Succes.
Cod: Selectaţi tot
link = new initArray(
"http://3bgraphics.hypermart.net/",
"http://html.digitalsea.net/",
"http://www.javascript-page.com/"
);
image = new initArray(
"http://3bgraphics.hypermart.net/link/3bgraphics.gif",
"http://html.digitalsea.net/htmlnow.gif",
"http://www.geocities.com/~jsmaster/jsnow.gif"
);
text = new initArray(
"3B Graphics",
"Learn HTML in 7 Easy Steps",
"Nic's JavaScript Page"
);
Eu am de ex codul :
Cod: Selectaţi tot
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4812603079362028";
/* dsadasd */
google_ad_slot = "8864691342";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Cod: Selectaţi tot
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4813486079362028";
/* dsadasd */
google_ad_slot = "8864691342";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
- bogdan
- Mesaje: 10888
- Membru din: 18-Oct-2002, 13:14:27
- Versiune: 3.0.11
- Ext: Da
- Server: UNIX/Linux
- Nivel phpBB: Experimentat
- Nivel php: Mediu
- Localitate: Bucuresti
- Contact:
Re: Reclame "rotative" (pe rand)
Pana la urma tu vrei sa adaugi reclamele in mesajul scris automat sau in subsolul forumului?
-
- Utilizator înregistrat
- Mesaje: 28
- Membru din: 30-Dec-2010, 12:26:41
- Versiune: 3.0.8
- Ext: Nu
- Server: UNIX/Linux
- Nivel phpBB: Mediu
Re: Reclame "rotative" (pe rand)
In mesajul scris automat de user-ul "Google" care baga un mesaj in cazul meu o reclama (sau doua), in acel "mesaj scis automat" vreau sa arate 2 reclame (de ex cele de mai sus de la google) dar PE RAND ....bogdan scrie:Pana la urma tu vrei sa adaugi reclamele in mesajul scris automat sau in subsolul forumului?
- bogdan
- Mesaje: 10888
- Membru din: 18-Oct-2002, 13:14:27
- Versiune: 3.0.11
- Ext: Da
- Server: UNIX/Linux
- Nivel phpBB: Experimentat
- Nivel php: Mediu
- Localitate: Bucuresti
- Contact:
Re: Reclame "rotative" (pe rand)
In cazul asta trebuie sa intrebi autorul MOD-ului daca e posibil asa ceva.
De curiozitate: ce MOD folosesti pentru mesajele automate?
De curiozitate: ce MOD folosesti pentru mesajele automate?
-
- Utilizator înregistrat
- Mesaje: 28
- Membru din: 30-Dec-2010, 12:26:41
- Versiune: 3.0.8
- Ext: Nu
- Server: UNIX/Linux
- Nivel phpBB: Mediu
Re: Reclame "rotative" (pe rand)
bogdan scrie:In cazul asta trebuie sa intrebi autorul MOD-ului daca e posibil asa ceva.
De curiozitate: ce MOD folosesti pentru mesajele automate?
Cod: Selectaţi tot
1) Go to the phpBB Administrator Control Panel > Styles tab > Templates > Edit (Your current template)
2) From the list of Template File, choose viewtopic_body.html
3) Look for <!-- END postrow --> (it should be somewhere at the center)
4) Paste <!-- INCLUDE google_ads_after1stpost.html --> just above (this is for the google ads after the first post)
CODE
<!-- INCLUDE google_ads_after1stpost.html -->
<!-- END postrow -->
<!-- INCLUDE google_ads_lastpost.html -->
5) Paste <!-- INCLUDE google_ads_lastpost.html --> just after <!-- END postrow --> (this is for the google ads after the last post)
Don't click Submit yet.
6) Now, copy the code below into a notepad, replace < GOOGLE ADSENSE CODE HERE > with your google adsense code and save it as "google_ads_after1stpost.html".
CODE
<!-- IF ($postrow_i == 0) -->
<table class="tablebg" width="100%" cellspacing="1">
<tr class="row2">
<td align="center" valign="middle">
<b class="postauthor" style="color:#1845ad;"> G<span style="color:#ad1400;"> o</span> <span style="color:#c69e00;"> o</span> g<span style="color:#31b639;"> l</span> <span style="color:#ad1400;"> e</span> </b>
</td>
<td width="100%" height="25">
<table width="100%" cellspacing="0">
<tr>
<td class="gensmall" width="100%"> </td>
</tr>
</table>
</td>
</tr>
<tr class="row1">
<td valign="top" class="profile">
<table cellspacing="4" align="center" width="150">
<tr>
<td align="center"> </td>
</tr>
</table>
</td>
<td valign="top">
<table width="100%" cellspacing="5">
<tr>
<td>
<div class="postbody">
< GOOGLE ADSENSE CODE HERE >
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#D1D7DC" colspan="2" height="1"> </td>
</tr>
</table>
<!-- ENDIF -->
7) Now, copy the code below into a notepad, replace < GOOGLE ADSENSE CODE HERE > with your google adsense code and save it as "google_ads_lastpost.html".
CODE
<table class="tablebg" width="100%" cellspacing="1">
<tr class="row2">
<td align="center" valign="middle">
<b class="postauthor" style="color:#1845ad;"> G<span style="color:#ad1400;"> o</span> <span style="color:#c69e00;"> o</span> g<span style="color:#31b639;"> l</span> <span style="color:#ad1400;"> e</span> </b>
</td>
<td width="100%" height="25">
<table width="100%" cellspacing="0">
<tr>
<td class="gensmall" width="100%"> </td>
</tr>
</table>
</td>
</tr>
<tr class="row1">
<td valign="top" class="profile">
<table cellspacing="4" align="center" width="150">
<tr>
<td align="center"> </td>
</tr>
</table>
</td>
<td valign="top">
<table width="100%" cellspacing="5">
<tr>
<td>
<div class="postbody">
< GOOGLE ADSENSE CODE HERE >
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#D1D7DC" colspan="2" height="1"> </td>
</tr>
</table>
8) Upload both google_ads_after1stpost.html and google_ads_lastpost.html to /styles/subSilver/template/ (change the path of your template accordingly)
9) Now, click Submit at the Administrator Control Panel.
- bogdan
- Mesaje: 10888
- Membru din: 18-Oct-2002, 13:14:27
- Versiune: 3.0.11
- Ext: Da
- Server: UNIX/Linux
- Nivel phpBB: Experimentat
- Nivel php: Mediu
- Localitate: Bucuresti
- Contact:
Re: Reclame "rotative" (pe rand)
Nu mi se alege ce MOD ai instalat. De unde ai copiat codul de mai sus?
-
- Utilizator înregistrat
- Mesaje: 237
- Membru din: 06-Dec-2010, 21:52:35
- Versiune: 3.0.8
- Ext: Da
- Server: UNIX/Linux
- Nivel phpBB: Foarte experimentat
Re: Reclame "rotative" (pe rand)
Ceea ce doreşti tu sa faci se numeste aleatoriu, si poti cauta cod/script pe google, m-am oferit eu sa iti caut, şi eu ce a rezultat.
http://www.google.ro/#sclient=psy&hl=ro ... ebe4e8ac93
http://www.google.ro/#sclient=psy&hl=ro ... ebe4e8ac93
Cod: Selectaţi tot
Nu mă contacta, că nu te ajut.
- bogdan
- Mesaje: 10888
- Membru din: 18-Oct-2002, 13:14:27
- Versiune: 3.0.11
- Ext: Da
- Server: UNIX/Linux
- Nivel phpBB: Experimentat
- Nivel php: Mediu
- Localitate: Bucuresti
- Contact:
Re: Reclame "rotative" (pe rand)
El nu vrea ca banerele sa fie independente de forum ci sa fie intercalate intre mesaje.Ionut26 scrie:Ceea ce doreşti tu sa faci se numeste aleatoriu, si poti cauta cod/script pe google, m-am oferit eu sa iti caut, şi eu ce a rezultat.
http://www.google.ro/#sclient=psy&hl=ro ... ebe4e8ac93
-
- Utilizator înregistrat
- Mesaje: 28
- Membru din: 30-Dec-2010, 12:26:41
- Versiune: 3.0.8
- Ext: Nu
- Server: UNIX/Linux
- Nivel phpBB: Mediu
Re: Reclame "rotative" (pe rand)
Exact, "intre mesaje" adica in "userul Google", am acel script de pe net si isi face f. bine treaba...bogdan scrie:El nu vrea ca banerele sa fie independente de forum ci sa fie intercalate intre mesaje.
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 1 vizitator