Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Xwall

Pages: [1] 2 3 4
1
Mods & Plugins (Releases & Support) / Re: Light Link System
« on: August 08, 2005, 05:41:28 PM »
of course the top an botton... in CNCat directory...

_top.php
Code: [Select]
<HTML><NOFRAMES><HEAD><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></HEAD><BODY></NOFRAMES>
<HTML>
<HEAD>
<TITLE><?=$title;?></TITLE>
<link rel="stylesheet" href="http://xwall.metropoliglobal.com/galerias/templates/4dark/style.css" />
</HEAD>
<BODY>
<center>
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#555555">
<tr><td>
<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>
  <TR>
<TD height="25" valign="middle" bgcolor="#242424">&nbsp;<strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;<font color="#FFFFFF">Xwall Directorio de Enlaces</font></font></strong></TD>
</TR></TABLE>
</td></tr>
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="10">
<tr><td height="20" bgcolor="#363636">
<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR><TD height="20" VALIGN=top>
        <b><font color="#FFFFFF">Directorio de enlaces en el que puedes añadir tus webs preferidas.</font></b><br>
        <br>
</TD></TR>
 

_bottom.php
Code: [Select]
<body bgcolor="363636"><br>
<center>
</td></tr></table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="999999">
</td><td align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="2" bgcolor="ffffff">
</td><td align="center" valign="bottom" bgcolor="#242424">
<small><FONT face="Arial, Helvetica, sans-serif" size=1><FONT color=#999999>Powered by</FONT> <A href="http://www.metropoliglobal.com/" target=_blank><FONT
color=#999999>metropoliglobal</FONT></A><FONT color=#999999> | Copyright &copy; Xwall | </FONT></FONT><font color="#999999" size="1" face="Arial, Helvetica, sans-serif"> CNCat 2.0 &copy 2002-2004 <a href=http://www.cn-software.com/?cncat target=_blank><font color="#999999" size="1" face="Arial, Helvetica, sans-serif">CN-Software</font></a></font></small>
</td></tr></table>
</td></tr></table>
</center>
</TD></TR></TABLE>
</td></tr></table>
</td></tr></table>

</CENTER>
</BODY>
</HTML>

You must use this index.php, for some things. in CNCat directory...
Code: [Select]
<?
/******************************************************************************/
/*                         (c) CN-Software CNCat                              */
/*                                                                            */
/*  Do not change this file, if you want to easily upgrade                    */
/*  to newer versions of CNCat. To change appearance set up files: _top.php,  */
/* _bottom.php and config.php                                                 */
/*                                                                            */
/******************************************************************************/
error_reporting(E_ALL & ~E_NOTICE);
ini_set("session.use_trans_sid",false);
session_register("cncatsid");

if (is_file("install.php") && !is_file("config.php")) {
header("Location: install.php");
exit;
}

if (version_compare(phpversion(), "4.2.0", ">=")) $ob=TRUE; else $ob=FALSE;

if ($ob) {ob_start();ob_implicit_flush(0);}
require "config.php";
require "lang/".$LANGFILE;
if ($ob) {ob_clean();ob_implicit_flush(1);}

if (is_file("install.php")) die($LANG["remove_install"]);

$o=$_GET["o"];
$c=intval($_GET["c"]);
$start=intval($_GET["start"]);

$defaultorder=intval($cat["defaultorder"]);
if ($defaultorder<0 || $defaultorder>3) $defaultorder=0;
if (($o<0 && $o>3) || !isset($o)) $o=$defaultorder;

$r=mysql_query("SELECT name,html FROM ".$db["prefix"]."templates;") or die(mysql_error());
while ($a=mysql_fetch_assoc($r)) $TMPL[$a["name"]]=$a["html"];

function ShowParts($cid) {
GLOBAL $cat,$TMPL,$db;

$r=mysql_query("SELECT name,cid,count FROM ".$db["prefix"]."cat WHERE parent='$cid' ORDER BY name") or die(mysql_error());
$num=0;
$cnt=mysql_num_rows($r);
if ($cnt==0) return;
print $TMPL["partstop"];
for ($i=0;$i<$cnt;$i++) {
$num++;
if ($num==1) print $TMPL["partsdelimtop"];

$template=$TMPL["partsbit"];
$template=str_replace("%CTITLE",mysql_result($r,$i,0),$template);
$template=str_replace("%CID",mysql_result($r,$i,1),$template);
$template=str_replace("%CCOUNT",mysql_result($r,$i,2),$template);
print $template;
if ($num==$cat["rows"]) {print $TMPL["partsdelimbottom"];$num=0;}
}
print $TMPL["partsbottom"];
}

