» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 60
1 members and 59 guests
akunamat
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Football Betting - best nfl betting promotions at sportsbook.com.
Oral Chelation - initial cleansing of your veins & arteries
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.

Register Now! Contact Us

About this Page
This is a discussion on grabbing information from another site within the Purged Topics forums, part of the NM Staff category; Ok, I want to write a script that pulls rankings from a site. Specifically from this exact page: http://www....



Go Back   Nukemods Forum » NM Staff » Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-07-2003, 07:08 PM
Junior Member
 
Join Date: Oct 2002
Location: USA
Posts: 77
grabbing information from another site
Ok, I want to write a script that pulls rankings from a site. Specifically from this exact page: http://www.rocketarena.org/clan.asp?ID=4207

Notice the "Rank: 27" I want to know if there is a way to pull that information and display it in a box..I want to code the block my self, I just need a little nudge in the right direction.

-dan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-08-2003, 12:53 PM
swh swh is offline
Junior Member
 
Join Date: Nov 2002
Posts: 20
Just a nudge.
Someone came out with a block that grabbed info using the 4cm php grabbing script. I use the script in some of my modules, and it works great.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-08-2003, 11:35 PM
Junior Member
 
Join Date: Oct 2002
Location: USA
Posts: 77
hmmm, an example?
ok, another nudge would be nice :-D could you use an example of how it works?...I downloaded script, and I'm a bit confused about what to do.

I want to grab information from this address http://www.rocketarena.org/clan.asp?ID=4207

Specifically, I want to grab the "Rank: 27" because that is the information I want to pull into my block. Any ideas?

-dan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-09-2003, 08:36 AM
swh swh is offline
Junior Member
 
Join Date: Nov 2002
Posts: 20
OK I modified the TES newsgrabber block to suit your needs. You may want to tweak the start-end of the grabbing points. You must upload it into your blocks directory and chmod the file block-clan_news.php (or whatever you name it).
Code:
<?php
###############################################################
# Script Title: 4CM_Grabber for TES Scotland
#         File: block-TESnews.php
#  Description: This script will Grab information from the Times Education Supplement (Scotland)
#       Author: John B. Abela/Perfect Papers
#        Email: support@4cm.com
#          Web: http://www.4cm.com/ http://www.perfectpapers.net
#      Version: 2.0.5
#
#  Copyright © 1996-2000 www.4cm.com.  All Rights Reserved.
##
#  www.4cm.com (4CM) offers no warranties on this script.
#  The downloader of the script is solely responsible for any
#  problems caused by the installation of the script or use
#  of the script, including possible legal action for the grabbing
#  of the data, as a result of this script!
#
#  ALL COPYRIGHT NOTICES REGARDING: www.4cm.com
#  MUST REMAIN INTACT IN THE SCRIPT AND IN THE HTML OF THE SCRIPT!  
#
#  For more info on this script, see:
#  http://www.4cm.com/
#
#  (Please be kind and sign our guestbook at:
#     http://www.4cm.com/guestbook/  and say your using
#       this script!!)
###############################################################

########################
## Mandatory Setting  ##
########################
$GrabURL = "http://www.rocketarena.org/clan.asp?ID=4207";  //-  Complete URL of the page your grabbing from!
$GrabStart = 'Rank:';  //- HTML Code To Start Grab. Must Be A Unique Bit Of Code!
$GrabEnd = 'Match History';  //- HTML Code To End Grab. Must Be A Unique Bit Of Code!

#############################
## Do Not Edit Below Here  ##
## Do Not Edit Below Here  ##
#############################
$OpenFile = fopen("$GrabURL", "r"); //- DO NOT CHANGE
$RetrieveFile = fread($OpenFile, 200000);  //- Reduce This To Save Memory
$GrabData = eregi("$GrabStart(.*)$GrabEnd", $RetrieveFile, $DataPrint);
// $DataPrint[1] = str_replace("", "", $DataPrint[1]);   //- Un-Comment This Line for "Replace" purposes!
// $DataPrint[1] = str_replace("", "", $DataPrint[1]);   //- Un-Comment This Line for "Replace" purposes!
fclose($OpenFile); //- DO NOT CHANGE
$content=$DataPrint[1]; //- DO NOT CHANGE
####################
## End of Script  ##
####################
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-09-2003, 05:38 PM
Junior Member
 
Join Date: Oct 2002
Location: USA
Posts: 77
woot, i got it
thanks a lot swh, I got it working. I edited it a little bit and the final product can be seen here ( http://iFear.owns.it ) :-D

-dan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-09-2003, 06:08 PM
swh swh is offline
Junior Member
 
Join Date: Nov 2002
Posts: 20
Good stuff
Nice looking site too
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I just need some information please read. Bilal Open topics 1 08-26-2004 09:22 PM
Information portion of basic phpnuke site BadRam Nuke 7.x - General 2 08-13-2004 07:46 AM
News grabbing links don't work richiewinn Nuke 6.5 to 6.9 - Modules 0 07-19-2003 12:43 PM
Information Block DaRk-DuDe Nuke 6.5 to 6.9 - Blocks 0 04-25-2003 07:29 AM
User/Online Information razo Purged Topics 5 12-11-2002 10:56 AM


All times are GMT -5. The time now is 01:08 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31