Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 13 May 2014, 13:12
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Real name: Ryan
Unhappy Plugin via an external PHP

i've dug up about all i can find on using external php files within vb. they all turn up to be something like this HERE

thats not exactly what im trying to accomplish here though.

so i have an xml, within it i have my plugins and all the PHP for the plugins the one i particularly want to include externally is a misc_start plugin that looks a little like:


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

i want to be able to just put all that php into an actual php file the user can upload, then call it from within the xml or something... is there how exactly would i go about that =/

or would i still be doing the same thing as shown in the link at the top? even though this is not a template...
__________________
Sorry been away so long, new baby, got married, got into GM, just got to the point I can resume developing.
I'm working on a bunch of products, some free, some paid, and will release them all at once.
Dirt RIF CustUmz
Reply With Quote
  #2  
Old 13 May 2014, 18:00
vBNinja's Avatar
vBNinja vBNinja is offline
 
Join Date: May 2011
put the php on a file (name.php)

then in your plugin use:

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

Example:
If you saved the file in the "includes" folder, you would use

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

you can use require or require_once, it depends on the situation
change the path to file according to where you saved the file in relation to your forum root
__________________
PM me for Custom Mod Requests/Work
Reply With Quote
  #3  
Old 14 May 2014, 01:27
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Real name: Ryan
is it ok if i bang my head on the table a few times lmao, thanks man
__________________
Sorry been away so long, new baby, got married, got into GM, just got to the point I can resume developing.
I'm working on a bunch of products, some free, some paid, and will release them all at once.
Dirt RIF CustUmz
Reply With Quote
  #4  
Old 14 May 2014, 01:51
tbworld tbworld is offline
 
Join Date: Oct 2008
Originally Posted by Dr.CustUmz View Post
is it ok if i bang my head on the table a few times lmao, thanks man
Just make sure you do both sides evenly.

We have all been there.
Reply With Quote
  #5  
Old 15 May 2014, 11:46
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Real name: Ryan
Originally Posted by tbworld View Post
Just make sure you do both sides evenly.

We have all been there.
just one of those up too long moments lmao
__________________
Sorry been away so long, new baby, got married, got into GM, just got to the point I can resume developing.
I'm working on a bunch of products, some free, some paid, and will release them all at once.
Dirt RIF CustUmz
Reply With Quote
  #6  
Old 17 May 2014, 16:00
ChiNa ChiNa is offline
 
Join Date: Jul 2012
Real name: CM
@Dr.CustUmz, I hope you are not trying to create a Remote Shell Script lol
__________________
I am having a little break from vB Developing. I am trying to finish my PHP and MYSQL courses for now. I will answer all my PM's if anyone needed help for my products, but only when I can be online on vB.org. Its great to see new and old developers keeping vB.org alive! Thank you all for your support!CM
Reply With Quote
  #7  
Old 20 May 2014, 07:25
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Real name: Ryan
Originally Posted by ChiNa-Man View Post
@Dr.CustUmz, I hope you are not trying to create a Remote Shell Script lol
lmao you downloaded that? that was just something i was testing lol, pretty good yeah? lol, no but im working on a bunch of other stuff too where i needed to call externals, and just had a brain fart.
__________________
Sorry been away so long, new baby, got married, got into GM, just got to the point I can resume developing.
I'm working on a bunch of products, some free, some paid, and will release them all at once.
Dirt RIF CustUmz
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 01:52.

Layout Options | Width: Wide Color: