Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 01 May 2020, 15:24
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Real name: Ryan
Question using PHP in templates

ok I have been out of the scene for a LONG time, I'm working on a new product, and im just having a huge brain fart.

Im trying to use php in a template I have created what I want to convert to a product in PHP, an example of my source is


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

I know I cant use php in a template of a product, but what I cant remember is how to create a variable that would equal the php so i can pull that into the template.

Im brain farting so hard.

Global Plugin:

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

Template

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

__________________
This needs to be updated
But I don't know what to put
Check Out Dirt RIF CustUmz
Reply With Quote
  #2  
Old 01 May 2020, 16:00
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
That would only work if the variables were evaluated to PHP code, but they are not.
In vBulletin, they would loop in a PHP script and then call the template that would contain:

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

To render what is needed.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #3  
Old 01 May 2020, 16:14
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Real name: Ryan
scratch this, my brain un farted lol. Im going about this wrong, i need to create a plugin with this PHP/HTML in it, and give that the variable, then use that variable in the template..... if that makes sence
__________________
This needs to be updated
But I don't know what to put
Check Out Dirt RIF CustUmz

Last edited by Dr.CustUmz; 01 May 2020 at 16:24.
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 04:07.

Layout Options | Width: Wide Color: