![]() |
|
Thread Tools |
#1
|
||||
|
||||
vB5 API help - latest / trending posts list only returns if < 5 days
I created a simple PHP script that loads the vB5 API and generates a simple JSON list of the trending posts. (See sample code below). The problem is that I can't get the scripts to generate anything for more than a couple days. Ideally I'd like to get the trending posts in the last 7 days, last 31 days, etc. But it I go over 3-5 days, nothing is returned. Any suggestions?
Sample code to load the vB5 API, and get the last 20 days of posts:
If I change the $search_json code above 5 days, nothing is returned, no error is create, just blank output. Any help is greatly appreciated. Cheers, Jeff No members have liked this post.
|
#2
|
||||
|
||||
You could use template for this also... just search for initialResult in templates for examples. There is also a ignore cache as search option . You could try this.
__________________
vBulletin-Forum.de closed! ![]() No members have liked this post.
|
#3
|
||||
|
||||
An update -- one of the problems was actually a silent json_encode error in PHP -- once I checked for json errors I saw that error. Wrapping all of the thread details in utf8_encode() fixed that error:
Still seeing inconsistent results, but at least I get results every time now. Cheers, Jeff No members have liked this post.
|
![]() |
Tags |
api, json, vb5 api |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 03:21.