| Autor |
Nachricht |
MrC
phpBB2.de User

Anmeldungsdatum: 16.07.2003
Beiträge: 221
Wohnort: The Netherlands
|
Verfasst am:
So 29 Aug, 2004 11:09 |
  |
|
    |
 |
Google
|
Verfasst am:
|
 |
|
|
 |
cback
phpBB2.de User
 [KB] Manager

Anmeldungsdatum: 16.01.2004
Beiträge: 3321
Wohnort: Saarland
|
Verfasst am:
So 29 Aug, 2004 11:18 |
  |
Yes thats no problem. Only replace this:
| Code: |
//
// Heise Newsticker Add-on
//
$content = implode ("", file ("http://www.heise.de/newsticker/heise.rdf"));
preg_match_all("|<item>(.*)</item>|Uism",$content, $items, PREG_PATTERN_ORDER);
for ($i=0;$i<count($items[1]);$i++)
{
preg_match_all("|<title>(.*)</title>(.*)<link>(.*)</link>|Uism",$items[1][$i], $regs, PREG_PATTERN_ORDER);
$template->assign_block_vars('newsticker',array(
'heise_Ticker' => "<a href='".$regs[3][0]."' target='_blank' class='mainmenu'><b>".$regs[1][0]."</b></a> • "));
} |
with that:
| Code: |
//
// Heise Newsticker Add-on
//
$content = implode ("", file ("http://www.heise.de/newsticker/heise.rdf"));
preg_match_all("|<item>(.*)</item>|Uism",$content, $items, PREG_PATTERN_ORDER);
for ($i=0;$i<count($items[1]);$i++)
{
preg_match_all("|<title>(.*)</title>(.*)<link>(.*)</link>|Uism",$items[1][$i], $regs, PREG_PATTERN_ORDER);
$template->assign_block_vars('newsticker',array(
'heise_Ticker' => "• <a href='".$regs[3][0]."' target='_blank' class='mainmenu'><b>".$regs[1][0]."</b></a><br>"));
} |
|
_________________ [ Forensoftware | CBACK Software | SYNTACTION ]
Support only in Forum! - Support nur im Forum! |
|
     |
 |
MrC
phpBB2.de User

Anmeldungsdatum: 16.07.2003
Beiträge: 221
Wohnort: The Netherlands
|
Verfasst am:
Mo 30 Aug, 2004 21:56 |
  |
Sweet! works like a charm.
One of my members pm'ed me with an overal_header error, i have to wait at his answers to my questions: template, browser etc.
I've no problems with IE so far.
Keep you informed |
|
|
    |
 |
MrC
phpBB2.de User

Anmeldungsdatum: 16.07.2003
Beiträge: 221
Wohnort: The Netherlands
|
Verfasst am:
Di 31 Aug, 2004 14:13 |
  |
Ok, no need to worrie, it all works fine!
cback: we have tried some thingsout last days.
Can you please (re)post the final settings, thanks in advance. |
|
|
    |
 |
cback
phpBB2.de User
 [KB] Manager

Anmeldungsdatum: 16.01.2004
Beiträge: 3321
Wohnort: Saarland
|
Verfasst am:
Di 31 Aug, 2004 16:28 |
  |
The final Mod is already postet on the first page here, I have Edited my post! |
_________________ [ Forensoftware | CBACK Software | SYNTACTION ]
Support only in Forum! - Support nur im Forum! |
|
     |
 |
MrC
phpBB2.de User

Anmeldungsdatum: 16.07.2003
Beiträge: 221
Wohnort: The Netherlands
|
Verfasst am:
Di 31 Aug, 2004 17:15 |
  |
|
    |
 |
cback
phpBB2.de User
 [KB] Manager

Anmeldungsdatum: 16.01.2004
Beiträge: 3321
Wohnort: Saarland
|
Verfasst am:
Di 31 Aug, 2004 17:18 |
  |
|
     |
 |
MrC
phpBB2.de User

Anmeldungsdatum: 16.07.2003
Beiträge: 221
Wohnort: The Netherlands
|
Verfasst am:
Di 31 Aug, 2004 17:20 |
  |
For those who are interested in this mod. You can also use .rss and .xlm pages. |
|
|
    |
 |
ChaosGott
phpBB2.de User


Anmeldungsdatum: 12.11.2004
Beiträge: 110
|
Verfasst am:
Fr 28 Jan, 2005 15:54 |
  |
also.. ich fände den mod ja ganz nett, wenn er funzen würde..
folgender fehler: was nune tun??
| Zitat: |
Warning: file(): Der Zugriff auf externe Dateien ueber URL Filewrappers ist aus Sicherheitsgründen nicht erlaubt. in ../forum/includes/page_header.php on line 425
Warning: file(http://www.heise.de/newsticker/heise.rdf): failed to open stream: no suitable wrapper could be found in ../forum/includes/page_header.php on line 425
Warning: implode(): Bad arguments. in ../forum/includes/page_header.php on line 425 |
|
_________________ GreeZ Mephi1982
PS: Wer Rechtschreibfehler findet, darf sie behalten!
Mors certa, hora incerta .. Nec scire fas est omnia
(Der Tod ist gewiss, ungewiss (ist) seine Stunde .. Es ist unmöglich, alles zu wissen.) |
|
    |
 |
knalli
phpBB2.de User

Anmeldungsdatum: 30.01.2005
Beiträge: 19
|
Verfasst am:
So 30 Jan, 2005 03:45 |
  |
Das Problem ist, dass die Sicherheitseinstellungen deiner php.ini ein Include einer externen Datei verbieten.
Umgehen kannst du das bsp. mit einem Socket.. siehe fsocket (Close nicht vergessen). |
|
|
   |
 |
|
|
|
|