Thread Rating:
  • 16 Vote(s) - 4.38 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Include your custom pages in Mybb
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
[Image: untitl11.jpg]
Reply
If your trying to add custom pages to the UCP, how would one add the usercpnav?
Reply
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.
Reply
Anyone??
Reply
Great tutotial - thanks!

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

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

Thanks again!
Reply
(02-21-2010, 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.
Reply
How can I set the value of {$name}?
This is the template:

Code:
<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 Code:
<?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.
Reply
This user has been denied support. This user has been denied support.
hahaha sorry but what is this i mean what this do when u change the codes i do not understand any photos to describe?!
Reply
I can't even begin to stress how amazing this is, well done.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)