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
I was messing around with the portal.php and seen that it has stuff like

$pm
$announcments

i created a cutsom template called portal_test
and added some code in it and went back to the the portal template and added

$portal_test to the template shouldnt this make portal_test show in the portal.php
you need to add this to portal.php where you like:
eval("\$portal_test = \"".$templates->get("portal_test ")."\";");
Hmm thanks but do i put it in via the admin cp or through the actual portal.php
You put it through the actual portal.php file
ok does it matter where in the portal.php
There should be a clump of "eval();" codes within' the portal.php file. Just search for eval on portal.php file and see if you can find a bunch of them close together. Then just add that code after it.
Im getting a parse error

Parse error: parse error, unexpected T_VARIABLE, expecting T_STRING in /home2/thedon/public_html/community/portal.php(135) : eval()'d code on line 12
Scroll right to the bottom of the PORTAL.PHP file, and add it above:
eval("\$portal = \"".$templates->get("portal")."\";");
... so it says...
eval("\$portal_test = \"".$templates->get("portal_test ")."\";");
eval("\$portal = \"".$templates->get("portal")."\";");
still getting the parse error

Parse error: parse error, unexpected T_VARIABLE, expecting T_STRING in /home2/thedon/public_html/community/portal.php(370) : eval()'d code on line 12
nevermind i can't do it a friend said i have to define the variable cause its php and i dont know how to do that so i can't add it.
Pages: 1 2