ArticleTrader.com
  

 Main Menu

  Home
  Member Login
  Forum
  Submit Article
  RSS Feeds
  Contact Us
  About

 Services

  Article Distribution
  Link Building

 Tools

  ArticleMS
  Directory Tracker

 Categories

  Automotive
  Business
  Computers
  Entertainment
  Finance
  Food
  Health
  Home and Family
  Internet
  Legal
  Science
  Self Improvement
  Shopping
  Society
  Sports
  Technology
  Travel
  Writing





























 
Welcome! ( Login | Register )
» ArticleTrader Forums » ArticleMS » Support » Cookies
Members Search Help

Pages: << prev 1 next >>
Cookies
This member is currently offline Anne Kirrin
Pool


Avatar

Member Level

Group: Moderators
Posts: 1,356
Joined: Apr 11, 2006

Go to the bottom of the page Go to the top of the page

Hey Dejavu,

I am trying something out and only want to show something once per visit to the user, so I need to know what the Cookie variables are...

I was thinking of doing something like

Code:
{if (!$CookieSetVariable)}

show this

{/if}
.........................
Anne Kirrin is in Nepal for the month of November

ArticleMSSkins.net <<:::: New
Directory of Niche Article Sites <::::: Add your article site for free!!

Posted Jun 3, 2009, 1:46 am
This member is currently offline Anne Kirrin
Pool


Avatar

Member Level

Group: Moderators
Posts: 1,356
Joined: Apr 11, 2006

Go to the bottom of the page Go to the top of the page

bump
.........................
Anne Kirrin is in Nepal for the month of November

ArticleMSSkins.net <<:::: New
Directory of Niche Article Sites <::::: Add your article site for free!!

Posted Jun 5, 2009, 3:53 am
This member is currently online Dejavu
Administrator


Member Level

Group: Administrators
Posts: 709
Joined: Jan 5, 2006

Go to the bottom of the page Go to the top of the page

Easiest way is probably to use the session variables.
html code:
{if $this->firstview }
stuff only shown on first view here
{/if}

php code:
$this->firstview = 0;
if (!isset($this->session['firstview'])){
  $this->firstview = 1;
  $this->session['firstview'] = 1;
}

If you really want to use cookies, the cookie variables are simply $this->cookie but you have to set a cookie using the php setcookie() function.
.........................
Directory Tracker
Article Distribution

Posted Jun 11, 2009, 3:06 pm
This member is currently offline Anne Kirrin
Pool


Avatar

Member Level

Group: Moderators
Posts: 1,356
Joined: Apr 11, 2006

Go to the bottom of the page Go to the top of the page

that actually makes better sense...thanks a bunch Dejavu.
.........................
Anne Kirrin is in Nepal for the month of November

ArticleMSSkins.net <<:::: New
Directory of Niche Article Sites <::::: Add your article site for free!!

Posted Jun 11, 2009, 10:09 pm
This member is currently offline Anne Kirrin
Pool


Avatar

Member Level

Group: Moderators
Posts: 1,356
Joined: Apr 11, 2006

Go to the bottom of the page Go to the top of the page

That works perfectly!!!

Thank you so much D

I have used the code supplied by Dejavu above and ShadowBoxJS to create a single instance of a popup sales offer page from any page landed on on my site.

Take a look: Articles on Love
.........................
Anne Kirrin is in Nepal for the month of November

ArticleMSSkins.net <<:::: New
Directory of Niche Article Sites <::::: Add your article site for free!!

Posted Jun 12, 2009, 4:12 pm
This member is currently offline blooobs
Puddle


Avatar

Member Level

Group: Members
Posts: 437
Joined: Sep 23, 2007

Go to the bottom of the page Go to the top of the page

Hi Anne

it's really great.
but it pop up every time one visit the site? i visited 2 times today and i have seen it both times.

could you share the code and the settings?  :)


Posted Jun 17, 2009, 12:18 pm
This member is currently offline Anne Kirrin
Pool


Avatar

Member Level

Group: Moderators
Posts: 1,356
Joined: Apr 11, 2006

Go to the bottom of the page Go to the top of the page

blooobs said:
Hi Anne

it's really great.
but it pop up every time one visit the site? i visited 2 times today and i have seen it both times.

could you share the code and the settings?  :)



I used ShadowBox JS to create the 'popup'...They have documentaion on how to install it on your site.
I created a block to house the shadowbox data {$Blocks->ShadowBoxJS}:

HTML
Code:
{if $this->firstview} 

 <script type='text/javascript'>
  window.onload = function(){
    Shadowbox.init();
    Shadowbox.open({
        player:     'html',
        title:      '<b>Love & Dating Collection From Oprah Relationship Expert</b>',
        content:    '<div style="margin:5px;font-size:1.2em;text-align:justify;"><h3>You are about to discover the "magic ingredients" that make some couples live happy and blissful marriages for DECADES and how you can as well.</h3><div style="text-align:center;"><a href="http://affpro1234.666666.hop.clickbank.net/"><img src="http://www.relationshipcollection.com/collection-y2.jpg" width="430" height="180" style="border: dashed 2px #ff0000;"></a></div><h2 style="text-align:center;margin-top:10px;">"Secrets of the Most...Happy ...Loved ...and Blissful Couples in the World"</h2><p style="font-weight:bold;text-align:center;"><a href="http://affpro1234.666666.hop.clickbank.net/">Love and Dating Collection</a></p></div>',
        height:     500,
        width:      500
    });
}; 
  </script>

{/if}


PHP
PHP:

$this->firstview 0;
if (!isset($this->session['firstview'])){
  $this->firstview 1;
  $this->session['firstview'] = 1;
}


Then I called the block in the main template.


As long as you are in the same session on your browser, there will only be the one instance of the pop up. If you close your browser and then relaunch it and go back to my site, the pop up will relaunch.
.........................
Anne Kirrin is in Nepal for the month of November

ArticleMSSkins.net <<:::: New
Directory of Niche Article Sites <::::: Add your article site for free!!

Posted Jun 17, 2009, 5:08 pm
This member is currently offline blooobs
Puddle


Avatar

Member Level

Group: Members
Posts: 437
Joined: Sep 23, 2007

Go to the bottom of the page Go to the top of the page

Hi Anne

that's cool

thanks :)  ( i pm'd you this moorning )



Posted Jun 17, 2009, 5:44 pm
This member is currently offline Anne Kirrin
Pool


Avatar

Member Level

Group: Moderators
Posts: 1,356
Joined: Apr 11, 2006

Go to the bottom of the page Go to the top of the page

blooobs said:
Hi Anne

that's cool

thanks :)  ( i pm'd you this moorning )




Saw that...will get to it soonest...in the middle of a job right now
.........................
Anne Kirrin is in Nepal for the month of November

ArticleMSSkins.net <<:::: New
Directory of Niche Article Sites <::::: Add your article site for free!!

Posted Jun 17, 2009, 6:13 pm
Pages:<< prev 1 next >>

Dec 3, 2009, 12:10 pm

  

0.0363s