![]() |
ajax requests for postbit
Hello! I try to make custom plugin, and try to figure out, how I can use ajax requests for suitable changes in post content.
On hook bbcode_create: PHP Code:
PHP Code:
Code:
function myfn(postid) postid = undefined -------------------------------------- So... whats right syntax for this operation? And next... how I can resolve bbcode-parsed text from current post? Thanks! |
Please.... I dont ask to many((((
I`m just need to know right syntax to properly receive a postid in javascript. Maybe at least someone tell in which files of vB, I can see similar operation? |
Seems like $post['postid'] is not defined yet on that hook, you can try $post['id'] or something like that but it could be more complex. Usually when I have this type of problems I search the file containing the hook bbcode_fetch_tags and see what's going on there. You may find there some variables containing the post id
|
Thanks, Andrea!
Your right. I found how to define postid on any hooks))) PHP Code:
PHP Code:
How you think its good idea, or may be better found another way? |
All times are GMT. The time now is 06:23 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|