The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
API login_login error: badlogin
Hi Community,
I have wrote a simple api-login-script but every time I get the error message: badlogin. I have tested the login with some accounts and i'm sure that the username and password are correct. You can very simple the script, if you have a vbulletin installation and a activated api function. All what you need is to edit the variable $apiurl and $apikey and uplodad the script to your webspace. I would be very appreciated if someone can help me. :-) PHP Code:
|
#2
|
|||
|
|||
i have used curl and few other methods for doing vbulletin functions through a script but never tried vbulletin api. So took a few hrs to understand vbulletin API.
Try this script (it is working for me) PHP Code:
|
Благодарность от: | ||
gigagon |
#3
|
|||
|
|||
Thank you very much, it works for me too! :-)
Do you know, how i can realize a permanente login to the forum? My target is to implement a bridge between the cms contao and vbulletin. So i need a login to authenticate the user in contao and vbulletin. The master system is vbulletin and the slave system is contao. Can i geneate cookies or set the status to "everytime logged in" with the api? many greetings gigagon |
#4
|
|||
|
|||
]I'm struggling with the same issue. Did you manage to get past this hurdle?
|
#5
|
|||
|
|||
Badshah93 - good example earlier as the documentation led me astray...even your password field being called vb_login_md5password rather than vb_login_password was helpful as the online documentation didn't show that.
Now onto my question... VB posts a link for API overview/documentation: https://www.vbulletin.com/forum/cont...7-API-Overview I'm trying to see documentation for executing a forum search and then retrieving the results. I can see from the "All" methods page that it's under "Advanced Search Methods", but after logging in I'm being told I do not have permission to access this page. From the "All Methods" page I see these which might do the trick, but there's no documentation on how to use them:
The methods I imagine I would need documentation for are search_process and search_showresults. I'm on 4.2.0 Patch Level 3...thanks in advance for any help |
#6
|
|||
|
|||
bump
|
#7
|
|||
|
|||
Quote:
Searching only requires: search_process -> gives you an id to retrieve search results search_showresults -> returns the results for given id Parameters for search process are mostly the same as they are used in advanced search in usercp: For example: query = 'find*me' // search query forumchoice = '1,2,3,4' // only in listet forums childforums = 1 // also search in child forums titleonly = 0 // searches only in titles contenttypeid = 1 // searches only in posts (not blogs, groups, etc) Have a closer look to search.php Major parameters for search_showresult are: page, perpage and searchid Greetings Bundschuh |
#8
|
|||
|
|||
Bundschuh - thanks for the reply.
Using the site through a browser I can get the desired results: Code:
Forum Id=6 properly gives 2 results search.php?do=process&query=televisions&titleonly=0&childforums=1&forumchoice[]=6&contenttypeid=1 Forum Id=5 properly gives no results search.php?do=process&query=televisions&titleonly=0&childforums=1&forumchoice[]=5&contenttypeid=1 When I use the API if I specify the forumchoice as the URL parameter with the [] in the name, I get an api error: Invalid API Signature. Here's what I'm passing in the api specific parms: PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|