 |
|
|
|

| Autor |
Nachricht |
uk_martin
phpBB2.de User

Anmeldungsdatum: 23.07.2004
Beiträge: 93
|
Verfasst am:
Fr 18 Jan, 2008 13:53 |
  |
My web server upgraded to the latest PHP Server and since then the RSS script (or at least the version that I have) not only stopped working, but stopped my home page from loading, effectively disabling my site. I had to strip out all references to the script, to get my site back working. A message from the Web Host Support Team said - Our server is using PHP 5.2.5 and this version wont support include('http://url.com') in your php program. Instead you can use file_get_contents('http://url.com/').
Does this make sense? Would all the PHP pages have to be re-written to change the code above to make the script work again?
Thanks in advance for any help on this issue.
Martin |
_________________ Martin Uk |
|
   |
 |
Google
|
Verfasst am:
|
 |
|
|
 |
kambodianboi
phpBB2.de User

Anmeldungsdatum: 24.06.2003
Beiträge: 695
Wohnort: Long Beach, CA [USA]
|
Verfasst am:
Mi 23 Jan, 2008 10:16 |
  |
Hi Martin,
Sorry about that. It should work with PHP5, and I founded out what caused it not to work.
In page_header.php, page_tail.php and onlinenews.php, I made a typo, where it shows.
| Code: |
$rss->$items_limit = $rss_rows[$i]['rss_limit'];
|
Which it should be
| Code: |
$rss->items_limit = $rss_rows[$i]['rss_limit'];
|
Make those changes and it should be working as before. |
_________________ - kambodianboi |
|
     |
 |
uk_martin
phpBB2.de User

Anmeldungsdatum: 23.07.2004
Beiträge: 93
|
Verfasst am:
Do 07 Feb, 2008 22:35 |
  |
Hi
Thanks for the reply. Well, nearly but not quite. I get a line of text across my page saying...
Fatal error: Cannot access empty property in /home/brummie/public_html/forum/includes/portal_rss.php on line 21
See http://www.brummiesfans.com/forum/portal_rss.php
Any idea how to correct this?
Thanks
Martin |
_________________ Martin Uk |
|
   |
 |
kambodianboi
phpBB2.de User

Anmeldungsdatum: 24.06.2003
Beiträge: 695
Wohnort: Long Beach, CA [USA]
|
Verfasst am:
Fr 08 Feb, 2008 01:51 |
  |
Make sure that portal_rss.php is in the includes directory. Its saying that the file does not exists.
I updated the file on the first page, with everything corrected. And some more minor patches. Just redownload it and follow from there. |
_________________ - kambodianboi |
|
     |
 |
uk_martin
phpBB2.de User

Anmeldungsdatum: 23.07.2004
Beiträge: 93
|
Verfasst am:
Mi 13 Feb, 2008 11:13 |
  |
Sorry, my fault for confusing the matter. What I did was to create a duplicate of Portal.php so that I could test the ticker whist portal.php continured to operate on the site. I renamed that duplicate portal_rss.php.
But yes there IS a portal_rss.php in the includes dir.
I am continuing to try out things to see if I can get things working, but if you need to se the error on another page - www.brummiesfans.com/portal_chat.php
What I would also like to do is to use the script for the ticker in the header, if you can imagine, in a ticker block at the top of the centre section of the Portal page, above the Welcome text. I think it would look better on my site there...if it can be done.
Well yes it can be done as I had it working before I had to strip it all out when my host changed it's PHP version...
Thanks
Martin |
_________________ Martin Uk |
|
   |
 |
kambodianboi
phpBB2.de User

Anmeldungsdatum: 24.06.2003
Beiträge: 695
Wohnort: Long Beach, CA [USA]
|
Verfasst am:
Mi 13 Feb, 2008 20:07 |
  |
Hi Martin,
I updated the RSS package. You should download the updated version on the first page.
http://www.phpbb2.de/ftopic30207.html
Extract and replace the previous files. And from there, look over the install.txt. I updated parts of that aswell. You can use the portal code I have in the install.txt to create RSS blocks.
I have tested the mod with PHP5 over the last month and so far its working.
Let me know if you have any further questions. |
_________________ - kambodianboi |
|
     |
 |
uk_martin
phpBB2.de User

Anmeldungsdatum: 23.07.2004
Beiträge: 93
|
Verfasst am:
Do 20 März, 2008 03:02 |
  |
Hi
I've tried installing the latest version of the mod, but now get the following:
Fatal error: Cannot access empty property in /home/brummie/public_html/forum/includes/portal_rss.php on line 54
Portal_rss.php IS in the includes directory.
What are the CHMOD settings for these PHP files to "work"?
Do you need copies of my files to see what is going wrong?
Thanks
Martin |
_________________ Martin Uk |
|
   |
 |
uk_martin
phpBB2.de User

Anmeldungsdatum: 23.07.2004
Beiträge: 93
|
Verfasst am:
Mo 24 März, 2008 13:03 |
  |
