MyBB Community Forums

Full Version: Include your custom pages in Mybb
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
How do i make it have color. Like say my page is called Omg and its beside search, i want it to stand out more so how do i make it appear as pink color.

Edit: Nvm i figured it out, its <a href=http://www.(website) target=
<a style="color:#FF00FF">Omg
If your trying to add custom pages to the UCP, how would one add the usercpnav?
I am making my own custom pages using this tutorial, everything is going fine until trying to call to other templates. I am extending my usercp with a couple different sections, and trying to call to the usercp menu to keep everything looking uniform. However, I can't figure out how that template should/would be called to within the "php" file, then again in the template file I created.

Someone mentioned in this thread that it made a difference where the custom template was saved, either as a "global" or "default". I have tried saving my template as both of those and it doesn't make a difference.

How can my custom php and template file call to the other mybb templates?? Someone please shed some light on this.
Anyone??
Great tutotial - thanks!

I've used it to incorporate a Leaderboard on my forum, using ProStats:

http://brassmusician.com/forum/leaderboard.php

Thanks again!
(2010-02-21, 04:00 PM)scott240 Wrote: [ -> ]I am making my own custom pages using this tutorial, everything is going fine until trying to call to other templates. I am extending my usercp with a couple different sections, and trying to call to the usercp menu to keep everything looking uniform. However, I can't figure out how that template should/would be called to within the "php" file, then again in the template file I created.

Someone mentioned in this thread that it made a difference where the custom template was saved, either as a "global" or "default". I have tried saving my template as both of those and it doesn't make a difference.

How can my custom php and template file call to the other mybb templates?? Someone please shed some light on this.

Sorry for not replying sooner - this requires global.php edits I think.

I'm going to try this now and then I'll let you know how it works.

Done it.

Just copy the index file and add the bits you want to include at the top - should be fairly obvious.
How can I set the value of {$name}?
This is the template:

<html>

<head>

<title>{$mybb->settings[bbname]}</title>

{$headerinclude}

</head>

<body>

{$header}

<br />

<table width="100%" border="0">

<thead>

<tr>

<th>RULES</th>

</tr>

<tbody>

<tr>

<td>Our rules {$name}</td>

</tr>

</tbody>

</table>

{$footer}

</body>

</html>

This is the code in php file
<?php

define('IN_MYBB', 1); // (1a)
require "./global.php"; // (1b)

global $name;
add_breadcrumb("Rules page", "rules.php"); // (2)

eval("\$rules = \"".$templates->get("rules")."\";"); // (3)

$name	=	'abc';

output_page($rules); // (4)
?>

Please help me, I am stuck in it.
hahaha sorry but what is this i mean what this do when u change the codes i do not understand any photos to describe?!
I can't even begin to stress how amazing this is, well done.
Can anyone help me correctly add my rules page to the Nav beside the link for the Help page?
This is what I've worked out so far by editing the Header template, it works but I know it's not right.
<li><a href="{$mybb->settings['bburl']}/rules.php"><img src ="images/icons/lightning.png">Rules</a></li>
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help" class="help">{$lang->toplinks_help}</a></li>

I basically copied the Help line but ran out of technical knowledge half way through.
Ideally I would also like a distinct Rules icon.

Thanks for any help.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14