November 25, 2024, 04:43:49 PM
Forum Rules: Read This Before Posting


Topic: We can now track our outbound RSS links!  (Read 9069 times)

0 Members and 2 Guests are viewing this topic.

Offline Mitch

  • General Chemist
  • Administrator
  • Sr. Member
  • *
  • Posts: 5298
  • Mole Snacks: +376/-3
  • Gender: Male
  • "I bring you peace." -Mr. Burns
    • Chemistry Blog
We can now track our outbound RSS links!
« on: June 15, 2006, 02:35:55 PM »
This was a simple but nasty bit of logical php code I came up with. I use feeddigest to incorporate feeds into the onsite reader, but they don't track the number of clicks that go outbound from our site to the miscellaneous bloggers. But, I added this bit of code to the block and now it works like a champ and we can track outbounds through the normal statistics of our links section http://www.chemicalforums.com/?module=Links

Code: [Select]
<?php
$handle 
fopen("http://app.feeddigest.com/digest3/JQFKHPXB76.html""rb");
$contents '';
$index 0;
while (!
feof($handle)) {
$contents fread($handle10000);
}
fclose($handle);

$contents str_replace("Chemical &amp; Engineering News: Latest News"'<a href="http://www.chemicalforums.com/index.php?module=Links;sa=gotolink;id=157">Chemical &amp; Engineering News: Latest News</a>'$contents);
$contents str_replace("Scientific American - Official RSS Feed"'<a href="http://www.chemicalforums.com/index.php?module=Links;sa=gotolink;id=158">Scientific American - Official RSS Feed</a>'$contents);

$contents str_replace("The Disgruntled Chemist"'<a href="http://www.chemicalforums.com/index.php?module=Links;sa=gotolink;id=150">The Disgruntled Chemist</a>'$contents);
$contents str_replace("The Sceptical Chymist"'<a href="http://www.chemicalforums.com/index.php?module=Links;sa=gotolink;id=127">The Sceptical Chymist</a>'$contents);
$contents str_replace("Molecule of the Day"'<a href="http://www.chemicalforums.com/index.php?module=Links;sa=gotolink;id=142">Molecule of the Day</a>'$contents);
$contents str_replace("TotallySynthetic.com"'<a href="http://www.chemicalforums.com/index.php?module=Links;sa=gotolink;id=141">TotallySynthetic.com</a>'$contents);
$contents str_replace("blog.tenderbutton.com"'<a href="http://www.chemicalforums.com/index.php?module=Links;sa=gotolink;id=139">blog.tenderbutton.com</a>'$contents);
$contents str_replace("Interfacial Science"'<a href="http://www.chemicalforums.com/index.php?module=Links;sa=gotolink;id=146">Interfacial Science</a>'$contents);
$contents str_replace("Nice Shoes, Wanna Fock?"'<a href="http://www.chemicalforums.com/index.php?module=Links;sa=gotolink;id=146">Nice Shoes, Wanna Fock?</a>'$contents);
$contents str_replace("Chemical Professionals"'<a href="http://www.chemicalforums.com/index.php?module=Links;sa=gotolink;id=146">Chemical Professionals</a>'$contents);
$contents str_replace("Defending science, scientists, and nonscientists"'<a href="http://www.chemicalforums.com/index.php?module=Links;sa=gotolink;id=146">Defending science, scientists, and nonscientists</a>'$contents);
echo 
$contents
?>


Most Common Suggestions I Make on the Forums.
1. Start by writing a balanced chemical equation.
2. Don't confuse thermodynamic stability with chemical reactivity.
3. Forum Supports LaTex

Offline Mitch

  • General Chemist
  • Administrator
  • Sr. Member
  • *
  • Posts: 5298
  • Mole Snacks: +376/-3
  • Gender: Male
  • "I bring you peace." -Mr. Burns
    • Chemistry Blog
Re: We can now track our outbound RSS links!
« Reply #1 on: June 15, 2006, 02:39:58 PM »
At least we can now know who the most popular bloggers are according to Chemical Forums. :)
Most Common Suggestions I Make on the Forums.
1. Start by writing a balanced chemical equation.
2. Don't confuse thermodynamic stability with chemical reactivity.
3. Forum Supports LaTex

Sponsored Links