Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
diafol
- Page 1
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by Dani
Diafol
, I might be confused, but I don't think that you should need to do any type of nested loops. Just look at the list of my favorite forums when you pull /me Then, do: http://www.daniweb.com/api/forums/1;2;3;4;5/descendants?include_self=1 This will give you a flat list of all of my favorite forums and all their descendants.
diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by diafol
Hi all, following a chat with Dani, I'm just posting an example of a jQuery OAuth implementation. Major updates to come over the next weeks and months, but it's a start. I'll be publishing the code once I've cleaned it up and de-noobified it somewhat. :) http://dw.
diafol
.org/
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by Dani
I get a 500 server error :(
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by diafol
Fixed! Yep, I was having issues with GETTEXT, so had to swap a few include files around - but I got them in the wrong order!
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by Dani
I love the Twitter Boostrap look!! Spiffy!!
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by Dani
Two things ... 1. You probably want to pass ?include_self=1 when you fetch /forums/descendants to include the top level categories as well, and not JUST their descendants. 2. I'm not sure if it's related to that or not, but my list has an article that says *f: undefined*. It points to this thread: http://www.daniweb.com/hardware-and-software/…
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by diafol
Thanks for the heads up. I didn't know about the include_self! OK, I just hope I get the same json format :)
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by Dani
> OK, I just hope I get the same json format :) You will! However, it seems like it isn't able to determine the forum name when you're in a sub-forum, like one of the sub-forums within Microsoft Windows. Are you sure you're pulling descendants and not just children?
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by diafol
Ok, I've added the parameter - does it work for you now?
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by Dani
No :(
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by diafol
OK, I'll hard code your fave forums into my code and see if I can replicate the problem. Hmm, it's stopped working - can't splice the json - did you change anything? Ah - I now see the "0": etc 'keys'
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by Dani
I didn't change anything????
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by Dani
Oh shoot, you're right! I did break something!! Fixing ......
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by Dani
Fixed. Sorry about that.
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by Dani
Don't ya just love working with a moving target API? :)
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by Dani
GRR, *not* fixed ... hold on :)
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by Dani
*NOW* fixed.
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by diafol
OK, you've officially given me a freaking headache. :) He he.
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by Dani
I was trying to add pagination and I accidentally put the pagination object *inside* the data object ... All good now.
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by diafol
OK, I think I tracked down the problem. If you have a top-level forum as your favourite, then children don't get taken into account in my code, so although the posts will be extracted, the program can't identify the forum as it has no id-title array item. OK, that went totally over my head until now. I've been beating my head against a wall as to …
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by diafol
aw. i think you're right. my comparison top get the titles used the original favourite forums - that's why I wasn't getting the child forums. DOH! and DOUBLE DOH! Thanks.
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by Dani
Favorite forums have always been the same. It's just an array of forum IDs within /me. Just take that array of forum IDs and collapse it into a semi-colon delimited list, and fetch all those forums and all their descendants at once.
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by diafol
That's what I did: ff, myForums are global vars (array) $.getJSON('http://www.daniweb.com/api/me?access_token=' + access_token + '&callback=?').done(function(json){ me = json.data.id; $.each(json.data.favorite_forums, function(i,v){ ff.push(v.forum.id); }); forums = ff.join(';'); $.getJSON('http://www.daniweb.com/…
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by Dani
OK yeah, that should work :) Much more elegant than going through nested loops.
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by Dani
Just tested it and i'm seeing Windows Vista nd Win 7/8 and Windows 2000/XP ... seems to all be working now :)
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by diafol
Yipee! OK, I think I'm gonna leave it there on that particular app. BTW - if I want to place more that one app on one site, should I create a new application for each or should I just use the one and reuse the same client id etc?
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by Dani
> BTW - if I want to place more that one app on one site, should I create a new application for each or should I just use the one and reuse the same client id etc? It's up to you with two caveats: 1. If you use clientside OAuth 2.0, the domain registered must match the domain the app resides on. 2. The application name and website is displayed…
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by diafol
1. Yep 2. I didn't think of the name presented to the public :) Good job I didn't name it something profane! Thanks.
Re: diafol's dwAPI microsite
Community Center
Meta DaniWeb
12 Years Ago
by Dani
I like that you included documentation now! :)
Pass javascript alert box value to php
Programming
Web Development
10 Years Ago
by accra
Diafol
, anybody pls help. i have this javascript code <script&…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC