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.

New Free directory to submit to!

Discussion in 'Solicitations & Announcements' started by stephaneggy, Dec 16, 2004.

Thread Status:
Not open for further replies.
  1. #1
    Hello!
    Just finished today with my new directory:
    http://www.onebigindex.com

    I am accepting all kind of sites, no link back required, but you are insured to stay in the directory for free for ever if you put a link back to our site.

    If you want your site in a cat we don't have or in a more specific cat don't hestitate to mail us the the cat and where you want it, I make it then instantly.

    Please tell me what you think of the directory and happy submitting! You can submit as many sites as you want!
     
    stephaneggy, Dec 16, 2004 IP
  2. expat

    expat Stranger from a far land

    Messages:
    873
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I am accepting all kind of sites, no link back required, but you are insured to stay in the directory for free for ever if you put a link back to our site.

    ...quite different when looking at add link though....
    Webmasters: To get a free listing you must link back to the One Big Index, you can use this html code to link back

    M
     
    expat, Dec 16, 2004 IP
  3. onestop

    onestop Well-Known Member

    Messages:
    534
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    138
    #3
    Nice. I've submitted my site. Good luck with your directory. BTW if you want to do mod rewrite, I've found this thread for Biz Directory mod rewrite. You can try it if you like.
    cheers
     
    onestop, Dec 16, 2004 IP
  4. onestop

    onestop Well-Known Member

    Messages:
    534
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    138
    #4
    onestop, Dec 16, 2004 IP
  5. stephaneggy

    stephaneggy Well-Known Member

    Messages:
    275
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #5
    @Expat, thx I din't saw it. Now the text is removed, you can submit a listing without a link back, although a link back is very appriciated :)

    @onestop: I am gonna look at the url you gave, thank you very much

    What do you guys think about the layout I made?
     
    stephaneggy, Dec 16, 2004 IP
  6. onestop

    onestop Well-Known Member

    Messages:
    534
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    138
    #6
    I like the clean design, and easy navigation. It was 1 minute to find the category and "add url" link. Some directories you get lost. Good job with the design. I've submitted two sites (onestop-directory.com and freeauctionscripts.com). Please also add your site to our new directory at:
    http://www.onestop-directory.com and I'll approve it.
    thanks
     
    onestop, Dec 16, 2004 IP
  7. stephaneggy

    stephaneggy Well-Known Member

    Messages:
    275
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #7
    I'll Approved you, Im gonna submit my site to yours too.
    I am wrestling with the mod rewrite script, on the page you gave it says replace this:
    <A HREF="'.$dir.'index.php?c='.$subcategories[$x]["id"].'">
    with this:
    <A HREF="'.$dir.''.$subcategories[$x]["id"].'.html">
    But I dont have that in my index.php, perhaps I have a new version of the script, can someone help me to say what to change?
    <?
    require_once("config.php");
    require_once("include.php");
    require_once("template_index.php");
    $c *= 1;
    if ($c == 0) $c = 1;
    $bd = mysql_connect($mysql_hostname, $mysql_user, $mysql_password);
    mysql_select_db($mysql_database, $bd);
    $sql = mysql_query("SELECT name, title, description, pages, ref FROM {$prefix}categories WHERE id = $c");
    $current_category = mysql_fetch_array($sql, MYSQL_ASSOC);
    if (($c > 1) & !$current_category["name"]){
    mysql_close();
    header("Location: {$dir}");
    exit();
    };
    if (!$current_category["name"]) $current_category["name"] = "Free PHP Directory Script";
    if (!$current_category["description"]) $current_category["description"] = $current_category["name"]." ".$current_category["title"];
    $replace = array("[CATEGORY_NAME]" => $current_category["name"], "[CATEGORY_TITLE]" => $current_category["title"], "[CATEGORY_DESCRIPTION]" => $current_category["description"]);
    echo strtr($TEMPLATE["HEADING"],$replace);
    flush();
    $last_category = false;
    $ref = $c;
    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"];
    };
    };
    echo $TEMPLATE["PATH"]["HEADING"];
    for ($x = $n_parent_categories-1; $x >= 0; $x--){
    if ($x != $n_parent_categories-1) echo $TEMPLATE["PATH"]["SEPARATOR"];
    if ($x == 0){
    $replace = array("[CATEGORY_NAME]" => $parent_categories[$x]["name"]);
    echo strtr($TEMPLATE["PATH"]["CURRENT_CATEGORY"],$replace);
    }else{
    if ($parent_categories[$x]["id"] > 1){
    $category_url = $dir.'index.php?c='.$parent_categories[$x]["id"];
    }else{
    $category_url = $dir;
    };
    $replace = array("[CATEGORY_NAME]" => $parent_categories[$x]["name"], "[CATEGORY_URL]" => $category_url);
    echo strtr($TEMPLATE["PATH"]["CATEGORY"],$replace);
    };
    };
    echo $TEMPLATE["PATH"]["FOOTER"];
    flush();
    $sql = mysql_query("SELECT {$prefix}categories.id, {$prefix}categories.name FROM {$prefix}categories LEFT JOIN {$prefix}pages ON {$prefix}pages.category = {$prefix}categories.id AND {$prefix}pages.accepted = 'y' WHERE ref = $c GROUP BY {$prefix}categories.id ORDER BY {$prefix}categories.name");
    $n_subcategories = mysql_num_rows($sql);
    for ($x = 0; $x < $n_subcategories; $x++){
    $subcategories[$x] = mysql_fetch_array($sql, MYSQL_ASSOC);
    };
    if ($n_subcategories > 0){
    $replace = array("[NUMBER_CATEGORIES]" => $n_subcategories, "[CATEGORY_NAME]" => $current_category["name"]);
    echo strtr($TEMPLATE["SUBCATEGORIES"]["HEADING"],$replace);
    echo $TEMPLATE["SUBCATEGORIES"]["BEFORE_COLUMNS"];
    for ($x = 0; $x < ceil($n_subcategories/2); $x++){
    $replace = array("[CATEGORY_NAME]" => $subcategories[$x]["name"], "[CATEGORY_URL]" => $dir.'index.php?c='.$subcategories[$x]["id"]);
    echo strtr($TEMPLATE["SUBCATEGORIES"]["CATEGORY"],$replace);
    };
    echo $TEMPLATE["SUBCATEGORIES"]["BETWEEN_COLUMNS"];
    for ($x = ceil($n_subcategories/2); $x < $n_subcategories; $x++){
    $replace = array("[CATEGORY_NAME]" => $subcategories[$x]["name"], "[CATEGORY_URL]" => $dir.'index.php?c='.$subcategories[$x]["id"]);
    echo strtr($TEMPLATE["SUBCATEGORIES"]["CATEGORY"],$replace);
    };
    echo $TEMPLATE["SUBCATEGORIES"]["AFTER_COLUMNS"];
    echo $TEMPLATE["SUBCATEGORIES"]["FOOTER"];
    }else{
    $replace = array("[CATEGORY_NAME]" => $current_category["name"]);
    echo strtr($TEMPLATE["SUBCATEGORIES"]["NO_CATEGORIES"],$replace);
    };
    if ($current_category["pages"] == "y"){
    $replace = array("[CATEGORY_NAME]" => $current_category["name"], "[SUBMISSION_URL]" => $dir.'add_url.php?c='.$c);
    echo strtr($TEMPLATE["SUBMISSION_LINK"],$replace);
    flush();
    if ($s == 0) $s = 1;
    $n = 10;
    $sql = mysql_query("SELECT COUNT(*) AS total_pages FROM {$prefix}pages WHERE category = $c AND accepted = 'y'");
    $total_pages = mysql_result($sql,0,"total_pages");
    if ($total_pages > 0){
    $sql = mysql_query("SELECT id, url, title, description FROM {$prefix}pages WHERE category = $c AND accepted = 'y' ORDER BY title LIMIT ".($s-1).",$n");
    $n_pages = mysql_num_rows($sql);
    for ($x = 0; $x < $n_pages; $x++){
    $pages[$x] = mysql_fetch_array($sql, MYSQL_ASSOC);
    };
    };
    if ($show_additional_results){
    flush();
    require_once("include_ppc.php");
    $ppc_results = ppc_results($current_category["name"]);
    if ($s > $total_pages){
    $s2 = $s - $total_pages;
    }else{
    $s2 = 1;
    };
    $e2 = $s2 + min($s + $n - $total_pages - 1, count($ppc_results) - $s2 + 1);
    $total_pages += count($ppc_results);
    for ($x = $s2; $x < $e2; $x++){
    $n_pages += 1;
    $e += 1;
    $pages[$n_pages-1] = $ppc_results[$x];
    };
    };
    $e = min($s + $n - 1, $s + $n_pages - 1);
    if ($n_pages > 0){
    $replace = array("[STARTING_PAGE_NUMBER]" => $s, "[ENDING_PAGE_NUMBER]" => $e, "[TOTAL_PAGES]" => $total_pages, "[CATEGORY_NAME]" => $current_category["name"]);
    echo strtr($TEMPLATE["PAGES"]["HEADING"],$replace);
    for ($x = 0; $x < $n_pages; $x++){
    if ($pages[$x]["domain"]){
    $replace = array("[PAGE_NUMBER]" => $x, "[PAGE_TITLE]" => $pages[$x]["title"], "[PAGE_DESCRIPTION]" => $pages[$x]["description"], "[PAGE_URL]" => $pages[$x]["url"], "[PAGE_DOMAIN]" => $pages[$x]["domain"]);
    echo strtr($TEMPLATE["PAGES"]["FEED_PAGE"],$replace);
    }else{
    $replace = array("[PAGE_NUMBER]" => $x, "[PAGE_TITLE]" => $pages[$x]["title"], "[PAGE_DESCRIPTION]" => $pages[$x]["description"], "[PAGE_URL]" => $pages[$x]["url"], "[PAGE_DOMAIN]" => $pages[$x]["domain"]);
    echo strtr($TEMPLATE["PAGES"]["PAGE"],$replace);
    };
    };
    if ($s != 1 || $e != $total_pages){
    function pagination($s){
    global $c, $dir;
    if ($c != 1) { $query = "index.php?c=$c"; };
    if (($c != 1) & $s != 1){
    $query .= "&s=$s";
    }elseif ($s != 1){
    $query = "index.php?s=$s";
    };
    return $dir.$query;
    };
    echo $TEMPLATE["PAGES"]["PAGINATION"]["HEADING"];
    if ($s != 1){
    $previous = $s - $n;
    $replace = array("[PAGINATION_URL]" => pagination($previous));
    echo strtr($TEMPLATE["PAGES"]["PAGINATION"]["PREVIOUS"],$replace);
    };
    for ($x = 1; $x <= ceil($total_pages/$n); $x++){
    $current = ($x-1) * $n + 1;
    if ($current == $s){
    $replace = array("[PAGINATION_NUMBER]" => $x);
    echo strtr($TEMPLATE["PAGES"]["PAGINATION"]["CURRENT_NUMBER"],$replace);
    }else{
    $replace = array("[PAGINATION_NUMBER]" => $x, "[PAGINATION_URL]" => pagination($current));
    echo strtr($TEMPLATE["PAGES"]["PAGINATION"]["NUMBER"],$replace);
    };
    };
    if ($e < $total_pages){
    $next = $s + $n;
    $replace = array("[PAGINATION_URL]" => pagination($next));
    echo strtr($TEMPLATE["PAGES"]["PAGINATION"]["NEXT"],$replace);
    };
    echo $TEMPLATE["PAGES"]["PAGINATION"]["FOOTER"];
    };
    echo $TEMPLATE["PAGES"]["FOOTER"];
    }else{
    $replace = array("[CATEGORY_NAME]" => $current_category["name"]);
    echo strtr($TEMPLATE["PAGES"]["NO_PAGES"],$replace);
    };
    };
    echo $TEMPLATE["FOOTER"];
    ?>
     
    stephaneggy, Dec 16, 2004 IP
  8. braknews

    braknews Peon

    Messages:
    286
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    braknews, Dec 16, 2004 IP
  9. onestop

    onestop Well-Known Member

    Messages:
    534
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    138
    #9
    Try replacing this:
    $category_url = $dir.'index.php?c='.$parent_categories[$x]["id"];
    Code (markup):
    With This:
    $category_url= $dir.''.$parent_categories[$x]["id"].'.html;
    Code (markup):
    I took a quick look. Let me know if it doesn't work, I'll check and correct it tonight otherwise.
     
    onestop, Dec 16, 2004 IP
  10. stephaneggy

    stephaneggy Well-Known Member

    Messages:
    275
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #10
    It gives an php error, Im gonna sleep now. im gonna look here again tommorow.
    Bye!
     
    stephaneggy, Dec 16, 2004 IP
  11. dyn4mik3

    dyn4mik3 Peon

    Messages:
    126
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Submitted my site - nice and minimal - good luck with your site
     
    dyn4mik3, Dec 16, 2004 IP
  12. braknews

    braknews Peon

    Messages:
    286
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #12
    And my site was added already.

    Thanks
    :)
     
    braknews, Dec 16, 2004 IP
  13. musiclover

    musiclover Well-Known Member

    Messages:
    142
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #13
    I Just submitted. Your site looks really good. Keep up the good work.. :)
     
    musiclover, Dec 16, 2004 IP
  14. zez

    zez Peon

    Messages:
    193
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #14
    I have added my site. Nice directory. Thanks.
     
    zez, Dec 16, 2004 IP
  15. strangerrr

    strangerrr Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Hi ... I added my sites ... nice directory .... one suggestion after add url there is NO link going to direct index page ...
     
    strangerrr, Dec 16, 2004 IP
  16. stephaneggy

    stephaneggy Well-Known Member

    Messages:
    275
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #16
    Thanks stranger, gonna fix that later, still haven't got the mod rewrite working:(
     
    stephaneggy, Dec 16, 2004 IP
  17. yfs1

    yfs1 User Title Not Found

    Messages:
    13,798
    Likes Received:
    922
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Nice adaptation of the Biz Directory script. I added my directory Kwik Goblin

    Cheers
     
    yfs1, Dec 17, 2004 IP
  18. stephaneggy

    stephaneggy Well-Known Member

    Messages:
    275
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #18
    Accepted all listings, yfs1: I added my site to your directory too! Still accepting sites:D
     
    stephaneggy, Dec 17, 2004 IP
  19. stephaneggy

    stephaneggy Well-Known Member

    Messages:
    275
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #19
    I now have the mod_rewrite installed, its now google frindly:D
     
    stephaneggy, Dec 18, 2004 IP
  20. musiclover

    musiclover Well-Known Member

    Messages:
    142
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #20
    Surely a good thing for us dude. & yeah, thanx for listing my site. :)
     
    musiclover, Dec 18, 2004 IP
Thread Status:
Not open for further replies.