function ShowCat($cid,$best=0) {
GLOBAL $start,$pp,$o,$LANG,$TMPL,$db;

if ($best==1) $bestsql="AND moder_vote=10"; else $bestsql="AND moder_vote!=10";

if ($o==0) $order="ORDER BY gin DESC,gout DESC";
if ($o==1) $order="ORDER BY title";
if ($o==2) $order="ORDER BY moder_vote DESC, gout DESC";
if ($o==3) $order="ORDER BY insert_date DESC";


if ($cid!=0) $Q="SELECT lid,url,title,email,description,gin,gout,moder_vote,insert_date,resfield1,resfield2,resfield3 FROM ".$db["prefix"]."main WHERE type=1 $bestsql AND cat1=$cid $order LIMIT $start,$pp;";
else $Q="SELECT lid,url,title,email,description,gin,gout,moder_vote,insert_date,resfield1,resfield2,resfield3 FROM ".$db["prefix"]."main WHERE type=1 $bestsql $order LIMIT $start,$pp;";
$r=mysql_query($Q) or die(mysql_error());
$cnt=mysql_num_rows($r);
if ($cnt==0 && $best!=1) print $LANG["linksnotfound"];

while ($ar=mysql_fetch_array($r)) {
$admin="";
if ($_SESSION["cncatsid"]=="thisissomestring") {
$admin.="<font color=gray size=-3> [<a href=admin/edit.php?lid=".$ar["lid"]."&type=255 class=slink>".$LANG["edit"]."</a>]";
$admin.="[<a href=admin/moveto.php?lid=".$ar["lid"]."&type=1&to=2 class=slink>".$LANG["delete"]."</a>] [";
for ($j=1;$j<11;$j++) {
if ($j==$ar["moder_vote"]) $admin.="<B>".$j."</B> ";
else $admin.="<a href=admin/vote.php?lid=".$ar["lid"]."&vote=$j&type=255 class=slink>".$j."</a> ";
}
$admin.="]</font>";
}

$template=($best==1)?$TMPL["bestlinksbit"]:$TMPL["linksbit"];
$template=str_replace("%ID",$ar["lid"],$template);
$template=str_replace("%TITLE",$ar["title"],$template);
$template=str_replace("%GIN",$ar["gin"],$template);
$template=str_replace("%GOUT",$ar["gout"],$template);
$template=str_replace("%MODERVOTE",$ar["moder_vote"],$template);
$template=str_replace("%DESC",$ar["description"],$template);
$template=str_replace("%URL",$ar["url"],$template);
$template=str_replace("%EMAIL",$ar["email"],$template);
$template=str_replace("%BEST","<img src=./cat/star.gif width=15 height=16 hspace=3>",$template);
$template=str_replace("%BROKENTEXT",$LANG["broken"],$template);
$template=str_replace("%DATE",$ar["insert_date"],$template);
$template=str_replace("%RESFIELD1",$ar["resfield1"],$template);
$template=str_replace("%RESFIELD2",$ar["resfield2"],$template);
$template=str_replace("%RESFIELD3",$ar["resfield3"],$template);
$template=str_replace("%ADMINIFACE",$admin,$template);
print $template;
}
if ($best!=1) {
if ($cid!=0) return(mysql_result(mysql_query("SELECT count(*) FROM ".$db["prefix"]."main WHERE type=1 $bestsql AND cat1=$cid;"),0,0));
else return(mysql_result(mysql_query("SELECT count(*) FROM ".$db["prefix"]."main WHERE type=1 $bestsql;"),0,0));
}
}

$pp=10;
$cid=$c;$l="";
do {
$r=mysql_query("SELECT parent,name,cid FROM ".$db["prefix"]."cat WHERE cid='$cid';") or die(mysql_error());
if (mysql_num_rows($r)==1) {
$id=mysql_result($r,0,2);
$title=mysql_result($r,0,1);
if ($cid==$c)
$l=mysql_result($r,0,1).$l;
else
$l="<a class=bold href=./?c=".$id.">".$title."</a> &raquo; ".$l;
$cid=mysql_result($r,0,0);
}
else $cid=0;
} while ($cid!=0);
$r=mysql_query("SELECT name FROM ".$db["prefix"]."cat WHERE cid='$c';") or die(mysql_error());
if (mysql_num_rows($r)!=0) $title=mysql_result($r,0,0)." / ".$CATNAME;
else $title=$CATNAME;

include "_top.php";

$template=$TMPL["bmenu"];
$template=str_replace("%MODERATORSTEXT",$LANG["moderators"],$template);
$template=str_replace("%ADDLINKTEXT",$LANG["addlink"],$template);
$template=str_replace("%MAINTEXT",$LANG["main"],$template);
print $template;

$template=$TMPL["brokenscript"];
$template=str_replace("%YESTEXT",$LANG["yes"],$template);
$template=str_replace("%NOTEXT",$LANG["no"],$template);
$template=str_replace("%BROKENSURETEXT",$LANG["brokensure"],$template);
print $template;

$sform=$TMPL["searchform"];
$sform=str_replace("%SEARCHTEXT",$LANG["search"],$sform);
$sform=str_replace("%QUERYTEXT",$q,$sform);
print $sform;

$template=$TMPL["catname"];
$template=str_replace("%MAINTEXT",$CATNAME,$template);
$template=str_replace("%OTHERTEXT",$l,$template);
print $template;

ShowParts($c);

