Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



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!


Sponsored Content

 

 
 

Photo

Want To Display Recent Posts From The Hr Forum?


  • Please log in to reply
10 replies to this topic

#1 Scottie

Scottie

    Psycho Mom

  • Admin
  • 6,293 posts
  • Location:Columbia, SC

Posted 23 September 2003 - 02:40 PM

This is a neat little feature I just found-

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 Jill

Jill

    High Rankings Advisor

  • Admin
  • 32,324 posts

Posted 23 September 2003 - 02:50 PM

Cool!

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 Scottie

Scottie

    Psycho Mom

  • Admin
  • 6,293 posts
  • Location:Columbia, SC

Posted 23 September 2003 - 03:03 PM

OK- I found the template. :aloha: No more grey backgrounds and dotted borders.

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 leftbrain

leftbrain

    A Refreshing Alternative

  • Active Members
  • PipPipPip
  • 54 posts
  • Location:Newberry, South Carolina

Posted 23 September 2003 - 03:05 PM

Jill,

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 Scottie

Scottie

    Psycho Mom

  • Admin
  • 6,293 posts
  • Location:Columbia, SC

Posted 23 September 2003 - 03:05 PM

They are only pulling from the Optmization Tips forum- we may not have 10 really new threads. And yes- what Leftbrain said. The first post will show, not the most recent one.

I imagine most people will only want to pull 3 or 4 entries anyway.

:aloha:

#6 Jill

Jill

    High Rankings Advisor

  • Admin
  • 32,324 posts

Posted 23 September 2003 - 05:41 PM

So what shows if I post that link somewhere? The entire thing I see when I click the link?

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 dimok

dimok

    HR 4

  • Active Members
  • PipPipPipPip
  • 110 posts
  • Location:Tula, Russia

Posted 24 September 2003 - 03:52 AM

Cool feature! Now we can just look through recent posts and grab "good ideas" from every speaker, even from post in themes that were not interesting in the list of themes. :)

#8 Scottie

Scottie

    Psycho Mom

  • Admin
  • 6,293 posts
  • Location:Columbia, SC

Posted 24 September 2003 - 11:57 PM

As requested- a javascript version. This will display the 10 most recent threads from across all forums as title links on your page. No need to rename your page as with SSI.


<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 Scottie

Scottie

    Psycho Mom

  • Admin
  • 6,293 posts
  • Location:Columbia, SC

Posted 25 September 2003 - 12:04 AM

Here is the "light" version:
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>

#10 Scottie

Scottie

    Psycho Mom

  • Admin
  • 6,293 posts
  • Location:Columbia, SC

Posted 25 September 2003 - 01:11 AM

If you want to see how this works, take a look at this page in the bottom right-hand corner.

#11 csjavi

csjavi

    HR 4

  • Active Members
  • PipPipPipPip
  • 148 posts
  • Location:Tampere, Finland

Posted 25 September 2003 - 12:54 AM

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

This is just from my memory. I don't have access to my server at the moment.
AddType text/x-server-parsed-html .html
Remember 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