The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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:
|
#2
|
||||
|
||||
Did you put this $HTML anywhere in USERCP_SHELL template?
|
#3
|
|||
|
|||
Is already in the template by default
Did you make a new template called 'blah'? stick all your content in that template, including any variables you will use. |
#4
|
||||
|
||||
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.
|
#5
|
|||
|
|||
Try Changing
PHP Code:
PHP Code:
|
#6
|
||||
|
||||
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.
|
#7
|
||||
|
||||
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:
|
#8
|
|||
|
|||
Quote:
Quote:
Technically it would be: Code:
<if condition="in_array($_REQUEST['do'], array('contributors'))"> BLAH </if> However it would be better to use: Code:
<if condition="$_REQUEST['do'] == 'contributors'"> BLAH </if> |
#9
|
||||
|
||||
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* |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|