1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Need SE friendly directory script!

Discussion in 'Directories' started by Tuning, Feb 24, 2005.

  1. #1
    Hi all,

    Can anyone point me to a decent directory script thats SE friendly.

    I have had a look on free biz directory, and I wanted a more advanced one.

    Please help!

    Regards,
    Tuning
     
    Tuning, Feb 24, 2005 IP
  2. schlottke

    schlottke Peon

    Messages:
    2,185
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
  3. Tuning

    Tuning Well-Known Member

    Messages:
    1,005
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    138
    #3
    Thanks.

    Is there a better one ? I'm amazed by directory people. How are they getting a clean dmoz-like directory script.

    Also what do you think about linker ? http://enproject.codelib.co.kr/

    Is it possible to hack the script so that its se friendly ?

    PS: i'm going to start a standalone free directory site.
     
    Tuning, Feb 24, 2005 IP
  4. Tapanti

    Tapanti Peon

    Messages:
    218
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Try this one here:

    http://www.onlinemarketingtoday.com/software/link-management/

    It’s by far the best I’ve tried.

    It automatically imports the DMOZ sections you want. 100% Search Engine Friendly and best of all 100% Free!

    The guy who conceived it is not a programming specialist, but an online marketing specialist, so it’s designed to be used all the way as a marketing and positioning tool.

    Highly recommended. [​IMG]

    .
     
    Tapanti, Feb 24, 2005 IP
  5. Tuning

    Tuning Well-Known Member

    Messages:
    1,005
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    138
    #5
    Thanks, Its the best, the problem is I'm a noob in php. I cant change the layout of the directory script.

    Does anyone have templates for this script ?
     
    Tuning, Feb 24, 2005 IP
  6. honey

    honey Prominent Member

    Messages:
    15,555
    Likes Received:
    712
    Best Answers:
    0
    Trophy Points:
    325
    #6
    honey, Feb 26, 2005 IP
  7. Mia

    Mia R.I.P. STEVE JOBS

    Messages:
    23,694
    Likes Received:
    1,167
    Best Answers:
    0
    Trophy Points:
    440
    #7
    Personally I have found http://www.biz-directory.org/directory_script.php to be the best IMHO. You can get a more advanced version by paying them, or by modding the free one, which is what we have done. Personally I like the simple look/feel and easy to use interface. You can see ours at http://www.kingbloom.com

    I am more than happy to share some of the modifications we have made like showing number of links/categories, last listed links, etc..
     
    Mia, Feb 26, 2005 IP
  8. Tuning

    Tuning Well-Known Member

    Messages:
    1,005
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    138
    #8
    Mia, Could you share the mods for biz directory ?

    I have experience in using the directory, but have no experience in modding.



    Regards,
    Tuning
     
    Tuning, Feb 26, 2005 IP
  9. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #9
    Nicely done, mia! You don't seem to have many supplemental results on that directory.

    Good job :D
     
    fryman, Feb 26, 2005 IP
  10. Mia

    Mia R.I.P. STEVE JOBS

    Messages:
    23,694
    Likes Received:
    1,167
    Best Answers:
    0
    Trophy Points:
    440
    #10
    Place in the footer.inc to have the category/link listings how on every page:

    
    <!-- insert link/category calculation script -->  
    
    <CENTER>
    <?
    require_once("config.php");
    require_once("include.php");
    
    // Calculate number of pages and categories
    $bd = mysql_connect($mysql_hostname, $mysql_user, $mysql_password);
    mysql_select_db($mysql_database, $bd);
    $sql = mysql_query("SELECT COUNT(*) FROM {$prefix}pages WHERE accepted = 'y'");
    $numsites = mysql_result($sql,0);
    
    $sql = mysql_query("SELECT COUNT(*) FROM {$prefix}categories WHERE accepted = 'y'");
    $numcategories = mysql_result($sql,0);
    
    echo $numsites . " sites indexed for " . $numcategories . " categories";
    ?>
    	
    <!-- end insert link/category calculation script --> 
    
    Code (markup):
    Create a file called "recent.php" and place the following in that text file and upload it to the root directory of the script. Place a link to "recent.php" in your header and or footer include.

    
    <? 
    require_once("config.php");
    require_once("include.php");
    ?>
    <HTML>
    	<HEAD>
    	<TITLE>Search Engine and Web Directory - KingBloom - Search Engine and Web Directory</TITLE>
    	<META NAME="description" CONTENT="Search the human way. The KingBloom Directory is a Human edited web and search directory.">
    	<META NAME="keywords" CONTENT="Search the human way. The KingBloom Directory is a Human edited web and search directory.">
    	<STYLE>
    	BODY {margin: 1% 12%}
    	BODY, TD {font-family: Arial; font-size: 12px; color: #666666}
    	H1 {font-size: 22px; color: #666699; padding-bottom: 10px; border-bottom: 1px solid}
    	A:link {color: #666699}
    	A:visited {color: #666699}
    	A:hover {color: #9999CC}
    	FORM {margin: 0px}
    	INPUT {width: 300px; font-family: Arial; font-size: 12px; color: #666666; background: white; padding: 1px 3px 0px; margin-right: 10px}
    	SELECT {width: 300px; font-family: Arial; font-size: 12px; color: #666666; margin: 1px 0px; margin-right: 10px}
    	TEXTAREA {width: 300px; height: 70px; font-family: Arial; font-size: 12px; color: #666666; padding: 1px 3px 0px; margin-right: 10px}
    	P {margin-top: 15px}
    	HR {height: 1px; color: #DDDDDD; margin: 10px 0px}
    	.BUTTON {width: auto; background: #dddddd}
    	</STYLE>
    	<BODY>
    <TABLE width="100%" border="0">
    <?
    
    include("includes/header.inc");
    echo $mia_header;
    ?>
    
    </TABLE>
    
    	  <BR>
    	  <BR>
    	  <B>Recently Added</B><BR><BR>
    
    
    <?
    
    $bd = mysql_connect($mysql_hostname, $mysql_user, $mysql_password);
    mysql_select_db($mysql_database, $bd);
    $sql = mysql_query("SELECT id,url,title,description,category FROM {$prefix}pages WHERE accepted = 'y' ORDER BY id DESC LIMIT 15");
    $n_pages = mysql_num_rows($sql);
    for ($x = 0; $x < $n_pages; $x++){
    		$pages[$x] = mysql_fetch_array($sql, MYSQL_ASSOC);
    };
    
    
    if ($n_pages > 0){
    		for ($x = 0; $x < $n_pages; $x++){
    
    
    $last_category = false;
    $n_parent_categories = 0;
    $ref = $pages[$x]["category"];
    
    //Walk up tree to find parents
    while(!$last_category){
    		$n_parent_categories += 1;
    		$sql = mysql_query("SELECT id, name, ref FROM {$prefix}categories WHERE id = $ref");
    		$parent_categories[$n_parent_categories-1] = mysql_fetch_array($sql, MYSQL_ASSOC);
    
    		if ($parent_categories[$n_parent_categories-1]["ref"] == 0){
    				$last_category = true;
    		}else{
    			 $ref = $parent_categories[$n_parent_categories-1]["ref"];
    		};
    };
    
    for ($y = $n_parent_categories-1; $y >= 0; $y--){
    		if ($y != $n_parent_categories-1) echo " > ";
    		if ($y == 0){
    				 echo '<B><A HREF="index.php?c='.$parent_categories[$y]["id"].'">('.$parent_categories[$y]["name"].')</A></B>'."\r\n";
    				echo " > ";
    		}else{
    			    if ($parent_categories[$y]["id"] > 1){
    					 $category_url = $dir.'index.php?c='.$parent_categories[$y]["id"];
    				}else{
    					 $category_url = $dir;
    				};
    			 echo '<B><A HREF="index.php?c='.$parent_categories[$y]["id"].'">('.$parent_categories[$y]["name"].')</A></B>'."\r\n";
    		};
    };
    
    // Done with parents, now output child's info
    
    			 echo '<A HREF="'.$pages[$x]["url"].'" TARGET="_blank"><B>'.$pages[$x]["title"].'</B></A><BR>'."\r\n";
    		echo '<I>'.$pages[$x]["description"].'</I><BR><BR>';
    	}
    };
    
    
    include("includes/footer.inc");
    
    ?>
    
    Code (markup):
    Of course you can feel free to link to us.

    enjoy!
     
    Mia, Feb 27, 2005 IP
  11. Tuning

    Tuning Well-Known Member

    Messages:
    1,005
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    138
    #11
    Thanks for the mod. :)
     
    Tuning, Feb 27, 2005 IP
  12. Davilac

    Davilac Peon

    Messages:
    233
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #12
    One think, we can add mod rewrite to the URLs without infringing the free license?
     
    Davilac, Jun 18, 2005 IP
  13. zguoqi

    zguoqi Well-Known Member

    Messages:
    140
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #13
    zguoqi, Jun 19, 2005 IP
  14. Joe Blow

    Joe Blow Well-Known Member

    Messages:
    204
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    138
    #14

    Hi Mia...

    Thank you very much for posting this mod. I just have a couple of quick questions:

    1. Where can I find the footer.inc file so I can insert the first segment of code you posted?

    2. I have cut and pasted the second piece of code into a file called 'recent.php' and uploaded it to my root directory. You mention that I have to put a link to it in my header and/or footer include. What is the correct syntax for this link and where exactly do I put it?

    Sorry I'm such a n00b! :D

    Hope you can help!
     
    Joe Blow, Jun 30, 2005 IP
  15. Mia

    Mia R.I.P. STEVE JOBS

    Messages:
    23,694
    Likes Received:
    1,167
    Best Answers:
    0
    Trophy Points:
    440
    #15
    You'e going to have to make one. That is if there is not one. I cannot remember but I may have created a header/footer for the script when I first started playing with it. Either way if it is not there, just make one.

    Of course all this is doing is showing the category counts and listing counts.

    Ah, http://your-site-name.com/recent.php
     
    Mia, Jun 30, 2005 IP