PDA

View Full Version : news/fader


upperking
02-25-2001, 04:15 AM
used like so

<? include("news.cgi"); ?>

this will insert a nice formatted news page into your static pages, like slash ubb.

You will need to edit the cgi to set up the right forum number. Also the html will probs need editing to wuit your site, currently set up for mine

then for optional headlines via newsfader

it is meant to be used via an <iframe> like so:

<IFRAME FRAMEBORDER=0 width=500 HEIGHT=53 SCROLLING=no SRC="/cgi-bin/wocheck.cgi?url=/cgi-bin/scripts.cgi&page=Scripts"></IFRAME>

02-26-2001, 01:35 AM
Do you have a link we can go to so that we can see this hack in action?

Chris

02-27-2001, 02:43 PM
#!/usr/bin/perl
################################################## ########
# SlashIkon Board #
################################################## ########
# Author: ST8 <st8@q3f.net> #
# Date: 6 Februaru 2001 #
################################################## ########
# Presents news in a nice formatted layout #
# Also records location via whos online #
################################################## ########
# Edit the html to suit your site #
# Used via #
# #
# <!--#exec cgi="news.cgi"> #
# #
# MAKE SURE U EDIT THE CONFIGURATION VARIBLES BELOW!!!! #
################################################## ########
### CONFIGURATION
################################################## ########
### FORUM NUMBER - Forum u wish to drag news from
$number = "15";
### Max number of posts to display
$max_posts = "5";
################################################## ########

use CGI::Carp "fatalsToBrowser"; # Output errors to browser
use CGI qw(:standard); # Saves loads of work
$CGI::POST_MAX=1024 * 150; # limit post data
$CGI::DISABLE_UPLOADS = 1; # Disable uploads
$CGI::HEADERS_ONCE = 1; # Kill redundant headers

eval {
($0 =~ m,(.*)/[^/]+,) and unshift (@INC, "$1");
($0 =~ m,(.*)\\[^\\]+,) and unshift (@INC, "$1");
require "ikon.lib"; # Require ikonboard ()
require "data/progs.cgi"; # Require prog names
require "data/boardinfo.cgi";# Require board info
require "data/styles.cgi"; # Require styles info
};

Urrrm..... Ikonboard code?

--WildWayz