Page 1 of 2 12 LastLast
Results 1 to 15 of 17

Thread: New websites directory online

  1. #1
    Join Date
    Aug 2004
    Posts
    13

    Smile New websites directory online

    Hi,

    We've finally gone live with www.mvpages.com featuring some hacks, thumbshots from actual screenshots (not thumbshots.org) and other modifications.

    Let me know what you guys think.

    Thanks
    --
    Simon Shareef
    simonshareef@gmail.com

  2. #2
    Join Date
    Feb 2003
    Location
    Saudi Arabia - Jeddah
    Posts
    141

    Default

    Cool

    :::::::: i like it

    ::: the main categories menu [ left ] ....... is it dynamic ? so when ever you add a main cat. it will apeare there automatically !

    ::: the small icon [ additional info ] nice idea but try to add more info to it so it can be more usefull

  3. #3
    Join Date
    Aug 2004
    Posts
    13

    Default

    Hi,

    Yep. The categories menu on the left is dynamic.

    I will add more info to the 'i' icon on the listings.

    Thanks
    --
    Simon Shareef
    simonshareef@gmail.com

  4. #4
    Join Date
    May 2004
    Location
    New Zealand
    Posts
    600

    Default nice site,

    great site... well done

    the dynamic menu on the left is awesome.... any tips for other indexu users?

  5. #5
    Join Date
    Feb 2003
    Location
    Saudi Arabia - Jeddah
    Posts
    141

    Default

    Quote Originally Posted by asimov
    Yep. The categories menu on the left is dynamic.
    is it possible to konw how you did it

  6. #6
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    as much as I think static pages are unnecessary from a performance point of view, I also dislike "dynamic" category menus ( assuming this menu is built using a SQL statement and not just javascript/css rollovers ).

    Why would you want to dynamically create something that almost never changes every time you display the page? The main categories almost never change.

    Even subcats hardly change. and if wasn't for showing the number of links for the subcats, they could be created once and then hardcoded into the HTML page. And if the subcats are in a similar type "menu" or you don't show the number of links, then they to could be hardcoded into the page.

    Over the years I created several links sites. And while I was not all that good at it, once I created the categories and subcats, I almost never changed changed them. If I did, I just took an extra 30 seconds and copied/pasted one of the category lines and changed the ID and viola! the menu was updated.

    OK, I'll get off my soap box...

    What the hey. You've got the computer power; why not create them dynamically.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  7. #7
    Join Date
    Aug 2004
    Posts
    13

    Default

    Hi again,

    Thanks for the comment, esm. That makes a lot of sense. Actually I did that in the very early days of my IndexU hacking (which of course was last month) just to know my way around the code.

    For those of you who want to know: I created a method in categories class to get all top level categories. That's all. I can mail you the code if anyone wants it. Just mail me.

    Currently, I'm working on a static HTML page generator for INDEXU. I've read the threads about Aladdin1's mod for this but I cannot afford it right now. So I thought, what the heck.

    Cheers,
    --
    Simon Shareef
    simonshareef@gmail.com

  8. #8
    Join Date
    Aug 2002
    Location
    Germany
    Posts
    1,180

    Default good !!

    Hello,

    looks really nice !!!
    Tell us how you get the random page and all the thumbs ?!

    Regards
    Frank

  9. #9
    Join Date
    Aug 2004
    Posts
    13

    Default

    I created the random link by instantiating a new links class object and setting the appropriate query like this in index.php:

    Code:
    $rand_link_obj = new clsLink;
    $rand_link_obj->InitDB($dbServer,$dbHostname,$dbUsername,$dbPassword,$dbName);
    $rand_link_obj->query = "SELECT * FROM idx_link WHERE `suspended` = 0 ORDER BY RAND() LIMIT 1";
    $rand_link_obj->max_rows = 1;//$main_hot_links;
    $rand_link_obj->template = $msg["20313"];
    $rand_link_obj->enable_cache = false;
    $rand_link = $rand_link_obj->Display();
    Then I created a new template in msg.php to display it the way I want.

    Then I passed the variable $rand_link to the DisplayTemplate method like so:
    Code:
    DisplayTemplate($theme_path."index.html",
    	  "\$category,\$rand_link, ....
    And in index.html place <%rand_link%> where you want it to appear.

    Also, you need to have $rand_link declared as a global somewhere in index.php.

    That's it. I hope that helped.

    Cheers,

    --
    Simon Shareef
    simonshareef@gmail.com

  10. #10
    Join Date
    Aug 2004
    Posts
    13

    Default

    Forgot one more thing. The thumbs were created by making a custom field in the database and creating the thumbnails of sites by hand.

    It wasn't much work as we don't have a lot of websites in this tiny place.

    Cheers,
    --
    Simon Shareef
    simonshareef@gmail.com

  11. #11
    Join Date
    Feb 2003
    Location
    Saudi Arabia - Jeddah
    Posts
    141

    Default

    Esm:
    -----

    i agree with you, but what i want is to learn how to deal with indexu code. to make usefull hacks out of it. Yes, I can use some java scripts & DHTML codes to create simillar menu.

    asimov:
    -------

    PM ....with my mail address

  12. #12
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    one way to learn as you suggest is to visit the Custom Hacks forum. Find a hack that interests you and try to recreate it without looking at hack itself. Some are easier than others so start with the easier ones.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  13. #13
    Join Date
    Aug 2004
    Posts
    13

    Default Valid XHTML 1.0

    Hi,

    Just thought I'll let you guys know that my website is now fully XHTML 1.0 compliant.

    Not that this is important but out of the box INDEXU generates very lousy HTML and it's good to have fixed the mess of it.

    Check it out at :Validate at w3.org

    Cheers,
    --
    Simon Shareef
    simonshareef@gmail.com

  14. #14
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    I admit I know very little about "XHTML 1.0 compliant" but I sure would like to learn something .

    Can you give us any some tips on what you had to do to the INDEXU templates to make them "compliant?"

    BTW, congrats on the "compliant" achievement and having a nice looking site.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  15. #15
    Join Date
    Aug 2004
    Posts
    13

    Default

    Hi,

    I've put up a tutorial at http://www.nicecoder.com/community/s...ead.php?t=2331.

    I have read and let me know. BTW, the tutorial isn't specifically for indexu.

    Cheers
    --
    Simon Shareef
    simonshareef@gmail.com

Similar Threads

  1. I do not run a Gaming directory
    By aladdin in forum v5.x
    Replies: 8
    Last Post: 04-24-2003, 01:42 AM
  2. Limit re-adding site to directory
    By aladdin in forum v3.2
    Replies: 0
    Last Post: 01-23-2003, 02:31 PM

Posting Permissions

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