![]() |
Intergrating external pages into usercp's USERCP_SHELL design?
I have a plugin that Is finally working (thanks to Paul M)
Here is the code for it: PHP Code:
PHP Code:
PHP Code:
|
Did you put this $HTML anywhere in USERCP_SHELL template?
|
Quote:
Did you make a new template called 'blah'? stick all your content in that template, including any variables you will use. |
The templates and how it works is all defined in the php code I posted first, I need to know how to put what I've got defined into the the usercp design, I've done it before by using that fetchtemplate ' blah' thing, but I need to change that so fetchtemplate is replaced with the php code I posted first and I don't know how to do it.
|
Try Changing
PHP Code:
PHP Code:
|
Opserty, what I meant was, if you set a template var in php and if you don't call it in the main template, it won't work out. :)
|
Quote:
--------------- Added at 22:25 --------------- Erm, the script thing didn't work. --------------- Added at 22:26 --------------- Oh another thought how could I convert this into a HTML if condition? PHP Code:
|
Quote:
Quote:
Technically it would be: Code:
<if condition="in_array($_REQUEST['do'], array('contributors'))"> However it would be better to use: Code:
<if condition="$_REQUEST['do'] == 'contributors'"> |
Quote:
--------------- Added at 23:40 --------------- This may be a long show but do you think there is a simple thing I could add into the code to make users with addition usergroup = 12 show up as well? the current one shows only primary users. *crosses fingers* |
All times are GMT. The time now is 08:03 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|