Have PF on your website!


by Greg Bernhardt
Tags: website
Greg Bernhardt
Greg Bernhardt is offline
#1
Apr3-04, 06:40 PM
Admin
Greg Bernhardt's Avatar
P: 8,535
Show some love for PF and share it with all your website/blog visitors.

Just copy this code into your page and thats it!

<a href="http://www.physicsforums.com">Physics Forums</a>
For people who are more advanced with the net and websites you can parse our RSS and XML feed:

http://physicsforums.bernhardtmedial...l.php?type=xml
http://physicsforums.bernhardtmedial...l.php?type=rss
Phys.Org News Partner Science news on Phys.org
Going nuts? Turkey looks to pistachios to heat new eco-city
Space-tested fluid flow concept advances infectious disease diagnoses
SpaceX launches supplies to space station (Update)
Greg Bernhardt
Greg Bernhardt is offline
#2
Apr4-04, 11:44 AM
Admin
Greg Bernhardt's Avatar
P: 8,535
I should note that this feed only takes from the "physics forums", you can add more or exclude some by editing "forumids=111,61,62,63,64,71". You can find forum ids but looking at each forum url which will include the id.
dduardo
dduardo is offline
#3
Apr4-04, 12:01 PM
Emeritus
dduardo's Avatar
P: 1,919
Whats the limit for checking the rss feed? My ip got temporarily banned on slashdot because I wrote my program to check every 5 minutes. Slashdot only permits checking once every 30 minutes.

Greg Bernhardt
Greg Bernhardt is offline
#4
Apr4-04, 12:02 PM
Admin
Greg Bernhardt's Avatar
P: 8,535

Have PF on your website!


Quote Quote by dduardo
Whats the limit for checking the rss feed? My ip got temporarily banned on slashdot because I wrote my program to check every 5 minutes. Slashdot only permits checking once every 30 minutes.
We don't have a limit, but please be kind to our bandwidth and don't check every five minutes
Greg Bernhardt
Greg Bernhardt is offline
#5
Apr6-04, 02:34 PM
Admin
Greg Bernhardt's Avatar
P: 8,535
Anyone using this? If so I'd like to sneek a peek at the site
Monique
Monique is offline
#6
Apr7-04, 03:17 PM
Emeritus
Sci Advisor
PF Gold
Monique's Avatar
P: 4,613
Well.. i did.. not that my site is really developed or anything.. besides the nice colors and all (I did the designing myself) ;)

it's under 'sites'
Greg Bernhardt
Greg Bernhardt is offline
#7
Apr7-04, 03:29 PM
Admin
Greg Bernhardt's Avatar
P: 8,535
Quote Quote by Monique
Well.. i did.. not that my site is really developed or anything.. besides the nice colors and all (I did the designing myself) ;)

it's under 'sites'

Looks good Monique!!
Greg Bernhardt
Greg Bernhardt is offline
#8
Jun2-04, 01:19 PM
Admin
Greg Bernhardt's Avatar
P: 8,535
anyone else?
Werdatothewise
Werdatothewise is offline
#9
Jun3-04, 03:06 AM
Werdatothewise's Avatar
P: 44
Quote Quote by Greg Bernhardt
If you have your own website you can have an updated steam of current PF posts right on your site.

Just copy this code into your page and thats it!

<script src="http://physicsforums.bernhardtmediall.netdna-cdn.com/external.php?type=js&forumids=111,61,62,63,64,71" type="text/javascript"></script>
<script type="text/javascript">
document.writeln("<table cellspacing=\"0\" cellpadding=\"4\" width=\"100%\">");
for(var i=0; i<10; i++)
{
    if(i < 9)
        document.writeln("<tr><td style=\"border-bottom: 1px solid #B4C1CD\">");
    else
        document.writeln("<tr><td>");
    document.writeln("<small><a href=\"http://www.physicsforums.com/showthread.php?t="+threads[i].threadid+"\">"+threads[i].title+"</a></small></td></tr>");
}
document.writeln("</table>");
</script>
For people who are more advanced with the net and websites you can parse our RSS and XML feed:

http://www.physicsforums.com/external.php?type=xml
http://www.physicsforums.com/external.php?type=rss
Greg, I would be more than happy to have your website posted to mine. I finally have ours done for the state of Texas home educators. Problem is, I am now out of my "rhelm" for further programming and/or additions to the site. I need to find a person who would be willing to finish up a couple of additions...... hint, hint......
elas
#10
Sep10-04, 12:56 AM
P: n/a
Can someone tell me the correct way to enter this code in MSFRONTPAGE
musky_ox
musky_ox is offline
#11
Sep10-04, 08:17 PM
P: 72
Highlight, Cntl-C, click into the code section for frontpage, Cntl-V
elas
#12
Sep11-04, 01:19 AM
P: n/a
musky ox-Thanks-elas
exequor
exequor is offline
#13
Nov1-04, 04:41 PM
exequor's Avatar
P: 393
hey this is a cool addon to any website. i will add it to my website soon since i'm a big fan of physicsforums.
yxgao
yxgao is offline
#14
Dec15-04, 02:06 AM
P: 125
Quote Quote by elas
Can someone tell me the correct way to enter this code in MSFRONTPAGE

I was able to do this in Ms Frontpage. It's simple. You can either copy and paste the HTML into the page under "Code" view, or paste it into "Design" view and choose "Paste as HTML" from the suitcase icon.
futb0l
#15
Dec17-04, 07:57 PM
P: n/a
Pretty cool :)
Thomas2
Thomas2 is offline
#16
Mar31-05, 08:29 AM
P: 118
The script doesn't work in my IE5.5 browser. I get Javascript errors because apparently the threads don't download. It is OK with Mozilla and Opera though.
Also, I noticed that your server actually sends out 15 threads, whereas the script above prints out only 10.
Greg Bernhardt
Greg Bernhardt is offline
#17
Aug31-05, 06:33 PM
Admin
Greg Bernhardt's Avatar
P: 8,535
Quote Quote by Thomas2
The script doesn't work in my IE5.5 browser. I get Javascript errors because apparently the threads don't download. It is OK with Mozilla and Opera though.
Also, I noticed that your server actually sends out 15 threads, whereas the script above prints out only 10.
Right, you can change it back to 15, I thought 10 was a little neater though.
-Job-
-Job- is offline
#18
Nov5-05, 11:47 PM
Sci Advisor
-Job-'s Avatar
P: 1,132
Here, i added to my site which is my homepage (for my use mostly, i don't get many visitors).
http://www.bloo.us


Register to reply

Related Discussions
Your website General Discussion 10
website bidding website General Discussion 3
Website General Discussion 0