vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   news/fader (https://vborg.vbsupport.ru/showthread.php?t=9716)

upperking 02-25-2001 04:15 AM

1 Attachment(s)
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

PHP Code:

#!/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 {
($
=~ m,(.*)/[^/]+,)   and unshift (@INC"$1");
($
=~ 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


All times are GMT. The time now is 11:53 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.01022 seconds
  • Memory Usage 1,725KB
  • 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)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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