Are you a Google Analytics enthusiast?
Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE!

www.CustomReportSharing.com
From the folks who brought you High Rankings!
More SEO Content
Want To Display Recent Posts From The Hr Forum?
#1
Posted 23 September 2003 - 02:40 PM
If you'd like to display recent forum threads on your site somewhere, just use SSI to include the following URL:
http://highrankings....?a=news&show=10
That URL will display the first post in the most recently-posted-in 10 threads. To show more or less, just change the number 10 to whatever number you prefer.
It's um... not terribly attractive right now. I'm working on pulling out the formatting and making it plainer as well as cutting off the first post content after a set # of characters. But this is how it works out of the box.
Everytime a user requests the page, the content updates as new posts are added. A pretty neat way to add some content to your site! Right now it only pulls from the Optimization Tips&Tricks Forum. If that changes, I will let you know.
Best way to implement? Create a table cell for the content to appear in then add this line of code:
<!--#include file="http://highrankings....a=news&show=10" -->
Then save the page with a .shtml extension. That should do it!
The .php version would look like this:
<? include ("http://highrankings....a=news&show=10"); ?>
Then save the page with a .php extension.
Your server must be set up to parse shtml or php pages.
#2
Posted 23 September 2003 - 02:50 PM
It seems that it's showing threads that aren't actually recent though. (At least when I clicked on the link.)
Am I the only one seeing that?
Jill
#3
Posted 23 September 2003 - 03:03 PM
The feed is very plain and simple now- if you want to format it, I've set style classes for you.
.hrhead is the class for this section:
Posted By: USERNAME
Posted On: Sep 23 2003, 01:56 PM
.hrbody is the class for the rest of the post.
#4
Posted 23 September 2003 - 03:05 PM
It may be that they are ordered by the date of the first post of the thread. That makes them look old, even though the latest posts in each thread match (on casual inspection) the ones that come up on the "Today's Active Posts" search.
#5
Posted 23 September 2003 - 03:05 PM
I imagine most people will only want to pull 3 or 4 entries anyway.
#6
Posted 23 September 2003 - 05:41 PM
If so, is there a way we can show just the title of thread, maybe?
I would like to possibly add something to other pages of my site, but I don't want entire posts. That would be too much, imo. I don't think others would want entire posts either.
I'm also trying to remember how I can put SSI on my site without actually renaming the files to .shtml. If someone knows the .htaccess command for that, could they post it. I remember others posting that in other forums in the past.
This is all pretty cool. Amazing what you can do with RSS!
Jill
#7
Posted 24 September 2003 - 03:52 AM
#8
Posted 24 September 2003 - 11:57 PM
<style type="text/css">
<!--
.ch_table, .ch_table tr td {border-width:0;}
.ch_head {display:none;}
.ch_description {display:none;}
//-->
</style>
<script LANGUAGE=JavaScript SRC=http://www.wcc.vccs.edu/services/news/channel.asp?c=http://www.highrankings.com/forum/rss.php&refresh=true> </SCRIPT>
<!-- alternative for no javascript -->
<noscript>
<a href="http://www.wcc.vccs....ript=true">View RSS feed</a>
</noscript>
For people who want a "real" rss feed, it's here:
http://www.highranki...m/forum/rss.php
#9
Posted 25 September 2003 - 12:04 AM
Adjust the "limit" parameter to show the number of posts that you want. This example shows 3.
<style type="text/css">
<!--
.ch_table, .ch_table tr td {border-width:0;}
.ch_head {display:none;}
.ch_description {display:none;}
//-->
</style>
<script LANGUAGE=JavaScript SRC=http://www.wcc.vccs.edu/services/news/channel.asp?c=http://www.highrankings.com/forum/rss.php&refresh=true&limit=3> </SCRIPT>
<!-- alternative for no javascript -->
<noscript>
<a href="http://www.wcc.vccs....ript=true">View RSS feed</a>
</noscript>
#11
Posted 25 September 2003 - 12:54 AM
This is just from my memory. I don't have access to my server at the moment.I'm also trying to remember how I can put SSI on my site without actually renaming the files to .shtml. If someone knows the .htaccess command for that, could they post it. I remember others posting that in other forums in the past. l
AddType text/x-server-parsed-html .htmlRemember that this affects server performance. Every html file is parsed. If your server has problems with the current load, I wouldn't recommend this.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users








