Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 08 Mar 2014, 10:27
ageurtse ageurtse is offline
 
Join Date: Apr 2009
Real name: arnold
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.
Reply With Quote
  #2  
Old 08 Mar 2014, 11:21
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
I think maybe the answer is to follow the instructions in this article: http://www.vbulletin.org/forum/showthread.php?t=228112

Last edited by kh99; 08 Mar 2014 at 12:39. Reason: other answer deleted
Reply With Quote
  #3  
Old 08 Mar 2014, 18:56
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
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).
Reply With Quote
  #4  
Old 08 Mar 2014, 21:05
ageurtse ageurtse is offline
 
Join Date: Apr 2009
Real name: arnold
Maybe post will do the job, i dont want the user to see variables on the command line.
Reply With Quote
  #5  
Old 10 Mar 2014, 18:48
ageurtse ageurtse is offline
 
Join Date: Apr 2009
Real name: arnold
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.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and a small bit of the template

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





Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Last edited by ageurtse; 10 Mar 2014 at 19:19. Reason: extra information
Reply With Quote
  #6  
Old 11 Mar 2014, 05:09
tbworld tbworld is offline
 
Join Date: Oct 2008
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.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 13:32.

Layout Options | Width: Wide Color: