View Full Version : how to call $postinfo['postid']
Easy5s.net
12-04-2012, 07:45 AM
Hello, I create own vBulletin page and I want to use variables $postinfo['postid'], how to?
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.
Easy5s.net
12-04-2012, 01:10 PM
It's a separate page is loaded as iframe.
$ajax("view.php?id="+itemid+"&product="+product+"&postid="+postid);
how to get postid at postbit?
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?
Easy5s.net
12-04-2012, 01:29 PM
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?
Yes, custom pages, and pages are displayed through an iframe, do not use temp postbit
Simon Lloyd
12-04-2012, 01:46 PM
You can try $vbulletin->postinfo['postid'] but then im not sure you wouldn't have to pass that through another variable using php.
Easy5s.net
12-04-2012, 01:51 PM
You can try $vbulletin->postinfo['postid'] but then im not sure you wouldn't have to pass that through another variable using php.
thank, but not work :)
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.
Simon Lloyd
12-04-2012, 07:30 PM
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???
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.