Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
fresh_meat
New Member
New Member


Joined: Feb 26, 2008
Posts: 7

PostPosted: Wed Feb 27, 2008 8:09 am Reply with quote

Okay I am REALLY new to this and trying to learn. I would like to create a block that would link to
Only registered users can see links on this board! Get registered or login!

but only have it show the top ten names, and when clicked on take you to the page itself.

I am a total noob and any help would be greatly appreciated! Very Happy [/url]
 
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Wed Feb 27, 2008 8:17 am Reply with quote

What program are you using to generate the stats? Does it keep them in a database? In general, just to sketch this out, you'd have to write a PHP file block that reads the stats database and finds the top 10 names and then displays them.

You can examine some of the blocks you already have to see how they do things. Also google the PHP-Nuke How-To which has some block making instructions.

_________________
Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module 
View user's profile Send private message
fresh_meat
PostPosted: Fri Mar 14, 2008 5:09 pm Reply with quote

okay thanks for the help. Cheers
 
jakec
Site Admin


Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Sat Mar 15, 2008 4:03 am Reply with quote

Not sure if this will work, but it's work for me on other web content.

There's a website called Only registered users can see links on this board! Get registered or login! which allows you to scrape content from web pages on the internet and turn it into an RSS feed.

It's really quick and easy, and if you are not particularly comfortable with messing around with PHP and mySQL it's a good solution, or if the content is from another site which you don't have access to the database.

I've created a feed of your content to show you what it looks like, it took me less than 2 minutes an this is what you get: Only registered users can see links on this board! Get registered or login!

You can then paste the feed into a block in RN.

This post here explains how to limit the number of articles in the feed: Only registered users can see links on this board! Get registered or login!

If this does the job I would recommend setting up your own account and then you have total control over the content in the feed.
 
View user's profile Send private message
fresh_meat
PostPosted: Sat Mar 15, 2008 12:09 pm Reply with quote

worked like a charm, jake. thanks much for the input. this looks so much better on the site. I really do appreciate your time. worship
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©