The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
parsing variables to an external file
Hello,
i'm in the process of building a plugin, with this plugin there is a post button which calls a external php file. now i wan't have acces to all the variables that are present at that time. for instance user name, thread id and so on. there are also some custom variables. how can i use them in my custom php file. i don't want use file.php?someinfo=info i will only call file.php and all the info should be availeble in file.php how can i do this. |
#2
|
|||
|
|||
I think maybe the answer is to follow the instructions in this article: https://vborg.vbsupport.ru/showthread.php?t=228112
|
#3
|
|||
|
|||
Well, now that I reread what you posted, you wouldn't necessarily have access to every variable that is present - some things like threadid would need to be passed to the external php file in some way. If you don't want to pass the parameters on the url or via POST (i.e. an html form), then you would have to use some other method. (tbworld had posted about some possible methods, but deleted his post when I said he was wrong about what you wanted. . Maybe he can undelete it).
|
#4
|
|||
|
|||
Maybe post will do the job, i dont want the user to see variables on the command line.
|
#5
|
|||
|
|||
i can't get it to work.
when i load a php from a external site, the php file is displayed when i host the php file on the vbulletin site. the file isn't show. how can i display this php file within vbulletin. and alternate parse some variables from vbulletin to this php file. i think i have to make a template and a different php file, but i don't have any experience with that. i followed the tutorial as kh99 in his first post mentioned but i don't get it. would someone help me with this. not with the code but just with some tutorial help. [edit] I came from a button click from within a different plugin, here is a small peace of code. Code:
$ptpnt_do = ''; //$ptpnt_action = 'https://www.paypal.com/cgi-bin/webscr'; $ptpnt_action = './test.php'; $ptpnt_item = $foruminfo['forumid'] . '_' . $vbulletin->userinfo['userid'] . <form action="{vb:raw ptpnt_action}" method="post"> <vb:if condition="$show['ptpnt_total_price']"> when the submit button is pushed then my peace of code should come in. PHP Code:
|
#6
|
|||
|
|||
I would need to see the entire page you are posting on the vbulletin site. You can send it in a PM if you do not want to display it here. It is hard to follow in fragments. You are probably missing something relatively easy dealing with vbulletin.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|