Showing posts with label Older. Show all posts
Showing posts with label Older. Show all posts

Sunday, July 17, 2011

Check if the post is older than x days before placing advertisements

3975973661 4cdcba6263 m Check if the post is older than X days before placing adsAds are part of our life on the Internet today, and many webmasters use to make money.


It has become common, for me at least, to land on a page "littered" ads, and I instinctively bounce although the content could be good.


I already posted my opinion on why you should keep your homepage without advertising and here is another trick to find out how to keep your articles appear without publicity new visitors.


If you decide to show ads (context, text and other) on articles that are older than xx days (xx being anything from 2 to 5 days) your income change only slightly, but you will have a positive effect on all of the below:



  1. Bounce rate

  2. RSS subscribers

  3. Any promotion of social media

  4. Overall credibility of the site

We will see how can you easily if you use WordPress.


Here is a short code, that you can place in your functions.php file.



(function new_post()days $=5){global$post;}if(is_single()|| is_page()){$expire=time()-$days*24*60*60;if(mysql2date("U",$post->post_date)>$expire){$return=true;}else{$return=false;}}else{$return=false;{}Return$return;}

Now, whenever you add ads, you can perform this check:



if(!new_post()3)):? >endif;?>

And voila! The ads appear only on workstations that are older than 3 days.

More aboutCheck if the post is older than x days before placing advertisements

Sunday, July 3, 2011

Write remove 'Older entries show' template on blogger

Write the older show we meet on a regular blog template with flatfrom bloggers like on Blogerdin. But because I have the same look of text display entry laws do not like I accidentally delete it. You can remove the text....

This is the case, as shown here:




The image above is displayed whenever you click on the label/category as a visitor to the article, for example, to the header. Now, if you are interest removed as well, that link '-ältere records' step by step as referred to follows:

1. Login to blogger account. After logging in, click on the design of thesection. Furthermore, html edit.

2. Click the download full template. This is to be expected if errors when modifying the template later. So, you have a backup Templatenya.

(3) the completed download give the check box next to the font expand widget templates.

4. next for a number of similar code look like this:


< b: includable ID = 'status ' message >
< B: if cond = ' data: NavMessage ">"
< div class = 'Status msg Wrap' >
< div class = "Status msg Body" >
< data: Navmessage / >
< / div >
< div class = "Status-msg limit" >
< div class = 'Status-bg' msg - >
< div class = "Status-msg hidden" > < data: Navmessage / > < / div >
< / div >
< / div >
< / div >
< div style = "clear: both;"/ >
< / b: If >
< / b: includable >

5. As soon as found, delete all rows of the above code. Then, replace the following code:


< b: includable ID = 'status ' message >
< B: if cond = ' data: NavMessage ">"
< div >
< / div >
< div style = "clear: both;"/ >
< / b: If >
< / b: includable >

(6) the final step, remember to click the Save the templatebutton.

7. If successful, it will pop up a description of the changes have been saved 'Blog'.

8. Close and just click on the link Please see blog , to display the results.

Automatic text or handwritten Show older entries will no longer appear on your blog page. Good luck, good luck!
More aboutWrite remove 'Older entries show' template on blogger