The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hello, I create own vBulletin page and I want to use variables $postinfo['postid'], how to?
|
|
#2
|
|||
|
|||
|
If you've created your own page and you want to use a post id, you would have to query the database for the information (unless it's part of the url?). If you explain more about what you're doing we might be able to help more.
|
|
#3
|
|||
|
|||
|
It's a separate page is loaded as iframe.
Code:
$ajax("view.php?id="+itemid+"&product="+product+"&postid="+postid);
|
|
#4
|
|||
|
|||
|
OK, but where are you putting that code, is it in one of the existing vb templates? If it's in the postbit, then maybe you want {vb:raw post.postid}?
Or are you saying that code is in your custom page and you have to figure out how to pass the postid to your custom page? |
|
#5
|
|||
|
|||
|
Yes, custom pages, and pages are displayed through an iframe, do not use temp postbit
|
|
#6
|
||||
|
||||
|
You can try $vbulletin->postinfo['postid'] but then im not sure you wouldn't have to pass that through another variable using php.
|
|
#7
|
|||
|
|||
|
Quote:
|
|
#8
|
|||
|
|||
|
Sorry, but I still don't understand. I see that you want to use a post id, but I don't understand where it's coming from.
|
|
#9
|
||||
|
||||
|
I'm assuming he's trying to show a list of posts and maybe he wants to add the postid to the end of a url???
|
![]() |
|
|