473,387 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

mySpace blog on Homepage

Hi!
I want to feed the news section of my band - homepage with the mySpace
blog of our band (in order to keep redundancy low).

The band homepage is written in PHP.

I wrote an xsl-stylesheet that transforms the blog into my wanted
design.

Here is the code:

<?

$doc =
domxml_open_file("http://blog.myspace.com/blog/rss.cfm?friendID=70463944");
$xsl = domxml_xslt_stylesheet_file("blogMySpace.xsl");
$params = array();
$result = $xsl->process($doc,$params,false);

$wholepage = $result->dump_mem();
print $wholepage;
?>
I cant get rid of "&nbsp;" being displayed from the <descriptiontag.

Anybody knows how to get rid of them?

str_replace('&nbsp;',' ') doesnt work.
a translate function in the xsl does not work as well....

anybody got an idea?

please help...

Aug 9 '06 #1
1 1914

am*********@gmail.com wrote:
Hi!
I want to feed the news section of my band - homepage with the mySpace
blog of our band (in order to keep redundancy low).

The band homepage is written in PHP.

I wrote an xsl-stylesheet that transforms the blog into my wanted
design.

Here is the code:

<?

$doc =
domxml_open_file("http://blog.myspace.com/blog/rss.cfm?friendID=70463944");
$xsl = domxml_xslt_stylesheet_file("blogMySpace.xsl");
$params = array();
$result = $xsl->process($doc,$params,false);

$wholepage = $result->dump_mem();
print $wholepage;
?>
I cant get rid of "&nbsp;" being displayed from the <descriptiontag.

Anybody knows how to get rid of them?

str_replace('&nbsp;',' ') doesnt work.
a translate function in the xsl does not work as well....

anybody got an idea?

please help...
It's probably a problem on MySpace's side. I don't know too much about
xml, so I can't be of too much help.

Aug 10 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mickey | last post by:
Hi, I am currently undertaking a project in php. I'm updating a current website, which is just a standard blog, but my plan is to implement it as a similar site to myspace, i am just having...
2
by: PrinceDeeDer | last post by:
im trying to edit my blog layout to fit my website layout so i kind of just mixed my homepage HTML with the blog HTML and it has a few bugs in it. i was wondering if anybody could help me fix it or...
3
by: Sehboo | last post by:
I am writing a website and I would like user to choose their templates/backgrounds just like myspace. This gives user a feeling of belonging. My question is how would I allow it? what can go...
6
by: AppleBag | last post by:
I'm having the worst time trying to login to myspace through code. Can someone tell me how to do this? Please try it yourself before replying, only because I have asked this a couple of times in...
7
by: webgyrl | last post by:
Hi, I am helping a musician friend of mine with his profile and I found a cool layout on Nas' MySpace page. I changed some things and re-did the graphics and I basically popped my Image URLS...
1
drhowarddrfine
by: drhowarddrfine | last post by:
MySpace is a coding nightmare. Many web developers will ignore questions about it because it is just too much work and hard to decipher what is going on. The code for it is also non-standard and...
6
by: redcanary10 | last post by:
I am fairly new to the html realm and have encountered a problem I can't seem to figure out. I am working on a film myspace ( http://www.myspace.com/mintygreenidiots ) and want to add a table that I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.