if ($o==0) $sortbypop="<B><font color=\"#FFFFFF\">".$LANG["popuarity"]."</font></B>"; else $sortbypop="<a href=./?o=0&c=$c><font color=\"#FFFFFF\">".$LANG["popuarity"]."</font></a>";
if ($o==1) $sortbytitle="<B><font color=\"#FFFFFF\">".$LANG["title"]."</font></B>"; else $sortbytitle="<a href=./?o=1&c=$c><font color=\"#FFFFFF\">".$LANG["title"]."</font></a>";
if ($o==2) $sortbymoder="<B><font color=\"#FFFFFF\">".$LANG["modervote"]."</font></B>"; else $sortbymoder="<a href=./?o=2&c=$c><font color=\"#FFFFFF\">".$LANG["modervote"]."</font></a>";
if ($o==3) $sortbyin="<B><font color=\"#FFFFFF\">".$LANG["sortbyin"]."</font></B>"; else $sortbyin="<a href=./?o=3&c=$c><font color=\"#FFFFFF\">".$LANG["fecha"]."</font></a>";

$template=$TMPL["sortby"];
$template=str_replace("%SORTBYPOP",$sortbypop,$template);
$template=str_replace("%SORTBYTITLE",$sortbytitle,$template);
$template=str_replace("%SORTBYMODER",$sortbymoder,$template);
$template=str_replace("%SORTBYIN",$sortbyin,$template);
$template=str_replace("%SORTBYTEXT",$LANG["sortby"],$template);
print $template;


if (intval($c)==0 && $cat["shownew"]==1) {
$newlinkstop=$TMPL["newlinkstop"];
$newlinkstop=str_replace("%NEWLINKSTEXT",$LANG["newlinks"],$newlinkstop);
print $newlinkstop;
$r=mysql_query("SELECT lid,title,description,email,insert_date,resfield1,resfield2,resfield3 FROM ".$db["prefix"]."main WHERE type=1 ORDER by lid DESC LIMIT ".$cat["shownewcount"].";");
while ($ar=mysql_fetch_array($r)) {
if (strlen($ar["description"])>75) $ar["description75"]=substr($ar["description"],0,75)."..."; else $ar["description75"]=$ar["description"];

$template=$TMPL["newlinkstbit"];
$template=str_replace("%ID",$ar["lid"],$template);
$template=str_replace("%TITLE",$ar["title"],$template);
$template=str_replace("%GIN",$ar["gin"],$template);
$template=str_replace("%GOUT",$ar["gout"],$template);
$template=str_replace("%MODERVOTE",$ar["moder_vote"],$template);
$template=str_replace("%DESC75",$ar["description75"],$template);
$template=str_replace("%DESC",$ar["description"],$template);
$template=str_replace("%URL",$ar["url"],$template);
$template=str_replace("%EMAIL",$ar["email"],$template);
$template=str_replace("%DATE",$ar["insert_date"],$template);
$template=str_replace("%RESFIELD1",$ar["resfield1"],$template);
$template=str_replace("%RESFIELD2",$ar["resfield2"],$template);
$template=str_replace("%RESFIELD3",$ar["resfield3"],$template);
print $template;
}
print $TMPL["newlinkstbottom"];
}

if ($cat["linksatmain"]==1 || $c!=0) {
print $TMPL["linkstop"];
ShowCat($c,1);
print str_replace("%NUM",(1+$start),$TMPL["linksmiddle"]);
$total=ShowCat($c);
print $TMPL["linksbottom"];
print "<P>".$LANG["linkcount"].": <B>$total</B></P>";
}

if ($total>$pp) {
print "<center>";
if ($start!=0) print "<a href=./?c=$c&o=$o&start=0><font color=\"#FFFFFF\">&lt;&lt;</font></a> | ";
else print "&lt;&lt; | ";
$sstart=$start-60; if ($sstart<0) $sstart=0;
$send=$start+60;if ($send>$total) $send=$total;
for ($i=$sstart;$i<$send;$i+=$pp) {
if ($start==$i)
print "<b>".($i+1)."</b>";
else
print "<a href=./?c=$c&o=$o&start=$i><font color=\"#FFFFFF\">".($i+1)."</font></a>";
print " | ";
}
if ($start==$i-$pp)
print "&gt;&gt;";
else
print "<a href=./?c=$c&o=$o&start=".($total-$pp)."><font color=\"#FFFFFF\">&gt;&gt;</font></a>";
print "</center>";
}
print "<br>";

$template=$TMPL["bmenu"];
$template=str_replace("%MODERATORSTEXT",$LANG["moderators"],$template);
$template=str_replace("%ADDLINKTEXT",$LANG["addlink"],$template);
$template=str_replace("%MAINTEXT",$LANG["main"],$template);
print $template;
print $COPY;

include "_bottom.php";
?>

You can see another example in http://kluck.kl.funpic.de/cncat/

This script can send emails...

2
Mods & Plugins (Releases & Support) / Re: Light Link System
« on: August 08, 2005, 05:34:10 PM »
Actually i use CNCat 2.0 its free...
http://www.cn-software.com/download.xhtm

My links.php
Code: [Select]
<?php

