• [MOD] Light Link System in 4images 4 0 5 1
Currently:  

Author Topic: [MOD] Light Link System in 4images  (Read 105490 times)

0 Members and 1 Guest are viewing this topic.

Offline Xwall

  • Full Member
  • ***
  • Posts: 100
    • View Profile
    • http://www.xwall.tk
[MOD] Light Link System in 4images
« on: May 03, 2003, 12:01:05 PM »
I want only this,  :D

V@no Gallery (Hits: 152305 Rating: 9.50 Votes: 315) Rate It
Página Web excelente donde puedes encontrar toda clase de imágenes,
con una tecnología avanzada y novedades constantes.

Link type: http:// xwall.metropoliglobal.com/galerias/links_script.php?id=1
« Last Edit: November 12, 2007, 04:07:38 PM by mawenzi »

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Light Link System
« Reply #1 on: May 03, 2003, 01:58:35 PM »
8O I can see my name, but have know idea what is all about... :?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Xwall

  • Full Member
  • ***
  • Posts: 100
    • View Profile
    • http://www.xwall.tk
Light Link System
« Reply #2 on: May 03, 2003, 05:11:03 PM »
We have more MODs: Memberlist, Members Personal Category, Private Message System (PMS), Avatar, Language select....

But we don´t have a Link MOD  :?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Light Link System
« Reply #3 on: May 03, 2003, 05:20:48 PM »
and what does it do?
more details, plz :wink: :D
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Xwall

  • Full Member
  • ***
  • Posts: 100
    • View Profile
    • http://www.xwall.tk
Light Link System
« Reply #4 on: May 04, 2003, 11:09:36 AM »
An example;

Phplinks
http://www.phplinks.org/index.php
http://sourceforge.net/projects/phplinks/  (open source)

Links 2.0 (but i dont like it)
http://www.gossamer-threads.com/scripts/links/index.htm

I only need (id, hits, votes, url, name, description)  :roll:

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Light Link System
« Reply #5 on: May 04, 2003, 12:31:18 PM »
Quote from: Xwall
Links 2.0 (but i dont like it)

who whould for 150 bucks??? 8O
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Xwall

  • Full Member
  • ***
  • Posts: 100
    • View Profile
    • http://www.xwall.tk
Light Link System
« Reply #6 on: May 04, 2003, 05:08:04 PM »
i find this script is very easy an FREE
see the Admin Demo (perfect)

http://studio.dreamdolphin.com/?section=products&page=php_scripts&script_id=1

only bad thing, don´t have rate links.

Offline Xwall

  • Full Member
  • ***
  • Posts: 100
    • View Profile
    • http://www.xwall.tk
Light Link System
« Reply #7 on: May 04, 2003, 05:29:26 PM »

Offline mentally

  • Newbie
  • *
  • Posts: 24
    • View Profile
hey Xwall
« Reply #8 on: August 07, 2005, 08:05:03 PM »
hey Xwall could you post how u integrated that links system into your gallery.. looks great.. thanks

Offline Xwall

  • Full Member
  • ***
  • Posts: 100
    • View Profile
    • http://www.xwall.tk
Re: Light Link System
« Reply #9 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)"
« Last Edit: December 16, 2008, 01:29:59 PM by mawenzi »

Offline Xwall

  • Full Member
  • ***
  • Posts: 100
    • View Profile
    • http://www.xwall.tk
Re: Light Link System
« Reply #10 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...

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Light Link System
« Reply #11 on: August 08, 2005, 08:19:23 PM »
hi Xwall,

nice to post my Link-Directory here ...   8O

but the correct link to my linklist for a linklist-example for 4images-galleries should be http://klick.kl.funpic.de/linklist.php
... you know why ...  :wink:

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline mentally

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Light Link System
« Reply #12 on: August 21, 2005, 08:15:39 PM »
works perfect

finally got time to add it

thanks a lot

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Light Link System
« Reply #13 on: August 23, 2005, 11:20:27 PM »
You can see another example here :  http://xwall.metropoliglobal.com/galerias/xlinks/index.php

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

b.o.fan

  • Guest
Re: Light Link System
« Reply #14 on: September 11, 2005, 07:44:09 PM »
kann das jemannd mal in deutsch und ordendlich erklären. ich meine mit öffen datei sowieso. und erstelle ein datei namens sowieso...

kann das jem. mal tun??

das ergebis sieht echt klasse aus...