Post ProjectBuyersProgrammersFAQForumContactRSS
      MEMBER LOGIN
      SERVICES & FEATURES
  • Post a Project
  • Signup
  • Job Listings
  • Featured Projects
  • Certified Members
  • Top Programmers
  • Affiliate Program
  • RSS Feeds
  •    THE 20 LATEST PROJECTS
    Jobs Board Website Content
    Darko Project
    Consumer Comment Site
    Time-based Ea For Metatrader
    Database Project
    Articles For Pc Hardware
    Wordpress Layout
    Easy English Article Writing
    Coldfusion Cms
    Quick Shooping Cart Css Coding
    Long Term Web Design Work
    Article Rewrites - Ongoing
    Metatrader Expert Advisor
    Php Expert Needed
    Membergate
    Pc Articles
    Aweber&getresponse Integration
    Modify Joomlart Template
    Movie Searchable Database
    Integrate New Sites Design
     
    Project: Sitemap XML to javascript menu
    ID: 1210642889
    Post Similar Project

    Status: Closed (Cancelled)
    Budget: N/A
    Created: 5/12/2008 at 21:41 EST
    Cancelled: 5/13/2008 at 18:50 EST
    Project Creator: dundua
    Rating: (No Feedback Yet)
    Description: I have a sitemap containing the urls of my forum.
    I need the following:

    The sitemap urls get converted to a javascript menu.
    As a menu, I'd like you to use the following:
    http://destroydrop.com/javascripts/tree/

    What I want you to do is:
    - write a script that processes the sitemap.xml as input
    - crawls the urls of the sitemap for their title
    - inputs the urls into the array of the javascript menu according to the following rules:

    1) Most urls will end with a number.
    For threads for example: http://mydomain.com/forum/showthread.php?t=30872
    For subforums for example: http://mydomain.com/forum/forumdisplay.php?f=33
    You need to check subforum urls and input them into the top level of the javascript menu
    You need to check the thread urls for their ending number and input them into the menu according to their numbers
    An example what it should look like:

    Top Headline
    +1
    ++11
    +++111
    ----1111
    ----1112
    ----1113
    ----1114
    ----1115
    ----1116

    All the above would be clickable and link to the urls of the forum.
    + means an expandable tree item, - means it's the lowest level.

    The array in the javascript would look like this:

    d = new dTree('d');
    d.add(0,-1,'Top Headline');
    d.add(1,0,'1','http://mydomain.com/forum/showthread.php?t=1');
    d.add(2,1,'11','http://mydomain.com/forum/showthread.php?t=11');
    d.add(3,2,'111','http://mydomain.com/forum/showthread.php?t=111');
    d.add(4,3,'1111','http://mydomain.com/forum/showthread.php?t=1111');
    d.add(5,3,'1112','http://mydomain.com/forum/showthread.php?t=1112');
    d.add(7,3,'1113','http://mydomain.com/forum/showthread.php?t=1113');
    d.add(8,3,'1114','http://mydomain.com/forum/showthread.php?t=1114');
    d.add(9,3,'1115','http://mydomain.com/forum/showthread.php?t=1115');
    d.add(10,3,'1116','http://mydomain.com/forum/showthread.php?t=1116');
    document.write(d);

    Instead of using the number as node title, I want you to get the title from the link of the processed page and input as a node title.

    Subforum urls (see above) should be put into the array at root level.
    All other urls that do not match the above need to be displayed on the root level of the tree.

    You do NOT have to write the javascript menu. It's already ready to go.
    Only the array in javascript needs to be written and the title fetched from the page.

    I would prefer to have this as a php script that I run from the command line.
    It gets the sitemap.xml as input. The location of the javascript menu file can be hardcoded into the script.
    Job Type:
    • Javascript
    • PHP
    • XML

    View Message Board for this Project
    Messages Posted: 2

    Programmers Bid Delivery Within Time of Bid
    Rating
    demitrys $70 2 days 5/13/2008 at 0:41 EST
    (No Feedback Yet)
    It can be done easily. I can suggest u better javascript tree.
    orioncs $70 2 days 5/13/2008 at 13:22 EST
    10.00/10
    (2 reviews)
    Let me help you with that.
    khanhhuyna $85 3 days 5/13/2008 at 6:26 EST
    10.00/10
    (2 reviews)
    Ready to work! Thanks!
    andre $100 1 day 5/12/2008 at 23:58 EST
    9.98/10
    (70 reviews)
    I can make this script. Please see some details in message board also. Thank you.

    Copyright © 2001 - 2008
    ScriptLance is a trade-mark of
    R3N3 International Inc
    Site MapRSSPrivacy PolicyTermsReport ViolationsAffiliatesFAQForumContact Support
    Web Design by: DevFly.com