Display content only on first visit, after 2 hours expires display it again

Completado Publicado Apr 30, 2014 Pagado a la entrega
Completado Pagado a la entrega

I have three parts of code (content) on my WordPress website included into [url removed, login to view] file.

One code is included for page #53, one code for page #51 and one code for all other pages.

This is how I made it:

<?php if(is_page() && !is_page(array('51', '53'))): ?>

FIRST CODE

<?php endif; ?>

<?php if(is_page('51')): ?>

SECOND CODE

<?php endif; ?>

<?php if(is_page('51')): ?>

THIRD CODE

<?php endif; ?>

Now I need to display first content (code) to visitors only on their first visit. After that they shouldn't be able to see the same content for the next two hours. After two hours they can see it again.

I think that can be done with PHP session and cookies.

For someone who knows PHP this is one working hour.

I will pay you 10$ if you can do it till friday 02.05.2014.

HTML PHP WordPress

Nº del proyecto: #5879172

Sobre el proyecto

11 propuestas Proyecto remoto Activo May 2, 2014

Adjudicado a:

codestyle143

It can be done using session if u are using LOGIN system , or cookies if you are using guest system , feel free to discuss more about it , can get it done right now regards Pradeep

$15 USD en 1 día
(3 comentarios)
2.4

11 freelancers están ofertando un promedio de $37 por este trabajo

lightcresent

Can do it for $20, delivery today itself............................................................................... Thanks

$24 USD en 0 días
(587 comentarios)
9.1
wildlily980

一个有效的提议尚未被提供

$50 USD en 1 día
(45 comentarios)
6.3
dungnguyen2607

Hello. I'm interested your project and ready to start. Thank you! .

$84 USD en 2 días
(49 comentarios)
5.7
egpc

Hi, as an expert wordpress developer and professional freelancer I would gladly work on your project. I am available to start immediately. Fast and reliable.

$61 USD en 1 día
(12 comentarios)
4.7
akaalmedia

A proposal has not yet been provided

$20 USD en 1 día
(0 comentarios)
0.0
shiva1977

A proposal has not yet been provided

$25 USD en 1 día
(0 comentarios)
0.0
VnBestSolutions

Dear Sir, We claim to get it done perfectly for you EXACTLY in the way you want it - Kindly give we a chance and we will prove myself - Ready to prove our words, let's get it done right away and I mean RIGHT AWAY !! Más

$74 USD en 1 día
(0 comentarios)
0.0
milliard

Hello, We can do this work Please provide url to check Waiting for your positive reply Regards, Twinkle

$14 USD en 1 día
(0 comentarios)
0.0