vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   how to call $postinfo['postid'] (https://vborg.vbsupport.ru/showthread.php?t=292595)

Easy5s.net 12-04-2012 07:45 AM

how to call $postinfo['postid']
 
Hello, I create own vBulletin page and I want to use variables $postinfo['postid'], how to?

kh99 12-04-2012 12:52 PM

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.
Code:

$ajax("view.php?id="+itemid+"&product="+product+"&postid="+postid);
how to get postid at postbit?

kh99 12-04-2012 01:18 PM

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

Quote:

Originally Posted by kh99 (Post 2388371)
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

Quote:

Originally Posted by Simon Lloyd (Post 2388379)
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 :)

kh99 12-04-2012 07:14 PM

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???


All times are GMT. The time now is 10:00 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01101 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete