Welcome our webmaster and SEO forum
Please enjoy the forum, contribute what you can, and wind up the Moderators!
Closed Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14

Thread: Directory Stats for PHPLD

  1. #1
    Alam's Avatar
    Alam is offline Member Alam is on a distinguished road
    Join Date
    Mar 2007
    Posts
    58

    Smile Directory Stats for PHPLD

    Friends,

    I know many of u have already this type of scripts but I have developed it again and want to share with you. Please don't take it otherwise.

    Copyright???(multiple copy and editing is highly appricitiated )

    change the database connection part for your database connection.
    Open index.php in a code viewer and just place the code and save.

    NB: Please visit my sites to view the result (Urlcabin Web Directory - DirectoryMX - ActiveCabin.com - directory.activewebtool.com)


    <?

    // This script has been written by Alam (alam19bd@yahoo.com) and any can use it, change it and delete it without my permission

    // Database connection
    $db="databasename"; // Please write your database name here
    $db_server="dbservername"; // Please write your server name here (nornamlly localhost)
    $db_id="databaseID"; // Please write your database ID here
    $db_password="databasePWD"; // Please write your database Password here

    $link=mysql_connect("$db_server","$db_id","$db_pas sword");
    if(!mysql_select_db("$db"))
    {
    echo "Connection failed!";
    }
    ?>


    <div align=center>

    Category:

    <?
    // Total Category
    $category_table="PLD_CATEGORY";

    $q = "select count(*) from $category_table";
    $r = mysql_query($q,$link);
    while($a=mysql_fetch_array($r)){
    echo $a[0];
    }
    ?>

    - Active Links:

    <?
    // Total Active Links
    $link_table="PLD_LINK";

    $q = "select count(*) from $link_table where STATUS=2";
    $r = mysql_query($q,$link);
    while($a=mysql_fetch_array($r)){
    echo $a[0];
    }
    ?>

    - Pending Links:

    <?
    // Total Pending Links
    $link_table="PLD_LINK";

    $q = "select count(*) from $link_table where STATUS=1";
    $r = mysql_query($q,$link);
    while($a=mysql_fetch_array($r)){
    echo $a[0];
    }
    ?>

    </div>

  2. #2
    temi's Avatar
    temi is offline Facilitator temi is just really nice temi is just really nice temi is just really nice temi is just really nice temi is just really nice
    Join Date
    Jun 2003
    Location
    London, England.
    Posts
    10,304

    Default

    This is brilliant Alam, thanks for sharing, reputation added

    * Build a shopping cart for your business with eCommerce software UK
    * BossCart.com can build you a.
    Register your domain names at Velnet
    ::
    Add Eco sites to The Green Directory free of charge.
    Use LBS Free PHP Directory Script . Web Hosting Blog

  3. #3
    Alam's Avatar
    Alam is offline Member Alam is on a distinguished road
    Join Date
    Mar 2007
    Posts
    58

    Default

    wow,
    tnx a lottttttttttttttttt

  4. #4
    OldWelshGuy's Avatar
    OldWelshGuy is offline Super Moderator OldWelshGuy has much to be proud of OldWelshGuy has much to be proud of OldWelshGuy has much to be proud of OldWelshGuy has much to be proud of OldWelshGuy has much to be proud of OldWelshGuy has much to be proud of OldWelshGuy has much to be proud of OldWelshGuy has much to be proud of
    Join Date
    Oct 2004
    Posts
    1,998

    Default

    What does this script do?

    Excuse my ignorance

  5. #5
    temi's Avatar
    temi is offline Facilitator temi is just really nice temi is just really nice temi is just really nice temi is just really nice temi is just really nice
    Join Date
    Jun 2003
    Location
    London, England.
    Posts
    10,304

    Default

    Alam did not explain what it does properly, it output PHPLD stats on the footer of a PHPLD directory linke on the footer of the example site he gave. By defaul, PHPLD does not do that.

    * Build a shopping cart for your business with eCommerce software UK
    * BossCart.com can build you a.
    Register your domain names at Velnet
    ::
    Add Eco sites to The Green Directory free of charge.
    Use LBS Free PHP Directory Script . Web Hosting Blog

  6. #6
    Alam's Avatar
    Alam is offline Member Alam is on a distinguished road
    Join Date
    Mar 2007
    Posts
    58

    Default

    temi,

    Thanks a lot for your kind cooperation

    I had got to say details about the script

    This script will work on phpld directory and show the total category, total active links and pending links in footer of the page. So anyone can ezly see and get idea about your site stats. Thats all

  7. #7
    rakib is offline Senior Member rakib is on a distinguished road
    Join Date
    Jan 2007
    Posts
    749

    Default

    Alam, great! this is a great.

  8. #8
    OldWelshGuy's Avatar
    OldWelshGuy is offline Super Moderator OldWelshGuy has much to be proud of OldWelshGuy has much to be proud of OldWelshGuy has much to be proud of OldWelshGuy has much to be proud of OldWelshGuy has much to be proud of OldWelshGuy has much to be proud of OldWelshGuy has much to be proud of OldWelshGuy has much to be proud of
    Join Date
    Oct 2004
    Posts
    1,998

    Default

    Ah nice piece of code. I use esyndicat which does this anyhow. I think it is also a good guide to directory owners that you have to carry out some work on empty cats.

  9. #9
    Alam's Avatar
    Alam is offline Member Alam is on a distinguished road
    Join Date
    Mar 2007
    Posts
    58

    Default

    Dear mate,

    Please leave ur site address here if you add my script there. I wanna see the result in ur site :P

  10. #10
    3wlink is offline Junior Member 3wlink is on a distinguished road
    Join Date
    Mar 2007
    Posts
    17

    Default

    Thanks a lot to u Alam for the nice piece of work, and also for sharing it with us

Closed Thread
Page 1 of 2 1 2 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. What site stats do you use and do you find it useful?
    By temi in forum General Webmaster Talk
    Replies: 10
    Last Post: 10-22-2007, 08:45 AM
  2. phpLD has developed Bid for Position directory script
    By rakib in forum General Webmaster Talk
    Replies: 7
    Last Post: 07-09-2007, 04:29 PM
  3. Directory Stats v1.1 for PHPLD Directory
    By Alam in forum Directories
    Replies: 8
    Last Post: 04-17-2007, 05:21 PM
  4. Google buys another stats software - Karolinska stats
    By temi in forum General Webmaster Talk
    Replies: 3
    Last Post: 03-19-2007, 12:15 PM
  5. Search Engine Stats
    By cellardoor in forum General Search Engine Discussions
    Replies: 1
    Last Post: 10-10-2004, 05:53 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124