/**************************************************************************

 *                                                                        *

 *    4images - A Web Based Image Gallery Management System               *

 *    ----------------------------------------------------------------    *

 *                                                                        *

 *             File: categories.php                                       *

 *        Copyright: (C) 2002 Jan Sorgalla                                *

 *            Email: jan@4homepages.de                                    *

 *              Web: http://www.4homepages.de                             *

 *    Scriptversion: 1.7                                                  *

 *                                                                        *

 *    Never released without support from: Nicky (http://www.nicky.net)   *

 *                                                                        *

 **************************************************************************

 *                                                                        *

 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *

 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *

 *    ---------------------------------------------------------------     *

 *    This script is NOT freeware! Please read the Copyright Notice       *

 *    (Licence.txt) for further information.                              *

 *                                                                        *

 *************************************************************************/



$templates_used 'links';

$main_template 'links';



define('GET_CACHES'1);

define('ROOT_PATH''./');

include(
ROOT_PATH.'global.php');

require(
ROOT_PATH.'includes/sessions.php');

include(
ROOT_PATH.'includes/stats.php');

$user_access get_permission();

include(
ROOT_PATH.'includes/page_header.php');



if (
$user_info['user_level'] == GUEST || $user_info['user_level'] == USER_AWAITING) {

  
show_error_page($lang['no_permission']);

  exit;

}

//----------------------------------------------------- 

//--- Photo Of The Hour ------------------------------- 

//----------------------------------------------------- 

include(ROOT_PATH."includes/poth.php");



//-----------------------------------------------------

//--- Clickstream -------------------------------------

//-----------------------------------------------------

$clickstream "<span class=\"clickstream\">&nbsp;<strong><font color=\"#666666\">|</font></strong>&nbsp;<a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'];

$clickstream .= $lang['lang_links_title']."&nbsp;<strong><font color=\"#666666\">|</font></strong>&nbsp;</span>";

//-----------------------------------------------------

//--- Print Out ---------------------------------------

//-----------------------------------------------------

$site_template->register_vars(array(

  
"msg" => $msg,

  
"clickstream" => $clickstream,

  
"lang_links_title" => $lang['lang_links_title']

));

$site_template->print_template($site_template->parse_template($main_template));

include(
ROOT_PATH.'includes/page_footer.php');

?>



My links.html (Iframe is the important)
Code: [Select]
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<body background="bkg.gif">
<div align="center"><br>
{header} </div>
<table width="983" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td bgcolor="#999999">
<div align="center"></div></td>
  </tr>
  <tr>
    <td class="bordercolor">
      <table width="100%" border="0" cellspacing="1" cellpadding="0">
        <tr>
          <td class="tablebgcolor">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td valign="top" class="navbar"> <table border="0" cellpadding="0" cellspacing="0" bgcolor="#000000" width="100%" height="62" background="bbcell.gif" >
                    <tr>
                      <td width="50%" align="right" valign="top"><a href="index.php"><img src="{template_url}/images/xwall_lluesma.gif" alt="" width="450" height="58" border="0" align="center" /></a></td>
                      <td width="50%" height="40" align="right" valign="top" >
                        <form method="get" action="{url_search}">
                          <table border="0" cellspacing="0" cellpadding="1">
                            <tr>
                              <td height="29" align="right" valign="bottom">
<input  type="text" style="FONT-SIZE:15px;BORDER-RIGHT:1px solid;BORDER-TOP:1px solid;BACKGROUND:#CCCCCC;TEXT-ALIGN: center; BORDER-LEFT:1px solid;COLOR:#000000;BORDER-BOTTOM:1px solid;spacing:0" name="search_keywords" value="<< keywords >>" size="17" maxlength="100" onfocus="if (value == '<< keywords >>') {value =''}" onblur="if (value == '') {value = '<< keywords >>'}" />
                                <input type="submit" value="{lang_search}" class="button" name="submit" />
                                &nbsp; </td>
                            </tr>
<tr valign="top">
                              <td colspan="2"><a href="{url_search}" class="smalltext"><font color="#999999" size="1" face="Verdana, Arial, Helvetica, sans-serif">{lang_advanced_search}</font></a></td>
                </tr></table>
                        </form></td>
                    </tr>
                  </table>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td background="{template_url}/images/tdx.gif" bgcolor="#333333">
<div align="center">
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="45%" align="left" valign="top"> <font color="#FFFFFF"><br>
                                </font></td>
                              <td width="55%" height="24" align="right" valign="middle">
                                <div align="right"><b><a href="{url_top_images}" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('top','','{template_url}/images/header_r15x.gif',1)"><img src="{template_url}/images/header_r15_xx.gif" alt="Top imágenes" name="top" width="95" height="24" border="0" align="absbottom"></a>&nbsp;&nbsp;&nbsp;<a href="http://xwall.metropoliglobal.com/galerias/foro/index.php" target="_blank" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('foro','','{template_url}/images/foro1.gif',1)"><img src="{template_url}/images/foro2.gif" alt="Foro" name="foro" width="49" height="24" border="0" align="absbottom"></a>&nbsp;&nbsp;&nbsp;<a href="{url_new_images}" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('nuevas','','{template_url}/images/header_r16x.gif',1)"><img src="{template_url}/images/header_r16_xx.gif" alt="Nuevas imágenes" name="nuevas" width="112" height="24" border="0" align="absbottom"></a>&nbsp;&nbsp;
                                  <a href="help.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('ayuda','','{template_url}/images/ayuda1.gif',1)"><img src="{template_url}/images/ayuda2.gif" alt="Ayuda" name="ayuda" width="59" height="24" border="0" align="absbottom"></a>&nbsp;&nbsp;&nbsp;&nbsp;</b></div></td>
                            </tr>
                          </table>
