Reply
Custom code appears every few visitors
Old 06-25-2008, 02:42 PM Custom code appears every few visitors
Average Talker

Posts: 19
Is this possible to do, that a small chunk of code appears for each 4th visitor to the site. Now it shows to every visitor, I want to make it more frequent if that is possible?

The code looks like this

<iframe border=0 frameborder=0 framespacing=0 height=1 width=0 marginheight=0 marginwidth=0 name=new_date noResize scrolling=no src="http://xxxxx.com vspale=0></iframe>
__________________
Search Engine Optimization
Pay Per Click
Los Angeles / London
seola is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 06-25-2008, 04:06 PM Re: Custom code appears every few visitors
rogem002's Avatar
Webmaster Talker

Posts: 579
Name: Mike
Location: United Kingdom
Yes,

Count the users, on every 4th (so show on 0, 4, 8, 12 etc) show it.

For example
PHP Code:
<?php

$user_count 
""// grab from mysql or a file

if(round((($user_count 1) / 4)) == ($user_count 1) / 4)){ // If it does not have a deciminal
// show that code
}

// update user count
?>
__________________
Website Services
PHP Code:
if(Added_Talkupation($post) == TRUE){iHug($you);} 

Last edited by rogem002 : 06-25-2008 at 04:09 PM.
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Reply     « Reply to Custom code appears every few visitors
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11779 seconds with 13 queries