Find Jobs
Hire Freelancers

222327 Sitemap XML to javascript menu

N/A

Dalam Kemajuan
Disiarkan hampir 16 tahun yang lalu

N/A

Dibayar semasa penghantaran
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: [login to view URL] What I want you to do is: - write a script that processes the [login to view URL] 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: [login to view URL] For subforums for example: [login to view URL] 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'); [login to view URL](0,-1,'Top Headline'); [login to view URL](1,0,'1','[login to view URL]'); [login to view URL](2,1,'11','[login to view URL]'); [login to view URL](3,2,'111','[login to view URL]'); [login to view URL](4,3,'1111','[login to view URL]'); [login to view URL](5,3,'1112','[login to view URL]'); [login to view URL](7,3,'1113','[login to view URL]'); [login to view URL](8,3,'1114','[login to view URL]'); [login to view URL](9,3,'1115','[login to view URL]'); [login to view URL](10,3,'1116','[login to view URL]'); [login to view URL](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 [login to view URL] as input. The location of the javascript menu file can be hardcoded into the script.
ID Projek: 1968562

Tentang projek

Projek jarak jauh
Aktif 12 tahun yang lalu

Ingin menjana wang?

Faedah membida di Freelancer

Tetapkan bajet dan garis masa anda
Dapatkan bayaran untuk kerja anda
Tuliskan cadangan anda
Ianya percuma untuk mendaftar dan membida pekerjaan

Tentang klien

Bendera
0.0
0
Ahli sejak Mei 13, 2008

Pengesahan Klien

Terima kasih! Kami telah menghantar pautan melalui e-mel kepada anda untuk menuntut kredit percuma anda.
Sesuatu telah berlaku semasa menghantar e-mel anda. Sila cuba lagi.
Pengguna Berdaftar Jumlah Pekerjaan Disiarkan
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuatkan pratonton
Kebenaran diberikan untuk Geolocation.
Sesi log masuk anda telah luput dan telah dilog keluar. Sila log masuk sekali lagi.