Pagina 2 din 4

Re: Reclame "rotative" (pe rand)

Scris: 02-Ian-2011, 21:32:33
de bogdan
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.

Re: Reclame "rotative" (pe rand)

Scris: 02-Ian-2011, 21:39:59
de LaFamilia
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.
In scriptul tau este:

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"
);
in acest cod trebuie sa scriu LINK , POZA ,NUME !!!

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>
si codul

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>
Imi poti spune cum fac aceste 2 bannere sa se vada pe rand ? Am incercat cu scriptul dat de tine...

Re: Reclame "rotative" (pe rand)

Scris: 02-Ian-2011, 23:01:43
de bogdan
Pana la urma tu vrei sa adaugi reclamele in mesajul scris automat sau in subsolul forumului?

Re: Reclame "rotative" (pe rand)

Scris: 03-Ian-2011, 00:03:32
de LaFamilia
bogdan scrie:Pana la urma tu vrei sa adaugi reclamele in mesajul scris automat sau in subsolul forumului?
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 ....

Re: Reclame "rotative" (pe rand)

Scris: 03-Ian-2011, 02:18:18
de bogdan
In cazul asta trebuie sa intrebi autorul MOD-ului daca e posibil asa ceva.

De curiozitate: ce MOD folosesti pentru mesajele automate?

Re: Reclame "rotative" (pe rand)

Scris: 03-Ian-2011, 10:38:42
de LaFamilia
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%"> &nbsp;</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%"> &nbsp;</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.

Re: Reclame "rotative" (pe rand)

Scris: 03-Ian-2011, 17:03:05
de bogdan
Nu mi se alege ce MOD ai instalat. De unde ai copiat codul de mai sus?

Re: Reclame "rotative" (pe rand)

Scris: 03-Ian-2011, 19:38:35
de Ionut26
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

Re: Reclame "rotative" (pe rand)

Scris: 03-Ian-2011, 19:59:30
de bogdan
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
El nu vrea ca banerele sa fie independente de forum ci sa fie intercalate intre mesaje.

Re: Reclame "rotative" (pe rand)

Scris: 03-Ian-2011, 20:24:11
de LaFamilia
bogdan scrie:El nu vrea ca banerele sa fie independente de forum ci sa fie intercalate intre mesaje.
Exact, "intre mesaje" adica in "userul Google", am acel script de pe net si isi face f. bine treaba...