phpBB2.de Foren-Übersicht  
[netclusive - internet broadcasting]
 FAQ  •  Suchen  •  Download  •  Lesezeichen  •  Mitgliederliste  •  Benutzergruppen   •  Registrieren  •  Profil  •  Einloggen, um private Nachrichten zu lesen  •  Login
 
        
 
        
 

LinkLift

Nächstes Thema anzeigen
Vorheriges Thema anzeigen

Dieses Forum ist gesperrt, du kannst keine Beiträge editieren, schreiben oder beantworten.Dieses Thema ist gesperrt, du kannst keine Beiträge editieren oder beantworten.
Autor Nachricht
uk_martin
phpBB2.de User
phpBB2.de User



Anmeldungsdatum: 23.07.2004
Beiträge: 93

BeitragVerfasst am: Fr 18 Jan, 2008 13:53 Antworten mit ZitatNach oben 

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
OfflineBenutzer-Profile anzeigenPrivate Nachricht senden
Google







Verfasst am: Nach oben

kambodianboi
phpBB2.de User
phpBB2.de User



Anmeldungsdatum: 24.06.2003
Beiträge: 695
Wohnort: Long Beach, CA [USA]

BeitragVerfasst am: Mi 23 Jan, 2008 10:16 Antworten mit ZitatNach oben 

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
OfflineBenutzer-Profile anzeigenPrivate Nachricht sendenE-Mail sendenWebsite dieses Benutzers besuchen
uk_martin
phpBB2.de User
phpBB2.de User



Anmeldungsdatum: 23.07.2004
Beiträge: 93

BeitragVerfasst am: Do 07 Feb, 2008 22:35 Antworten mit ZitatNach oben 

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
OfflineBenutzer-Profile anzeigenPrivate Nachricht senden
kambodianboi
phpBB2.de User
phpBB2.de User



Anmeldungsdatum: 24.06.2003
Beiträge: 695
Wohnort: Long Beach, CA [USA]

BeitragVerfasst am: Fr 08 Feb, 2008 01:51 Antworten mit ZitatNach oben 

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
OfflineBenutzer-Profile anzeigenPrivate Nachricht sendenE-Mail sendenWebsite dieses Benutzers besuchen
uk_martin
phpBB2.de User
phpBB2.de User



Anmeldungsdatum: 23.07.2004
Beiträge: 93

BeitragVerfasst am: Mi 13 Feb, 2008 11:13 Antworten mit ZitatNach oben 

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
OfflineBenutzer-Profile anzeigenPrivate Nachricht senden
kambodianboi
phpBB2.de User
phpBB2.de User



Anmeldungsdatum: 24.06.2003
Beiträge: 695
Wohnort: Long Beach, CA [USA]

BeitragVerfasst am: Mi 13 Feb, 2008 20:07 Antworten mit ZitatNach oben 

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
OfflineBenutzer-Profile anzeigenPrivate Nachricht sendenE-Mail sendenWebsite dieses Benutzers besuchen
uk_martin
phpBB2.de User
phpBB2.de User



Anmeldungsdatum: 23.07.2004
Beiträge: 93

BeitragVerfasst am: Do 20 März, 2008 03:02 Antworten mit ZitatNach oben 

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
OfflineBenutzer-Profile anzeigenPrivate Nachricht senden
uk_martin
phpBB2.de User
phpBB2.de User



Anmeldungsdatum: 23.07.2004
Beiträge: 93

BeitragVerfasst am: Mo 24 März, 2008 13:03 Antworten mit ZitatNach oben 

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
OfflineBenutzer-Profile anzeigenPrivate Nachricht senden
uk_martin
phpBB2.de User
phpBB2.de User



Anmeldungsdatum: 23.07.2004
Beiträge: 93

BeitragVerfasst am: Di 25 März, 2008 22:26 Antworten mit ZitatNach oben 

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}
&nbsp;&raquo;&nbsp;{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
OfflineBenutzer-Profile anzeigenPrivate Nachricht senden
Plattfuss
phpBB2.de User
phpBB2.de User



Anmeldungsdatum: 23.11.2007
Beiträge: 8

BeitragVerfasst am: Mi 25 Jun, 2008 13:29 Antworten mit ZitatNach oben 

Can anybody tell me how to use this mod!

Installed, but i don´t know how to use!
OfflineBenutzer-Profile anzeigenPrivate Nachricht senden
uk_martin
phpBB2.de User
phpBB2.de User



Anmeldungsdatum: 23.07.2004
Beiträge: 93

BeitragVerfasst am: Fr 31 Okt, 2008 14:55 Antworten mit ZitatNach oben 

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
OfflineBenutzer-Profile anzeigenPrivate Nachricht senden
Beiträge der letzten Zeit anzeigen:      
Dieses Forum ist gesperrt, du kannst keine Beiträge editieren, schreiben oder beantworten.Dieses Thema ist gesperrt, du kannst keine Beiträge editieren oder beantworten.

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

Ähnliche Beiträge
Thema Autor Forum Antworten Verfasst am
Live ticker Script MrFreece Mods & Co. 0 Mo 22 Jun, 2009 14:23 Letzten Beitrag anzeigen
Bearbeitung der Live Statistik Box. WO? Quiksilver Support allgemein 0 Di 01 Jul, 2008 00:06 Letzten Beitrag anzeigen
Downloading the beta ievil Plus 1.53 Beta Support 2 Mi 19 März, 2008 06:31 Letzten Beitrag anzeigen
Live Statisktik im Portal anzeigen Rik2504 Support allgemein 1 Di 18 Dez, 2007 14:00 Letzten Beitrag anzeigen
Download vom Beta 1.53 funktioniert n... Moppeline Support allgemein 3 So 18 Nov, 2007 12:22 Letzten Beitrag anzeigen