The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
This php file adds a nice flashing scrolling up BBC News with images .. In Nuke as in CMPS there is a nead for creating modules or blocks whatever .. ..Now having moved from Nuke portal to CMPS portal.. How can I add this file to the main CMPS php modules files to dispaly this module as a BBC news Module ... ..I understand that by adding this file " currectlly modified" to the modules directory where the CMPS modules I will be able accordingly to make a new module . what corrections I have to apply for this file to make it works as a basic CMPS php module file >>>Thanks
This php file is : <?php /************************************************** **********************/ /* PHP-NUKE: Web Portal System */ /* =========================== */ /* */ /* Copyright (c) 2001 by Francisco Burzi (fbc@mandrakesoft.com) */ /* http://phpnuke.org */ /* */ /* This program is free software. You can redistribute it and/or modify */ /* it under the terms of the GNU General Public License as published by */ /* the Free Software Foundation; either version 2 of the License. */ // Yahoo-Block -> Version 1.0 // Hagen Graf // hagen@sit2000.de // http://www.sit2000.de/ // PHP-Nuke 5.2 Blocks // Dieser Block funktionierte problemlos bis heute (Januar 2002) // Sollte http://www.yahoo.de seine Seite نndern, muك dieser Block // nat?rlich auch geنndert werden. // Er lنuft unter Nuke 5.2 und 5.3 // Installation: // 1. kopieren nach /blocks // 2. im Adminbereich unter Blِcke diese Datei (block-yahoo.php) anwنhlen // und mit einer ـberschrift versehen // z.B. Yahoo-News. /************************************************** **********************/ if (eregi("block-yah_news.php",$PHP_SELF)) { Header("Location: index.php"); die(); } $url = "http://news.bbc.co.uk/low/arabic/news/default.stm"; $site= "http://news.bbc.co.uk"; $string = implode("\n", file($url)); $string2 = explode('<div class="dateStamp">', $string); $string3 = explode("<h4>مزيد من الأخبار</h4>", $string2[1]); $news = str_replace("الصفحة الرئيسية","",$string3[0]); $news = str_replace('href="','href="'.$site,$news); $content = " <A name= \"scrollingCode\"></A><MARQUEE behavior= \"scroll\" align= \"center\" direction= \"up\" height=\"120\" scrollamount= \"2\" scrolldelay= \"90\" onmouseover='this.stop()' onmouseout='this.start()'><table width=\"100%\">"; $content .= "<tr><td></td></tr>"; $content .= "$news"; $content .= "</table>"; ?> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|