The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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) { var sUrl = 'ajax_geshi.php'; } postid = undefined -------------------------------------- So... whats right syntax for this operation? And next... how I can resolve bbcode-parsed text from current post? Thanks! |
#2
|
|||
|
|||
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? |
#3
|
||||
|
||||
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
|
#4
|
|||
|
|||
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? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|