vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do I add BBC News Flash to CMPS Basic Modules ? (https://vborg.vbsupport.ru/showthread.php?t=76982)

alderwazeh 02-24-2005 07:07 PM

How do I add BBC News Flash to CMPS Basic Modules ?
 
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>";

?>


All times are GMT. The time now is 03:33 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02434 seconds
  • Memory Usage 1,716KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete