Author |
Topic  |
|
blackreligon
Practical
 
Germany
18 Posts |
Posted - 21 Apr 2007 : 21:57:00
|
I have a problem with php include command insert in to my DHE page. I want to use the following script from http://www.site-reference.com/articles/Easy-RSS-Integration.html I followed the all instructions according to their documentation and tried it to get with my DHE page using <?php include("SimpleReader.php"); ?> ---------------------------- Steps: 1. Upload the SimpleReader.php to Server (CHMOND 777) This works fine - http://suwic.de/rssfeed/SimpleReader.php
2. Created new DHE File and insert the <?php include("SimpleReader.php"); ?> using HTML tool (CHMOND 777) --------------------------------
Unfortunately I can see nothing. I hope you people can help me to solve this problem Thanks in advance
|
|
Edigital
Master
   
107 Posts |
Posted - 22 Apr 2007 : 15:03:04
|
Hi, Black..
I suggest to use IFRAME instead of HTML tool
Steps:
1. Select GENERIC Objects (left panel) 2. Click on IFRAME 3. Draw an area with mouse (to show the RSS reader), for example 400x300 4. When iframe tool ask for a file press CANCEL 5. Double click on the IFRAME you has created (GenericX) 6. Replace the code .. src="$FILE" with next code
<iframe id="$NAME" name="$NAME" src="http://suwic.de/rssfeed/SimpleReader.php" width="$WIDTH" height="$HEIGHT" frameborder="0" marginwidth="0" marginheight="0"></iframe>
5. Save your page and try
Good Look,
Don't loose your religion   |
Edited by - Edigital on 22 Apr 2007 15:06:27 |
 |
|
s.dav
Site Admin
    
Italy
3364 Posts |
Posted - 23 Apr 2007 : 08:59:57
|
I've used the "<?php include" many times in my pages and all work ok
Have you made all the sample steps exactly?
Remember to go on the Page Properties dialog in D.H.E. and choose ".php" for extension or the page never work. Then export the page and test it directly onto your web site.
|
Regards, Davide |
 |
|
blackreligon
Practical
 
Germany
18 Posts |
Posted - 24 Apr 2007 : 23:26:20
|
Hi, Big Thanks for both of you. I am still trying to do this with PHP. Davide many thanks for your tip with extension ".PHP" It works, but not completly. If you can find little time please check this http://suwic.de/rssfeed/test.php Links are working propely but without showing news.Do you thing there are any relationship with this part of "SimpleReader.php"
function FormatRow($title, $description, $link) { return <<<HTML
<!-- RSS FEED ENTRY --> <p class="feed_title">$title</p> <p class="feed_description">$description</p> <a class="feed_link" href="$link" rel="nofollow" target="_blank">Read more...</a> <p> </p> <hr size=1> <!-- END OF RSS FEED ENTRY -->
HTML; }
I have no idea what this (<<< HTML and HTML;) means.
It,s great it you can help me Thanks & regards
black
|
 |
|
s.dav
Site Admin
    
Italy
3364 Posts |
Posted - 25 Apr 2007 : 08:59:00
|
I saw your test sample ;-) The news reader works but the text is in white color so nobody can read it  |
Regards, Davide |
 |
|
blackreligon
Practical
 
Germany
18 Posts |
Posted - 25 Apr 2007 : 20:34:32
|
Hai Davide, Many Thanks. Everything's working properly Thanks, Thanks, Thanks
black |
 |
|
|
Topic  |
|