Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,156,718 members, 7,831,274 topics. Date: Friday, 17 May 2024 at 04:27 PM

Site Updater - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / Site Updater (835 Views)

(2) (3) (4)

(1) (Reply)

Site Updater by mikkytrio(m): 5:46pm On Apr 19, 2008
please i am agian i need of help i would want to design a website or am creating a website where it would have to be updated from other websites like chick.com cnn.com and a host of others the main concept is that cloumns from the wesite would pick news from the others and display them on my site but dont know what script to use, i have so much bout rss but dont know if it would do what i need. because i want the test from the site to be displayed instead of an rss symbol. please
Re: Site Updater by uspry1(f): 7:22pm On Apr 19, 2008
There are few things you get started with:

[list]
[li]Have you installed WAMP or XAMP depend on what kind of Operating system you use on your computer/laptop.[/li]


[li]Have your own HTML editor software installed on your computer/laptop.[/li]


[li]Have registered your own domain name that goes with web hosting service you selected the basic web host package[/li]


[li]Be sure web hosting service includes PHP/MySQL installed on their server[/li]


[li]Study on FREE Nairaland tutorial: Designing A Website for Beginners that is found at https://www.nairaland.com/nigeria/topic-17942.0.html [/li]


[li]Once you have GREAT CONFIDENCE understanding the HTML, CSS, web design concepts, then you are ready rolling up your long shirt sleeves starting to build your own three-column tier web page to be uploaded to your web hosting server. You already have your own FTP username/password from domain registrar to be accessed it. [/li]


[li]Once your web page is ready for obtaining all your registered RSS API/scripts from chick.com, cnn.com to be inserted for your blank left-column or right-column web contents. [/li]


[li]If RSS API/script is contained with PHP SCRIPT, then you need to learn basic PHP SCRIPT (usually designed for web developer who can understand advanced programming such as PHP, ASP, #C, JAVA, XML, Flash Actionscripting, JAVASCRIPT, goes on. . .)[/li]


[li]It take time for you to learn everything about web designing as your PASSIONATE in order to be able to update yoour web page at your own without hiring the web designer to do the job for you. [/li]
[/list]

It took me learning all of this starting from high school and college plus college career development with 15 years working experiences in 20 years ago in order to get started my own home-based web designing business in 2000. (8 years ago).

Good Luck! grin
======
If you cannot do it, then THAT IS YOUR LAST RESORT, hiring an experienced web designer to do the job what you want. grin
Re: Site Updater by Kobojunkie: 6:56am On Apr 20, 2008
@Poster, you did not mention the language you are using for this and when people say SCRIPT, I always wonder if they mean a programming language or something else.
Anyway, should you decide to use .NET, I have the code below I wrote a while back to use for displaying Data from Flickr on a project, I had to dig this out of my archives and did not test it before posting but this is what you usually need to do should you want to get data from another site.

To display the information, you can have different columns on your site linked to update every now and then, from the external site by using something like Ajax. and it will do it automatically based on some timer you have set to control the process. Check the code below for more info

using System;

using System.Data;

using System.Configuration;

using System.Collections;

using System.Web;

using System.Web.Security;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.WebControls.WebParts;

using System.Web.UI.HtmlControls;

using System.IO;

using System.Net;



public partial class Default2 : System.Web.UI.Page

{

public String api_key = "a226c16a6c8e2762ef1b4262abc4aa3f";

public int per_page = "10";

public string text="cars";

public string sort = "interestingness-asc";

//public string privacy_filter="";


protected void Page_Load(object sender, EventArgs e)

{

string URL = "http://api.flickr.com/services/rest/?method=flickr.photos.search

&api_key =" + api_key+ "&privacy_filter= 1" +"&text="+ text + " &sort="+ sort;

HttpWebRequest request = (HttpWebRequest)WebRequest.Create(URL);

HttpWebResponse response = (HttpWebResponse)request.GetResponse();

StreamReader reader = new StreamReader(response.GetResponseStream());


DataSet mycdcatalog=new DataSet();

mycdcatalog.ReadXml(reader.ReadLine());


DataList1.DataSource = mycdcatalog;

DataList1.DataBind();

}

}



OR

<%@ Page Language="C#"%>
<%@ Import namespace="System.IO"%>
<%@ Import namespace ="System.Xml"%>
<%@ Import namespace="System.Xml.XPath"%>
<%@ Import namespace="System.Xml.Xsl"%>
<script runat="server">
TextWriter htmlOutput;

public String api_key = "a226c16a6c8e2762ef1b4262abc4aa3f";
public string per_page = "10";
public string text = "cars";
public string sort = "interestingness-asc" ;
public string privacy_filter = "1";
public string URL;

public void Page_Load()
{
URL = " http://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=" +api_key+ "&privacy_filter=" +privacy_filter+ "&text=" +text+ "&sort=" +sort;

XmlDocument XmlDom = new XmlDocument();
XmlDocument XslDom = new XmlDocument();
XslTransform XsltDom = new XslTransform();

XmlDom.Load(URL);
XslDom.Load(Server.MapPath("flickr.xsl"wink);
XsltDom.Load(XslDom);
htmlOutput = new StringWriter();
XsltDom.Transform(XmlDom,null,htmlOutput,null);
}
</script>
<% =htmlOutput.ToString() %>


<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl= "http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="rsp">
<xsl:apply-templates select="photos"/>
</xsl:template>
<xsl:template match= "photos">
<xsl:apply-templates select="photo"/>
</xsl:template>
<xsl:template match="photo">
<img src="http://farm{@farm}.static.flickr.com/{@server}/{@id}_{@secret}_t.jpg" alt= "{@title}"/>
</xsl:template>
</xsl:stylesheet>

(1) (Reply)

Css Quiz Time 2 / Creating Email From Cpanel / Please Help(dead Serious)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 23
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.