![]() |
|
Thread Tools |
#1
|
|||
|
|||
How to get the thread URL from a nodeid?
Let's suppose I have a node id (the integer value) which corresponds to a thread. How do I get the URL?
No members have liked this post.
|
#2
|
||||
|
||||
You can get to the threads by nodeid using the www.example.com/forum/node/1234 where 1234 is the nodeid. Is that what you are looking for or are you looking for API?
from the command line ---- curl http://www.vbulletin.com/forum/ajax/...l?nodeid=54756 or javascript ---
The ajax method is hit or miss. On VB 5.2, I don't know why, but if a user is logged in, this js throws an error, but for guests, works as expected. You can also call the API in the templates using {vb:data} The following members like this post: Lynne
Last edited by Replicant; 09 Feb 2016 at 02:16. |
#3
|
||||
|
||||
![]()
Once and again, thank you very much!
I did as you said using curl:
It was exactly what I needed. The following members like this post: MarkFL
|
#4
|
||||
|
||||
Originally Posted by ndoktoruser
If you are using this in a php script, you can call the api directly in the code also. It'll save an http request and be much faster if you are dealing with several urls. I included a screenshot of the docs for this function.
![]()
The following members like this post: MarkFL
|
#5
|
||||
|
||||
Amazing!
And much simpler now:
Last edited by ndoktoruser; 15 Feb 2016 at 16:51. |
#6
|
|||
|
|||
Hello, sorry for response in old topic - but I have the same problem and don't know how to convert mysite.pl/forum/node1234 to full url to the post. I don't know how to use this getAbsoluteNodeUrl API. Any Tips?
Should create php file example converter.php and put this code in to this file? I need only working redirection from mysite.pl/forum/node1234 to full url to the post how to do that? No members have liked this post.
|
![]() |
«
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 07:33.