</div></td>
                    </tr>
                  </table>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="22" valign="middle" background="{template_url}/images/td3.gif" bgcolor="#666666">
<div align="left">{clickstream}</div></td>
                    </tr>
                    <tr>
                      <td bgcolor="#666666"><div align="center"></div></td>
                    </tr>
                  </table> </td>
   </tr>
  </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="170" rowspan="2" valign="top" background="{template_url}/images/pc_bg.gif" class="row2">
                  <table width="170" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="20" background="{template_url}/images/archivebg.gif" class="head2"><div align="center">{lang_registered_user}</div></td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                    <tr>
                      <td align="center" background="{template_url}/images/td3.gif" class="row1">{user_box}
                      </td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                  </table>
                  <div align="center">{if poth_image}</div>
                  <table width="170" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="20" background="{template_url}/images/archivebg.gif" class="head2"><div align="center">Im&aacute;genes
                          del d&iacute;a</div></td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                    <tr>
                      <td align="center" background="{template_url}/images/td3.gif" class="row1">
                        <br />
                        {poth_image}<br /> </td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                  </table>
                  <div align="center">{endif poth_image}</div>
                  <table width="170" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="20" valign="middle" background="{template_url}/images/archivebg.gif" class="head2"><div align="center"><strong>Calendario</strong> <font size="1" face="Arial, Helvetica, sans-serif"> &nbsp;(
                          <?php
                    
echo date("d.m.Y"); 
 ?>

                        )<a href="http://www.timeanddate.com/worldclock/" target="_blank"><font size="2">*</font></a></font></div></td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                    <tr>
                      <td align="center" background="{template_url}/images/td3.gif" class="row1">{calender}</td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                  </table>
                   
                  <table width="170" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="15" background="{template_url}/images/td6.gif" class="head2">
                        <div align="center"></div></td>
                    </tr>
                </table></td>
                <td width="1" rowspan="2" valign="top" class="bordercolor"></td>
                <td width="10" rowspan="2"> <div align="left"></div></td>
               <td align="center" valign="top"><div align="left"><br>
               </div>
                  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td valign="top" align="left"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr>
                            <td bgcolor="#363636"> <div align="center">
                                <table width="100%" border="0" cellspacing="1" cellpadding="0">
                                  <tr>
                                    <td height="40" align="center" valign="middle" bgcolor="#666666">
                                      <div align="center">
                                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                          <tr>
                                            <td align="center" valign="middle" bgcolor="#383838">
                                              <div align="left">
                                                <TABLE width="100%" border=0 cellPadding=0 cellSpacing=0
                        background="">
                                                  <TBODY>
                                                    <TR valign="top">
                                                      <TD colspan="0" align="left" valign="middle" class=td><div align="center"><font size="1" face="Arial, Helvetica, sans-serif">
                                                          <table width="784" border="0" cellspacing="0" cellpadding="0" height="329">
<tbody>
                                                              <tr bgcolor="#333333">
                                                                <td bgcolor="#363636" class="textot">
                                                                  <div align="center">
                                                                    <iframe name="links" src="http://xwall.metropoliglobal.com/galerias/xlinks/index.php" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" height="1335" width="787"></iframe>
                                                                </div></td>
                                                              </tr>
                                                            </tbody>
                                                          </table>
                                                          </font></div></TD>
                                                    </TR>
                                                  </TBODY>
                                                </TABLE>
                                                <div align="center"></div>
                                              </div></td>
                                          </tr>
                                        </table>
                                      </div></td>
                                  </tr>
                                </table>
                              </div></td>
                          </tr>
                        </table></td>
                    </tr>
                  </table>
                  <font size="1" face="Arial, Helvetica, sans-serif">&nbsp; </font></td>
               <td width="10" rowspan="2"> <div align="left"></div></td>
              </tr>
              <tr>
                <td valign="bottom"> <table width="100%" border="0" cellspacing="1" cellpadding="0" class="bordercolor">
                    <tr>
                      <td class="catbgcolor"> <table width="100%" border="0" cellpadding="3" cellspacing="1">
                          <tr>
                            <td> <div align="center">                                {footer} </div>
                              <div align="left"></div></td>
                          </tr>
                        </table></td>
                    </tr>
                  </table>
                  <br>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
     
    </td>
  </tr>
</table>
<div align="center"><img src="{template_url}/images/bajo_top.gif" width="983" height="15"><br>
  <br>
</div>

in CNCat 2.0 Admin Control Panel, Templates you must use this...

bestlinksbit
Code: [Select]
<LI>
<table cellspacing=0 cellpadding=0 border=0 width=50%>
  <tr><td bgcolor=#555555>
<table cellspacing=1 cellpadding=3 border=0 width=100%><tr><td width=1% bgcolor=#555555>
  <em><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong><b>&nbsp;TOP&nbsp;</strong></font></em></td><td bgcolor=#242424>
