News: April 7th, 2019, The Tinyportal team is pleased to announce the release of ~~ TinyPortal 1.6.3! GET IT NOW!!!

Login  |  Register
HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

September 16, 2019, 08:43:27 AM

Login with username, password and session length

Recent

Members
  • Total Members: 3752
  • Latest: Alizee
Stats
  • Total Posts: 188888
  • Total Topics: 20752
  • Online Today: 50
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 0
Guests: 42
Total: 42

Author Topic: Help Me - Integration my Gallery in my Tiny Portal  (Read 2427 times)

0 Members and 1 Guest are viewing this topic.

al-trance

  • Guest
Help Me - Integration my Gallery in my Tiny Portal
« on: December 28, 2005, 10:17:28 PM »
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>

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: Help Me - Integration my Gallery in my Tiny Portal
« Reply #1 on: December 29, 2005, 09:26:21 AM »
You can create a PHP article and add that code into it. You might have to surround that with an <iframe>