OK, strange things are happening here.
As I have said, I've had to strip the code out of portal.php and portal_body.tpl as I was getting errors. HOWEVER, in experimenting further, I have noticed that the code in the header and footer works fine and I can have scrolling RSS feeds there...
NOW...
I don't know if this is connected or not, but I noticed one or two mentions about going straight to the onlinenews.php page. Well I tried it here - http://www.brummiesfans.com/forum/onlinenews.php and I got a similar error to the Portal page - "Fatal error: Cannot access empty property in /home/brummie/public_html/forum/onlinenews.php on line 187
"
So - looking at line 187, it had that $ in the code that was mentioned in an above posting. I took that out and the page works just fine.
I was still getting the problem in the main Portal page (gatal error...rss.portal.php line 54)... and guess what? I found the error. That $ symbol was in the code in line 54, which when striped out made it work again.
I had re-installed all the files from a newly downloaded version of the MOD and the $'s was still in the onlinenews.php file and with this new discovery, would it be a good idea that a brand new "repackaged" MOD with the corrected rss_portal.php and onlinenews.php files be uploaded again?
Anyway whilst writing, how can I get a horizontally scrolling marquee (a bit like those in the headers and footers) into the blank space on my site - www.brummiesfans.com/forum/portal.php ???
Thanks
Martin |
_________________ Martin Uk |
|
   |
 |
uk_martin
phpBB2.de User

Anmeldungsdatum: 23.07.2004
Beiträge: 93
|
Verfasst am:
Di 25 März, 2008 22:26 |
  |
| uk_martin hat folgendes geschrieben: |
Anyway whilst writing, how can I get a horizontally scrolling marquee (a bit like those in the headers and footers) into the blank space on my site - www.brummiesfans.com/forum/portal.php ??? |
for your information, what I have done to attempt to get the horizontal marquee to work is to add:
THIS to portal_body.tpl
| Code: |
<!-- BEGIN rss_block3 -->
<table width="100%" cellpadding="1" cellspacing="1" border="0" class="forumline">
<tr>
<th>LATEST NEWS FROM BIRMINGHAM SPEEDWAY</th>
</tr>
<tr>
<td class="row1" align="left"><p class="genmed">
<marquee direction="left" scrollamount="2" onmouseover="this.stop()" onmouseout="this.start()">
{rss_block3.rss_portal3.RSS_ARTC_TITLE}
» {rss_block3.rss_portal3.RSS_ARTC_TITLE}
</marquee>
</p></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="tbl"><tr><td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td></tr></table>
<br />
<!-- END rss_block3 --> |
THIS to portal_rss.php
| Code: |
// Portal block #3
$sql = "SELECT * FROM ".RSS_TABLE."
WHERE rss_location = 5
AND rss_enable = 1";
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not query RSS news information", "", __LINE__, __FILE__, $sql);
}
$row2 = $db->sql_fetchrow($result);
$rss2 = new rss();
$rss2->items_limit = $row2['rss_limit'];
$rss_items2 = $rss2->Get($row2['rss_url']);
if($rss_items2['items_count'] != 0)
{
$template->assign_block_vars("rss_block3", array());
}
$max_rss2 = ($rss_items2['items_count'] < $row2['rss_limit']) ? $rss_items2['items_count'] : $row2['rss_limit'];
for($i=0;$i<$max_rss2;$i++)
{
$template->assign_block_vars("rss_block3.rss_portal3", array(
'RSS_ARTC_TITLE' => "<a href=\"".$rss_items2['items'][$i]['link']."\" target=\"_child\">".$rss_items2['items'][$i]['title']."</a>",
'RSS_ARTC_TIME' => $rss_items2['items'][$i]['date'],
)
);
} |
AND THIS (twice) to admin_rss_news.php
// Header 0, Footer 1, News 2, Portal 3, Portal #2, Portal #3 4
$page_rows = array('Header', 'Footer', 'News Page', 'Portal', 'Portal #2', 'Portal #3');
What is wrong with what I've done and / or what else needs to be done?
Thanks
Martin |
_________________ Martin Uk |
|
   |
 |
Plattfuss
phpBB2.de User

Anmeldungsdatum: 23.11.2007
Beiträge: 8
|
Verfasst am:
Mi 25 Jun, 2008 13:29 |
  |
Can anybody tell me how to use this mod!
Installed, but i don´t know how to use! |
|
|
   |
 |
uk_martin
phpBB2.de User

Anmeldungsdatum: 23.07.2004
Beiträge: 93
|
Verfasst am:
Fr 31 Okt, 2008 14:55 |
  |
Hi
I have a new problem now.
After months of working just great, the supplier of my news feed has changed the RSS news feed file type. Instead of the "old" and simple ".php" file extension, his news feeds now end in something like... ".../extras/rss_menu/rss.php?news.3"
The addition of the "?news3" on the end, I thik causes this MOD to not recognise the feed, and as a result, it has stopped working.
Is there anything that can be done to recognise the new file extensions?
Thanks
Martin |
_________________ Martin Uk |
|
   |
 |
|
|
|
|
Gehe zu Seite Zurück 1, 2, 3 ... 10, 11, 12
|
Nächstes Thema anzeigen
Vorheriges Thema anzeigen
Du kannst keine Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum nicht antworten. Du kannst deine Beiträge in diesem Forum nicht bearbeiten. Du kannst deine Beiträge in diesem Forum nicht löschen. Du kannst an Umfragen in diesem Forum nicht mitmachen. Du kannst Dateien in diesem Forum posten Du kannst Dateien in diesem Forum herunterladen
|
|
| |