TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,230
  • Total Topics: 21,353
  • Online today: 371
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 320
  • Total: 320

Help Me - Integration my Gallery in my Tiny Portal

Started by al-trance, December 29, 2005, 05:17:28 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

al-trance

my location gallery www.electronik.net/site/content/gallery

my forum www.electronik.net/forum

it wanted to know like integrating my present gallery in my forum

this is code of gallery, that it would have to do and to create so that it works, thanks

Quote<?php
//
// r16 17.03.2005
//
$v="2 r16 17.03.2005";
include('include/version.inc.php');

require_once( 'include/Config.class.php');

$globalpath='';
$config='config.ini';

if (isset($_GET['configfile'])) $config=$_GET['configfile'];
if (!file_exists($config)) die ('Error reading config file');
$Config = new Config( $config,false,true);
$startheading=($Config->get('startheading','GALLERY'));
$bgcol=($Config->get('bgcol','GALLERY'));
if (isset($_GET['bgcol'])) $bgcol=$_GET['bgcol'];
if (!isset($bgcol)) $bgcol='FFFFFF';
$textcol=($Config->get('textcol','GALLERY'));

$vars=$Config->listKeys('GALLERY');
$varstr = '';

foreach ($vars as $var) {
   $var=trim($var);
   if(isset($_GET[$var]))
   {
      $vvar=$_GET[$var];
      if (strlen ($varstr) > 1 and $vvar != '') $varstr .= '&';
      $varstr .= $var . '=' . urlencode($vvar);
   }
}

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title><?=$startheading;?></title>
<meta http-equiv="Content-Type" content="text/html">
<style type="text/css">
<!--
body {
   background-color: #<?=$bgcol;?>;
   margin-left: 0px;
   margin-top: 0px;
   margin-right: 0px;
   margin-bottom: 0px;
}
-->
</style>
</head>

<body bgcolor="#<?=$bgcol;?>" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="100%"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100%" height="100%">
        <param name="movie" value="imageVue.swf">
        <param name="quality" value="high">
        <param name="BGCOLOR" value="#<?=$bgcol;?>">
        <param name="FLASHVARS" value="globalpath=<?=$globalpath;?>&textcol=<?=$textcol;?>&configfile=<?=$config;?>&<?php echo $varstr; ?>">
        <embed src="imageVue.swf" width="100%" height="100%" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="#<?=$bgcol;?>" flashvars="globalpath=<?=$globalpath;?>&textcol=<?=$textcol;?>&configfile=<?=$config;?>&<?php echo $varstr; ?>"></embed></object></td>
  <td width="1"><img src="p.gif" width="1" height="500"></td>
  </tr>
  <tr>
  <td height="1"><img src="p.gif" width="700" height="1"></td>
  <td></td>
  </tr>
</table>
</body>
</html>

IchBin

You can create a PHP article and add that code into it. You might have to surround that with an <iframe>

This website is proudly hosted on Crocweb Cloud Website Hosting.