MyBB Community Forums

Full Version: Adding more to your portal.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
um, its not hard. Just do this:

1) Open portal.php

2) Search for
eval("\$portal = \"".$templates->get("portal")."\";");
outputpage($portal);
3) Before add
eval("\$portal_test = \"".$templates->get("portal_test")."\";");
so it looks like
eval("\$portal_test = \"".$templates->get("portal_test")."\";");
eval("\$portal = \"".$templates->get("portal")."\";");
outputpage($portal);
4) Go to Admin CP > Templates > Add, and enter the following details:
Quote:Title: portal_test
Template: You content goes here
Template Set: Global - All Template Sets
and save template.

5) Open Admin CP > Templates > Modify/Delete > Portal Templates Expand > portal

6) Add
$portal_test
where you want the template to show up.

I did this process, and it worked fine. If it doesn't for you, you might have modified something else in portal.php?
ok i got it to include that portal_test but when i try to add stuff like.

$post[fid4] For avatar caption it wont show up and also when useing $avatar it gives me a parse error.
yeah, probably cause $post isn't coded in portal.php to work. For that, you'll need another code mod.

As for the parse error, what was it?
I played around with $avatar, but I never got a parase error, although I didnt actually manage to get the avatar to show up anywhere either
Pages: 1 2