View Single Post
  #1  
Old 02 May 2020, 18:38
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Real name: Ryan
Question Foreach in plugin

So I am trying to use a foreach in my plugin and call it in my template with a variable, since my foreach is open it's breaking my product. How can I go about calling a foreach and include it in my template?


My before product, raw php:

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




so I have my plugin like this (and yes the other variables are defined, this is just where the is)

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

and the template like this

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

and it breaks, the variable
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

works on its own, but nothing works when i add the portion above it.
__________________
If you need custom work done please use Dirt RIF CustUmz
Owner of vBTeam
vBulletin 3.8.14 DRC Edition PHP 7.4 Compatible- NOT a null, NOT complete files Requires a legit copy of vBulletin 3.8.11.
Reply With Quote