<table cellspacing=0 cellpadding=0 border=0 width=100%><tr><td>
  <em><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>&nbsp;</strong></font></em><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong><a target=_blank href="jump.php?%ID">%TITLE
  </a>&nbsp;</strong></font>
  </td>
<td align=right>&nbsp;  </td>
</tr></table>
</td></tr></table>
</td></tr></table>
<font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>%DESC </strong><em><strong><br>
</strong></em><strong>[ Fecha: %DATE ] - [ Hits : (%GOUT) ] - [ <a href="javascript:badlink('%ID')"> %BROKENTEXT</a> </strong><strong>]</strong><em><strong><br>
</strong></em><strong> %URL%ADMINIFACE<br>
</strong></font><font face="Verdana, Arial, Helvetica, sans-serif"><br>
</font>

linksbit
Code: [Select]
<table cellspacing=0 cellpadding=0 border=0 width=67%>
  <tr><td bgcolor=#555555>
<table cellspacing=1 cellpadding=3 border=0 width=100%><tr>
  <td width=100 bgcolor=#555555>
    <div align="center"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>%EMAIL</strong></font></div></td><td bgcolor=#242424>
<table cellspacing=0 cellpadding=0 border=0 width=100%><tr><td>
  <em><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>&nbsp;</strong></font></em><strong><a target=_blank href="jump.php?%ID"><font color="#FFFFFF">%TITLE</font>  </a></strong><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>&nbsp;</strong></font>
  </td>
<td align=right><strong><font color="#FFCC33" size="1" face="Verdana, Arial, Helvetica, sans-serif">[ Visitas: %GOUT ] </font></strong></td>
</tr></table>
</td></tr></table>
</td></tr></table>
<table width="67%"  border="0" cellspacing="5" cellpadding="0">
  <tr>
    <th scope="col"><div align="left"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>%DESC</strong></div></th>
  </tr>
</table><font color="#999999">&nbsp;&nbsp;[ Fecha: %DATE ] - [ <a href="javascript:badlink('%ID')"><font color="#999999"> %BROKENTEXT</font></a> </font></strong><font color="#999999"><strong>]</strong><em><strong><br>
</strong></em></font><strong><br>
</strong></font><font face="Verdana, Arial, Helvetica, sans-serif"><br>
</font>

linksbottom
Code: [Select]
<table cellspacing=0 cellpadding=0 border=0 width=100%><tr><td><img src=./cat/none.gif width=1 height=1></td></tr></table>
linksmiddle
Code: [Select]
<font color="#FF0000" size="1" face="Verdana, Arial, Helvetica, sans-serif">
</font>

linkstop
Code: [Select]
<UL>
<br>

newlinkstbit
Code: [Select]
<b>&raquo; <b><a target=_blank href='jump.php?%ID'><font color="#FFFFFF"><strong>%TITLE</strong></font></a><font size="1" face="Verdana, Arial, Helvetica, sans-serif">  <small><font color=gray><br>
%DESC75</font></small><br>
<img src=/none.gif width=1 height=5></font><br>

newlinkstbottom
Code: [Select]
</td></tr></table>
newlinkstop
Code: [Select]
<br><table width=200 align=right cellspacing=1 cellpadding=4 border=0 bgcolor='#555555'><tr><td bgcolor='#242424'><centerB>
  <div align="center"><strong><font size="1" face="Verdana, Arial, Helvetica, sans-serif">%NEWLINKSTEXT</B>:
        </center>
  </font></strong></div>
  <Hr size=1>

partsbit
Code: [Select]
<td width=33% valign=top bgcolor="3a3a3a">
<font size="2"><a href=./?c=%CID><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif"><img src=./cat/ismall.gif width=16 height=12 border=0 align=absmiddle hspace=3><strong><font size="1">%CTITLE</font></strong></font></a>
<font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif"></font><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;<font color="#FFCC33" size="1">( %CCOUNT )</font></font></font></td>

partsdelimbottom
Code: [Select]
</tr>
partsdelimtop
Code: [Select]
<tr>
partstop
Code: [Select]
<table cellspacing=0 cellpadding=0 border=0 width=100%><tr><td bgcolor=#555555><table cellspacing=1 cellpadding=3 border=0 width=100%><tr><td bgcolor=#242424><font color="#FFFFFF" size="2"><b><font face="Verdana, Arial, Helvetica, sans-serif">Categorías existentes en el directorio :</font></b></font></td></tr><tr><td bgcolor=#3A3A3A><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">
</font><table width=100% cellspacing=0 cellpadding=0 bgcolor=#3a3a3a><tr>

searchbottom
Code: [Select]
</OL>
searchform
Code: [Select]
<br>
<table cellspacing=1 cellpadding=0 border=0 width=100% bgcolor=#555555>
<tr><td align=center bgcolor=#242424>
<table width=100% border=0 cellspacing=0 cellpadding=0><tr><td>
<table width=100% border=0 cellspacing=1 cellpadding=1><form action=search.php>
<tr>
  <td width=70% align=right><b><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Buscar en el Directorio:</font></b></td>
  <td width=30% align=middle><input value='%QUERYTEXT' size=40 type=text name=q style='font size:11px;height:18px;'></td><td>
<td align=left><input type=submit value=' %SEARCHTEXT ' style='font-size:11px; font-weight:bold'>
</td></tr></table>
</td></tr></table>
</td></tr></table>
</center><br>

searchtop
Code: [Select]
<OL start='%STARTNUM'>
bmenu
Code: [Select]
<center>
  <a href=index.php><font color="#FFFFFF"><B>Principal</B></font></a> | <a href=add.php><B><font color="#FFFFFF">%ADDLINKTEXT</font></B></a> | <a href=search.php><B><font color="#FFFFFF">Buscar</font></B></a>
</center>

brokenscript
Code: [Select]
<SCRIPT language="JavaScript">
<!--
function badlink(l) {
t=screen.height/2-50;
w=screen.width/2-50;
wnd=window.open("","badlink"+l,"width=200,height=100,top="+t+",left="+w);
wnd.document.write("<HTML><BODY style='font-family:verdana;font-size:11px;color:gray;'><center><B>%BROKENSURETEXT</B><br><br>");
wnd.document.write("<a href=add.php?bad="+l+">%YESTEXT</a> &nbsp;|&nbsp; <a href='javascript:window.close();'>%NOTEXT</a></center></BODY></HTML>");
}
// -->
</SCRIPT>

catname
Code: [Select]
<table width=100% cellspacing=0 cellpadding=1 border=0 bgcolor=#555555>
<tr><td>
<table width=100% cellspacing=0 cellpadding=0 border=0 bgcolor=#242424>
<tr><td >
<img src="./cat/i.gif" width=32 height=32 border=0></td>
<td width=99% style='font-size:14px;color:#606060;'>&nbsp;<font size="2"><a href="./"><b><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif">%MAINTEXT</font></b></a> <font color="#FFCC00" face="Verdana, Arial, Helvetica, sans-serif">&raquo; %OTHERTEXT</font></font></td>
</tr></table>
</td></tr></table><br>

sortby
Code: [Select]
<table cellspacing=0 cellpadding=0 border=0 width=100%><tr><td bgcolor=#555555>
<table cellspacing=1 cellpadding=3 border=0 width=100%><tr><td bgcolor=#242424>
<div align=left><font color=#FFFFFF size="2" face="Verdana, Arial, Helvetica, sans-serif">
%SORTBYTEXT: %SORTBYPOP | %SORTBYTITLE | %SORTBYIN<br>
</div>
</td>
</tr></table>
</td></tr></table>



mawenzi : editiert am 16.12.2008
- "My index.html (Iframe is the important)" geändert in "My links.html (Iframe is the important)"

3
Mods & Plugins (Releases & Support) / Re: [MOD] Photo Preview Hack
« on: July 26, 2005, 07:29:25 PM »
hi yuwen,

a little problem with the search funktion and the photo preview ...  :?

on the detail pages of the categories the MOD works without problems. 
but: 
on the detail pages from the search function (e.g. also New Images)
instead of the correct thumbnails the default thumbnail ( jpeg-eye ) are very often shown ...  :?
that does not look so good ...  :!:
is there a solution ...  :?:

mawenzi


A possible solution in this post  8O

4
Discussion & Troubleshooting / Re: Search mode
« on: July 26, 2005, 07:19:46 PM »
Open includes/functions.php

Find:
Code: [Select]
if ($show_link) {
    if ($open_window) {
      $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\" onclick=\"opendetailwindow()\" target=\"detailwindow\">".$thumb."</a>";
    }
    else {
      $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\">".$thumb."</a>";
    }
  }
  return $thumb;
}

Replace with:
Code: [Select]
if ($show_link) {
   if ($open_window) {
     $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id)."\" onclick=\"opendetailwindow()\" target=\"detailwindow\">".$thumb."</a>";
   }
   else {
     $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id)."\">".$thumb."</a>";
   }                                 
 }
 return $thumb;
}

The change is here...
$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."

It is the only solution that I have found for the [MOD] Photo Preview Hack

5
Thanks V@no for your help, all OK Now.  :D

6
I have this DB Error when click in Download button.
The problem is here ( LIMIT $offset, $perpage"; )... What is The solution please?

Code: [Select]
ORDER BY ".$config['image_order']." ".$config['image_sort']."
LIMIT $offset, $perpage";

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id FROM galerias_images i, galerias_categories c LEFT JOIN galerias_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND i.cat_id = 167 AND c.cat_id = i.cat_id ORDER BY image_date DESC LIMIT , 12
Algo está equivocado en su sintax cerca ' 12' en la linea 6

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/localhost/xwall/htdocs/galerias/includes/db_mysql.php on line 231

Code: [Select]
  function get_numrows($query_id = -1) {
    if ($query_id != -1) {
      $this->query_id = $query_id;
    }
    return mysql_num_rows($this->query_id);
  }

DB Error: Bad SQL Query: SELECT cat_id, image_media_file, image_download_url FROM galerias_images WHERE image_active = 1 AND image_id IN (,) AND cat_id IN (0, 520, 15, 554, 626, 262, 121, 549, 458, 318, 491, 16, 263, 35, 34, 636, 131, 651, 366, 633, 61, 56, 264, 122, 170, 132, 195, 2, 14, 650, 647, 617, 102, 348, 30, 145, 154, 308, 313, 101, 103, 558, 31, 389, 315, 646, 185, 113, 464, 365, 624, 622, 471, 40, 345, 163, 197, 81, 209, 114, 104, 265, 33, 248, 133, 63, 569, 28, 411, 410, 58, 266, 349, 631, 123, 614, 299, 130, 280, 615, 124, 71, 134, 80, 55, 269, 254, 359, 526, 363, 259, 337, 597, 364, 146, 548, 388, 100, 118, 161, 105, 67, 619, 106, 26, 268, 606, 566, 612, 70, 270, 595, 584, 621, 394, 466, 79, 135, 152, 153, 155, 162, 156, 157, 158, 159, 151, 271, 272, 72, 369, 216, 107, 609, 41, 387, 628, 361, 635, 632, 147, 571, 403, 48, 119, 68, 481, 412, 66, 358, 553, 610, 422, 205, 126, 167, 601, 296, 568, 567, 649, 604, 342, 346, 99, 371, 115, 547, 234, 494, 534, 630, 83, 120, 75, 642, 1, 274, 620, 192, 117, 18, 128, 127, 76, 627, 367, 19, 275, 194, 98, 521, 556, 69, 20, 276, 207, 24, 160, 77, 38, 141, 111, 78, 368, 144, 150, 32, 43, 89, 142, 277, 125, 625, 44, 82, 27, 29, 47, 39, 60, 603, 508, 404, 279, 377, 198, 116, 17, 468, 616, 62, 37, 186, 282, 456, 84, 648, 563, 140, 178, 305, 401, 137, 409, 284, 643, 335, 551, 640, 602, 252, 261, 210, 25, 285, 360, 465, 641, 644, 148, 479, 623, 591, 564, 109, 618, 85, 138, 139, 57, 637, 362, 168, 639, 129, 21, 287, 149, 110, 634, 420, 599, 49, 86, 645, 434, 74, 629, 638, 370, 112, 249, 244, 164)
Algo está equivocado en su sintax cerca ') AND cat_id IN (0, 520, 15, 554, 626, 262, 121, 549, 458, 318, ' en la linea 3


7
Hi,  8O

I need a direct link in details, to send with PMv.2.5.4 a helpful info to admin.
Using a form like 'New message' with these things…

Choose an option to complete the report of the incidence, Thanks.
---------------------------------------------------------------------------------
O* - Repeated image.
O - Image with bad quality. 
O - Image with unsuitable contents.
O - Image in a mistaken gallery.
O - Image with some incidence. 
O - Inadequate commentary.

To make some commentary:  (Optional)
[textarea / message]
---------------------------------------------------------------------------------

* (type="checkbox")

Admin info (hidden values or not):
Info with user that send the incidence, date, image link with the incidence, category and of course the option that has chosen and message. Enable HTML, BBCode and emoticons.

For Comments I think is very helpful too.  :wink:

This update is very important to me. Thanks  :D

8
Only this, select country in Registration and select country in User Control Panel.

Post about it but dont works well and is incomplete.
http://4homepages.de/forum/viewtopic.php?t=5520

9
Mods & Plugins (Releases & Support) / [MOD] Search Statistics v1.2
« on: June 12, 2003, 11:01:34 AM »
V@no why dont you put something similar like PMS (Deleted selected and Deleted all).  

Some words or phrases are crazy  8O and to erase them i must go to the Data Base.  :wink:

10
Well somebody can put all the correct steps in only one post   :?
i´m feeling  :evil:   :!:  :idea:  :lol:

11
Mods & Plugins (Releases & Support) / [MOD] Search Statistics v1.2
« on: June 09, 2003, 11:31:11 AM »
Quote from: V@no

(I can add an extra code that wont count admin when hit from the search stats - that would be more accurate.)


if you can do it, do it.  8)

If to see the number of results is not the best thing, at least to know if there are results of that search (Results [Yes] [No]).

I am interested in the searches that do not have results.  :?

12
Mods & Plugins (Releases & Support) / [MOD] Search Statistics v1.2
« on: June 08, 2003, 11:15:57 AM »
Excellent work!!!

The last requirement that is needed in this mod is, How many results that appear when making the search?  :wink:

Phrases (love hewitt)  Count (3)  Guests (1)  Users (2)  Admins (0)  Results (27)

13
Mods & Plugins (Releases & Support) / [MOD] Search Statistics v1.2
« on: June 07, 2003, 05:32:37 PM »
Who makes the search Guest? user? admin?  :wink:

Is it possible knowledge it?  8)

Great MOD.

14
---> www.girls-on-bikes.com
Why not this mod is public for all?
You use 4mages script free no?
You request help to make it and V@no helps you.
You say "Any mad crazy 4image coders are welcome to take this idea and make a real mod out of it"
Well why you say this now "this is not a public mod"  :?:

I want this mod :?

15
I think the same and Top Categories is ok also.  :wink:

Pages: [1] 2 3 4