...

quick question

Démarré par foropimiento, 10 Juin 2014 à 14:08:30

« précédent - suivant »

foropimiento

hi


quick question not related with images management "perfect" mod  ;D


is possibly to do this without installing the "Ad managemente mod"?


http://www.simplemachines.org/community/index.php?topic=514173.0


thanks...


in spain for legal reason you need to worry about the using of cookies in the forum...

maximus23

Hello,

Citeris possibly to do this without installing the "Ad managemente mod"?

Yes uses the code in the index.template and uses the script type rotator or random for display the ads script.

The cookies are not indispensable to display the pubs.

Take a look at : http://custom.simplemachines.org/mods/index.php?mod=1774

:)
Amitiés et à Bientôt.
Have a Nice Day.
Developer Tray Menu Manager (wampmanager) for WampServer

foropimiento


thanks for the answer  :D

and without external mod?


maximus23

Hello,

Yes in the file index.template.php. But the code is going to be big. One script by advertisement.

If you put an advertising state control (type single script) then you will need the cookies.

:)
Amitiés et à Bientôt.
Have a Nice Day.
Developer Tray Menu Manager (wampmanager) for WampServer

foropimiento

hi maximus


I understand you but I dont know how to do it easily  :(


can you help me with the code please?


thanks

maximus23

Hi,

Put me an example of script (ads) that you want to put :)
Amitiés et à Bientôt.
Have a Nice Day.
Developer Tray Menu Manager (wampmanager) for WampServer

foropimiento

I think these code may work, dont you?


Code

<script src="http://j.maxmind.com/app/geoip.js"></script><div id="barritaloca" style="display:none;position:relative;left:0px;right:0px;top:0px;width:100%;min-height:30px;background: #F7F8E0;color:#000000;z-index: 99999;"><div style="width:100%;position:absolute;padding-left:115px;font-family:verdana;font-size:9px;top:30%;"> Usamos cookies propias y de terceros para mejorar la navegación y mostrar publicidad personalizada según su navegación. Si continua navegando consideramos que acepta el uso de cookies. <a href="javascript:void(0)" style="padding:4px;background:#4682B4;text-decoration:none;color:#fff;" onclick="PonerCookie();"><b>OK</b></a> <a href="TU PÁGINA WEB Y LA RUTA DE MÁS INFORMACIÓN (por ejemplo, redactalo.com/aviso_cookies.html)" target="_blank" style="padding-left:5px;text-decoration:none;color:#000000;">Más información</a><><><script>function getCookie(c_name){ var c_value = document.cookie; var c_start = c_value.indexOf(" "   c_name   "="); if (c_start == -1){ c_start = c_value.indexOf(c_name   "="); } if (c_start == -1){ c_value = null; }else{ c_start = c_value.indexOf("=", c_start)   1; var c_end = c_value.indexOf(";", c_start); if (c_end == -1){ c_end = c_value.length; } c_value = unescape(c_value.substring(c_start,c_end)); } return c_value;}function setCookie(c_name,value,exdays){ var exdate=new Date(); exdate.setDate(exdate.getDate()   exdays); var c_value=escape(value)   ((exdays==null) ? "" : "; expires=" exdate.toUTCString()); document.cookie=c_name   "="   c_value;}if(geoip_country_code()=="ES" && getCookie('aviso')!="1"){ document.getElementById("barritaloca").style.display="block";}function PonerCookie(){ setCookie('aviso','1',365); document.getElementById("barritaloca").style.display="none";}</script>