1

Topic: Adding a Wedding Directory.

Hi I would like to add a Wedding Directory. I have the code below from a previous designer who design my site but i would like to include the page in my site. please tell what i have to change from the code for the content to be integrated with vld.



<?
session_start();
include_once("commonfile.php");
if (!session_is_registered($session_name_initital . "directory_meta_desc"))
{
    session_register($session_name_initital . "directory_meta_desc");
    $_SESSION[$session_name_initital . "directory_meta_desc"]="";
}
if (!session_is_registered($session_name_initital . "directory_meta_keyword"))
{
    session_register($session_name_initital . "directory_meta_keyword");
    $_SESSION[$session_name_initital . "directory_meta_keyword"]="";
}
if (!session_is_registered($session_name_initital . "directory_pgtitle"))
{
    session_register($session_name_initital . "directory_pgtitle");
    $_SESSION[$session_name_initital . "directory_pgtitle"]="";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?= $sitetitle ?>
<?= $sitethemepath ?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div align="center" class="pagealign">
<div align="center" class="container">
<!-- TOP START ######################## -->
<?php include("top.php") ?>
<!-- TOP END ######################## -->
    <div class="content-wrap">
    <!-- LEFT START ######################## -->
    <?php include("left_directory.php") ?>
    <!-- LEFT END ######################## -->
    <!-- RIGHT START ######################## -->
    <?php include("right.php") ?>
    <!-- RIGHT END ######################## -->
    <!-- MAINIMAGE START ######################## -->
    <div class="thememainimage"></div>
    <!-- MAINIMAGE END ######################## -->
   
    <!-- CENTER START ######################## -->
        <div class="center">
        <div class="center-in1">
        <div class="center-in">
        <!-- ********* TITLE START HERE *********-->
        <div class="pagetitle"><h1><?= $directorypgtitle ?></h1></div>
        <!-- ********* TITLE END HERE *********-->
        <div class="pagecontent">
        <!-- ********* CONTENT START HERE *********-->

<div class="directorycat">
        <?
        $result = getdata("select categoryid,
title from tbl_directory_category_master where currentstatus=0 ");
        while($rs= mysql_fetch_array($result))
        {
         $categoryid = $rs[0] ;
         $title = $rs[1];
         $link_title =  generatelink($title,$categoryid,"directory_category_que")
        ?>
<a href='<?= $link_title  ?>'><?= $title ?></a>
        <? }
            freeingresult($result);
         ?>
</div>

<br />
<br />

        <div align="center"><?
        $searchque = "typeid=2 and payment_completed='Y' and ";
        $FileNm ="directory";
        $Pgnm = getsimpleid("pgnm");
        if (! is_numeric($Pgnm))
        $Pgnm =1;
        $disp_total = 5;
        require_once("directory_search_grid.php");
        ?></div>
       
        <!-- ********* CONTENT END HERE *********-->
        </div>
        </div>
        </div>
        </div>
    <!-- CENTER END ######################## -->
    </div>
    <!-- FOOTER START ######################## -->
    <?php include("bottom.php") ?>
    <!-- FOOTER END ######################## -->
</div>
</div>
</body>
</html>

2

Re: Adding a Wedding Directory.

I could be wrong, but glancing over this I would think that the required changes are going to be greater, rather than less, and possibly beyond the scope of a simple answer here.

For example, we have no idea what is in the included files. Also, I see a DB call $result = getdata(... which is not a standard vld call, so must be in one of the included files, and to be really compatible, should most likely use the vld $DB global class.

It may be that the changes aren't that great, but without knowing what's in the other files it's a hit and miss answer, and possibly it's better to start of fresh and re-create it within the vld $db/$template/etc class constraints?

That's my initial 2c worth - I hope someone can give you more.

3

Re: Adding a Wedding Directory.

Hi! Fatlizard

About this script wich changes you can make

To create a real directory wich point or the best choice we can have.